";
echo "";
echo "";
echo "";
echo "| Timeslot# | ";
echo "Direction | ";
echo "LCCP-E1 | ";
echo "LCCP-Timeslot | ";
echo " ";
for($i=0;$i<16;$i++)
{
echo "";
echo "| $i | ";
{//Direction
$bitStr = $i.".0-".$i.".2";
$direction = bindec(getBitValue($directionSource,$bitStr));
echo "";
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 "";
echo " | ";
}//end LCCP-E1
{//LCCP-Timeslot
$lccp_timeslot_bitStr = $i.".0-".$i.".4";
$lccp_timeslot = bindec(getBitValue($LccpSource,$lccp_timeslot_bitStr));
echo "";
echo " | ";
}//end LCCP-Timeslot
echo " ";
}
echo " ";
echo " | ";
echo "";
echo "";
echo "";
echo "| Timeslot# | ";
echo "Direction | ";
echo "LCCP-E1 | ";
echo "LCCP-Timeslot | ";
echo " ";
for($i=16;$i<32;$i++)
{
echo "";
echo "| $i | ";
{
$bitStr = $i.".0-".$i.".2";
$direction = bindec(getBitValue($directionSource,$bitStr));
echo "";
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 "";
echo " | ";
}
{
$lccp_timeslot_bitStr = $i.".0-".$i.".4";
$lccp_timeslot = bindec(getBitValue($LccpSource,$lccp_timeslot_bitStr));
echo "";
echo " | ";
}
echo " ";
}
echo " ";
echo " | ";
echo "";
echo "
";
echo "