コード例 #1
0
 /**
  * 按小时统计详细_ajax
  */
 public function actionHourDetail()
 {
     Tools::import('Util_Stats');
     $utilStats = new Util_Stats(Util_Stats::STATS_OPERATOR);
     $key = $_POST['detail_key'];
     $time = array();
     $time['start'] = strtotime($_POST['start_date']);
     $time['end'] = strtotime($_POST['end_date']);
     $utilStats->setStatsTime($time);
     $utilStats->setOperator(array('game_type_id' => $_POST['game_type_id'], 'operator' => $_POST['operator_id']));
     $utilStats->setHour($key);
     $dataList = $utilStats->stats();
     $this->_view->assign('dataList', $dataList);
     $tableTitle = $utilStats->getTableTitle($_POST['game_type_id']);
     $tableTitle['time'] = $time;
     $this->_view->assign('tableTitle', $tableTitle);
     $this->_view->display('Stats/StatsOperator/OperatorDetail');
 }