keyword.ctrl.php 884 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. /**
  3. * [WeEngine System] Copyright (c) 2014 WE7.CC
  4. * WeEngine is NOT a free software, it under the license terms, visited http://www.we7.cc/ for more details.
  5. */
  6. defined('IN_IA') or exit('Access Denied');
  7. error_reporting(0);
  8. if (!in_array($do, array('keyword'))) {
  9. exit('Access Denied');
  10. }
  11. if($do == 'keyword') {
  12. $type = trim($_GPC['type']);
  13. $condition = array('uniacid' => $_W['uniacid'], 'status' => 1);
  14. if ($type != 'all') {
  15. $condition = array('uniacid' => $_W['uniacid'], 'status' => 1, 'module' => $type);
  16. }
  17. $pindex = max(1, intval($_GPC['page']));
  18. $psize = 24;
  19. $rule_keyword = pdo_getslice('rule_keyword', $condition, array($pindex, $psize), $total, array(), 'id');
  20. $result = array(
  21. 'items' => $rule_keyword,
  22. 'pager' => pagination($total, $pindex, $psize, '', array('before' => '2', 'after' => '3', 'ajaxcallback'=>'null')),
  23. );
  24. iajax(0, $result);
  25. }