"; $sysId = $_REQUEST['sysId']; //echo "
sysId=$sysId
"; $canwrite_flag=checkWritePrivilege(); //echo "writeFlag=$canwrite_flag
"; //***** $url_temp=$_SERVER["REQUEST_URI"]; //***** //$url_temp=$_SERVER["REQUEST_URI"]; //echo "This page URL:$url_temp
"; $TEST=$_REQUEST; if(0) { echo "
";
	print_r($TEST);
	echo "
"; } echo "
"; $sysId=$_REQUEST['sysId']; if (isset($sysId)) { $sysIdArr=explode('_',$sysId); $sysTypeNo=$sysIdArr[0]; //echo "sysTypeNo=$sysTypeNo
"; $sysNo=$sysIdArr[1]; $subSysNo=$sysIdArr[2]; } // echo "sys=$sysTypeNo"; $objDb='OBJ_'.$sysTypeNo; //$objDbConn = mysqli_connect($OMC_server[0]['host'],$OMC_server[0]['user'],$OMC_server[0]['password'], "OMC_PUB"); $objDbConn = mysqli_connect($OMC_server[0]['host'],$OMC_server[0]['user'],$OMC_server[0]['password'],$objDb); $paraConfTable=$objDb.'.paramConf'; $pubDb='OMC_PUB'; if(checkIndependSystem($sysTypeNo))//Plat { $paraTable=$objDb.".param_".$sysNo; } else{ $paraTable=$objDb.".param_99"; } CheckSystemStatus($sysTypeNo,$sysNo,$subSysNo); $tabConf=GetTabConf($sysTypeNo); //echo"tab=GetTabConf($sysTypeNo)
"; $table_id = $_REQUEST['table_id']; //echo"table_id=GetTabConf($table_id)
"; $sub_table_id=$_REQUEST['sub_table_id']; //echo "sub_table_id=$sub_table_id
"; $table_level = $_REQUEST['table_level']; $instanceNo = $_REQUEST['instanceNo']; $deleteOid = $_REQUEST['deleteOid']; $updateOid = $_REQUEST['updateOid']; $getTableOid = $_REQUEST['getTableOid']; $deleteIndex = $_REQUEST['deleteIndex']; $delete=$_REQUEST['delete']; //echo "num=$tableOid
"; $tableOid=$tabConf[$table_id]['OID']; //echo "num=$tableOid
"; $subTabConf=GetSubTabConf($sysTypeNo,$tableOid); //print_r($subTabConf) ; //echo "num=$tableOid"; //Get the columnTable conf $oidwhere=getLevelWhere($tableOid); $size=sizeof(explode(".",$tableOid)); $oidwhere.=" AND level_".($size+1).">0 "; $lastlevel="level_".($size+2); $sql="select * from $paraConfTable where $oidwhere order by level_1,level_2,level_3,level_4,level_5,level_6,level_7,level_8,level_9,level_10 "; $res=@mysqli_query($objDbConn,$sql); $num=@mysqli_num_rows($res); //echo "num=$num"; //var_dump($sql); $scalarTableIndex=0; $columnTableIndex=0; $scalarItemIndex=0; $scalarItemReadCount=0; for($i=0;$i<$num;$i++) { $row=@mysqli_fetch_array($res); if($row[$lastlevel] == 0) { if($row[maxAccess] == ACCESS_ENTRY && strstr($row[name_2],"Table")) { $columnTable[$columnTableIndex][Name]=adjustTableName($row[name_2]); $columnTable[$columnTableIndex][OID]=getOIDByRow($row); $columnTable[$columnTableIndex][ShowName]=$columnTable[$columnTableIndex][Name]; if(strstr($row[desc_2],"Name:")) { $new_name=explode("Name:",$row[desc_2]); $columnTable[$columnTableIndex][ShowName]=str_replace(";","",$new_name[sizeof($new_name)-1]); } $columnTableIndex++; } } } if(0) { echo "
";
	print_r($columnTable);
	echo "
"; } if(0) { echo "
";
	print_r($subTabConf);
	echo "
"; } if(!isset($table_id)) $table_id=0; if(!isset($sub_table_id)) { if($subTabConf[ButtonCount] > 0 || $subTabConf[ScalarParamDisplayCount] > 0) $sub_table_id=999; else $sub_table_id=0; } if(0) { echo "sysId=$sysId
"; echo "table_id=$table_id
"; echo "instanceNo=$instanceNo
"; echo "table_level=$table_level
"; echo "sub_table_id=$sub_table_id
"; } $instanceNo = $_REQUEST['instanceNo']; $table_level = $_REQUEST['table_level']; echo ""; echo ""; echo ""; echo ""; echo ""; if((($subTabConf[ButtonCount] > 0 || $subTabConf[ScalarParamDisplayCount] > 0) && $subTabConf[SubMenuCount] > 0) || ($subTabConf[ButtonCount] == 0 && $subTabConf[ScalarParamDisplayCount] == 0 && $subTabConf[SubMenuCount] > 1)) { if($subTabConf[ButtonCount] > 0 || $subTabConf[ScalarParamDisplayCount] > 0) { if($sub_table_id == 999) echo ""; else echo ""; echo " {$subTabConf[ShowName]} "; echo ""; } for($i=0;$i<$subTabConf[ColumnTableCount];$i++) { if($subTabConf[ColumnTable][$i][SubMenuFlag] == 1) { if($i == $sub_table_id) echo ""; else echo ""; echo " {$subTabConf[ColumnTable][$i][ShowName]} "; echo ""; } } echo "
"; } echo "
"; /************************** Operation ********************************/ if($_SERVER['REQUEST_METHOD'] == "POST") { $delSql="delete from $paraTable where instanceNo='' "; if(checkPlatWhoHaveSubSysNo($sysTypeNo,$sysNo)) $delSql.="and subSysNo='$subSysNo' "; mysqli_query($objDbConn,$delSql); echo "\n\n"; echo "
"; if($_REQUEST['get']) { if($DEBUG) echo "
sub_table_id:$sub_table_id sysId:$sysId
"; //get scalar table if($sub_table_id == 999) { if($subTabConf[ScalarParamDisplayCount] > 0) { $count=0; for($i=0;$i<$subTabConf[ScalarParamCount];$i++) { if($subTabConf[ScalarParam][$i][GetFlag] == 1) { $getArr[$count][sysId]=$sysId; $getArr[$count][oid]=$subTabConf[ScalarParam][$i][OID]; $getArr[$count][instanceNo]=""; $count++; } } if($count > 0) getParam($getArr); } } //get column table else { $getArr[0][sysId]=$sysId; $getArr[0][oid]=$subTabConf[ColumnTable][$sub_table_id][OID]; //echo `sub_table_id:`.$getArr[0][oid]; if($instanceNo=="0000") $getArr[0][instanceNo]=""; else $getArr[0][instanceNo]=$instanceNo; //Get the timeslot parameter from the plat(trunk group id) if($sysTypeNo == SYSTYPENO_MSC) { //echo "
sub_table_id:$sub_table_id sysId:$sysId
"; $trunk_table_oid=GetOIDByName(SYSTYPENO_MSC,"channelEntry"); if($getArr[0][oid] == $trunk_table_oid) { $tmps=explode(".",$instanceNo); $grounp_id=GetTrunkGroupID($tmps[0]+0,$tmps[1]+0); if($grounp_id == 1) $getArr[0][sysId]="320_1_0"; else $getArr[0][sysId]="320_0_0"; if(!GetSystemStatus(SYSTYPENO_MSC,$grounp_id)) $getArr[0][sysId]="320_99_99"; } } getParam($getArr); } } else if($_REQUEST['set']) { //fj if(0) { echo "
";
                	print_r($sub_table_id);
        	        echo "
"; } if($sub_table_id == 999) { if($subTabConf[ScalarSetParamCount] > 0) { $commIdStr=""; for($i=0;$i<$subTabConf[ScalarParamCount];$i++) { if($subTabConf[ScalarParam][$i][SetFlag] == 1) { $tmpCommIdStr=oidSysCommSend($sysId,3,$subTabConf[ScalarParam][$i][OID],-1); $commIdStr=$commIdStr.$tmpCommIdStr; $count++; } } // fj if(0) { echo "
";
                        print_r($commIdStr);
                        echo "
"; } if($count > 0) checkState($commIdStr,"./param_show_table.php?sysId=$sysId&table_id=$table_id&instanceNo=$instanceNo&table_level=$table_level&sub_table_id=$sub_table_id"); } } } else if($_REQUEST['buttonOperate']) { $commandIndex=$_POST['commandIndex']; //echo "buttonOperate=$buttonOperate,commandIndex=$commandIndex
"; $oid=$subTabConf[Button][$commandIndex][OID]; $tmpwhere=getLevelWhere($oid); $oidstr=str_replace(".",",",$oid); $oidsep=explode(".",$oid); $oidlen=sizeof($oidsep); $valuestr=""; for($oi=0;$oi<$oidlen;$oi++) { $valuestr.="level_".($oi+1); if($oi != ($oidlen-1)) $valuestr.=","; } $delSql="delete from $paraTable where $tmpwhere and instanceNo='0000' "; if(checkPlatWhoHaveSubSysNo($sysTypeNo,$sysNo)) $delSql.="and subSysNo='$subSysNo' "; mysqli_query($objDbConn,$delSql); $insertSql="insert into $paraTable($valuestr,instanceNo,initValue,readValue) values($oidstr,'0000',{$subTabConf[Button][$commandIndex][Value]},{$subTabConf[Button][$commandIndex][Value]}) "; if(checkPlatWhoHaveSubSysNo($sysTypeNo,$sysNo)) $insertSql="insert into $paraTable($valuestr,instanceNo,initValue,readValue,subSysNo) values($oidstr,'0000',{$subTabConf[Button][$commandIndex][Value]},{$subTabConf[Button][$commandIndex][Value]},{$subSysNo}) "; //debug_log("/tmp/debug.txt",$insertSql); mysqli_query($objDbConn,$insertSql); echo mysqli_error($objDbConn); $commIdStr=oidSysCommSend($sysId,3,$oid,-1,"0000"); checkState($commIdStr,"./param_show_table.php?sysId=$sysId&table_id=$table_id&table_level=$table_level&instanceNo=0000&sub_table_id=$sub_table_id"); } } if($_REQUEST['delete'] == 1) { if(0) { echo "sysId=$sysId
"; echo "table_id=$table_id
"; echo "sub_table_id=$sub_table_id
"; echo "table_level=$table_level
"; echo "instanceNo=$instanceNo
"; echo "deleteOid=$deleteOid
"; echo "updateOid=$updateOid
"; echo "getTableOid=$getTableOid
"; echo "deleteIndex=$deleteIndex
"; } //Set the value=6 in the db $tmpwhere=getLevelWhere($deleteOid); $sql="update $paraTable set initValue='6' where $tmpwhere and instanceNo='$deleteIndex' "; if(checkPlatWhoHaveSubSysNo($sysTypeNo,$sysNo)) $sql.="and subSysNo='$subSysNo' "; mysqli_query($objDbConn,$sql); //Send delete command $commIdStr=oidSysCommSend($sysId,3,$deleteOid,-1,$deleteIndex); checkState($commIdStr,"./param_show_table.php?sysId=$sysId&table_id=$table_id&sub_table_id=$sub_table_id&table_level=$table_level&instanceNo=$instanceNo"); //Update the entries field if(strlen(trim($updateOid)) > 0) { $commIdStr=oidSysCommSend($sysId,0,$updateOid,-1,$instanceNo); checkState($commIdStr,"./param_show_table.php?sysId=$sysId&table_id=$table_id&sub_table_id=$sub_table_id&table_level=$table_level&instanceNo=$instanceNo"); } //Get the table $tmpArr[0][sysId]=$sysId; $tmpArr[0][oid]=$getTableOid; if($instanceNo=="0000") $tmpArr[0][instanceNo]=""; else $tmpArr[0][instanceNo]=$instanceNo; getParam($tmpArr); //delete the sub table object DeleteSubTableData($sysTypeNo,$deleteIndex,$getTableOid,$paraTable); } $getAll = $_REQUEST['getAll']; if($DEBUG) echo "
getAll:$getAll
"; if($getAll) { echo "\n\n"; for($i = 1; $i <= 4096; $i++ ) print(" "); echo "
"; //Insert record when the scalar item is not exist $scalar_oids=GetAllOIDArr($sysTypeNo,SCALAR_ITEM_OID); //echo "scalar_oids=$scalar_oids"; $scalar_oids_num=sizeof($scalar_oids); for($i=0;$i<$scalar_oids_num;$i++) { $checkoid=$scalar_oids[$i].".0"; $oidwhere=getLevelWhere($checkoid); $checksql="select * from $paraTable where $oidwhere and instanceNo='0000' "; $checkres=@mysqli_query($objDbConn,$checksql); $checknum=@mysqli_num_rows($checkres); if($checknum == 0) { $insertlevel=str_replace("AND",",",$oidwhere); $insertsql="replace into $paraTable set initValue='',instanceNo='0000',$insertlevel "; if(checkPlatWhoHaveSubSysNo($sysTypeNo,$sysNo)) $insertsql="replace into $paraTable set subSysNo='$subSysNo',initValue='',instanceNo='0000',$insertlevel "; //echo "$insertsql
"; mysqli_query($objDbConn,$insertsql); echo mysqli_error($objDbConn); } } $getAllArr=GetAllOIDArr($sysTypeNo); if(0) { echo "
";
		print_r($getAllArr);
		echo "
"; } if (is_array($getAllArr)) $get_count=sizeof($getAllArr); for($i=0;$i<$get_count;$i++) { $tmpArr[$i][sysId]=$sysId; $tmpArr[$i][oid]=$getAllArr[$i]; $tmpArr[$i][instanceNo]=""; } getParam($tmpArr,1); } /******************************** Show *******************************/ //show scalar parameter //echo $sub_table_id; // echo "
";
// print_r($subTabConf);
// echo "
"; if($sub_table_id == 999) { if($subTabConf['ScalarParamDisplayCount'] > 0) { echo ""; echo ""; echo ""; echo ""; echo ""; for($i=0;$i<$subTabConf[ScalarParamCount];$i++) { if($subTabConf[ScalarParam][$i][MaxAccess] == 999) continue; //if the scalar leaf not exist in the db, insert it first $checklevel=getLevelWhere($subTabConf[ScalarParam][$i][OID]); $checksql="select * from $paraTable where $checklevel and instanceNo='0000' "; if(checkPlatWhoHaveSubSysNo($sysTypeNo,$sysNo)) $checksql.="and subSysNo='$subSysNo' "; $checkres=mysqli_query($objDbConn,$checksql); //var_dump($checksql); //echo "checksql:$checksql
"; echo mysqli_error($objDbConn); $checknum=mysqli_num_rows($checkres); if($checknum == 0) { $insertlevel=str_replace("AND",",",$checklevel); $insertsql="replace into $paraTable set initValue='',instanceNo='0000',$insertlevel "; if(checkPlatWhoHaveSubSysNo($sysTypeNo,$sysNo)) $insertsql="replace into $paraTable set subSysNo='$subSysNo',initValue='',instanceNo='0000',$insertlevel "; mysqli_query($objDbConn,$insertsql); //echo "
$insertsql"; echo mysqli_error($objDbConn); } echo ""; echo ""; echo ""; echo ""; } echo "
"; echo "Parameter"; echo ""; echo "Value"; echo "
{$subTabConf[ScalarParam][$i][ShowName]}"; if($subTabConf[ScalarParam][$i][ValueType] == VALUE_OPAQUE) { showParameter($sysId,$subTabConf[ScalarParam][$i][OID],'0000'); } else { showParameterAdv($sysId,$subTabConf[ScalarParam][$i][OID],'0000'); } echo "
"; } //get button if($subTabConf[ScalarParamDisplayCount] > 0) { echo "  "; } //set button if($subTabConf[ScalarSetParamCount] > 0) { if($canwrite_flag) echo "  "; else echo "  "; } //other button echo ""; if($subTabConf[ButtonCount] > 0) { for($i=0;$i<$subTabConf[ButtonCount];$i++) { if($canwrite_flag) echo " "; else echo " "; } } } //column table else { //echo "AAA=$sub_table_id"; $singleTabConf=$subTabConf[ColumnTable][$sub_table_id]; if(0) { echo "
";
		print_r($singleTabConf);
		echo "
"; } $singleTabInfo=GetSingleTableInfo($singleTabConf,$sysTypeNo); if(0) { echo"AA
"; echo "
";
		print_r($singleTabInfo);
		echo "
"; } //PPS COS table if($sysTypeNo == SYSTYPENO_PPS && $table_level == 1 && $table_id == 1) { //-------------- TariffEntries => MOTariffID ----------- $tariff_id=2; $singleTabInfo[ColumnParam][$tariff_id][EntriesFlag]=0; $singleTabInfo[ColumnParam][$tariff_id][NestEntryOID]=""; $singleTabInfo[ColumnParam][$tariff_id][RawName]="tariffMOTariffID"; $singleTabInfo[ColumnParam][$tariff_id][ShowName]="MO Tariff ID"; //-------------- ServiceControlEntries => smsNotificationWhenRecharge ----------- $tariff_id=3; $singleTabInfo[ColumnParam][$tariff_id][EntriesFlag]=0; $singleTabInfo[ColumnParam][$tariff_id][NestEntryOID]=""; $singleTabInfo[ColumnParam][$tariff_id][RawName]="smsNotificationWhenRecharge"; $singleTabInfo[ColumnParam][$tariff_id][ShowName]="Notification When Recharge"; //-------------- AccountValidityEntries => smsChargeWhenInquiryBySMS ----------- $tariff_id=4; $singleTabInfo[ColumnParam][$tariff_id][EntriesFlag]=0; $singleTabInfo[ColumnParam][$tariff_id][NestEntryOID]=""; $singleTabInfo[ColumnParam][$tariff_id][RawName]="smsChargeWhenInquiryBySMS"; $singleTabInfo[ColumnParam][$tariff_id][ShowName]="Charge When Inquiry By SMS"; //-------------- SMSNotificationInquiryEntries => smsNotificationWhenCleanBalance ----------- $tariff_id=5; $singleTabInfo[ColumnParam][$tariff_id][EntriesFlag]=0; $singleTabInfo[ColumnParam][$tariff_id][NestEntryOID]=""; $singleTabInfo[ColumnParam][$tariff_id][RawName]="smsNotificationWhenCleanBalance"; $singleTabInfo[ColumnParam][$tariff_id][ShowName]="Notification When Clean Balance"; } showNavigateTitle($table_id,$sub_table_id,$table_level,$sysId,$columnTable,$instanceNo,"show"); echo "
"; echo "
"; echo ""; //table header echo ""; $showFieldCount=0; for($i=0;$i<$singleTabInfo[ColumnParamCount];$i++) { if($singleTabInfo[ColumnParam][$i][KeyFlag] == 0) continue; $showFieldCount++; if($i == $singleTabInfo[TableDeletePos]) { echo ""; } else { echo ""; } } echo ""; //table row object $showObject=GetAllRowData($singleTabInfo,$paraTable,$instanceNo,$sysId); if(!isset($order)) $order=$singleTabInfo[ColumnParam][$singleTabInfo[TableIndexPos]][LastOID]; $ascFlag=1; if(0) { echo "
";
		print_r($showObject);
		echo "
"; } //PPS COS table if($sysTypeNo == SYSTYPENO_PPS && $table_level == 1 && $table_id == 1) { if(sizeof($showObject) > 0) { foreach($showObject as $instance => $obj) { $cos_instance=omc_keep_length($instance,"0",4); if($_SERVER['REQUEST_METHOD'] == "POST" && $get) { $getParam_showFinishResultFlag=0; $getArr[0][instanceNo]=$cos_instance; $getArr[0][oid]="2.2.51.1"; $getArr[0][sysId]=$sysId; $getArr[1][instanceNo]=$cos_instance; $getArr[1][oid]="2.2.52.1"; $getArr[1][sysId]=$sysId; $getArr[2][instanceNo]=$cos_instance; $getArr[2][oid]="2.2.53.1"; $getArr[2][sysId]=$sysId; $getArr[3][instanceNo]=$cos_instance; $getArr[3][oid]="2.2.54.1"; $getArr[3][sysId]=$sysId; $getArr[4][instanceNo]=$cos_instance; $getArr[4][oid]="2.2.55.1"; $getArr[4][sysId]=$sysId; $getArr[5][instanceNo]=$cos_instance; $getArr[5][oid]="2.2.56.1"; $getArr[5][sysId]=$sysId; $getArr[6][instanceNo]=$cos_instance; $getArr[6][oid]="2.2.57.1"; $getArr[6][sysId]=$sysId; $getArr[7][instanceNo]=$cos_instance; $getArr[7][oid]="2.2.58.1"; $getArr[7][sysId]=$sysId; $getArr[8][instanceNo]=$cos_instance; $getArr[8][oid]="2.2.59.1"; $getArr[8][sysId]=$sysId; $getArr[9][instanceNo]=$cos_instance; $getArr[9][oid]="2.2.60.1"; $getArr[9][sysId]=$sysId; getParam($getArr); $getParam_showFinishResultFlag=1; } $value=getParamValue($sysId,"2.2.51.1.4","{$cos_instance}.0000"); $showObject[$instance][3]=$value; //echo "$instance,$showValue
"; $value=getParamValue($sysId,"2.2.54.1.4","{$cos_instance}.0000"); $showValue=translateValueToOpt(1,3,"disable=0;enable=1",$value); $showObject[$instance][4]=$showValue; $value=getParamValue($sysId,"2.2.54.1.10","{$cos_instance}.0000"); $showValue=translateValueToOpt(1,3,"notCharge=0;charge=1",$value); $showObject[$instance][5]=$showValue; $value=getParamValue($sysId,"2.2.54.1.12","{$cos_instance}.0000"); $showValue=translateValueToOpt(1,3,"disable=0;enable=1",$value); $showObject[$instance][6]=$showValue; } } } $showObject=BubbleOrder($showObject,$order,$ascFlag); if(sizeof($showObject) > 0) { foreach($showObject as $instance => $obj) { if($obj[1] === null || $obj[1] === ''||$obj[1]==='Error:NoSuchInstance'){ continue; } echo ""; for($i=0;$i<$singleTabInfo[ColumnParamCount];$i++) { if($singleTabInfo[ColumnParam][$i][KeyFlag] == 0) continue; $LastOID=$singleTabInfo[ColumnParam][$singleTabInfo[TableIndexPos]][LastOID]; $newIndex=$obj[$LastOID]; if($singleTabInfo[TableLevel]==1) $nextInstance=omc_keep_length($newIndex,"0",4); else if($singleTabInfo[TableLevel]==2) $nextInstance=$instanceNo.".".omc_keep_length($newIndex,"0",4); else if($singleTabInfo[TableLevel]==3) $nextInstance=$instanceNo.".".omc_keep_length($newIndex,"0",4); if($i == $singleTabInfo[TableDeletePos]) { echo ""; } else if($singleTabInfo[ColumnParam][$i][EntriesFlag] == 1) { $LastOID=$singleTabInfo[ColumnParam][$i][LastOID]; $value=$obj[$LastOID]; $next_table_level=$singleTabInfo[TableLevel]+1; $thisTableName=$singleTabInfo[ColumnParam][$i][RawName]; $tmpnum=strlen($thisTableName); for($tmpi=0;$tmpi<$tmpnum;$tmpi++) { if($thisTableName[$tmpi] < 'a' || $thisTableName[$tmpi] > 'z') break; } $thisTableName=substr($thisTableName,$tmpi); $thisTableName=trim(str_replace("Entries","",$thisTableName)); $thisTableName=getShowNameOfField($thisTableName,-1); $tmpnum=count($columnTable); for($tmpi=0;$tmpi<$tmpnum;$tmpi++) { //echo "+$thisTableName+ +{$columnTable[$tmpi][Name]}+
"; if(strcasecmp($thisTableName,trim($columnTable[$tmpi][Name])) == 0) break; } $new_sub_table_id=$tmpi; //$new_sub_table_id=$sub_table_id+1; echo ""; } else if($i == $singleTabInfo[TableIndexPos]) { $LastOID=$singleTabInfo[ColumnParam][$i][LastOID]; $value=$obj[$LastOID]; echo ""; } //RelationPoint else if(strstr($singleTabInfo[ColumnParam][$i][Description],"RelationPoint")) { echo ""; } else { echo ""; } } echo ""; } } //new object if(strlen(trim($singleTabInfo[CreateOID])) > 0 && $canwrite_flag) { echo ""; echo ""; for($i=0;$i<$showFieldCount-1;$i++) { echo ""; } echo ""; } echo "
"; echo "Delete"; echo ""; echo ""; echo "{$singleTabInfo[ColumnParam][$i][ShowName]}"; echo ""; echo "
"; if($canwrite_flag) echo ""; else echo ""; echo ""; echo ""; echo "$value"; echo ""; echo ""; //PPS COS table if($sysTypeNo == SYSTYPENO_PPS && $table_level == 1 && $table_id == 1) echo "{$value}"; else echo "{$value}"; echo ""; $LastOID=$singleTabInfo[ColumnParam][$i][LastOID]; $value=$obj[$LastOID]; $tmp1=strstr($singleTabInfo[ColumnParam][$i][Description],"RelationPoint:"); $tmp2=explode(";",$tmp1); $tmp3=explode("RelationPoint:",$tmp2[0]); $rTableOid=$tmp3[1]; $showvalue=$value; if(trim($showvalue) == "--" || trim($showvalue)=="") { echo "--"; } else { $tmp1=explode(" ",$showvalue); $tmp2=$tmp1[1]; $tmp3=explode("-",$tmp2); $tmp4=omc_keep_length($tmp3[0],'0',4); $tmp5=omc_keep_length($tmp3[1],'0',4); $rInstanceNo=$tmp4.".".$tmp5; $rWhere=getLevelWhere($rTableOid); $rsql="select * from $paraTable where instanceNo='$rInstanceNo' and $rWhere "; $rres=mysqli_query($objDbConn,$rsql); $rnum=mysqli_num_rows($rres); // echo "$rsql"; if($rnum == 0) echo "--"; else { $new_table_level=getTableLevel($rTableOid,$sysTypeNo); $tmp1=explode(".",$rTableOid); $new_table_id=$tmp1[1]-1; //echo "rInstanceNo=$rInstanceNo,rTableOid=$rTableOid,new_table_level=$new_table_level,new_table_id=$new_table_id"; echo "$showvalue"; } } echo ""; $LastOID=$singleTabInfo[ColumnParam][$i][LastOID]; $value=$obj[$LastOID]; $value=translateValueToOpt($singleTabInfo[ColumnParam][$i][OperType],$singleTabInfo[ColumnParam][$i][ValueType],$singleTabInfo[ColumnParam][$i][Template],$value); if(strlen(trim($value)) == 0) $value="--"; echo "$value"; echo " 
"; $indexOid=$singleTabInfo[ColumnParam][$singleTabInfo[TableIndexPos]][OID]; echo ""; echo "New"; echo ""; echo "--
"; //get button echo "  "; //lock the channel if($sysTypeNo == SYSTYPENO_MSC && $singleTabInfo[TableEntryOID] == '2.4.3.1') { echo ""; echo ""; } //if not get channel, get the channel first if($sysTypeNo == SYSTYPENO_MSC && $singleTabInfo[TableEntryOID] == "2.4.3.1") { echo ""; echo ""; echo ""; echo ""; echo ""; $dualTableLevelWhere="T1.level_1=T2.level_1 AND T1.level_2=T2.level_2 AND T1.level_3=T2.level_3 AND T1.level_4=T2.level_4 AND T1.level_5=T2.level_5 AND T1.level_6=T2.level_6 AND T1.level_7=T2.level_7 AND T1.level_8=T2.level_8 AND T1.level_9=T2.level_9 AND T1.level_10=T2.level_10"; $count=0; $database="OMC_PUB"; $selSql = "SELECT T1.* FROM $paraTable AS T1,$paraConfTable AS T2 WHERE $dualTableLevelWhere AND T2.name_2='tsIndex' and instanceNo like '$instanceNo.%' "; $selRes = @mysqli_query($objDbConn,$selSql); $count=mysqli_num_rows($selRes); if($count==0) { if($hasEnter!=1) { $hasEnter=1; echo ""; echo "\n\n"; } } } } if(0) { echo "
";
	print_r($showObject);
	echo "
"; } echo ""; adjust_content_tail("down"); ?>