"; echo "
"; echo ""; echo ""; echo ""; echo ""; echo ""; echo "
"; echo "Configuration > Network > Element overview"; echo ""; //showHelp($helpId); echo ""; echo "

$strBack"; echo "

"; echo "
"; //echo "Element overview:
"; //===============================get the default value of XAPP element info============================== $database="OBJ_225"; $sql="select initValue from paramConf where level_1=2 and level_2=11 "; $result=@mysqli_query($pubConn,$sql); $rows=@mysqli_fetch_array($result); $default_initValue=$rows[initValue]; //echo "default_initValue:$default_initValue
"; //===============================init==================================================== for($i=0;$i<128;$i++) { $xapp_show[$i]=0; } //===============================get the data from OBJ_225 param_99=========================== $database="OBJ_225"; $sql="select instanceNo,initValue from param_99 where level_1=2 and level_2=11 "; $result=@mysqli_query($pubConn,$sql); $rows=@mysqli_fetch_array($result); do { //====instance No $instanceNo=$rows[instanceNo]; $initValue=$rows[initValue]; //====show or no if($initValue!=$default_initValue) $xapp_show[$instanceNo]=1; //====device type $xapp_deviceType[$instanceNo]=hexdec(getBitValue($rows[initValue],'1.0-1.7'))+0; //=====sysNo $xapp_sysNo[$instanceNo]=hexdec(getBitValue($rows[initValue],'2.0-2.3'))+0; //======subSysNo $xapp_subSysNo[$instanceNo]=hexdec(getBitValue($rows[initValue],'2.4-2.7'))+0; //======assign tg $xapp_assign_tg[$instanceNo]=hexdec(getBitValue($rows[initValue],'3.0-3.7'))+0; //======assign linkset $xapp_assign_linkset[$instanceNo]=hexdec(getBitValue($rows[initValue],'4.0-4.7'))+0; //======application type $xapp_application_type[$instanceNo]=hexdec(getBitValue($rows[initValue],'5.0-5.7'))+0; //=======grp no $xapp_grp_no[$instanceNo]=hexdec(getBitValue($rows[initValue],'6.0-6.7'))+0; //=======title $xapp_title[$instanceNo]=getBitValue($rows[initValue],'14.0-23.7'); //echo "{$xapp_title[$instanceNo]}
"; }while($rows=mysqli_fetch_array($result)); //========================format the data================================================ $device_type_label=array(1=>"BSC",2=>"AAS",3=>"VSS",4=>"PCR",5=>"CNF",16=>"Switch(SS7)",17=>"switch(ISDN)",18=>"Application"); $application_type_label=array(0=>"MSC",1=>"HLR",2=>"VLR",3=>"SMSC",4=>"SGSN",5=>"NewElement"); for($i=0;$i<256;$i++) { //=======device type $xapp_deviceType[$i]=$device_type_label[$xapp_deviceType[$i]]; //=======application type $xapp_application_type[$i]=$application_type_label[$xapp_application_type[$i]]; //=======element title $temp=""; for($num=0;$num<10;$num++) { $str=substr($xapp_title[$i],$num*2,2); $str=hexdec($str); $str=chr($str); $temp.=$str; } $xapp_title[$i]=$temp; } //====================================test============================================== /* for($i=0;$i<256;$i++) { echo "
"; echo "instanceNo---$i
"; echo "device type---{$xapp_deviceType[$i]}
"; echo "sysNo---{$xapp_sysNo[$i]}
"; echo "subSysNo---{$xapp_subSysNo[$i]}
"; echo "assign tg---{$xapp_assign_tg[$i]}
"; echo "assign linkset---{$xapp_assign_linkset[$i]}
"; echo "application type---{$xapp_application_type[$i]}
"; echo "grp no---{$xapp_application_type[$i]}
"; echo "title---{$xapp_title[$i]}
"; echo "
"; } */ //====================================show the table==================================== //0 by instanceNo //1 by device type //2 by application type if(!isset($sort_type)) $sort_type=0; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; if($sort_type==0) { for($i=0;$i<256;$i++) { if($xapp_show[$i]==0) echo ""; else echo ""; echo ""; if(trim($xapp_deviceType[$i])=="") echo ""; else echo ""; if(trim($xapp_sysNo[$i])=="") echo ""; else echo ""; if(trim($xapp_subSysNo[$i])=="") echo ""; else echo ""; if(trim($xapp_assign_tg[$i])=="") echo ""; else echo ""; if(trim($xapp_assign_linkset[$i])=="") echo ""; else echo ""; if(trim($xapp_application_type[$i])=="") echo ""; else echo ""; if(trim($xapp_grp_no[$i])=="") echo ""; else echo ""; if(trim($xapp_title[$i])=="") echo ""; else echo ""; echo ""; } echo "
No.Device TypeSystem No.Subsystem No.Assign TGAssign LinksetApplication Type"; echo "Grp No.Element Title
$i--$xapp_deviceType[$i]--$xapp_sysNo[$i]--$xapp_subSysNo[$i]--$xapp_assign_tg[$i]--$xapp_assign_linkset[$i]--$xapp_application_type[$i]--$xapp_grp_no[$i]--$xapp_title[$i]
"; } else if($sort_type==1) { arsort($xapp_deviceType,SORT_STRING); foreach($xapp_deviceType as $key => $value) { if($xapp_show[$key]==0) echo ""; else echo ""; echo "$key"; echo " $xapp_deviceType[$key]"; echo " $xapp_sysNo[$key]"; echo " $xapp_subSysNo[$key]"; echo " $xapp_assign_tg[$key]"; echo " $xapp_assign_linkset[$key]"; echo " $xapp_application_type[$key]"; echo " $xapp_grp_no[$key]"; echo " $xapp_title[$key]"; echo ""; } } else if($sort_type==2) { arsort($xapp_application_type,SORT_STRING); foreach($xapp_application_type as $key => $value) { if($xapp_show[$key]==0) echo ""; else echo ""; echo "$key"; echo " $xapp_deviceType[$key]"; echo " $xapp_sysNo[$key]"; echo " $xapp_subSysNo[$key]"; echo " $xapp_assign_tg[$key]"; echo " $xapp_assign_linkset[$key]"; echo " $xapp_application_type[$key]"; echo " $xapp_grp_no[$key]"; echo " $xapp_title[$key]"; echo ""; } } ?>