Файл: ferma/inc/admin_spis.php
Строк: 51
<?
echo "<div class='event'><font color='F9EDA2'><b><g1>Оналай (в игре)</g1></b></font></div>";
echo "<div class='content'>";
echo "<div class='block'>";
echo "<img src=i/hr.png width=100% height=2>";
echo on_k($ku['id']);
echo " <font size='2.5'><a class='' href='?user=$ku[id]'><span>".nc($ku['id'])."</span></a></span>";
echo "<font color='black'> » </font><a href='?farm=$ku[id]'>Моя ферма</a> » <a href='?online=$ku[id]'>Кто в игре</a></font>";
echo "<img src=i/hr.png width=100% height=2>";
$k_post = mysql_result(mysql_query("SELECT COUNT(*) FROM `kolhoz_user` WHERE `date_last` > '".(time()-6000000)."'"),0);
if ($k_post==0)
{
echo "Список пуст...";
}
$k_page=k_page($k_post,$set['p_str']);
$page=page($k_page);
$start=$set['p_str']*$page-$set['p_str'];
$q=mysql_query("SELECT * FROM `kolhoz_user` WHERE `date_last` > '".(time()-6000000)."'".(isset($_GET['admin'])?" AND `kolhoz_user`.`status` > '0'":null)." LIMIT $start, $set[p_str]");
echo "<ul>";
while($post=mysql_fetch_array($q))
{
$ank=mysql_fetch_array(mysql_query("SELECT * FROM `kolhoz_user` WHERE `id` = '$post[id_user]'"));
$anku=$ank;
echo "<li><span><sup><img width='8'height='8'src='i/icons/experience.png' alt='o'><font color='black' size='1'>".($post[level])."</font></sup>";
echo "".on_k($post['id'])."";
echo " <a class='' href='?user=$post[id]'><span>".nc($post['id'])." </span></a>";
if($post['zvezda']==0)$zvezda='';
if($post['zvezda']>0)
{
echo "<font class='minor'><img src='i/z/".$post[zvezda].".png'> $zvezda</font>";
}
else
echo "<font class='minor'><img width='0' height='0' src='i/avatar/0.png'>$zvezda</font>";
echo "</span></li>";
}
echo "</ul>";
if ($k_page>1)str("?online".(isset($_GET['admin'])?"&admin":null)."&",$k_page,$page);
echo "</div>";
include_once 'inc/foot.php';
?>