Файл: WM-Koder/niz.php
Строк: 29
<?
case users:
echo $div_title . 'Список пользователей' . $div_end;
$count = mysql_result(mysql_query("SELECT COUNT(id) FROM users"), 0);
if ($count != 0)
{
$n = new navigator($count, 10, '?do=users&');
$res = mysql_query("SELECT id, date FROM users ORDER BY id DESC {$n->limit}");
$cols = 0;
while($q = mysql_fetch_assoc($res))
{
++$cols;
$num = ($n->start + $cols);
echo $div_razdel . $num . '. ' . us($q['id']) . $div_end . 'Дата регистрации: ' . $q['date'] . '<br/>';
}
echo $n->navi();
} else {
echo 'Пользователей нет.';
}
break;
case elite:
echo $div_title . 'Администрация' . $div_end;
$count = mysql_result(mysql_query("SELECT COUNT(id) FROM users WHERE level > '0'"), 0);
if ($count != 0)
{
$n = new navigator($count, 10, '?do=elite&');
$res = mysql_query("SELECT id FROM users WHERE level > '0' ORDER BY level DESC, id ASC {$n->limit}");
$cols = 0;
while($q = mysql_fetch_assoc($res))
{
++$cols;
$num = ($n->start + $cols);
echo $div_razdel . $num . '. ' . us($q['id']) . ' ' . elite($q['id']) . $div_end;
}
echo $n->navi();
} else {
echo 'Администрации нет.';
}
break;
}
?>