Parašė Djnjx· 2010 Lie. 25 10:07:08
#7
Stai prasom Dek per pridetinius
<?php
if (!defined("IN_FUSION")) { header("Location:../../index.php"); exit; }
echo "<table cellspacing='0' cellpadding='0' border='0' width='318'><tr><td class='upl' align='right'>";
if (iMEMBER){
echo "<strong></strong>"; }
echo "</td></tr><tr><td class='upl1' valign='upl'>";
///kodo pradzia
echo "";
$result = dbquery("SELECT user_name, user_id, user_adds FROM ".$db_prefix."users ORDER BY user_adds DESC LIMIT 16");
if (dbrows($result) != 0) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>";
while ($data = dbarray($result)) {
echo "<tr>
<td class='small'>
<img src='".THEME."images/star.png'><a href='".BASEDIR."~".$data['user_id']."' class='small'>
".trimlink($data['user_name'], 23)."</a>
</td>
<td align='right'>".$data['user_adds']."</td>
</tr>";
}
echo "</table>";
} else {
echo "<div style='text-align:center'>".$locale['004']."</div>\n";
}
/// pabaiga
echo "</td></tr></table>";
tablebreak();
?>