Файл: top.php
Строк: 39
<?php
require'../config.php';
$align='left';
$title='Дикая охота-Рейтинг';
aut();
head();
who_add(0,'enter');
$k_post=mysql_result(mysql_query("SELECT COUNT(*) FROM `oxota` WHERE `zvereu_ubito` > '0'"),0);
$k_page=k_page($k_post,$set['p_str']);
$page=page($k_page);
$start=$set['p_str']*$page-$set['p_str'];
echo "<table class='post'>n";
if ($k_post==0)
{
echo " <tr>n";
echo " <td class='p_t'>n";
echo "Нет результатовn";
echo " </td>n";
echo " </tr>n";
}
$q=mysql_query("SELECT `ids` FROM `oxota` WHERE `zvereu_ubito` > '0' ORDER BY `zvereu_ubito` DESC LIMIT $start, $set[p_str]");
while ($ank = mysql_fetch_assoc($q))
{
$ank=get_user($ank['ids']);
echo " <tr>n";
echo " <td class='icon14'>n";
echo "".status($ank['id'])."";
echo " </td>n";
echo " <td class='p_t'>n";
echo "<a href='/info.php?id=$ank[id]'>$inf[user]</a>n";
echo "".medal($ank['id'])." ".online($ank['id'])." ";
echo " </td>n";
echo " </tr>n";
echo " <tr>n";
if ($set['set_show_icon'])echo " <td class='p_m' colspan='2'>n"; else echo " <td class='p_m'>n";
$arr=mysql_fetch_array(mysql_query("SELECT * FROM `oxota` WHERE `ids`='$ank[id]'"));
echo "Убил: <b>".$arr['zvereu_ubito']."</b> зверей.<br/>";
echo " </td>n";
echo " </tr>n";
}
echo "</table>n";
if ($k_page>1)str("?",$k_page,$page); // Вывод страниц
echo "<div class='aut'><a href='index.php'>Назад</a></div>";
foot();
?>