/** * 高级搜索BUG */ public function searchAction() { // 分页显示 $perpage = 20; $count = $this->bugModel->search($_GET, null, null, 'count'); $page = QP_sys::load('page')->set(array('sumcount' => $count, 'perpage' => $perpage))->result(); $this->view->bugCount = $count; $this->view->pageHtml = $page['html']; $this->view->bugList = $this->bugModel->search($_GET, ($page['curpage'] - 1) * $perpage, $perpage); }
/** * 邀请通知列表 */ public function inviteAction() { // 如果有删除提交 if ($this->request->isPost() && isset($_POST['ids']) && $_POST['ids']) { $this->model->removeInvite($_POST['ids']); } // 分页显示 $perpage = 20; $count = $this->model->inviteList($this->userid, null, null, 'count'); $page = QP_sys::load('page')->set(array('sumcount' => $count, 'perpage' => $perpage))->result(); $this->view->pageHtml = $page['html']; $this->view->inviteList = $this->model->inviteList($this->userid, ($page['curpage'] - 1) * $perpage, $perpage); }
/** * 管理员管理用户 */ public function adminuserAction() { $params = array(); // 查询 $key = $this->request->getGet('key'); if ($key != '') { $params['name'] = $key; } $usertype = $this->request->getGet('usertype', 0); if ($usertype > 0) { $params['usertype'] = $usertype; } $priv = $this->request->getGet('priv', 0); if ($priv > 0) { $params['priv'] = $priv; } $enable = $this->request->getGet('enable', -1); if ($enable > -1) { $params['enable'] = $enable; } // 分页 $perpage = 20; $count = $this->model->adminUserList($params, null, null, 'count'); $page = QP_sys::load('page')->set(array('sumcount' => $count, 'perpage' => $perpage))->result(); $this->view->pageHtml = $page['html']; $this->view->lists = $this->model->adminUserList($params, ($page['curpage'] - 1) * $perpage, $perpage); }