/** * faq分类管理 */ public function actionPlayerKindIndex() { $this->_modelPlayerFaqKeywords = $this->_getGlobalData('Model_PlayerFaqKeywords', 'object'); switch ($_GET['doaction']) { case 'keywords': //关键字 $data = $this->_modelPlayerFaqKeywords->add($_POST); $this->_utilMsg->showMsg($data['msg'], $data['status'], $data['href']); break; default: $dataList = array(); foreach ($this->_faqKind as $key => $value) { $childList = $this->_modelPlayerKindFaq->findByGameTypeId($key); if (count($childList)) { foreach ($childList as &$childValue) { $childValue['url_edit'] = Tools::url(CONTROL, 'PlayerKindEdit', array('Id' => $childValue['Id'])); $childValue['url_del'] = Tools::url(CONTROL, 'PlayerKindDel', array('Id' => $childValue['Id'])); } } $dataList[] = array('game_type' => $value, 'game_type_id' => $key, 'url_add' => Tools::url(CONTROL, 'PlayerKindAdd', array('game_type_id' => $key)), 'childList' => $childList ? $childList : null); } $this->_view->assign('js', $this->_view->get_curJs()); $this->_view->assign('dataList', $dataList); $this->_view->assign('keywords', $this->_modelPlayerFaqKeywords->findAll()); $this->_utilMsg->createNavBar(); $this->_view->display(); break; } }
private function _hotKeyWords() { $this->_modelPlayerFaqKeywords = $this->_getGlobalData('Model_PlayerFaqKeywords', 'object'); $data = $this->_modelPlayerFaqKeywords->add($_POST); $this->_utilMsg->showMsg($data['msg'], $data['status'], $data['href']); }