Parašė avice· 2011 Vas. 4 16:02:50
#15
gal taip:
openside(TOP);
$result = dbquery("SELECT user_name, user_id, user_srank FROM ".$db_prefix."users ORDER BY user_srank DESC LIMIT 0,5");
echo "<table width='100%' cellpadding='0' cellspacing='0' style='border: 1px solid #000'>";
echo "<tr><td align='center' class='tbl1'>Narys</td><td align='center' class='tbl1'>Taškai</td></tr>";
$i = 0;
while ($data = dbarray($result)) {
$i++;
$b = $i/2;
echo "<tr><td";
if (is_int($b)) {
echo "class='tlb1'";
}else{
echo "class='tbl2'";
}
echo "align='center'><a href='".BASEDIR."profile.php?lookup=".$data['user_id']."'>".$data['user_name']."</a></td>
<td";
if (is_int($b)) {
echo "class='tlb1'";
}else{
echo "class='tbl2'";
}
echo "align='center'>".$data['user_srank']."</td></tr>";
}
echo "</table>";
closeside();
Kitokiu budu as nezinau ...