Пример #1
0
 /**
  * 评价管理
  */
 private function _evManage()
 {
     $kind = $this->_modelPlayerKindFaq->findAll();
     $kind = Model::getTtwoArrConvertOneArr($kind, 'Id', 'name');
     $faqOpinion = $this->_getGlobalData('faq_opinion');
     $lang = $this->_getGlobalData('lang');
     $gameTypes = $this->_getGlobalData('game_type');
     $gameTypes = Model::getTtwoArrConvertOneArr($gameTypes, 'Id', 'name');
     $source = Tools::getLang('EVMANAGE_SOURCE', __CLASS__);
     $whether = Tools::getLang('EVMANAGE_WHETHER', __CLASS__);
     $this->_modelFaqLog = $this->_getGlobalData('Model_FaqLog', 'object');
     $selected = array();
     $selected['game_type_id'] = $_GET['game_type_id'];
     $selected['source'] = $_GET['source'];
     $selected['whether'] = $_GET['whether'];
     $selected['time'] = array('start' => $_GET['start_time'], 'end' => $_GET['end_time']);
     $selected['faq_id'] = $_GET['faq_id'];
     $selected['faq_opinion'] = $_GET['faq_opinion'];
     $selected['lang'] = $_GET['lang'];
     $data = $this->_modelFaqLog->findPage($selected, $_GET['page']);
     foreach ($data['dataList'] as &$list) {
         $list['word_game_type_id'] = $gameTypes[$list['game_type_id']];
         $list['word_lang_id'] = $lang[$list['lang_id']];
         $list['word_kind_id'] = $kind[$list['kind_id']];
         $list['date_create'] = date('Y-m-d H:i:s', $list['date_create']);
         $list['word_faq_whether'] = $whether[$list['faq_whether']];
         $list['url_detail'] = Tools::url(CONTROL, ACTION, array('doaction' => 'edit', 'Id' => $list['player_faq_id'], 'disabled' => 1));
         if (!$list['faq_whether']) {
             $list['opinion'] = $list['content'] ? $list['content'] : $faqOpinion[$list['faq_opinion']];
         }
     }
     $this->_loadCore('Help_Page');
     $faqOpinion[''] = Tools::getLang('ALL', 'Common');
     $helpPage = new Help_Page(array('total' => $data['total'], 'perpage' => PAGE_SIZE));
     $this->_view->assign('pageBox', $helpPage->show());
     $this->_view->assign('dataList', $data['dataList']);
     $this->_view->assign('selected', $selected);
     $this->_view->assign('gameTypes', $gameTypes);
     $this->_view->assign('source', $source);
     $this->_view->assign('whether', $whether);
     $this->_view->assign('faqOpinion', $faqOpinion);
     $this->_view->assign('lang', $lang);
     $this->_utilMsg->createNavBar();
     $this->_view->set_tpl(array('body' => 'Faq/PlayerEvManage.html'));
     $this->_view->display();
 }