<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<div class="div_table_info1" >
<table id="table_info31" cellspacing="0">
  <tr>
    <th>网口</th>
    <th>工作状态</th>
    <th>连接状态</th>
    <!--th>接口状态</th>
    <th>速度状态</th>
    <th>双工状态</th-->
    <th>输入系统码率</th>
	<th>输入有效码率</th>
  </tr>
  <tr>
  	<td>1</td>
	<td><span id="IFStatus1" class="span_info"></span></td>
	<td><span id="LinkState1" class="span_info"></span></td>
	<!--td><span id="IFState1" class="span_info"></span></td>
	<td><span id="SpeedState1" class="span_info"></span></td>
	<td><span id="DuplexState1" class="span_info"></span></td-->
	<td><span id="IFSysRate1" class="span_info"></span></td>
	<td><span id="IFValidRate1" class="span_info"></span></td>
  </tr>
  <tr>
  	<td>2</td>
	<td><span id="IFStatus2" class="span_info"></span></td>
	<td><span id="LinkState2" class="span_info"></span></td>
	<!--td><span id="IFState2" class="span_info"></span></td>
	<td><span id="SpeedState2" class="span_info"></span></td>
	<td><span id="DuplexState2" class="span_info"></span></td-->
	<td><span id="IFSysRate2" class="span_info"></span></td>
	<td><span id="IFValidRate2" class="span_info"></span></td>
  </tr>
</table>
<br />
<div class="mainfram_bar"></div>
	<div class="mainfram_button"> 
		<img src="../style/img/shuaxin.png" onclick=self.location.reload(true) /> 
	</div>
<SCRIPT language="javascript" >
	<%updataGbe2Card(slotno,1);%>
	for(i=1; i<3; i++)
	{
		//工作状态
		if(eval("GBE2_VID_IF_SEL_STAT"+i)=="0")
		{
			$("#IFStatus"+i).html("Inactive");
		}
		else
		{
			$("#IFStatus"+i).html("Active");
		}
		//连接状态
		if(eval("GBE2_VID_LINK"+i)=="0")
		{
			$("#LinkState"+i).html("未连接");
		}
		else
		{
			$("#LinkState"+i).html("连接");
		}
		/*/接口状态
		if(eval("GBE2_VID_IF_STATE"+i)=="0")
		{
			$("#IFState"+i).html("未知");
		}
		else if(eval("GBE2_VID_IF_STATE"+i)=="1")
		{
			$("#IFState"+i).html("电口");
		}
		else if(eval("GBE2_VID_IF_STATE"+i)=="2")
		{
			$("#IFState"+i).html("SFP");
		}
		else if(eval("GBE2_VID_IF_STATE"+i)=="3")
		{
			$("#IFState"+i).html("SGMII");
		}	
		//速度状态
		if(eval("GBE2_VID_SPEED_STATE"+i)=="0")
		{
			$("#SpeedState"+i).html("未知");
		}
		else if(eval("GBE2_VID_SPEED_STATE"+i)=="1")
		{
			$("#SpeedState"+i).html("10Mbps");
		}
		else if(eval("GBE2_VID_SPEED_STATE"+i)=="2")
		{
			$("#SpeedState"+i).html("100Mbps");
		}
		else if(eval("GBE2_VID_SPEED_STATE"+i)=="3")
		{
			$("#SpeedState"+i).html("1Gbps");
		}	
		else if(eval("GBE2_VID_SPEED_STATE"+i)=="4")
		{
			$("#SpeedState"+i).html("自动10Mbps");
		}
		else if(eval("GBE2_VID_SPEED_STATE"+i)=="5")
		{
			$("#SpeedState"+i).html("自动100Mbps");
		}
		else if(eval("GBE2_VID_SPEED_STATE"+i)=="6")
		{
			$("#SpeedState"+i).html("自动1Gbps");
		}	
		//双工状态
		if(eval("GBE2_VID_DUPLEX_STATE"+i)=="0")
		{
			$("#DuplexState"+i).html("未知");
		}
		else if(eval("GBE2_VID_DUPLEX_STATE"+i)=="1")
		{
			$("#DuplexState"+i).html("半双工");
		}
		else if(eval("GBE2_VID_DUPLEX_STATE"+i)=="2")
		{
			$("#DuplexState"+i).html("全双工");
		}
		else if(eval("GBE2_VID_DUPLEX_STATE"+i)=="3")
		{
			$("#DuplexState"+i).html("自动半双工");
		}
		else if(eval("GBE2_VID_DUPLEX_STATE"+i)=="4")
		{
			$("#DuplexState"+i).html("自动全双工");
		}*/	
		$("#IFSysRate"+i).html(eval("GBE2_VID_CHNL_SYS_RATE"+i));
		$("#IFValidRate"+i).html(eval("GBE2_VID_CHNL_VLD_RATE"+i));
	}
</SCRIPT>