Parašė avice· 2011 Vas. 4 18:02:10
#19
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='1' class='tbl-border'>
<tr class='tbl2' align='center'>
<td width='18'><div align='center'><strong>#</strong></div></td><td width='373'><div align='center'><span class='small'><strong>Narys</strong></span></div></td>
<td width='329'><div align='center'><span class='small'><strong>Taškai</strong></span></div></td>
</tr>";
$i = 0;
while ($data = dbarray($result)) {
$i++;
$b = $i/2;
if (is_int($b)) {
$class = "tlb1";
}else{
$class = "tbl2";
}
echo "<tr class='tbl1'>
<td><strong>".$i."</strong></td>
<td>".$data['user_name']."</td>
<td>".$data['user_srank']."</td>
</tr>";
}
echo "</table>";
closeside();
nebandziau , bet gal veiks.