File size: 5.95Kb
<?
require_once '../core/system.php';
echo moder();
$header = 'Новые игроки';
require_once H.'core/head.php';
echo '<div class="head"><table class="foot" width="100%" border="0" style="padding-top: 5px; cellpadding="2px" cellspacing="2px" >
<tbody>
<tr>';
echo"<td width='30%'><a class='fight' href='?all'><img src='/images/icon/r.png'> Полный список</a></td>
<td width='30%'><a class='fight' href='?level'><img src='/images/icon/r.png'> С 5 уровня</a></td>
<td width='30%'><a class='fight' href='?pumpit'><img src='/images/icon/r.png'> <img src='/images/pay/pumpit.png'/></a></td></tbody></tr>
</table></div></div>";
if(!isset($_GET['all']) && !isset($_GET['level']) && !isset($_GET['pumpit'])){
$teme=$time-84000;
$k_post = mysql_result(mysql_query("SELECT COUNT(*) FROM `user` WHERE `datareg`>'$teme'"),0);
$k_page = k_page($k_post,50);
$page = page($k_page);
$start = 50*$page-50;
$req = mysql_query("SELECT * FROM `user` WHERE `datareg`>'$teme' ORDER by `id` DESC LIMIT $start, 50");
$avto=mysql_num_rows($req);
if($avto>=1){
echo "<div class='but-list'>";
While($ank = mysql_fetch_array($req)){
if($ank['prava']=="5"){$status="<font color='ffc22b'>[A]</font>";$tcolor='F7990D';}
if($ank['prava']=="4"){$status="<font color='ffc22b'>[a]</font>";$tcolor='EBC621';}
if($ank['prava']=="3"){$status="<font color='ffc22b'>[M]</font>";}
if($ank['prava']=="2"){$status="<font color='ffc22b'>[m]</font>";}
echo"<a href=\"/user/".$ank['id']."/\">";
echo online($ank['id']) ;
echo"<font color='".$ank['font']."'> ".$ank['nick']."</font>";
if($ank['prava'] > 2) echo $status;
echo', <img src="/images/icon/level.png"> '.$ank['level'].' ур. ('.$ank['mesto'].')';
if($ank['pumpit'] > 0){echo'<span class="float-right"><img src="/images/pay/pumpit.png"/></span>';}
if($ank['fs_id'] > 0){echo'<span class="float-right"><img src="/images/fs/fs.png"/></span>';}
if($ank['ok'] > 0){echo'<span class="float-right"><img src="/ok/ok.png"/></span>';}
if($ank['mail'] > 0){echo'<span class="float-right"><img src="/images/icon/mailik.png"/></span>';}
echo'</a> ';
}}
if ($k_page>1){
echo "<div class='dot-line'></div>";
str('?',$k_page,$page); // Вывод страниц
}
}
if(isset($_GET['all'])){
$teme=$time-84000;
$req = mysql_query("SELECT * FROM `user` WHERE `datareg`>'$teme'");
$avto=mysql_num_rows($req);
if($avto>=1){
echo "<div class='but-list'>";
While($ank = mysql_fetch_array($req)){
if($ank['prava']=="5"){$status="<font color='ffc22b'>[A]</font>";$tcolor='F7990D';}
if($ank['prava']=="4"){$status="<font color='ffc22b'>[a]</font>";$tcolor='EBC621';}
if($ank['prava']=="3"){$status="<font color='ffc22b'>[M]</font>";}
if($ank['prava']=="2"){$status="<font color='ffc22b'>[m]</font>";}
echo"<a href=\"/user/$ank[id]/\">";
echo online($ank['id']) ; echo"<font color='$ank[font]'> $ank[nick]</font>";
if($ank['prava']>=3) echo" $status";
echo', <img src="/images/icon/level.png"> '.$ank['level'].' ур. ('.$ank['mesto'].')';
if($ank['pumpit']>0){echo'<span class="float-right"><img src="/images/pay/pumpit.png"/></span>';}
if($ank['fs_id'] > 0){echo'<span class="float-right"><img src="/images/fs/fs.png"/></span>';}
if($ank['ok'] > 0){echo'<span class="float-right"><img src="/ok/ok.png"/></span>';}
if($ank['mail'] > 0){echo'<span class="float-right"><img src="/images/icon/mailik.png"/></span>';}
echo'</a> ';
}}
if ($k_page>1){
echo "<div class='dot-line'></div>";
str('?',$k_page,$page); // Вывод страниц
}
}
if(isset($_GET['level'])){
$teme=$time-84000;
$req = mysql_query("SELECT * FROM `user` WHERE `datareg`>'$teme' and `level`>='5'");
$avto=mysql_num_rows($req);
if($avto>=1){
echo "<div class='but-list'>";
While($ank = mysql_fetch_array($req)){
if($ank['prava']=="5"){$status="<font color='ffc22b'>[A]</font>";$tcolor='F7990D';}
if($ank['prava']=="4"){$status="<font color='ffc22b'>[a]</font>";$tcolor='EBC621';}
if($ank['prava']=="3"){$status="<font color='ffc22b'>[M]</font>";}
if($ank['prava']=="2"){$status="<font color='ffc22b'>[m]</font>";}
echo"<a href=\"/user/$ank[id]/\">";
echo online($ank['id']) ; echo"<font color='$ank[font]'> $ank[nick]</font>";
if($ank['prava']>=3) echo" $status";
echo', <img src="/images/icon/level.png"> '.$ank['level'].' ур. ('.$ank['mesto'].')';
if($ank['pumpit']>0){echo'<span class="float-right"><img src="/images/pay/pumpit.png"/></span>';}
if($ank['fs_id'] > 0){echo'<span class="float-right"><img src="/images/fs/fs.png"/></span>';}
if($ank['ok'] > 0){echo'<span class="float-right"><img src="/ok/ok.png"/></span>';}
if($ank['mail'] > 0){echo'<span class="float-right"><img src="/images/icon/mailik.png"/></span>';}
echo'</a> ';
}}
if ($k_page>1){
echo "<div class='dot-line'></div>";
str('?',$k_page,$page); // Вывод страниц
}
}
if(isset($_GET['pumpit'])){
$teme=$time-84000;
$req = mysql_query("SELECT * FROM `user` WHERE `datareg`>'$teme' and `pumpit`>'0'");
$avto=mysql_num_rows($req);
if($avto>=1){
echo "<div class='but-list'>";
While($ank = mysql_fetch_array($req)){
if($ank['prava']=="5"){$status="<font color='ffc22b'>[A]</font>";$tcolor='F7990D';}
if($ank['prava']=="4"){$status="<font color='ffc22b'>[a]</font>";$tcolor='EBC621';}
if($ank['prava']=="3"){$status="<font color='ffc22b'>[M]</font>";}
if($ank['prava']=="2"){$status="<font color='ffc22b'>[m]</font>";}
echo"<a href=\"/user/$ank[id]/\">";
echo online($ank['id']) ; echo"<font color='$ank[font]'> $ank[nick]</font>";
if($ank['prava']>=3) echo" $status";
echo', <img src="/images/icon/level.png"> '.$ank['level'].' ур. ('.$ank['mesto'].')';
if($ank['pumpit']>0){echo'<span class="float-right"><img src="/images/pay/pumpit.png"/></span>';}
if($ank['fs_id'] > 0){echo'<span class="float-right"><img src="/images/fs/fs.png"/></span>';}
if($ank['ok'] > 0){echo'<span class="float-right"><img src="/ok/ok.png"/></span>';}
if($ank['mail'] > 0){echo'<span class="float-right"><img src="/images/icon/mailik.png"/></span>';}
echo'</a> ';
}}
if ($k_page>1){
echo "<div class='dot-line'></div>";
str('?',$k_page,$page); // Вывод страниц
}
}
echo "</div>";
require_once H.'core/foot.php';
?>