";
echo "| $i | ";
{//Enable
echo "";
$oidStr = "2.2.1";
$instanceNo = 0;
$doingOtherUlr="";
$order = $i+1;
showParameter($sysId,$oidStr,$order,1,$instanceNo,$doingOtherUlr,$otherWhereStr);
echo " | ";
}
{//CRC4
echo "";
$bitStr = "{0.$i-0.$i}";
$CRC4[$i]=bindec(getBitValue($CRC4Value,$bitStr));
if($i < 4)//后四个可以设置,前四个与8ke1板对应(默认为off => 0)
{
if($CRC4[$i] == 1)
{
$CRC4Value = setBitValue($CRC4Value,$bitStr,'0');
$oidstr = "2.2.3";
$objWhereStr = getLevelWhere($oidstr);
$updSql = "update $paramTab set initValue='$CRC4Value' where $objWhereStr and subSysNo='$this_subSysNo' ";
mysqli_query($pubConn,$updSql);
echo mysqli_error($pubConn);
if(0)echo " $updSql";
}
echo "{$CRC4Arr[0][name]}";
}
else
{
$oidStr = "2.2.3";
$instanceNo = 0;
$doingOtherUlr="";
$order = $i+1;
showParameter($sysId,$oidStr,$order,1,$instanceNo,$doingOtherUlr,$otherWhereStr);
}
echo " | ";
}
{//port type
echo "";
if(isset(${"portType_edit_$i"}))
{
echo "";
echo "";
}
else
{
echo "";
echo "{$portTypeArr[$portType][name]}";
}
echo" | ";
}
{//back off
echo "";
if($i < 4)//前四个与TG中的Backoff相反,设为on
{
echo "";
echo "{$backoffArr[1][name]}";
if($backoff!=1)
{
$oidstr = "2.1.2";
$objWhereStr = getLevelWhere($oidstr);
$selSql = "select initValue from $paramTab where $objWhereStr and subSysNo='$this_subSysNo' and instanceNo='$i' ";
$result = mysqli_query($pubConn,$selSql);
$row = mysqli_fetch_array($result);
$setValue = $row[initValue];
$setValue = setBitValue($setValue,'00.2-00.2','1');
$updSql = "update $paramTab set initValue='$setValue' where $objWhereStr and subSysNo='$this_subSysNo' and instanceNo='$i' ";
mysqli_query($pubConn,$updSql);
echo mysqli_error($pubConn);
}
}
else
{
$oidStr = "2.1.2";
$instanceNo = $i;
$doingOtherUlr="";
$order = 2;
showParameter($sysId,$oidStr,$order,1,$instanceNo,$doingOtherUlr,$otherWhereStr);
}
echo" | ";
}
{//circuit selection
echo "";
if($i < 4)//前四个与TG中的circuit selection相反,设为3
{
echo "";
echo "{$circuitSlcArr[3]}";
if($circuitSlc != 3)
{
$oidstr = "2.1.2";
$objWhereStr = getLevelWhere($oidstr);
$selSql = "select initValue from $paramTab where $objWhereStr and subSysNo='$this_subSysNo' and instanceNo='$i' ";
$result = mysqli_query($pubConn,$selSql);
$row = mysqli_fetch_array($result);
$setValue = $row[initValue];
$setValue = setBitValue($setValue,'00.0-00.1','11');
$updSql = "update $paramTab set initValue='$setValue' where $objWhereStr and subSysNo='$this_subSysNo' and instanceNo='$i' ";
mysqli_query($pubConn,$updSql);
echo mysqli_error($pubConn);
}
}
else
{
$oidStr = "2.1.2";
$instanceNo = $i;
$doingOtherUlr="";
$order = 1;
showParameter($sysId,$oidStr,$order,1,$instanceNo,$doingOtherUlr,$otherWhereStr);
}
echo" | ";
}
{//NT/LT
echo "";
$bitStr = "{0.$i-0.$i}";
$NTLT[$i]=bindec(getBitValue($NTLTValue,$bitStr));
if($i < 4)
{
echo "";
echo "--";
}
else
{
$oidStr = "2.1.1";
$instanceNo = 0;
$doingOtherUlr="";
$order = $i+1;
showParameter($sysId,$oidStr,$order,1,$instanceNo,$doingOtherUlr,$otherWhereStr);
}
echo " | ";
}
{//Group
echo "";
$oidStr = "2.1.2";
$instanceNo = $i;
$doingOtherUlr="";
$order = 4;
showParameter($sysId,$oidStr,$order,1,$instanceNo,$doingOtherUlr,$otherWhereStr);
echo" | ";
}
echo "Edit | ";
echo "
";
}
}
echo "