Файл: top/ukraltop.php
Строк: 74
<?
include_once '../sys/inc/start.php';
include_once '../sys/inc/compress.php';
include_once '../sys/inc/sess.php';
include_once '../sys/inc/home.php';
include_once '../sys/inc/settings.php';
include_once '../sys/inc/db_connect.php';
include_once '../sys/inc/ipua.php';
include_once '../sys/inc/fnc.php';
include_once '../sys/inc/user.php';
only_reg();
include_once '../sys/inc/thead.php';
title();
err();
echo "<div class='menu_razd'>";
echo "<center><img src='/zona/img/icon/icon_user.png'alt='*' /> Самые фартовые воры!</center>";
echo "</div>n";
include_once '../top/ukralbest.php';
echo "<div class='menu_razd'>";
echo "<center><img src='/zona/img/icon/icon_user.png'alt='*' /> Топ грабежей!</center>";
echo "</div>n";
echo "<table class='post'>n";
$k_ukral = mysql_num_rows(mysql_query("SELECT `id` FROM `user` WHERE `ukral` > '0'"));
$k_page = k_page($k_ukral,$set['p_str']);
$page = page($k_page);
$start = $set['p_str']*$page-$set['p_str'];
if ($k_ukral=='0')
{
echo 'Нет результатов';
}
$q_ukral = mysql_query("SELECT * FROM `user` WHERE `ukral` > '0' ORDER BY `ukral` DESC LIMIT $start, $set[p_str]");
while ($ukral = mysql_fetch_array($q_ukral))
{
echo '<tr><td class="icon14">';
avatar($ukral['id']);
echo '</td><td class="anput">';
echo "".online($ukral['id'])." n";
echo "<a href='/info.php?id=$ukral[id]'><span style="color:$ukral[ncolor]">$ukral[nick]</span></a><br />n";
echo "<img src='/gp/image/ic_gp6.gif'alt='*' width='16'/>n";
echo 'грабижей : <font color="red"><b>['.$ukral['ukral'].']</b></font> <br />';
}
echo "</table>";
echo' <div class="foot"><img src="/style/back.gif" alt="" class="icon"/> <a href="/top/">Топы</a><br/></div>';
if ($k_page>1)str("ukraltop.php?",$k_page,$page);
include_once '../sys/inc/tfoot.php';
?>