ayhan1993
AyhaN ^^
- Ağu
- 427
- 10
Asağıdki kod User sıralamda Ortak sıralamadır. Ben dreamViewer bilmedigim için bu kodu bana Human-Karus diye ayırabilcek yada gösterebilcek biri varsa cok makbule gecer..
Yapabilcek yada yol gösterebilcek msnsini bırakabilirmi yada buraya yapabilirse cok makbule gecer
Kopanel : http://www.exsolutio.info/Filez/ProjectKE.panel.rar
PHP:
<?php
/*******************
* Xxx Server's
* User rankings
*******************/
$title = "User Rankings";
if (!defined('KE_PANEL'))
{
exit("You are not allowed to view this page directly.");
}
else
{
$userrankingsnum = "100";
$pagecontent .= "
You have arrived to <b>xx Server's</b> User Siralama <br />
At this area you will be able to view our top Knight Online Private Server Players,
<br />
who dedicated alot for this game.<br /><br />
<table border='0' width='100%' align='center' cellspacing='1'>
<tr align='center' bgcolor='#25120B' class='textred'>
<td width='9%' class='title'> Sira </td>
<td width='17%' class='title'> Irk,Sembol </td>
<td width='25%' class='title'>Char Isim</td>
<td width='5%' class='title'>Level</td>
<td width='15%' class='title'>Meslek</td>
<td width='20%' class='title'>Clan</td>
<td width='20%' class='title' colspan='2'>NP / Aylik</td>
</tr>";
$count = 0;
$results = odbc_exec($con[db],
"SELECT TOP $userrankingsnum strUserID, Level, Nation, Class, Knights, Loyalty, LoyaltyMonthly FROM USERDATA
WHERE Authority = 1 OR Authority = 2
ORDER BY Loyalty DESC, Level DESC");
while (odbc_fetch_row($results))
{
if(empty($col)) $col=1;
if($col==1)
{
$color="#d4c6ab";
$col = 2;
}
else
if($col==2)
{
$color="#e7dbc3";
$col = 1;
}
$user = odbc_result($results, 1);
$nation = odbc_result($results, 3);
//Get Donor Status Start
$_PAY['strAccountID'] = odbc_exec($con[db], "select strAccountID from ACCOUNT_CHAR where strcharid1=
'{$user}' or strcharid2='{$user}' or strcharid3='{$user}'");
$_PAY['strAccountID'] = odbc_result($_PAY['strAccountID'], 1);
$_PAY['strAccountID'] = odbc_exec($con[db2], "select access from TB_USER where strAccountID='{$_PAY['strAccountID']}'");
$_PAY['strAccountID'] = odbc_result($_PAY['strAccountID'], 1);
if($_PAY['strAccountID'] == 3)
{
//$donor = "<img alt='Donation Member' style='height: 16px; width: 16px;' src='images/sym/donor.jpg' />";
$donor = '<b><font color=#ffffbe>';
$donortr = 'style="font-weight: bold; color: #ffffbe"';
}
else
{
$donor = null;
$donortr = null;
}
//Get Donor Status End--Ayhan
//Get Symbol - START-- Ayhan
$_NP['rankid'] = odbc_exec($con[db], "select nRank, nElmoUp, nKarusUp from USER_PERSONAL_RANK where strElmoUserID='{$user}' or strKarusUserID='{$user}'");
//Get Symbol - END--Ayhan
if($nation == 1) $_RANK['nUp'] = odbc_result($_NP['rankid'], 3);
else
if($nation == 2) $_RANK['nUp'] = odbc_result($_NP['rankid'], 2);
$_RANK['nRank'] = odbc_result($_NP['rankid'], 1);
if($_RANK['nRank'] == 1) //1st place eleman
{
$_RANK['img'] = "<img style='height: 16px; width: 16px;' src='images/sym/symbol1.jpg' />";
}
else
if($_RANK['nRank'] >= 2 && $_RANK['nRank'] <= 4) //2-4 eleman
{
$_RANK['img'] = "<img style='height: 16px; width: 16px;' src='images/sym/symbol2.jpg' />";
}
else
if($_RANK['nRank'] >= 5 && $_RANK['nRank'] <= 9) //5-9 eleman
{
$_RANK['img'] = "<img style='height: 16px; width: 16px;' src='images/sym/symbol3.jpg' />";
}
else
if($_RANK['nRank'] >= 10 && $_RANK['nRank'] <= 25) //10-25 eleman
{
$_RANK['img'] = "<img style='height: 16px; width: 16px;' src='images/sym/symbol4.jpg' />";
}
else
if($_RANK['nRank'] >= 26 && $_RANK['nRank'] <= 50) //26-50 eleman
{
$_RANK['img'] = "<img style='height: 16px; width: 16px;' src='images/sym/symbol5.jpg' />";
}
else
if($_RANK['nRank'] > 50) //50-100 eleman
{
$_RANK['img'] = "<img style='height: 16px; width: 16px;' src='images/sym/symbol6.jpg' />";
}
$connected = odbc_exec($con[db2],
"SELECT count(*) from CURRENTUSER where strcharid='{$user}'");
$connected = odbc_result($connected, 1);
$lvlr = odbc_exec($con[db], "SELECT Level FROM USERDATA WHERE strUserId = '$user'");
$lvl = odbc_result($lvlr,1);
$class = odbc_result($results, 4);
$clan = odbc_result($results, 5);
$clan2 = odbc_result($results, 5);
$clanr = odbc_exec($con[db], "SELECT IDName FROM knights WHERE IDNum = '$clan'");
$clan = odbc_result($clanr, 1);
if (empty($clan))
$clan = 'None';
if($clan2 == "893") $clan = "NoNameClan";
if($clan2 == "722") $clan = "NoNameClan JR";
$np = odbc_result($results, 6);
$monthnp = odbc_result($results, 7);
$count++;
$nation = getNation($nation);
$class = getClass($class);
if($connected > 0)
{
$contd = "class='conatd'";
$pagecontent .= '<tr '.$donortr.' bgcolor="'.$color.'" class="conabg">';
}
else
{
$pagecontent .= '<tr '.$donortr.' bgcolor="'.$color.'">';
}
$pagecontent .= "
<td align='center' ".$acontd.">$count</td>";
if ($nation == 'Karus')
$pagecontent .= '
<td align="center" ".$contd.">
<img src="http://www.ko-cuce.com/images/karus.gif">';
else
$pagecontent .= '
<td align="center" ".$contd.">
<img src="http://www.ko-cuce.com/images/human.gif">';
$pagecontent .= '
'.$_RANK['img'].'</td>
<td align="center" ".$contd."><a class="mlink" href="./?act=userprofile&userid='.$user.'">'.$donor.''.$user.'</font></a></td>
<td align="center" ".$contd.">'.$lvl.'</td>
<td align="center" ".$contd.">'.$class.'</td>';
if ($clan == 'None')
$pagecontent .= '
<td align="center" ".$contd.">None</td>';
else
$pagecontent .= '
<td align="center" ".$contd."><a class="mlink" href="./?act=clanprofile&clanid='.$clan2.'">'.$donor.$clan.'</a></td>';
$pagecontent .= '
<td align="center" ".$contd.">'.$np.'</td>
<td align="center" ".$contd.">'.$monthnp.'</td>
</tr>';
}
$pagecontent .= '
</table>';
}
?>
Yapabilcek yada yol gösterebilcek msnsini bırakabilirmi yada buraya yapabilirse cok makbule gecer
Kopanel : http://www.exsolutio.info/Filez/ProjectKE.panel.rar
Son düzenleme: