Exemplo n.º 1
0
 function index()
 {
     $this->common->cleanCurrentProduct();
     $this->data['category'] = $this->product->getProductCategory();
     $this->data['user_id'] = $this->common->getUserId();
     $today = date('Y-m-d', time());
     $yestoday = date("Y-m-d", strtotime("-1 day"));
     $query = $this->product->getProductListByPlatform(1, $this->data['user_id'], $today, $yestoday);
     $this->data['androidList'] = $query;
     // active users num
     $this->data['today_startuser'] = 0;
     $this->data['yestoday_startuser'] = 0;
     // new users num
     $this->data['today_newuser'] = 0;
     $this->data['yestoday_newuser'] = 0;
     // session num
     $this->data['today_startcount'] = 0;
     $this->data['yestoday_startcount'] = 0;
     $this->data['today_totaluser'] = 0;
     for ($i = 0; $i < count($this->data['androidList']); $i++) {
         $row = $this->data['androidList'][$i];
         $this->data['today_startuser'] += $row['startUserToday'];
         $this->data['yestoday_startuser'] += $row['startUserYestoday'];
         $this->data['today_newuser'] += $row['newUserToday'];
         $this->data['yestoday_newuser'] += $row['newUserYestoday'];
         $this->data['today_startcount'] += $row['startCountToday'];
         $this->data['yestoday_startcount'] += $row['startCountYestoday'];
         $this->data['today_totaluser'] += $row['totaluser'];
     }
     $fromTime = $this->common->getFromTime();
     $toTime = $this->common->getToTime();
     $this->data['reportTitle'] = array('timePase' => getTimePhaseStr($fromTime, $toTime), 'activeUser' => lang("v_activeUserTrend"), 'newUser' => lang("v_newUserTrend"), 'session' => lang("v_sessoinsTrend"));
     $this->common->loadHeaderWithDateControl(lang('m_myapps'));
     $this->load->view('main_form', $this->data);
 }
Exemplo n.º 2
0
 function addversionviewreport($delete = null, $type = null)
 {
     $fromTime = $this->common->getFromTime();
     $toTime = $this->common->getToTime();
     $this->data['reportTitle'] = array('timePase' => getTimePhaseStr($fromTime, $toTime), 'activeUser' => lang("v_rpt_ve_trendActiveUsers"), 'newUser' => lang("v_rpt_ve_trendsAnalytics"));
     //load markevent
     $currentProduct = $this->common->getCurrentProduct();
     $this->load->model('point_mark', 'pointmark');
     $markevnets = $this->pointmark->listPointviewtochart($this->common->getUserId(), $currentProduct->id, $fromTime, $toTime)->result_array();
     $marklist = $this->pointmark->listPointviewtochart($this->common->getUserId(), $currentProduct->id, $fromTime, $toTime, 'listcount');
     $this->data['marklist'] = $marklist;
     $this->data['markevents'] = $markevnets;
     $this->data['defdate'] = array();
     $j = 0;
     for ($i = strtotime($fromTime); $i <= strtotime($toTime); $i += 86400) {
         $this->data['defdate'][$j] = date('Y-m-d', $i);
         $j++;
     }
     //end load markevent
     if ($delete == null) {
         $this->data['add'] = "add";
     }
     if ($delete == "del") {
         $this->data['delete'] = "delete";
     }
     if ($type != null) {
         $this->data['type'] = $type;
     }
     $this->load->view('layout/reportheader');
     $this->load->view('widgets/versionview', $this->data);
 }
Exemplo n.º 3
0
 function view($productId = 0)
 {
     $currentProduct = $this->common->getCurrentProduct();
     if ($currentProduct != null) {
         $this->common->cleanCurrentProduct();
         // 			$productId = $currentProduct->id;
         $this->common->setCurrentProduct($productId);
         $this->data['productId'] = $currentProduct->id;
     } else {
         $this->data['productId'] = $productId;
         $this->common->setCurrentProduct($productId);
     }
     $currentProduct = $this->common->getCurrentProduct();
     $this->common->loadHeaderWithDateControl();
     $toTime = date('Y-m-d', time());
     $yestodayTime = date("Y-m-d", strtotime("-1 day"));
     $this->data['today1'] = $this->productanalyze->getTodayInfo($productId, $toTime);
     $this->data['yestoday'] = $this->productanalyze->getTodayInfo($productId, $yestodayTime);
     $this->data['overall'] = $this->productanalyze->getOverallInfo($productId);
     $fromTime = $this->common->getFromTime();
     $toreTime = $this->common->getToTime();
     $this->data['reportTitle'] = array('timePase' => getTimePhaseStr($fromTime, $toreTime), 'newUser' => lang("t_newUserSta"), 'totalUser' => lang("t_accumulatedUserSta"), 'activeUser' => lang("t_activeUserSta"), 'sessionNum' => lang("t_sessionsSta"), 'avgUsage' => lang("t_averageUsageDuration"));
     $this->data['dashboardDetailData'] = $this->newusermodel->getDetailUserDataByDay($fromTime, $toTime);
     $this->load->view('overview/productview', $this->data);
 }
Exemplo n.º 4
0
 function index()
 {
     $this->common->loadHeaderWithDateControl();
     $fromTime = $this->common->getFromTime();
     $toTime = $this->common->getToTime();
     $this->data['reportTitle'] = array('reportName' => lang("m_rpt_usageDuration"), 'timePase' => getTimePhaseStr($fromTime, $toTime));
     $this->load->view('usage/usetimeview', $this->data);
 }
Exemplo n.º 5
0
Arquivo: device.php Projeto: npk/razor
 function index()
 {
     $this->common->loadHeaderWithDateControl();
     $productId = $this->common->getCurrentProduct();
     $productId = $productId->id;
     $fromTime = $this->common->getFromTime();
     $toTime = $this->common->getToTime();
     $this->data['deviceDetails'] = $this->device->getDeviceTypeDetail($productId, $fromTime, $toTime);
     $this->data['reportTitle'] = array('activeUserReport' => getReportTitle(lang("t_activeUsers") . " " . lang("v_rpt_de_top10"), $fromTime, $toTime), 'newUserReport' => getReportTitle(lang("t_newUsers") . " " . lang("v_rpt_de_top10"), $fromTime, $toTime), 'timePhase' => getTimePhaseStr($fromTime, $toTime));
     $this->load->view('terminalandnet/deviceview', $this->data);
 }
Exemplo n.º 6
0
 function index()
 {
     $this->common->loadHeaderWithDateControl();
     $productId = $this->common->getCurrentProduct();
     $productId = $productId->id;
     $fromTime = $this->common->getFromTime();
     $toTime = $this->common->getToTime();
     $this->data['details'] = $this->orientationmodel->getTotalUsersPercentByResolution($fromTime, $toTime, $productId);
     $this->data['reportTitle'] = array('activeUserReport' => getReportTitle(lang("t_activeUsers") . " " . lang("v_rpt_re_top10"), $fromTime, $toTime), 'newUserReport' => getReportTitle(lang("t_newUsers") . " " . lang("v_rpt_re_top10"), $fromTime, $toTime), 'timePhase' => getTimePhaseStr($fromTime, $toTime));
     $this->load->view('terminalandnet/resolutionview', $this->data);
 }
Exemplo n.º 7
0
Arquivo: os.php Projeto: npk/razor
 function index()
 {
     $this->common->loadHeaderWithDateControl();
     $productId = $this->common->getCurrentProduct();
     $productId = $productId->id;
     $fromTime = $this->common->getFromTime();
     $toTime = $this->common->getToTime();
     // init detailed data
     $this->data['details'] = $this->os->getTotalUserPercentByOS($productId, $fromTime, $toTime);
     $this->data['reportTitle'] = array('activeUserReport' => getReportTitle(lang("t_activeUsers") . " " . lang("v_rpt_os_top10"), $fromTime, $toTime), 'newUserReport' => getReportTitle(lang("t_newUsers") . " " . lang("v_rpt_os_top10"), $fromTime, $toTime), 'timePhase' => getTimePhaseStr($fromTime, $toTime));
     $this->load->view('terminalandnet/osview', $this->data);
 }
Exemplo n.º 8
0
 function viewDetail($targetid)
 {
     $this->common->loadHeaderWithDateControl();
     $productId = $this->common->getCurrentProduct();
     $productId = $productId->id;
     $fromdate = $this->common->getFromTime();
     $todate = $this->common->getToTime();
     $this->data['reportTitle'] = array('eventCount' => getReportTitle(lang("v_rpt_re_eventcount"), $fromdate, $todate), 'timePhase' => getTimePhaseStr($fromdate, $todate));
     $this->data['versions'] = $this->event->getProductVersions($productId);
     $this->data['targetid'] = $targetid;
     $this->load->view('conversionrate/funneldetailview', $this->data);
 }
Exemplo n.º 9
0
 function index()
 {
     $this->common->loadHeaderWithDateControl();
     $product = $this->common->getCurrentProduct();
     $productId = $product->id;
     $date = date('Y-m-d', strtotime("-1 day"));
     $ret = $this->versionmodel->getBasicVersionInfo($productId, $date);
     $this->data['versionList'] = $ret;
     $fromTime = $this->common->getFromTime();
     $toTime = $this->common->getToTime();
     $this->data['reportTitle'] = array('timePase' => getTimePhaseStr($fromTime, $toTime), 'activeUser' => lang("v_rpt_ve_trendActiveUsers"), 'newUser' => lang("v_rpt_ve_trendsAnalytics"));
     $this->load->view('overview/versioncontrast', $this->data);
 }
Exemplo n.º 10
0
 function getEventDeatil($event_sk, $version, $event_name)
 {
     $this->common->loadHeaderWithDateControl();
     $productId = $this->common->getCurrentProduct();
     $productId = $productId->id;
     $this->data['event_sk'] = $event_sk;
     $this->data['event_version'] = $version;
     $this->data['event_name'] = $event_name;
     $fromTime = $this->common->getFromTime();
     $toTime = $this->common->getToTime();
     $this->data['reportTitle'] = array('timePase' => getTimePhaseStr($fromTime, $toTime), 'eventMsgNum' => lang("v_rpt_el_eventNum"), 'eventMsgNumActive' => lang("v_rpt_el_eventNumA"), 'eventMsgNumSession' => lang("v_rpt_el_eventNumS"));
     $this->load->view('events/eventchartdetailview', $this->data);
 }
Exemplo n.º 11
0
 function addcarrierreport($delete = null, $type = null)
 {
     $fromTime = $this->common->getFromTime();
     $toTime = $this->common->getToTime();
     $this->data['reportTitle'] = array('activeUserReport' => getReportTitle(lang("t_activeUsers") . " " . lang("v_rpt_op_top10"), $fromTime, $toTime), 'newUserReport' => getReportTitle(lang("t_newUsers") . " " . lang("v_rpt_op_top10"), $fromTime, $toTime), 'timePhase' => getTimePhaseStr($fromTime, $toTime));
     if ($delete == null) {
         $this->data['add'] = "add";
     }
     if ($delete == "del") {
         $this->data['delete'] = "delete";
     }
     if ($type != null) {
         $this->data['type'] = $type;
     }
     $this->load->view('layout/reportheader');
     $this->load->view('widgets/carrier', $this->data);
 }
Exemplo n.º 12
0
 function addchannelmarketreport($delete = null, $type = null)
 {
     $fromTime = $this->common->getFromTime();
     $toTime = $this->common->getToTime();
     $data['reportTitle'] = array('timePase' => getTimePhaseStr($fromTime, $toTime), 'newUser' => getReportTitle(lang("v_rpt_mk_newUserStatistics") . " " . null, $fromTime, $toTime), 'activeUser' => getReportTitle(lang("v_rpt_mk_activeuserS") . " " . null, $fromTime, $toTime), 'Session' => getReportTitle(lang("v_rpt_mk_sessionS") . " " . null, $fromTime, $toTime), 'avgUsageDuration' => getReportTitle(lang("t_averageUsageDuration") . " " . null, $fromTime, $toTime), 'activeWeekly' => getReportTitle(lang("t_activeRateW") . " " . null, $fromTime, $toTime), 'activeMonthly' => getReportTitle(lang("t_activeRateM") . " " . null, $fromTime, $toTime));
     if ($delete == null) {
         $data['add'] = "add";
     }
     if ($delete == "del") {
         $data['delete'] = "delete";
     }
     if ($type != null) {
         $data['type'] = $type;
     }
     $this->load->view('layout/reportheader');
     $this->load->view('widgets/channelmarket', $data);
 }
Exemplo n.º 13
0
Arquivo: region.php Projeto: npk/razor
 function index()
 {
     $this->common->loadHeaderWithDateControl();
     $currentProduct = $this->common->getCurrentProduct();
     $fromTime = $this->common->getFromTime();
     $toTime = $this->common->getToTime();
     $country = "中国";
     $this->data['counum'] = $this->region->gettotalacbycountry($fromTime, $toTime, $currentProduct->id);
     $activepagecoun = $this->region->getactivebycountry($fromTime, $toTime, $currentProduct->id, 0, PAGE_NUMS);
     $this->data['activepagecoun'] = $activepagecoun;
     $this->data['pronum'] = $this->region->gettotalactivebypro($fromTime, $toTime, $currentProduct->id, $country);
     $activepagepro = $this->region->getactivebypro($fromTime, $toTime, $currentProduct->id, $country, 0, PAGE_NUMS);
     $this->data['activepagepro'] = $activepagepro;
     $this->data['reportTitle'] = array('activeUserReport' => getReportTitle(lang("t_activeUsers") . " " . lang("v_rpt_re_top10Nations"), $fromTime, $toTime), 'newUserReport' => getReportTitle(lang("t_newUsers") . " " . lang("v_rpt_re_top10Nations"), $fromTime, $toTime), 'regionActiveUserReport' => getReportTitle(lang("t_activeUsers") . " " . lang("v_rpt_re_top10Provinces"), $fromTime, $toTime), 'regionNewUserReport' => getReportTitle(lang("t_newUsers") . " " . lang("v_rpt_re_top10Provinces"), $fromTime, $toTime), 'timePhase' => getTimePhaseStr($fromTime, $toTime));
     $this->data['from'] = $fromTime;
     $this->data['to'] = $toTime;
     $this->load->view('usage/regionview', $this->data);
 }
Exemplo n.º 14
0
 /**
  * Addsessiondistributionreport function , load usefrequency report
  *
  *@param string $delete delete
  *@param string $type   type
  *
  * @return void
  */
 function addsessiondistributionreport($delete = null, $type = null)
 {
     $fromTime = $this->common->getFromTime();
     $toTime = $this->common->getToTime();
     $this->data['reportTitle'] = array('reportName' => lang("v_rpt_uf_distribution"), 'timePase' => getTimePhaseStr($fromTime, $toTime));
     $productId = $this->common->getCurrentProduct();
     if (!empty($productId) && $delete == null) {
         $this->data['add'] = "add";
     }
     if ($delete == "del") {
         $this->data['delete'] = "delete";
     }
     if ($type != null) {
         $this->data['type'] = $type;
     }
     $this->load->view('layout/reportheader');
     $this->load->view('widgets/sessiondistribution', $this->data);
 }
Exemplo n.º 15
0
Arquivo: market.php Projeto: npk/razor
 function viewMarket()
 {
     $product = $this->common->getCurrentProduct();
     $productId = $product->id;
     $data['productId'] = $productId;
     $today = date('Y-m-d', time());
     $yestodayTime = date("Y-m-d", strtotime("-1 day"));
     $seven_day = date("Y-m-d", strtotime("-6 day"));
     $thirty_day = date("Y-m-d", strtotime("-30 day"));
     $sevendayactive = $this->product->getActiveUsersNum($seven_day, $today, $productId);
     $data['sevendayactive'] = $sevendayactive;
     $thirty_day_active = $this->product->getActiveUsersNum($thirty_day, $today, $productId);
     $data['thirty_day_active'] = $thirty_day_active;
     $todayData = $this->product->getAnalyzeDataByDateAndProductID($today, $productId);
     $yestodayData = $this->product->getAnalyzeDataByDateAndProductID($yestodayTime, $productId);
     $data['count'] = $todayData->num_rows();
     $data['todayData'] = $todayData;
     $data['yestodayData'] = $yestodayData;
     $this->common->loadHeaderWithDateControl();
     $fromTime = $this->common->getFromTime();
     $toTime = $this->common->getToTime();
     $data['reportTitle'] = array('timePase' => getTimePhaseStr($fromTime, $toTime), 'newUser' => getReportTitle(lang("v_rpt_mk_newUserStatistics") . " " . null, $fromTime, $toTime), 'activeUser' => getReportTitle(lang("v_rpt_mk_activeuserS") . " " . null, $fromTime, $toTime), 'Session' => getReportTitle(lang("v_rpt_mk_sessionS") . " " . null, $fromTime, $toTime), 'avgUsageDuration' => getReportTitle(lang("t_averageUsageDuration") . " " . null, $fromTime, $toTime), 'activeWeekly' => getReportTitle(lang("t_activeRateW") . " " . null, $fromTime, $toTime), 'activeMonthly' => getReportTitle(lang("t_activeRateM") . " " . null, $fromTime, $toTime));
     $this->load->view('overview/productmarket', $data);
 }
Exemplo n.º 16
0
 /**
  * Detailstacktrace funciton
  * Error detail
  * 
  * @param int $title_sk       title_sk
  * @param int $devicebrand_sk devicebrand_sk
  *
  * @return void
  */
 function detailstacktrace($title_sk, $devicebrand_sk)
 {
     $this->common->loadHeader();
     $product_id = $this->common->getCurrentProduct();
     $product_id = $product_id->id;
     $from = $this->common->getFromTime();
     $to = $this->common->getToTime();
     $query = $this->errormodel->getErrorDetailOnDevice($title_sk, $devicebrand_sk, $product_id, $from, $to);
     if ($query != null && $query->num_rows() > 0) {
         $this->data['errordetail'] = $query;
         $this->data['num'] = $query->num_rows();
         $this->data['stacktrace'] = $query->first_row()->stacktrace;
         $this->data['isfix'] = $query->first_row()->isfix;
     }
     $this->data['reportTitle'] = array('errorOnDevice' => getReportTitle(lang("v_rpt_err_deviceDistributionComment"), $from, $to), 'errorOnOs' => getReportTitle(lang("v_rpt_err_OSDistributionComment"), $from, $to), 'timePhase' => getTimePhaseStr($from, $to));
     $this->data['titlesk'] = $title_sk;
     $this->data['devicebrand_sk'] = $devicebrand_sk;
     $this->load->view('errors/errorondevicedetails', $this->data);
 }
Exemplo n.º 17
0
 /**
  * Addregioncityreport
  *
  * @param string $delete delete
  * @param string $type   type
  *            
  * @return void
  */
 function addregioncityreport($delete = null, $type = null)
 {
     $fromTime = $this->common->getFromTime();
     $toTime = $this->common->getToTime();
     $this->data['reportTitle'] = array('citysessionsReport' => getReportTitle(lang("t_sessions") . " " . lang("v_rpt_re_top10City"), $fromTime, $toTime), 'citynewUserReport' => getReportTitle(lang("t_newUsers") . " " . lang("v_rpt_re_top10City"), $fromTime, $toTime), 'timePhase' => getTimePhaseStr($fromTime, $toTime));
     if ($delete == null) {
         $this->data['add'] = "add";
     }
     if ($delete == "del") {
         $this->data['delete'] = "delete";
     }
     if ($type != null) {
         $this->data['type'] = $type;
     }
     $this->load->view('layout/reportheader');
     $this->load->view('widgets/regioncity', $this->data);
 }
Exemplo n.º 18
0
 function adduserbehavorviewreport()
 {
     $fromTime = $this->common->getFromTime();
     $toreTime = $this->common->getToTime();
     $this->data['reportTitle'] = array('timePase' => getTimePhaseStr($fromTime, $toreTime), 'newUser' => lang("t_newUserSta"), 'totalUser' => lang("t_accumulatedUserSta"), 'activeUser' => lang("t_activeUserSta"), 'sessionNum' => lang("t_sessionsSta"), 'avgUsage' => lang("t_averageUsageDuration"));
     /***/
     if (isset($_GET['type']) && 'compare' == $_GET['type']) {
         $this->data['common'] = array('show_thrend' => 0, 'show_markevent' => 0);
     }
     /**/
     $this->load->view('layout/reportheader');
     $this->load->view('widgets/userbehavorview', $this->data);
 }