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 "| Signaling point code | ";
echo "";
for($i=0; $i<4; $i++)
echo "| {$spcTree_array[$i][0]} : {$spcTree_array[$spc_index[$i]][1]} : $row[$i] | ";
echo "
| ";
echo "
";
{//gtt
echo "";
echo "| $strE164Number | ";
$sysId = "223_99_99";
$oidStr = "2.1.32";
$instanceNo=0;
echo "| ";
$doingOtherUlr="$PHP_SELF?doingOtherFlag=1&setMnpGtt=1";
showParameter($sysId,$oidStr,2,1,$instanceNo,$doingOtherUlr);
echo " | ";
echo "";
showParameter($sysId,$oidStr,1,1);
echo " | ";
echo " |
";
/*
//========================Portability Flag===========================
echo "";
echo "| Portability Flag | ";
echo "";
$sysIdd = '370_99_99';
$oidStrr = "2.1.1";
showParameter($sysIdd,$oidStrr,1,1,0,'','','Update');
echo " | ";
echo "
";
*/
//========================NPLR Number=================================
echo "";
echo "| NPLR Number | ";
echo " ";
$sysId = "370_99_99";
$oidStr = "2.1.2";
showParameter($sysId,$oidStr,1,1);
echo " | ";
echo "
";
//=======================Routing Number===============================
echo "";
echo "| Routing Number | ";
echo " ";
$sysId = "370_99_99";
$oidStr = "2.1.3";
showParameter($sysId,$oidStr,1,1);
echo " | ";
echo "
";
//=======================Routing Method===============================
echo "";
echo "| Routing Method | ";
echo " ";
$sysId = "370_99_99";
$oidStr = "2.1.4";
showParameter($sysId,$oidStr,1,1);
echo " | ";
echo "
";
//=======================RN Position===================================
echo "";
echo "| RN Position | ";
echo " ";
$sysId = "370_99_99";
$oidStr = "2.1.5";
showParameter($sysId,$oidStr,1,1);
echo " | ";
echo "
";
//=======================local prefix=================================
//====================get the default value of local prefix==============
$database="OBJ_370";
$sql="select initValue from paramConf where level_1=2 and level_2=1 and level_3=7 ";
$result=@mysqli_query($pubConn,$sql);
$rows=@mysqli_fetch_array($result);
$local_prefix_default_value=$rows[initValue];
//===================get the count of local prefix========================
$database="OBJ_370";
$sql="select instanceNo,initValue from param_99 where level_1=2 and level_2=1 and level_3=7 ";
$result=@mysqli_query($pubConn,$sql);
$rows=@mysqli_fetch_array($result);
$local_prefix_count=0;
do{
$initValue_tmp=$rows[initValue];
if(strcmp($initValue_tmp,$local_prefix_default_value)!=0)
{
$tmp_value=getBitValue($rows[initValue],'0.0-15.7');
$temp="";
for($num=0;$num<16;$num++)
{
$str=substr($tmp_value,$num*2,2);
$str=hexdec($str);
$str=chr($str);
$temp.=$str;
}
$local_prefix_prefix[$local_prefix_count]=trim($temp);
$local_prefix_instanceNo[$local_prefix_count]=$rows[instanceNo];
$local_prefix_count++;
}
}while($rows=mysqli_fetch_array($result));
//====================get the unused instanceNo of local prefix====
$database="OBJ_370";
$sql="select instanceNo,initValue from param_99 where level_1=2 and level_2=1 and level_3=7 ";
$result=@mysqli_query($pubConn,$sql);
$rows=@mysqli_fetch_array($result);
do{
$initValue_tmp=$rows[initValue];
if(strcmp($initValue_tmp,$local_prefix_default_value)==0)
{
$unused_local_prefix_instanceNo=$rows[instanceNo];
break;
}
}while($rows=mysqli_fetch_array($result));
$objIdStr = "no-2.1.7";
$sysId = "370_99_99";
$webname = "MNP";
$setname = "Local Prefix";
$backurl = "./mnp.php?license=$license&users=$users";
echo "";
if($local_prefix_count>=32)
{
echo "| Local Prefix | ";
//echo "+";
}
else
{
echo "Local Prefix               ";
echo "+ | ";
}
echo "";
echo "";
echo " | ";
echo "
";
}//end gtt
echo "
";
?>
";
?>
";
//===============delete the local prefix by instanceNo==========
$database="OMC_PUB";
$setsql = "update OBJ_370.param_99 set initValue='$local_prefix_default_value' where level_1=2 and level_2=1 and level_3=7 and instanceNo={$local_prefix_instanceNo_tmp[$i]} ";
if($DEBUG)
echo "setsql=$setsql