Файл: public_html/user_orks.php
Строк: 21
<?php
include './system/common.php';
include './system/functions.php';
include './system/user.php';
$title = 'Титаны VS Орки';
include './system/h.php';
?>
<center><font color='lime' size=3px>На следующий бой подано <?=n_f(mysql_result(mysql_query('SELECT COUNT(*) FROM `users` WHERE `ork_z` = 1'),0))?> заявок</font></center><hr>
<?
$max = 10;
$count = mysql_result(mysql_query('SELECT COUNT(*) FROM `users` WHERE `ork_z` = 1'),0);
$pages = ceil($count/$max);
$page = _string(_num($_GET['page']));
if($page > $pages) {
$page = $pages;
}
if($page < 1) {
$page = 1;
}
$start = $page * $max - $max;
$users_orks = mysql_query("SELECT * FROM `users` WHERE `ork_z` = 1 ORDER BY `ork_u` DESC LIMIT ".$start.", ".$max."");
while($kto = mysql_fetch_array($users_orks)){
echo "<a href='/user/$kto[id]'>$kto[login]</a> | Прошедший урон $kto[ork_u]<hr>";
}
?>
<center> <a href='/orks'>Вернутся в долину орков</a></center>
<?=pages('?');?></span>