示例#1
0
 public function __construct()
 {
     //parent::__construct();
     Doo::loadClass('UserSession');
     $usession = new UserSession();
     $this->username = $usession->uget('username');
     $this->ppv_cat_code = 'C_TokoVideo_PPV';
     $this->svod_cat_code = 'C_TokoVideo_International';
 }
示例#2
0
 public function overview()
 {
     $this->conf_data['content_view'] = 'content/overview.php';
     $data = $this->conf_data;
     Doo::loadClass('UserSession');
     $usession = new UserSession();
     $username = $usession->uget('username');
     if (!$username) {
         header('Location:' . DOO::conf()->SUBFOLDER . 'login');
     }
     $dbapi = $this->dbapi;
     $data['js'][] = 'raphael-min.js';
     $data['limit'] = 20;
     $gpage = $_GET['page'] - 1;
     if ($_REQUEST['print'] == 'excel') {
         set_time_limit(0);
         $data['limit'] = 99999999;
         unset($gpage);
     }
     $data['username'] = $username;
     $data['dbapi'] = $this->dbapi;
     $data['subregion'] = $this->subregion;
     switch ($_POST['userProvider']) {
         case 3:
             // Flexi
             $data['css'][] = 'trend-telkomsel.css';
             $data['js'][] = 'popup.js';
             $data['js'][] = 'trend-telkomsel.js';
             $data['graph'][0]->type = "trend";
             $data['graph'][0]->data = $dbapi->get_users(3, strtotime($_POST['dtfrom']), strtotime($_POST['dtto']));
             break;
         case 2:
             // Telkomsel
             $data['css'][] = 'trend-telkomsel.css';
             $data['js'][] = 'popup.js';
             $data['js'][] = 'trend-telkomsel.js';
             $data['graph'][0]->type = "trend";
             $data['graph'][0]->data = $dbapi->get_users(2, strtotime($_POST['dtfrom']), strtotime($_POST['dtto']));
             break;
         case 1:
             // Speedy
             $data['css'][] = 'pie-speedy.css';
             $data['css'][] = 'trend-speedy.css';
             $data['js'][] = 'pie-speedy.js';
             $data['js'][] = 'popup.js';
             $data['js'][] = 'trend-speedy.js';
             if (empty($_POST['speedySubRegional'])) {
                 $speedyRegion = explode(';', $_POST['speedyRegional']);
             } else {
                 $speedyRegion = explode(';', $_POST['speedySubRegional']);
             }
             $data['graph'][0]->type = "pie";
             $data['graph'][0]->total = $dbapi->get_user_count(1, strtotime($_POST['dtfrom']), strtotime($_POST['dtto']), false, $speedyRegion);
             $data['graph'][0]->data['binding'] = $dbapi->get_user_count(1, strtotime($_POST['dtfrom']), strtotime($_POST['dtto']), true, $speedyRegion);
             $data['graph'][0]->data['not yet binding'] = $data['graph'][0]->total - $data['graph'][0]->data['binding'];
             $data['graph'][1]->type = "trend";
             $data['graph'][1]->data = $dbapi->get_users(1, strtotime($_POST['dtfrom']), strtotime($_POST['dtto']), true, $speedyRegion);
             break;
         default:
             $data['css'][] = 'pie.css';
             $data['js'][] = 'pie.js';
             $data['graph']->type = "pie";
             $data['graph']->data['speedy'] = $dbapi->get_user_count(1, strtotime($_POST['dtfrom']), strtotime($_POST['dtto']));
             $data['graph']->data['telkomsel'] = $dbapi->get_user_count(2, strtotime($_POST['dtfrom']), strtotime($_POST['dtto']));
             $data['graph']->data['flexi'] = $dbapi->get_user_count(3, strtotime($_POST['dtfrom']), strtotime($_POST['dtto']));
             $data['graph']->total = $data['graph']->data['speedy'] + $data['graph']->data['telkomsel'] + $data['graph']->data['flexi'];
     }
     $this->view()->renderc(Doo::conf()->language . '/t3', $data);
 }
示例#3
0
<?php

Doo::loadClass('UserSession');
$usession = new UserSession();
$username = $usession->uget('username');
?>
<h1>Results on <?php 
echo $data['gdtform'];
?>
 to <?php 
echo $data['gdtto'];
?>
</h1>
<div class="list_wrapper">
	<?/*<h1>User List</h1>*/ ?>
	<?php 
if (!$_REQUEST['print']) {
    ?>
	<div class="row-fluid">
		<?php 
    require_once "filter.php";
    ?>
		<div class="span11 widget white" onTablet="span10" onDesktop="span11" style="margin-top:20px;">					
			<div id="stats-chart3"  style="height:282px" ></div>					
		</div>
		<div id="dialog" title="User Registration Trendings"></div>
		<div class="clear"></div>
	</div>
	<div class="clear"></div>
	<?php 
}