Example #1
0
 /**
  * 异步得到输入编辑器HTML
  *
  */
 public function htmlAction()
 {
     // 不使用视图
     QP_Layout::stop();
     $id = $this->request->getGet('id', 0);
     if ($id > 0) {
         // 得到要编辑的BUG模板内容
         $info = $this->model->bugtplInfo($id);
         $tplname = $info['tplname'];
         $defaultTpl = $info['tplhtml'];
     } else {
         // 默认的模板内容
         $tplname = '';
         $defaultTpl = getDefaultBugTpl();
     }
     $this->view->tplname = $tplname;
     $this->view->tplhtml = $defaultTpl;
 }
Example #2
0
 /**
  * 关于系统
  */
 public function aboutAction()
 {
     // 不使用视图
     QP_Layout::stop();
 }
Example #3
0
 /**
  * 打印BUG
  */
 public function printAction()
 {
     // 不使用Layout
     QP_Layout::stop();
     // 不自动解析视图
     $this->setViewAutoRender(false);
     // BUG信息
     $bugid = $this->request->getGet('bugid');
     echo $this->bugHtml($bugid);
 }
Example #4
0
 /**
  * 显示选择用户框
  */
 public function selectUserAction()
 {
     // 不使用视图
     QP_Layout::stop();
     // 用户组
     $pcUid = $this->getPCUid();
     $this->view->groupList = $this->model->userGroupList(array('userid' => $pcUid));
 }