You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
831 B

7 years ago
7 years ago
7 years ago
7 years ago
  1. <?php
  2. /*
  3. * @copyright Leyun internet Technology(Shanghai)Co.,Ltd
  4. * @license http://www.dzzoffice.com/licenses/license.txt
  5. * @package DzzOffice
  6. * @version DzzOffice 1.1
  7. * @link http://www.dzzoffice.com
  8. * @author qchlian(3580164@qq.com)
  9. */
  10. if (!defined('IN_DZZ')) {
  11. exit('Access Denied');
  12. }
  13. //管理权限进入
  14. Hook::listen('adminlogin');
  15. $page = empty($_GET['page']) ? 1 : intval($_GET['page']);
  16. $perpage = 10;
  17. $start = ($page - 1) * $perpage;
  18. $count = C::tp_t('vote')->count();
  19. $list = array();
  20. $multi = "";
  21. if ($count) {
  22. $list = C::tp_t('vote')->limit($start, $perpage)->select();
  23. $theurl = DZZSCRIPT . "?" . url_implode($gets);
  24. $refer = urlencode($theurl . '&page=' . $page);
  25. $multi = multi($count, $perpage, $page, $theurl, 'pull-center');
  26. }
  27. include template('index');
  28. ?>