Просмотр файла modules/padmin/ban-list.php

Размер файла: 985B
  1. <?php
  2. /**********************************
  3. * @package: PerfCMS *
  4. * @year: 2012 *
  5. * @author: Artas *
  6. * @link: http://perfcms.pp.ua *
  7. **********************************/
  8. $locate = 'in_padmin';
  9. $title = $lang->word('ban_list');
  10. require_once(SYS.'/view/header.php');
  11. $tpl->div('title', $lang->word('ban_list'));
  12. $users_a = $db->query("SELECT * FROM `users` WHERE `ban_time` > '". time() ."'")->rowCount();
  13. $pages = new Paginator($users_a, $ames);
  14. if($users_a == 0) {
  15. $tpl->div('menu', $lang->word('not_users'));
  16. } else {
  17. $users_q = $db->query("SELECT * FROM `users` WHERE `ban_time` > '". time() ."' ORDER BY time DESC LIMIT $start, $ames");
  18. while($users = $users_q->fetch()) {
  19. $tpl->div('menu', nick($users['id']) .'');
  20. }
  21. $pages->view('/padmin/ban-list/?');
  22. }
  23. $tpl->div('block', img('admin.png') .'<a href="/padmin/">'. $lang->word('padmin') .'</a><br/>'. HICO .'<a href="/">'. $lang->word('home') .'</a>');
  24. require_once(SYS.'/view/footer.php');
  25. ?>