File size: 812B
<?
/**********************************
* @package: PerfCMS *
* @year: 2012 *
* @author: Artas *
* @link: http://perfcms.pp.ua *
**********************************/
$locate = 'in_users';
$title = $lang->word('users');
require_once(SYS.'/view/header.php');
$tpl->div('title', $lang->word('users'));
$users_a = $db->query("SELECT * FROM `users`")->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` ORDER BY id ASC LIMIT $start, $ames");
while($users = $users_q->fetch()) {
$tpl->div('menu', nick($users['id']));
}
$pages->view('/users/?');
}
$tpl->div('block', HICO .'<a href="/">'. $lang->word('home').'</a>');
require_once(SYS.'/view/footer.php');
?>