Размер файла: 985B
<?php
/**********************************
* @package: PerfCMS *
* @year: 2012 *
* @author: Artas *
* @link: http://perfcms.pp.ua *
**********************************/
$locate = 'in_padmin';
$title = $lang->word('ban_list');
require_once(SYS.'/view/header.php');
$tpl->div('title', $lang->word('ban_list'));
$users_a = $db->query("SELECT * FROM `users` WHERE `ban_time` > '". time() ."'")->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 `ban_time` > '". time() ."' ORDER BY time DESC LIMIT $start, $ames");
while($users = $users_q->fetch()) {
$tpl->div('menu', nick($users['id']) .'');
}
$pages->view('/padmin/ban-list/?');
}
$tpl->div('block', img('admin.png') .'<a href="/padmin/">'. $lang->word('padmin') .'</a><br/>'. HICO .'<a href="/">'. $lang->word('home') .'</a>');
require_once(SYS.'/view/footer.php');
?>