Файл: search/inc/users.php
Строк: 14
<?
if ($k_post_users!=0)
{
echo "<div class='div'><img src='/search/img/users.png' /><a href='?go&users=ok'> Обитатели ($k_post_users)</a></div>";
$total = num(($k_post_users - 1) / 10) + 1;
@$page = num($_GET['page']);
if (empty($page) or $page < 0)
$page = 1;
if ($page > $total)
$page = $total;
$start = $page * 10 - 10;
if (isset($_GET['users']) =='ok')
{
if ($k_post_users==0)echo "<div class="err">nНет результатов</div>n";
$q=mysql_query("SELECT * FROM `users` WHERE `login` like '%".mysql_escape_string($q_search)."%' ORDER BY `id` DESC LIMIT $start, 10");
$i=0;
while ($users = mysql_fetch_assoc($q))
{
echo "<div class='div'>";
echo ' ' . ico($users['sex'], $users['admin'], $users['online']) . '';
echo "<a href='/page.php?id=$users[id]'>$users[login]</a> (ID: ".$users['id'].")";
echo "</div>";
}
}
}
include_once '../foot.php';
exit()
?>