正在调试中!!"; ?> \n"; echo "alert('$msg')"; echo ""; } $scroll_y = isset($scroll_y) ? $scroll_y : 0; echo ""; $backurl = './smsc.php'; $nProcFail = 0;//failure $nWaitProc = 1;//wait $nInProc = 2; $nOutProc = 3; $nGetComm = 0; $nSetComm = 3; $maxNum = 60; $sysId = '350_99_99'; $oidarr = array('2.1.1','2.1.3','2.2.0'); $smpp_id = '260_99_99'; $smpp_oid = "2.1.0"; $sccp_id = '223_99_99'; $sccp_oid = array('2.1.11','2.1.20'); $sqltable = 'OBJ_350.param_99'; $mtp3_sqlTable = 'OBJ_222.param_99'; $sqltable_conf = 'OBJ_350.paramConf'; $sqltable_smpp = 'OBJ_260.param_99'; $sqltable_sccp = 'OBJ_223.param_99'; $sqltable_pub = 'OMC_PUB.sysStat'; $sqlConf_pub = 'OMC_PUB.sysConf'; $pubDb = 'OMC_PUB'; $sqltable_spc = 'OBJ_222.param_99'; $sysinfo = 'OMC_PUB.sysInfo'; $sysTypeNo = '322'; $net_paramTable ='OBJ_225.param_99';//xapp $net_paramConf ='OBJ_225.paramConf'; $sysId_arr=array( array('oid'=>'2.2', 'sysid'=> '222_99_99', 'selectsysid'=>'-1'), array('oid'=>'2.3', 'sysid'=> '222_99_99', 'selectsysid'=>'-1'), array('oid'=>'2.1', 'sysid'=> '350_99_99', 'selectsysid'=>'-1'), array('oid'=>'2.2', 'sysid'=> '350_99_99', 'selectsysid'=>'-1'), array('oid'=>'2.3', 'sysid'=> '350_99_99', 'selectsysid'=>'-1'), array('oid'=>'2.5', 'sysid'=> '350_99_99', 'selectsysid'=>'-1'), array('oid'=>'2.9.0', 'sysid'=> '225_99_99', 'selectsysid'=>'-1'), array('oid'=>'2.1.11', 'sysid'=> '223_99_99', 'selectsysid'=>'-1'), array('oid'=>'2.1.20', 'sysid'=> '223_99_99', 'selectsysid'=>'-1'), array('oid'=>'2.2', 'sysid'=> '223_99_99', 'selectsysid'=>'-1'), ); $size=sizeof($sysId_arr); $selSql = "select sysNo,subSysNo from OMC_PUB.sysStat where sysTypeNo='350'"; $result = mysqli_query($pubConn,$selSql); $no=0; while($rows = mysqli_fetch_array($result)) { $smscSysNo[$no] = $rows[sysNo]; $smscTable[$no] = "OBJ_350.param_".$rows[sysNo]; $tmpsysId = '350_'.$rows[sysNo].'_0'; $sysId_arr[$size++] = array('oid'=>'2.1.6', 'sysid'=> $tmpsysId,'selectsysid'=>'-1'); $no++; } $SaveArr=array( array('oidstr'=>'3.3', 'setvalue'=>'01' ,'sysid'=>'350_99_99'), array('oidstr'=>'3.2', 'setvalue'=>'02' ,'sysid'=>'223_99_99'), ); $getsql = "SELECT sysNo FROM $sysinfo where sysTypeNo = 322"; if($DEBUG) echo "getsql = $getsql
"; $Result = @mysqli_query($pubConn,$getsql); while($Rows = mysqli_fetch_array($Result)) { $xappSysId = "225_9"."_".$Rows[sysNo]; $SaveArr[] = array('oidstr'=>'3.2', 'setvalue'=>'01' ,'sysid'=> '225_99_99','selectsysid' => $xappSysId); } $url_add = './smsc.php'; $localNodeConfArr=array( array('NetID', '00.0-00.7'), array('MSISDN', '01.0-10.7'), array('IP0', '11.0-14.7'), array('IP1', '15.0-18.7') ); //loading if($load_flag == 1) { echo "
Loading"; GetParam($sysId_arr,1);//1 means return to overview if getting parameters fails. echo ""; } {//get upd and tcp default value $wSc = " AND level_1 = 2 AND (level_2 = 2 OR level_2 = 3)"; $defSql = " SELECT level_1,level_2,level_3,initValue FROM $sqltable_conf WHERE keyId > 0 ".$wSc." ORDER BY level_2,level_3 "; if($DEBUG)echo "
defSql=$defSql"; $defRes = @mysqli_query($pubConn,$defSql); $defRow = @mysqli_fetch_array($defRes); do { $level_1 = $defRow[level_1]; $level_2 = $defRow[level_2]; $level_3 = $defRow[level_3]; $defaultValue[$level_2][$level_3] = $defRow[initValue]; if($DEBUG) echo "
defaultValue[$level_2][$level_3]={$defaultValue[$level_2][$level_3]}"; }while($defRow = @mysqli_fetch_array($defRes)); }//end get default value $getsql = "select initValue from $net_paramConf where level_1 = '2' and level_2 = '9'"; $result = @mysqli_query($pubConn,$getsql); echo mysqli_error($pubConn); $cli_conv_def = mysqli_fetch_array($result); $cli_conv_def = $cli_conv_def[0]; if(isset($doingOtherFlag)) { {//set system ip for($i=0; $i < 2; $i++) { $getsql = "SELECT ip FROM $sysinfo where sysTypeNo = $sysTypeNo and sysNo = '$i'"; if($DEBUG) echo "getsql = $getsql
"; $ip_init = @mysqli_query($pubConn,$getsql); $ip_init = mysqli_fetch_array($ip_init); $ip_init = $ip_init[0]; $ip_array = explode('.',$ip_init); for($j = 0;$j < sizeof($ip_array);$j++) { $ip = $ip_array[$j]; $mss_ip[$i] .= omc_keep_length(dechex($ip),'0','2'); } } $mss_ip[0] = strtoupper(omc_keep_length($mss_ip[0],'0','8')); $mss_ip[1] = strtoupper(omc_keep_length($mss_ip[1],'0','8')); if($DEBUG) { echo "
mss0_ip = $mss_ip[0]
"; echo "mss1_ip = $mss_ip[1]
"; } $sysId = "223_99_99"; if($setMapGtt==1)//MAP { $oidStr = "2.1.11"; setParamValue($mss_ip[0],$sysId,$oidStr,3); setParamValue($mss_ip[1],$sysId,$oidStr,4); } if($setSmppGtt==1)//smpp { $oidStr = "2.1.20"; setParamValue($mss_ip[0],$sysId,$oidStr,3); setParamValue($mss_ip[1],$sysId,$oidStr,4); } }//end set system ip exit; } if($_SERVER['REQUEST_METHOD'] == "POST") { for($i=0; $i<2; $i++) { $updTable = 'OBJ_350.param_' . $i; $updSql = "update $updTable set initValue = '{$mss_ip[$i]}' where level_1='2' and level_2='1' and level_3='6' "; mysqli_query($pubConn,$updSql); } if(isset($setSys) || isset($getSys)) { if(isset($setSys)) { // echo "
Getting parameters
"; // GetParam(0,1); echo "
Setting parameters
"; SetParam($sysId_arr); session_register("mcSetFlag"); $showType="Set"; echo "
Sending save command
"; SaveParam($SaveArr); echo ""; //exit(); } else { echo "
Getting parameters
"; session_register("GetFlag"); GetParam($sysId_arr); $showType="Get"; } } echo ""; //exit(); } if (isset($delflag)) { $delNoStr = rtrim($delNoStr,'.'); $delNoArr = explode('.',$delNoStr); $instNoWhereStr = ''; for($i=0; $i< sizeof($delNoArr); $i++) { if($i==0) $instNoWhereStr = "(instanceNo='$delNoArr[$i]'"; else $instNoWhereStr .= " or instanceNo='$delNoArr[$i]'" ; } $instNoWhereStr .= ')'; if($delflag == 'msisdn') { $getsql = "select initValue from $sqltable_conf where level_1 = '2' and level_2 = '1' and level_3 = '4'"; $msisdn_result = mysqli_query($pubConn,$getsql); echo mysqli_error($pubConn); $msisdn_org = mysqli_fetch_array($msisdn_result); $msisdn_org = $msisdn_org[0]; $setsql = "update $sqltable set initValue = '$msisdn_org' where level_1 = '2' and level_2 = '1' and level_3 = '4' and $instNoWhereStr "; mysqli_query($pubConn,$setsql); echo mysqli_error($pubConn); if(0) echo "
$setsql
"; } if($delflag == 'udp'||$delflag=='tcp') { if($delflag=='udp') $tmp_level_2 = 2; else $tmp_level_2 = 3; $setsql = "SELECT level_3 FROM $sqltable WHERE subSysNo = '99' AND level_1 = 2 AND level_2 = $tmp_level_2 ORDER BY level_3 "; $Result = mysqli_query($pubConn,$setsql); while($rows = mysqli_fetch_array($Result)) { $level_3 = $rows[0]; $updSql = "update $sqltable set initValue = '{$defaultValue[$tmp_level_2][$level_3]}' where level_1='2' and level_2='$tmp_level_2' and level_3='$level_3' and $instNoWhereStr"; mysqli_query($pubConn,$updSql); echo mysqli_error($pubConn); if($DEBUG) echo "
$setsql
"; } } if ($delflag == 'cli') //CLI prefix { $delNoStr = rtrim($delNoStr,'.'); $delNoArr = explode('.',$delNoStr); $instNoWhereStr = ''; for($i=0; $i< sizeof($delNoArr); $i++) { if($i==0) $instNoWhereStr = "(instanceNo='$delNoArr[$i]'"; else $instNoWhereStr .= " or instanceNo='$delNoArr[$i]'" ; } $instNoWhereStr .= ')'; $objWhereStr = getLevelWhere('2.9.0'); $setsql = "update $net_paramTable set initValue = '$cli_conv_def' where $objWhereStr and $instNoWhereStr"; if($DEBUG) echo "
setsql:$setsql
"; //exit; mysqli_query($pubConn,$setsql); echo mysqli_error($pubConn); } } if(1==$E1lock || 1==$E1unlock) { if($flag == 'udp') $level2 = 2; else $level2 = 3; $getsql = "select initValue from $sqltable where level_1 = '2' and level_2 = '$level2' and level_3 = '14'"; $result = mysqli_query($pubConn,$getsql); echo mysqli_error($pubConn); $Row = mysqli_fetch_array($result); $setValue = $Row[initValue]; if(1==$E1lock) $bitValue=0; if(1==$E1unlock) $bitValue=1; $offset = '00.1-00.1'; $setValue = setBitValue($setValue,$offset,$bitValue); $setsql = "update $sqltable set initValue = '$setValue' where level_1 = '2' and level_2 = '$level2' and level_3 = '14' and instanceNo='$delValue'"; mysqli_query($pubConn,$setsql); echo mysqli_error($pubConn); $oidstr = "2.$level2.14"; $commIdStr =oidSysCommSend($sysId,$nSetComm,$oidstr); if($commIdStr=='-1') { DelComm($commArr); echo "

Error while getting/setting parameters. Please check the device state!
"; echo "oidSysCommSend($tmpSysId,$nSetComm,$tmpObjIdStr)
"; echo "

Back"; exit(); } } //========================================================== //输出并显示数据 //========================================================== echo "

"; echo ""; echo ""; echo ""; echo ""; echo "
"; echo "Configuration > Network > SMSC"; echo ""; $helpId = '2.1.1.5'; showHelp($helpId); echo "
"; echo "
"; { echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo "
"; echo "  "; echo ""; echo ""; echo "   "; echo ""; echo ""; echo "

$strBack"; echo "

"; } ?> indicator = {$indicator[0]}
"; for($i = 0; $i < 4; $i++) { $flag = getBitValue($indicator[0],"0.$i"); if ($flag == 0) $spc_index[$i] = $i; else $spc_index[$i] = $i+4; } for($i = 0; $i < 4; $i ++) { $levelWhere = getLevelWhere($spcTree_array[$spc_index[$i]][3]); $getsql = "select initValue from $mtp3_sqlTable where $levelWhere"; $result = mysqli_query($pubConn,$getsql); $row[$i] = mysqli_fetch_array($result); $row[$i] = hexdec($row[$i][0]); if($DEBUG)echo "getsql = $getsql
"; if($DEBUG)echo "spc_$i=$row[$i]
"; } } echo "" ; echo ""; echo ""; echo ""; //========================================================== //输出Global Title //========================================================== $sysId = "223_99_99"; $oidStr = "2.1.11"; $instanceNo=0; echo ""; echo ""; echo ""; echo "" ; $oidStr = "2.1.20"; echo ""; echo ""; {//输出SMS validity $getsql = "select initValue from $sqltable where level_1 = '2' and level_2 = '1' and level_3 = '3'"; $count_result = mysqli_query($pubConn,$getsql); echo mysqli_error($pubConn); $count_result = @mysqli_fetch_array($count_result); $sms_time = hexdec(getBitValue($count_result[0],'00.0-03.7')); $sms_time = $sms_time / 3600; echo "" ; echo ""; $sysId = "350_99_99"; $oidStr = "2.1.3"; echo ""; echo ""; }//end SMS validity {//输出CDR echo "" ; echo ""; $sysId = "350_99_99"; $oidStr = "2.1.1"; echo ""; echo ""; }//end cdr {//输出log echo "" ; echo ""; $oidStr = "2.1.10"; echo ""; echo ""; echo ""; }//end log {//输出MSISDN range $getsql = "select initValue from $sqltable_conf where level_1 = '2' and level_2 = '1' and level_3 = '4'"; $msisdn_result = mysqli_query($pubConn,$getsql); echo mysqli_error($pubConn); $msisdn_org = mysqli_fetch_array($msisdn_result); $msisdn_org = $msisdn_org[0]; echo ""; $getsql = "select initValue from $sqltable where level_1 = '2' and level_2 = '1' and level_3 = '4'"; $msisdn_result = mysqli_query($pubConn,$getsql); echo mysqli_error($pubConn); $n = 0; $i = 0; //if($DEBUG) echo "msisdn_org = $msisdn_org
"; while($msisdn_row = mysqli_fetch_array($msisdn_result)) { //if($DEBUG) echo "msisdn_row = $msisdn_row[0]
"; $msisdn_row = $msisdn_row[0]; //$ms_ins[$i] if($msisdn_row != $msisdn_org) { $ms_row[$n] = $msisdn_row; if($DEBUG) echo "msisdn_row = $msisdn_row
"; $ms_start[$n] = getBitValue($msisdn_row,'0.0-8.7'); if($DEBUG) echo "ms_start = $ms_start[$n]
"; $ms_start[$n] = str_replace('E','',$ms_start[$n]); if($ms_start[$n] == '') $ms_start[$n] = 0; $ms_end[$n] = getBitValue($msisdn_row,'9.0-17.7'); if($DEBUG) echo "ms_end = $ms_end[$n]
"; $ms_end[$n] = str_replace('E','',$ms_end[$n]); if($ms_end[$n] == '') $ms_end[$n] = 0; $ms_ins[$n] = $i; $n++; } else if(!isset($unused_no)) { $unused_no = $i; } $i++; } if(!isset($unused_no)) $unused_no = -1; $nrow = $n + 1; echo "" ; echo ""; if($n == 0) { echo ""; } else { $flag = 'msisdn'; echo ""; } }//end msisdn range {//show udp and tcp smpp {//get upd and tcp status from heartbeat $linkStatArray = array('Unavailable','Available'); $selSql = "select detailStat from sysStat where sysTypeNo='350' "; $result = mysqli_query($pubConn,$selSql); $Rows = mysqli_fetch_array($result); if($DEBUG) echo $Rows[0]; $updStart = 47; $hexStr = substr($Rows[0],$updStart*2,2); $binStr = omc_keep_length(decbin(hexdec($hexStr)),'0',8); for($i=strlen($binStr)-1; $i>=0; $i--) { $udpLinkStat[$i] = $linkStatArray[substr($binStr,7-$i,1)]; //echo "
udpLinkStat[$i]: ".$udpLinkStat[$i]; } $tcpStart = 48; for($i=0; $i< 4; $i++) { $hexStr = substr($Rows[0],($tcpStart+$i)*2,2); $binStr = omc_keep_length(decbin(hexdec($hexStr)),'0',8); //echo "
$binStr"; for($j=7; $j>=0; $j--) { $no = $i*8+$j; $tcpLinkStat[$no] = $linkStatArray[substr($binStr,7-$j,1)]; } } }//end get status {//get udp and tcp value /************select value to see************/ $scSql = " SELECT level_1,level_2,level_3,instanceNo,initValue,readValue FROM $sqltable WHERE subSysNo = '99' ".$wSc." ORDER BY level_3 "; if($DEBUG) echo "
scSql=$scSql"; $scRes = @mysqli_query($pubConn,$scSql); $scRow = @mysqli_fetch_array($scRes); echo mysqli_error($pubConn); do { $level_1 = $scRow[level_1]; $level_2 = $scRow[level_2]; $level_3 = $scRow[level_3]; $instanceNo = $scRow[instanceNo]; // if($level_3 > 1){//if no.1=="--",then all="--" // if($showValue[$level_2][$instanceNo][1] == '--') // { // $showValue[$level_2][$instanceNo][$level_3] = "--"; // continue; // } // } if($scRow[initValue] == $defaultValue[$level_2][$level_3] && (($level_2 == 2 && $level_3 < 7) OR ($level_2 == 3 && $level_3 < 8)) ){ $showValue[$level_2][$instanceNo][$level_3] = "--"; continue; } if($level_3 > 0 && $level_3 < 4){//name,sysid,password $valueLen = floor(strLen($scRow[initValue])/2); for($i=0;$i<$valueLen;$i++){ $temValue[$i] = substr($scRow[initValue],$i*2,2); if($temValue[$i] == '00'){ break; }else{ $temValue[$i] = Chr(HexDec($temValue[$i])); } } $aNum = $i; $tValue = ''; for($i=0;$i<$aNum;$i++){ $tValue = $tValue.$temValue[$i]; } if($DEBUG)echo "
tValue=$tValue"; $showValue[$level_2][$instanceNo][$level_3] = $tValue; }elseif($level_3 == 4){ $p4 = explode("E",$scRow[initValue]); $showValue[$level_2][$instanceNo][$level_3] = $p4[0]; }elseif($level_3 == 6){ if($level_2 == 2){ $p6 = explode("E",$scRow[initValue]); $showValue[$level_2][$instanceNo][$level_3] = $p6[0]; }elseif($level_2 == 3){ $valueLen = floor(strLen($scRow[initValue])/2); for($i=0;$i<$valueLen;$i++){ $temValue[$i] = HexDec(substr($scRow[initValue],$i*2,2)); } $showValue[$level_2][$instanceNo][$level_3] = $temValue[0].".".$temValue[1].".".$temValue[2].".".$temValue[3]; } }elseif($level_3 == 7){ if($level_2 == 2){ $showValue[$level_2][$instanceNo][$level_3] = HexDec($scRow[initValue]); }else{ $valueLen = floor(strLen($scRow[initValue])/2); for($i=0;$i<$valueLen;$i++){ $temValue[$i] = HexDec(substr($scRow[initValue],$i*2,2)); } $showValue[$level_2][$instanceNo][$level_3] = $temValue[0].".".$temValue[1].".".$temValue[2].".".$temValue[3]; } }elseif($level_3 == 12){ if($scRow[initValue]==0||HexDec($scRow[initValue])==16) $showValue[$level_2][$instanceNo][$level_3]='7bit'; else $showValue[$level_2][$instanceNo][$level_3]='8bit'; }else{ $showValue[$level_2][$instanceNo][$level_3] = HexDec($scRow[initValue]); } if($DEBUG) echo "
showValue[$level_2][$instanceNo][$level_3]={$showValue[$level_2][$instanceNo][$level_3]}"; }while($scRow = @mysqli_fetch_array($scRes)); }//end get value {//$showUdpmArr $showUdpmArr = array( "", "Name", "System ID", "Password", "Service Number", "Destination addr. type", "GTT Number", "Session timer", "Enquire link timer", "Inactivity timer", "Response timer", "", "DCS", "Time to live", ); } {//find not used instanceNo for($i=2;$i< 8;$i++)//find from instanceNo=2; instanceNo 0,1:reserved for pps Global title(EMSE), 0:Inquiry number, 1:Recharge via recharge card { $enable = getBitValue($showValue[2][$i][14],'0.0-0.0'); if($enable==0) { $newInstNo=$i; break; } } if(!isset($newInstNo)) $newInstNo=-1; } $flag = 'udp'; $showNum=0; for($i=0;$i< 8;$i++) { $enable = getBitValue($showValue[2][$i][14],'0.0-0.0'); if($enable==1) $showNum++; } echo "" ; echo ""; if($showNum==0) { echo ""; } else { echo ""; } //show tcp smpp $showTcpmArr = array( "", "Name", "System ID", "Password", "Service Number", "Destination addr. type", "Service IP", "Local IP address", "Session timer", "Enquire link timer", "Inactivity timer", "Response timer", "DCS", "Time to live", ); {//find not used instanceNo for($i=0;$i< 32;$i++) { $enable = getBitValue($showValue[3][$i][14],'0.0-0.0'); if($enable==0) { $newInstNo=$i; break; } } if(!isset($newInstNo)) $newInstNo=-1; } $flag = 'tcp'; $showNum=0; for($i=0;$i< 32;$i++) { $enable = getBitValue($showValue[3][$i][14],'0.0-0.0'); if($enable==1) $showNum++; } echo "" ; echo ""; if($showNum==0) { echo ""; } else { echo ""; } }//end show udp and tcp smpp {//输出CLI conversion prefix //show text define $cli_conv_showText_define = array('','IDD','NDD','Unknown'); $getsql = "select instanceNo,initValue from $net_paramTable where level_1 = '2' and level_2 = '9' and initValue != '$cli_conv_def'"; $result = @mysqli_query($pubConn,$getsql); echo mysqli_error($pubConn); $cli_conv_num = 0; while($cli_conv_row = @mysqli_fetch_array($result)) { $cli_prefix[$cli_conv_num][instanceNo] = $cli_conv_row[instanceNo]; $cli_prefix[$cli_conv_num][in_property] = hexdec(getBitValue($cli_conv_row[initValue],'00.0-00.7')); $cli_prefix[$cli_conv_num][Prefix] = trim(toAscii(getBitValue($cli_conv_row[initValue],'01.0-16.7'))); $cli_prefix[$cli_conv_num][delete_length] = hexdec(getBitValue($cli_conv_row[initValue],'17.0-17.7')); $cli_prefix[$cli_conv_num][out_property] = hexdec(getBitValue($cli_conv_row[initValue],'18.0-18.7')); $cli_prefix[$cli_conv_num][add_length] = hexdec(getBitValue($cli_conv_row[initValue],'19.0-19.7')); $cli_prefix[$cli_conv_num][add_digits] = toAscii(getBitValue($cli_conv_row[initValue],'20.0-35.7')); $cli_prefix[$cli_conv_num][valid_length] = hexdec(getBitValue($cli_conv_row[initValue],'36.0-36.7')); $cli_conv_num++; } if ($cli_conv_num != 0) { for($i=0; $i < 256; $i++) { if($i != $cli_prefix[$i][instanceNo]) { $unused_cli_ins = $i; break; } } } else $unused_cli_ins = 0; if($DEBUG) echo "cli_conv_num = $cli_conv_num
"; $cli_conv_nrow = $cli_conv_num+1; if($cli_conv_num>10) $cli_conv_nrow = $cli_conv_num+2; $objIdStr='no-2.9'; $sysId_xapp = '225_99_99'; $webname="MSC"; $setname="CLI Manipulation"; echo "" ; echo ""; if($cli_conv_num == 0) echo ""; else { echo ""; } echo ""; }//end CLI conversion prefix /* {//license echo "" ; echo ""; echo ""; echo ""; }//end license */ echo "
Signaling point code"; for($i=0; $i<4; $i++) echo ""; echo "
{$spcTree_array[$i][0]}: {$spcTree_array[$spc_index[$i]][1]} {$spcTree_array[$spc_index[$i+4]][1]} $row[$i]
$strE164Number(MAP)"; echo ""; echo ""; echo "
"; $doingOtherUlr="$PHP_SELF?doingOtherFlag=1&setMapGtt=1"; showParameter($sysId,$oidStr,2,1,$instanceNo,$doingOtherUlr); echo ""; showParameter($sysId,$oidStr,1,1); echo "
$strE164Number(SMPP)"; echo ""; echo ""; echo "
"; $doingOtherUlr="$PHP_SELF?doingOtherFlag=1&setSmppGtt=1"; showParameter($sysId,$oidStr,2,1,$instanceNo,$doingOtherUlr); echo ""; showParameter($sysId,$oidStr,1,1); echo "
SMS validity "; showParameter($sysId,$oidStr,1,1); echo " Seconds
CDR flag "; showParameter($sysId,$oidStr,1,1); echo "
Log flag "; $sysId = "350_99_99"; showParameter($sysId,$oidStr,1,1); echo "
"; echo ""; echo ""; echo ""; //href=\"./ra_default.php?typeFlag=MSISDN&instanceNo=$unused_no&backurl=./smsc.php\" echo ""; echo ""; echo "
Subscriber segment +
"; echo "
 --"; echo ""; echo ""; echo ""; echo ""; echo ""; //echo ""; echo ""; echo ""; for($i=0; $i < $n; $i++) { $checkBoxName=$flag . 'checkBox_'.$i; $deleteNo = $flag . 'deleteno_'.$i; if($i>3) echo ""; else echo ""; //echo ""; echo ""; echo ""; echo ""; /*echo "";*/ echo ""; echo ""; } //==more button==== if($n>4) { echo ""; echo ""; } echo "
No.Start MSISDNEnd MSISDNDeleteDelete"; echo ""; echo "
 $ms_ins[$i]$ms_start[$i]$ms_end[$i]
More >>
Hide >>
"; echo "
"; echo ""; echo ""; echo ""; //alert($showNum); if($showNum>=8) echo ""; else echo ""; echo ""; echo "
SMPP link(UDP) +
"; echo "
 --"; echo ""; echo ""; echo ""; for($j=1;$j< 14;$j++) { if($j==1 || $j==4 || $j==6) echo ""; } echo ""; echo ""; echo ""; echo ""; $showNum=0; for($i=0;$i< 8;$i++) { $enable = getBitValue($showValue[2][$i][14],'0.0-0.0'); if($enable==0) continue; $checkBoxName=$flag . 'checkBox_'.$showNum; $deleteNo = $flag . 'deleteno_'.$showNum; if($showNum>3) echo ""; else echo ""; $showNum++; //echo ""; echo ""; for($j=1;$j< 14;$j++) { if($j==1 || $j==4 || $j==6) echo ""; } {//link status if($udpLinkStat[$i]=='Available') $color="#0000ff"; else $color = "#FF0000"; $input_name = 'udplinkStat_' . $i; //echo ""; echo ""; }//end link status //echo ""; $udpflag =getBitValue($showValue[2][$i][14],'00.1-00.1'); if($udpflag) echo ""; echo ""; } if($showNum>4) { echo ""; echo ""; } echo "
No.{$showUdpmArr[$j]}StatusAdmin StateDelete"; echo ""; echo "
$i{$showValue[2][$i][$j]} {$udpLinkStat[$i]}--{$udpLinkStat[$i]}Unlocked"; else echo "Locked"; echo "
More >>
Hide >>
"; echo "
"; echo ""; echo ""; echo ""; //alert($showNum); if($showNum>=32) echo ""; else echo ""; echo ""; echo "
SMPP link(TCP) +
"; echo "
 --"; echo ""; echo ""; echo ""; for($j=1;$j< 14;$j++) { if($j==1 || $j==4 || $j==6) echo ""; } echo ""; echo ""; echo ""; echo ""; $showNum=0; for($i=0;$i< 32;$i++) { $enable = getBitValue($showValue[3][$i][14],'0.0-0.0'); if($enable==0) { continue; } $checkBoxName=$flag . 'checkBox_'.$showNum; $deleteNo = $flag . 'deleteno_'.$showNum; if($showNum>3) echo ""; else echo ""; $showNum++; //echo ""; echo ""; for($j=1;$j< 14;$j++) { if($j==1 || $j==4 || $j==6) echo ""; } {//link status if($tcpLinkStat[$i]=='Available') $color="#0000ff"; else $color = "#FF0000"; $input_name = 'tcplinkStat_' . $i; echo ""; }//end link status $tcpflag =getBitValue($showValue[3][$i][14],'00.1-00.1'); if($tcpflag) echo ""; echo ""; } //====more button==== if($showNum>4) { echo ""; echo ""; } echo "
No.{$showTcpmArr[$j]}StatusAdmin StateDelete"; echo ""; echo "
$i{$showValue[3][$i][$j]} {$tcpLinkStat[$i]}Unlocked"; else echo "Locked"; echo "
More >>
Hide >>
"; echo "
"; echo ""; echo ""; echo ""; echo "
CLI manipulation+
 --"; echo ""; $flag = 'cli'; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; //echo ""; echo ""; for($i=0; $i < $cli_conv_num; $i++) { $checkBoxName=$flag . 'checkBox_'.$i; $deleteNo = $flag . 'deleteno_'.$i; $cli_prefix[$i][Prefix] = ord($cli_prefix[$i][Prefix])==0 ? '--' : $cli_prefix[$i][Prefix]; $cli_prefix[$i][add_digits] = ord($cli_prefix[$i][add_digits])==0 ? '--' : $cli_prefix[$i][add_digits]; // $cli_prefix[$i][delete_length] = strlen($cli_prefix[$i][delete_length])==0 ? '--' : $cli_prefix[$i][delete_length]; // $cli_prefix[$i][in_property] = strlen($cli_prefix[$i][in_property])==0 ? '--' : $cli_prefix[$i][in_property]; // $cli_prefix[$i][out_property] = strlen($cli_prefix[$i][out_property])==0 ? '--' : $cli_prefix[$i][out_property]; // $cli_prefix[$i][add_length] = strlen($cli_prefix[$i][add_length])==0 ? '--' : $cli_prefix[$i][add_length]; // $cli_prefix[$i][valid_length] = strlen($cli_prefix[$i][valid_length])==0 ? '--' : $cli_prefix[$i][valid_length]; if($i>3) echo ""; else echo ""; //echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; //echo ""; echo ""; echo ""; } if($cli_conv_num>10) { echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; } //==more button==== if($cli_conv_num>4) { echo ""; echo ""; } echo "
No.InPrefixDel lenOutAdd lenAdd digitsValid lenDelete"; echo "Delete"; echo ""; echo "
$i{$cli_conv_showText_define[$cli_prefix[$i][in_property]]}{$cli_prefix[$i][Prefix]}{$cli_prefix[$i][delete_length]}{$cli_conv_showText_define[$cli_prefix[$i][out_property]]}{$cli_prefix[$i][add_length]}{$cli_prefix[$i][add_digits]}{$cli_prefix[$i][valid_length]}
Delete"; echo ""; echo "
More >>
Hide >>
License control "; $sysId = '350_99_99'; $oidStr = "2.5"; showParameter($sysId,$oidStr,1,1,0,'','','Update'); echo "
"; { echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo "
"; echo "  "; echo ""; echo ""; echo "   "; echo ""; echo ""; echo "

$strBack"; echo "

"; } echo "
"; ?>