Parašė Dandžu· 2008 Geg. 12 09:05:32
#10
Kaip supratau šito.
?php
if (!defined("IN_FUSION")) { header("Location:../../index.php"); exit; }
include_once INFUSIONS."user_gold_panel/functions.php";
if (file_exists(INFUSIONS."user_gold_panel/locale/".$settings['locale'].".php")) {
include INFUSIONS."user_gold_panel/locale/".$settings['locale'].".php";
} else {
include INFUSIONS."user_gold_panel/locale/English.php";
}
$pointquery=dbquery("SELECT * FROM ".$db_prefix."users_points ORDER BY points_total DESC LIMIT 0 , 5");
//hide it if theres no reply
if (dbrows($pointquery)!=0)
{
openside($locale['URG033'],'on');
echo '<table width="100%">';
$i=0;
while ($pointdata=dbarray($pointquery))
{
if ($i % 2 == 0) { $row_color = "tbl1"; } else { $row_color = "tbl2"; }
echo '<tr class="'.$row_color.'">
<td width="70%"><img src="'.THEME.'images/bullet.gif"> <a class="side" href="'.BASEDIR.'profile.php?lookup='.$pointdata['owner_id'].'">'.$pointdata['owner_name'].'</a></td>
<td width="30%">'.$pointdata['points_total'].'</td>';
$i++;
}//while
echo '</tr>
</table>';
closeside();
?>