示例#1
0
        }
    }
    //tablet agent
    if ($detect->isTablet()) {
        $left_num_tablet = $left_num_tablet + 1;
        $tablet_left_date = getDeviceDate($rs_useragent_left_datetime);
        //get device date
        //datetime:result left side for process tablet bottom line chart.
        $rs_left_tablet[$tablet_left_date] = $rs_left_tablet[$tablet_left_date] + 1;
        if (iOS($rs_useragent_left)) {
            $left_num_tablet_iOS = $left_num_tablet_iOS + 1;
        }
        if (andoidOS($rs_useragent_left)) {
            $left_num_tablet_android = $left_num_tablet_android + 1;
        }
        if (windowOS($rs_useragent_left)) {
            $left_num_mobile_windows = $left_num_mobile_windows + 1;
        }
    }
    //desktop agent
    if (!$detect->isTablet() && !$detect->isMobile()) {
        $left_num_desktop = $left_num_desktop + 1;
        $desktop_left_date = getDeviceDate($rs_useragent_left_datetime);
        //get device date
        //datetime:result left side for process desktop bottom line chart.
        $rs_left_desktop[$desktop_left_date] = $rs_left_desktop[$desktop_left_date] + 1;
    }
}
//end while
$left_agent_total = array('mobile' => array('total' => $left_num_mobile, 'iOS' => $left_num_mobile_iOS, 'Android' => $left_num_mobile_android, 'win' => $left_num_mobile_windows), 'tablet' => array('total' => $left_num_tablet, 'iOS' => $left_num_tablet_iOS, 'Android' => $left_num_tablet_android, 'win' => $left_num_tablet_windows), 'desktop' => array('total' => $left_num_desktop));
/*****************************************************End Left side*************************/
示例#2
0
while ($agentr = mysql_fetch_array($rs_query_buttom_right)) {
    $rs_useragent_right = $agentr[0];
    //user agent
    $rs_useragent_right_datetime = $agentr[1];
    //get device date
    $detect->setUserAgent($rs_useragent_right);
    if ($detect->isMobile()) {
        $mobile_right_date = getDeviceDate($rs_useragent_right_datetime);
        //datetime:result right side for process mobile bottom line chart.
        $rs_right_mobile[$mobile_right_date] = $rs_right_mobile[$mobile_right_date] + 1;
    }
    //tablet agent
    if ($detect->isTablet()) {
        $tablet_right_date = getDeviceDate($rs_useragent_right_datetime);
        //get device date
        //datetime:result right side for process tablet bottom line chart.
        $rs_right_tablet[$tablet_right_date] = $rs_right_tablet[$tablet_right_date] + 1;
    }
    //desktop agent
    if (!$detect->isTablet() && !$detect->isMobile()) {
        $desktop_right_date = getDeviceDate($rs_useragent_right_datetime);
        //get device date
        //datetime:result right side for process desktop bottom line chart.
        $rs_right_desktop[$desktop_right_date] = $rs_right_desktop[$desktop_right_date] + 1;
    }
}
//end while
/**End Right Side**/
//print '<pre>';
//print_r($rs_right_desktop);
/*****************************************************End Bottom side*************************/
示例#3
0
        //datetime:result right side for process tablet bottom line chart.
        $rs_right_tablet[$tablet_right_date] = $rs_right_tablet[$tablet_right_date] + 1;
        if (iOS($rs_useragent_right)) {
            $right_num_tablet_iOS = $right_num_tablet_iOS + 1;
        }
        if (andoidOS($rs_useragent_right)) {
            $right_num_tablet_android = $right_num_tablet_android + 1;
        }
        if (windowOS($rs_useragent_right)) {
            $right_num_tablet_windows = $right_num_tablet_windows + 1;
        }
    }
    //desktop agent
    if (!$detect->isTablet() && !$detect->isMobile()) {
        $right_num_desktop = $right_num_desktop + 1;
        $desktop_right_date = getDeviceDate($userAgent_right[1]);
        //get device date
        //datetime:result right side for process desktop bottom line chart.
        $rs_right_desktop[$desktop_right_date] = $rs_right_desktop[$desktop_right_date] + 1;
    }
}
//end foreach
//print '<pre>';
//print_r($rs_right_desktop);
//exit;
$right_agent_total = array('mobile' => array('total' => $right_num_mobile, 'iOS' => $right_num_mobile_iOS, 'Android' => $right_num_mobile_android, 'win' => $right_num_mobile_windows), 'tablet' => array('total' => $right_num_tablet, 'iOS' => $right_num_tablet_iOS, 'Android' => $right_num_tablet_android, 'win' => $right_num_tablet_windows), 'desktop' => array('total' => $right_num_desktop));
// print_r($left_agent_total);
if ($flag == 'list') {
    /**Table on Left side**/
    require_once "includes/jn_table_leftside.php";
    /**Table on Right side**/