";
echo "";
echo "| Parameters | ";
echo "Value | ";
echo "
";
if($setname=="Local Prefix")
{
//================get the value of the local prefix of mnp=========
$database="OBJ_370";
$sql="select initValue from param_99 where level_1=2 and level_2=1 and level_3=7 and instanceNo=$instanceNo ";
$result=@mysqli_query($pubConn,$sql);
$rows=@mysqli_fetch_array($result);
$tmp_value=$rows[initValue];
$temp="";
for($num=0;$num<16;$num++)
{
$str=substr($tmp_value,$num*2,2);
$str=hexdec($str);
$str=chr($str);
$temp.=$str;
}
$local_prefix_value=trim($temp);
echo "
";
echo "| Local Prefix | ";
echo " | ";
echo "
";
}
//=====================white list number for eir============================
if($setname=="white_list_number")
{
//================get the value of this instanceNo=========
$database="OBJ_380";
$sql="select initValue from param_99 where level_1=2 and level_2=1 and level_3=2 and instanceNo=$instanceNo ";
$result=@mysqli_query($pubConn,$sql);
$rows=@mysqli_fetch_array($result);
$start_type=getBitValue($rows[initValue],'0.0-2.7');
$end_type=getBitValue($rows[initValue],'8.0-10.7');
$start_final=getBitValue($rows[initValue],'3.0-3.7');
$end_final=getBitValue($rows[initValue],'11.0-11.7');
$start_serial=getBitValue($rows[initValue],'4.0-6.7');
$end_serial=getBitValue($rows[initValue],'12.0-14.7');
$start_software=getBitValue($rows[initValue],'7.0-7.7');
$end_software=getBitValue($rows[initValue],'15.0-15.7');
//=====start IMEI type approval code
echo "";
echo "| Start IMEI Type Approval Code | ";
echo " | ";
echo "
";
//=====end IMEI type approval code
echo "";
echo "| End IMEI Type Approval Code | ";
echo " | ";
echo "
";
//=====start IMEI final assembly code
echo "";
echo "| Start IMEI Final Assembly Code | ";
echo " | ";
echo "
";
//=====end IMEI final assembly code
echo "";
echo "| End IMEI Final Assembly Code | ";
echo " | ";
echo "
";
//=====start IMEI serial number
echo "";
echo "| Start IMEI Serial Number | ";
echo " | ";
echo "
";
//=====end IMEI serial number
echo "";
echo "| End IMEI Serial Number | ";
echo " | ";
echo "
";
//=====start IMEI software version
echo "";
echo "| Start IMEI Software Version | ";
echo " | ";
echo "
";
//=====end IMEI software version
echo "";
echo "| End IMEI Software Version | ";
echo " | ";
echo "
";
}
if($setname != 'BTS' && $oIdstrarr[0] !='no'){
{//xxx No.
echo "";
echo "| $setname No. | ";
if($instanceNo == 'new')
{
switch($setname){
case 'TrunkGroup':
$nowid = $trunkgp;
break;
case 'Linkset':
$nowid = $linkset;
break;
default:
$nowid = $instanceNo;
}
$objDb = omcGetObjDb($sysTypeNo);
$paramConfTable = omcGetObjTbl($sysTypeNo,paramConf);
$objWhereStr =getLevelWhere($oIdstrarr[0]);
//200510004 $paramTable = 'param_99';
$getInstanceSql="SELECT initValue,instanceNo FROM $paramTable
WHERE $objWhereStr";
// echo "$getInstanceSql";
$result=mysqli_query($pubConn,$getInstanceSql);
$flagoffset = omcShowParam($oIdstrarr[0],$sysTypeNo,'flag',$language,'1');
echo "";
$nShowsize ='40%';
echo "";
echo " | ";
}
else
{
//echo "$instanceNo | ";
echo "$routingNo[0] | ";
}
echo "
";
}
}
for($j=1;$jlevelWhere=$levelWhere";
$othersElementParamTable='OBJ_225.param_99';
$getSql="SELECT initValue,instanceNo FROM $othersElementParamTable
WHERE $levelWhere and initValue LIKE '01%'";
if($DEBUG) echo "
getSql=$getSql";
$result =mysqli_query($pubConn,$getSql);
echo mysqli_error($pubConn);
$typeOffset = '1.0-1.7';
$tgOffset = '3.0-3.7';
$nameOffset = '14.0-23.7';
$i=0;
while($rows=mysqli_fetch_array($result))
{
if($DEBUG)echo "
initValue=$rows[initValue]";
$tmpType=getBitValue($rows[initValue],$typeOffset);
if($tmpType==0)
continue;
$type = hexdec($tmpType);
if($type==16 || $type == 17)
{
$tg = hexdec(getBitValue($rows[initValue],$tgOffset));
$name=getBitValue($rows[initValue],$nameOffset);
if($name==0)
$name=$tg;
else
$name=trim(toAscii($name));
$switchArr[$i][tg] = $tg;
$switchArr[$i][name] = $name;
$i++;
}
}
}//end otherelments
echo "";
echo "| Trunk Group | ";
echo "";
echo "";
echo " | ";
echo "
";
}
echo "
";
if(isset($convInstNo))
echo "\n