Файл: modules/pages/admins.php
Строк: 20
<?
/**********************************
* @package: PerfCMS *
* @year: 2012 *
* @author: Artas *
* @link: http://perfcms.org.ua *
**********************************/
$locate = 'in_users';
$title = $lang->word('admins');
require_once(SYS.'/view/header.php');
$tpl->div('title', $lang->word('admins'));
$users_a = $db->query("SELECT * FROM `users` WHERE `level` >= '2'")->rowCount();
$pages = new Paginator($users_a, $ames);
if($users_a == 0) {
$tpl->div('menu', $lang->word('not_users'));
} else {
$users_q = $db->query("SELECT * FROM `users` WHERE `level` >= '2' ORDER BY level DESC LIMIT $start, $ames");
while($users = $users_q->fetch()) {
$tpl->div('menu', nick($users['id']).' ['.level($users['level']).']');
}
$pages->view('/pages/admins.php?');
}
$tpl->div('block', NAV .'<a href="/pages/faq.php">'. $lang->word('faq').'</a></br/>'. HICO .'<a href="/">'. $lang->word('home').'</a>');
require_once(SYS.'/view/footer.php');
?>