echo"<div style='text-align:center; padding-top:15px;'>\n";
$utpdata = dbquery(
"SELECT * FROM ".DB_USERS."
WHERE user_awards>0
AND user_status !=6
AND user_status !=5
ORDER BY user_awards DESC LIMIT 5
");
echo "<table border='0' width='100%'>\n<tr>\n";
$i = 0;
while($topdata = dbarray($utpdata)){
echo "<td>\n";
if($i > 0)
echo "";
if ($topdata['user_avatar'] && file_exists(IMAGES."avatars/".$topdata['user_avatar']) && $topdata['user_status']!=6 && $topdata['user_status']!=5) {
echo "<img src='".IMAGES."avatars/".$topdata['user_avatar']."' width='50' height='50' alt='".$topdata['user_name']."' title='".$topdata['user_name']."'/><br />\n";
} else {
echo "<img src='".IMAGES."avatars/noavatar50.png' width='50' height='50' alt='".$topdata['user_name']."' title='".$topdata['user_name']."'/><br />\n";
}
echo "<span title='".$topdata['user_awards']." ".$locale['user_awards_001']."'>".profile_link($topdata['user_id'], $topdata['user_name'], $topdata['user_status'], '' )."</span> (".number_format($topdata['user_awards']).") ";
echo "</td>\n";
$i++;
}
echo "</tr>\n</table>\n";
echo"</div>\n";
Category Forum
Panels and InfusionsLabels
None yet
Statistics
2 participants
Notifications
You are not receiving notifications from this thread.
Related Questions