Файл: billing/_rootbill/_history.inc.php
Строк: 34
<?
_head('utf-8',$_lang[RenewTitle]);
$r=@mysql_query("select * from users_logs where uid='".$_SESSION["userId"]."' order by dt desc LIMIT 30") or die(mysql_error());
$s=@mysql_query("select * from users where id = '".$_SESSION["userId"]."'") or die(mysql_error());
if ((mysql_num_rows($r) >0) and ($rs = mysql_fetch_object($s)))
{
?>
<table cellpadding=3 width=100% border=1>
<tr><th colspan=3 align=center bgcolor=<?=$font_head?>><B><?=$_lang[hist1]?> [<?=$rs->login?>]</b></th></tr>
<tr bgcolor=<?=$font_head?>><th align=center><?=$_lang[hist2]?></th><th align=center><?=$_lang[hist3]?></th><th align=center><?=$_lang[hist4]?></th></tr>
<?
while ($rr = mysql_fetch_object($r))
{
getfont();
print "<tr bgcolor=$font_row><td align=center>$rr->dt</td><td align=center>$rr->operation</td><Td>$rr->comment</td></tr>";
}
?>
</table>
<?
}
else {print "<?=$_lang[hist5]?> $user->login";}
_foot('utf-8');
?>