Пример #1
0
 /**
  * 增加问题类型
  */
 private function _qAdd()
 {
     if ($this->_isPost()) {
         if ($this->_modelQuestionType->add($_POST)) {
             $this->_utilMsg->showMsg('增加成功', 1);
         } else {
             $this->_utilMsg->showMsg('增加失败', -2);
         }
     } else {
         $gameType = Model::getTtwoArrConvertOneArr($this->_modelSysconfig->getValueToCache('game_type'), 'Id', 'name');
         $this->_view->assign('gameType', $gameType);
         $this->_view->set_tpl(array('body' => 'SysManagement/QuestionAdd.html'));
         $this->_utilMsg->createNavBar();
         $this->_view->display();
     }
 }