fn_get_fieldvalue("years","select years from ".DB_DMCS.".tbl_smsc_sumyears where isdeleted=0 order by id desc limit 1"); $year=date("Y"); $month=date("m"); //$month=$this->fn_get_fieldvalue("period","select period from ".DB_DMCS.".tbl_smsc_sumtop5month where isdeleted=0 order by id desc limit 1"); $monthname=$this->FN_GETMONTHNAME((int)$month); echo $this->FN_CREATEHEADER(); echo ""; echo ""; //dseg7modernregular echo ""; echo $this->FN_CLOSEHEADER(); echo $this->FN_CREATEBODY("white"); echo ""; // === HITS MONITORING echo "
PERIODE : $year
TOTAL SMS $year
-
-
-
.
-
-
-
.
-
-
-
UPT TOP 5 RATING IN $monthname $year
Medan Utara
:
300 SMS
Medan Selayang
:
120 SMS
Medan Denai
:
80 SMS
Sunggal
:
78 SMS
Medan Marelan
:
60 SMS
"; // === LAYOUT 3 Top Rating echo ""; // === LAYOUT OPERATOR TSEL or NON TSEL echo ""; // === LAYOUT TRAFIC echo ""; echo "
UPT TOP 3 RATING IN $year
Medan Utara
:
111.026 SMS
Medan Denai
:
80.900 SMS
Medan Selayang
:
78.989 SMS
OPR TSEL PERIODE : $year
444.247SMS
".$this->CREATE_IMAGE("up.png")." 30% from last year
123.908 from last year ( 2015 )
OPR NON TSEL PERIODE : $year
190.401SMS
".$this->CREATE_IMAGE("down.png")." 25% from last year
223.458 from last year ( 2015 )
TRAFIC SMS PERIODE : $year
"; echo $this->FN_CREATEFOOTER(); } public function fn_treemenu() { header("Content-type: text/xml"); echo " "; if($_SESSION['treemenuid']) { $id_menu_groupproject=$_REQUEST['id_menu_groupproject']; $qrymnu1="select id,menuid,menutext,menuimg from ".DB_APORTIL.".tbl_treemenu where id in(".$_SESSION['treemenuid'].") and menutype='H' and menuactivated=1 and isdeleted=0 and id_menu_groupproject='$id_menu_groupproject' order by menuorder asc"; //echo $qrymnu1; $rs1=$this->selectquery($qrymnu1); if($rs1) { //$i=1; if($this->REC_ROWS_COUNT($rs1)>0) { while($rw1=$this->data_row_object($rs1)) { //$mymenu.=""; echo ""; $qrymnu2="select id,menuid,menutype,menutext,menuimg from ".DB_APORTIL.".tbl_treemenu where id in(".$_SESSION['treemenuid'].") and menuheader='".$rw1->id."' and menuactivated=1 and isdeleted=0 and id_menu_groupproject='$id_menu_groupproject' order by menuorder asc"; $rs2=$this->selectquery($qrymnu2); if($rs2) { if($this->REC_ROWS_COUNT($rs2)>0) { while($rw2=$this->data_row_object($rs2)) { //$mymenu.=""; if($rw2->menutype=='S'){$propheader=" img0='folderClosed.gif' img1='folderOpen.gif' img2='folderClosed.gif'";} echo ""; $qrymnu3="select id,menuid,menutype,menutext,menuimg from ".DB_APORTIL.".tbl_treemenu where id in(".$_SESSION['treemenuid'].") and menuheader='".$rw2->id."' and menuactivated=1 and isdeleted=0 and id_menu_groupproject='$id_menu_groupproject' order by menuorder asc"; $rs3=$this->selectquery($qrymnu3); if($rs3) { if($this->REC_ROWS_COUNT($rs3)>0) { //echo ""; //$k=1; while($rw3=$this->data_row_object($rs3)) { //if($rw2->menutype=='S'){$propheader=" img0='folderClosed.gif' img1='folderOpen.gif' img2='folderClosed.gif'";} //$mymenu.=""; //if($rw3->menutype=='S'){$propheader=" img0='folderClosed.gif' img1='folderOpen.gif' img2='folderClosed.gif'";} echo ""; $qrymnu4="select id,menuid,menutype,menutext,menuimg from ".DB_APORTIL.".tbl_treemenu where id in(".$_SESSION['treemenuid'].") and menuheader='".$rw3->id."' and menuactivated=1 and isdeleted=0 and id_menu_groupproject='$id_menu_groupproject' order by menuorder asc"; $rs4=$this->selectquery($qrymnu4); if($rs4) { if($this->REC_ROWS_COUNT($rs4)>0) { while($rw4=$this->data_row_object($rs4)) { echo ""; } } } $this->clearrecordset($rs4); echo ""; //$k+=1; } } } $this->clearrecordset($rs3); echo ""; } } } $this->clearrecordset($rs2); // if($i==1){$mymenu.="";} echo ""; //$i+=1; } } else { echo " "; } } $this->clearrecordset($rs1); } else if($_SESSION['nik']=='9999') { echo " "; } echo " "; } public function fn_treemenuadmin() { header("Content-type: text/xml"); echo " "; if($_SESSION['nik']=='82010') { echo " "; } echo " "; } } ?>