'Disable', 1 => 'IN', 3 => 'OUT', 5 => 'BI-direction', 7 => 'Lease-Line', ); $LccpE1Arr = array( 0 => '0', 1 => '1', 2 => '2', 3 => '3', 4 => '4', 5 => '5', 6 => '6', 7 => '7' ); $LccpTimeslotArr = array( 1 => '1', 2 => '2', 3 => '3', 4 => '4', 5 => '5', 6 => '6', 7 => '7', 8 => '8', 9 => '9', 10 => '10', 11 => '11', 12 => '12', 13 => '13', 14 => '14', 15 => '15', 17 => '17', 18 => '18', 19 => '19', 20 => '20', 21 => '21', 22 => '22', 23 => '23', 24 => '24', 25 => '25', 26 => '26', 27 => '27', 28 => '28', 29 => '29', 30 => '30', 31 => '31' ); if($_SERVER['REQUEST_METHOD'] == "POST") { //direction $oidstr = "2.1.3"; $objWhereStr = getLevelWhere($oidstr); $selSql = "select initValue from $paramTab where $objWhereStr and subSysNo='$subSysNo' and instanceNO='$E1no' "; $result = mysqli_query($pubConn,$selSql); $row = mysqli_fetch_array($result); $setValue = $row[initValue]; for($i=0;$i<32;$i++) { $tmp = ${"direction_$i"}; $tmp = omc_keep_length(decbin($tmp),'0',3); $bitStr = $i.".0-".$i.".2"; $setValue = setBitValue($setValue,$bitStr,$tmp); } $setValue = strtoupper($setValue); $updSql = "update $paramTab set initValue='$setValue' where $objWhereStr and subSysNo='$subSysNo' and instanceNO='$E1no' "; mysqli_query($pubConn,$updSql); //Lccp $oidstr = "2.1.4"; $objWhereStr = getLevelWhere($oidstr); $selSql = "select initValue from $paramTab where $objWhereStr and subSysNo='$subSysNo' and instanceNO='$E1no' "; $result = mysqli_query($pubConn,$selSql); $row = mysqli_fetch_array($result); $setValue = $row[initValue]; for($i=0;$i<32;$i++) { $tmp = ${"lccp_e1_$i"}; if(isset($tmp)) { $tmp = omc_keep_length(decbin($tmp),'0',3); $bitStr = $i.".5-".$i.".7"; $setValue = setBitValue($setValue,$bitStr,$tmp); } $tmp = ${"lccp_timeslot_$i"}; if(isset($tmp)) { $tmp = omc_keep_length(decbin($tmp),'0',5); $bitStr = $i.".0-".$i.".4"; $setValue = setBitValue($setValue,$bitStr,$tmp); } } $setValue = strtoupper($setValue); $updSql = "update $paramTab set initValue='$setValue' where $objWhereStr and subSysNo='$subSysNo' and instanceNO='$E1no' "; mysqli_query($pubConn,$updSql); echo ""; } //========================================================== //输出并显示数据 //========================================================== echo "
"; { echo ""; echo ""; echo ""; echo ""; echo "
"; //echo "Configuration > Network > Element > PCR > Channel"; echo "Configuration > Network > PCR > Channel"; echo ""; showHelp($helpId); echo "
"; echo "
"; echo ""; echo ""; echo ""; echo ""; echo "
"; echo "PCR Channel set:  "; echo "$subChannelName"; echo ""; echo ""; echo "    "; echo ""; echo ""; echo "

$strBack"; echo "

"; } ?> "; echo ""; echo ""; echo ""; echo "
"; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; for($i=0;$i<16;$i++) { echo ""; echo ""; {//Direction $bitStr = $i.".0-".$i.".2"; $direction = bindec(getBitValue($directionSource,$bitStr)); echo ""; }//end direction if($direction==7)//lease-Line { $disableStr = ''; } else $disableStr = 'disabled'; {//LCCP-E1 $lccp_e1_bitStr = $i.".5-".$i.".7"; $lccp_e1 = bindec(getBitValue($LccpSource,$lccp_e1_bitStr)); echo ""; }//end LCCP-E1 {//LCCP-Timeslot $lccp_timeslot_bitStr = $i.".0-".$i.".4"; $lccp_timeslot = bindec(getBitValue($LccpSource,$lccp_timeslot_bitStr)); echo ""; }//end LCCP-Timeslot echo ""; } echo "
Timeslot#DirectionLCCP-E1LCCP-Timeslot
$i"; echo ""; echo ""; echo "
"; echo "
"; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; for($i=16;$i<32;$i++) { echo ""; echo ""; { $bitStr = $i.".0-".$i.".2"; $direction = bindec(getBitValue($directionSource,$bitStr)); echo ""; } if($direction==7)//lease-Line { $disableStr = ''; } else $disableStr = 'disabled'; { $lccp_e1_bitStr = $i.".5-".$i.".7"; $lccp_e1 = bindec(getBitValue($LccpSource,$lccp_e1_bitStr)); echo ""; } { $lccp_timeslot_bitStr = $i.".0-".$i.".4"; $lccp_timeslot = bindec(getBitValue($LccpSource,$lccp_timeslot_bitStr)); echo ""; } echo ""; } echo "
Timeslot#DirectionLCCP-E1LCCP-Timeslot
$i"; echo ""; echo ""; echo "
"; echo "
"; echo "
"; echo "

"; ?>