Beispiel #1
0
 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);
 }
Beispiel #2
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);
 }
Beispiel #3
0
Datei: os.php Projekt: 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);
 }
Beispiel #4
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);
 }
Beispiel #5
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);
 }
Beispiel #6
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);
 }
Beispiel #7
0
 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);
 }
Beispiel #8
0
 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);
 }
Beispiel #9
0
<?php

@session_start();
require_once '../includes/connecti.php';
require_once '../includes/funcs.inc.php';
$_title = getReportTitle();
if (isset($_GET['report'])) {
    $date_start = "";
    if (isset($_GET['date_start']) && strlen($_GET['date_start']) > 0) {
        $date_start = $_GET['date_start'];
    }
    $date_end = "";
    if (isset($_GET['date_end']) && strlen($_GET['date_end']) > 0) {
        $date_end = $_GET['date_end'];
    }
    updateDate('rpt_party_ledger_start', $date_start);
    updateDate('rpt_party_ledger_end', $date_end);
    $accounts = array();
    foreach ($_GET['account'] as $account) {
        if ($account == '#ALL#') {
            continue;
        }
        $accounts[] = $account;
    }
    if (count($accounts) == 0) {
        //all was selected
        require_once '../includes/connect.php';
        $items = mysql_query("SELECT coa.account_ref_id\n" . "  FROM chart_of_account coa\n" . "       INNER JOIN party p ON p.account_ref_id = coa.account_ref_id\n" . " WHERE p.party_city = '{$_GET['city']}'\n" . "   AND coa.company_ref_id = {$_SESSION['company_id']}\n" . "ORDER BY account_name");
        while ($row = mysql_fetch_assoc($items)) {
            $accounts[] = $row['account_ref_id'];
        }
Beispiel #10
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);
 }
Beispiel #11
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);
 }