<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<div class="div_table_info1" >
<br />
		<table id="table_info5" cellspacing="0">
		<tr>
			<th width="20%">Gbe1 Port</th>
			<th width="25%">Total Bitrate</th>
			<th width="25%">Effective Bitrate</th>
			<th width="30%">Out Switch Status</th>
		</tr>
		</table>
<br />
		<table id="table_info7" style="display:none" cellspacing="0">
		<tr>
			<th width="20%">Gbe3 Port</th>
			<th width="25%">Total Bitrate</th>
			<th width="25%">Effective Bitrate</th>
			<th width="30%">Out Switch Status</th>
		</tr>
		</table>
<br />
		<table id="table_info6" style="display:none" cellspacing="0">
			<tr>
				<th width="20%">Gbe2 Port</th>
				<th width="25%">Total Bitrate</th>
				<th width="25%">Effective Bitrate</th>
				<th width="30%">Out Switch Status</th>
			</tr>
		</table>
<br />
		<table id="table_info8" style="display:none" cellspacing="0">
			<tr>
				<th width="20%">Gbe4 Port</th>
				<th width="25%">Total Bitrate</th>
				<th width="25%">Effective Bitrate</th>
				<th width="30%">Out Switch Status</th>
			</tr>
		</table>
<br />
	<div class="mainfram_bar"></div>
	<div class="mainfram_button">
		<img src="../style/img/refresh.png" onclick=self.location.reload(true) />
	</div>
	<SCRIPT language="javascript" >
	<%updataGbeMultiState();%>
	var phyList3 = document.getElementById("table_info5");
	var phyList4 = document.getElementById("table_info6");
	var phyList7 = document.getElementById("table_info7");
	var phyList8 = document.getElementById("table_info8");
	if(GBE_MULTI_VID_LICENSE == 0)	//1+1备份，只有1.3网口（前提是网口的备份开关打开）
	{
		if(document.all)
		{		
			phyList4.style.setAttribute("display", "none");
		}
		else
		{
			phyList4.style.display="none";
		}
		if(GBE_MULTI_VID_NET_TX_BKUP_SWITCH == 1)//网口备份开关打开，显示网口3
		{
			if(document.all)
			{	
				phyList7.style.setAttribute("display", "");				
			}
			else
			{			
				phyList7.style.display="";
			}
		}		
	}
	else
	{
		if(GBE_MULTI_VID_NET_TX_BKUP_SWITCH == 1)//2+2备份，网口备份开关打开
		{
			if(document.all)
			{		
				phyList4.style.setAttribute("display", "");
				phyList7.style.setAttribute("display", "");
				phyList8.style.setAttribute("display", "");
			}
			else
			{
				phyList4.style.display="";
				phyList7.style.display="";
				phyList8.style.display="";
			}
		}
		else
		{
			if(document.all)
			{		
				phyList4.style.setAttribute("display", "");
			}
			else
			{
				phyList4.style.display="";
			}
		}
	}
	var row;
	var col;
	if(document.all)
	{
		for(k = 0;k < outportnum1; k++)	
		{
			row = phyList3.insertRow();
			col = row.insertCell();
			col.innerHTML = GBE_MULTI_VID_OUT_PORT_NO1[k];
			col = row.insertCell();
			col.innerHTML = GBE_MULTI_VID_OUT_SYSRATE1[k];
			col = row.insertCell();
			col.innerHTML = GBE_MULTI_VID_OUT_VLDRATE1[k];
			col = row.insertCell();
			if(GBE_MULTI_VID_OUT_SWITCH_STAT1[k]==1)
			{
				col.innerHTML = "ON";	
			}
			else
			{
				col.innerHTML = "OFF";	
			}		
		}
		for(k = 0;k < outportnum3; k++)	
		{
			row = phyList7.insertRow();
			col = row.insertCell();
			col.innerHTML = GBE_MULTI_VID_OUT_PORT_NO3[k];
			col = row.insertCell();
			col.innerHTML = GBE_MULTI_VID_OUT_SYSRATE3[k];
			col = row.insertCell();
			col.innerHTML = GBE_MULTI_VID_OUT_VLDRATE3[k];
			col = row.insertCell();
			if(GBE_MULTI_VID_OUT_SWITCH_STAT3[k]==1)
			{
				col.innerHTML = "ON";	
			}
			else
			{
				col.innerHTML = "OFF";	
			}		
		}	
		for(z = 0;z < outportnum2; z++)	
		{
			row = phyList4.insertRow();
			col = row.insertCell();
			col.innerHTML = GBE_MULTI_VID_OUT_PORT_NO2[z];
			col = row.insertCell();
			col.innerHTML = GBE_MULTI_VID_OUT_SYSRATE2[z];
			col = row.insertCell();
			col.innerHTML = GBE_MULTI_VID_OUT_VLDRATE2[z];
			col = row.insertCell();
			if(GBE_MULTI_VID_OUT_SWITCH_STAT2[z]==1)
			{
				col.innerHTML = "ON";	
			}
			else
			{
				col.innerHTML = "OFF";	
			}		
		}
		for(z = 0;z < outportnum4; z++)	
		{
			row = phyList8.insertRow();
			col = row.insertCell();
			col.innerHTML = GBE_MULTI_VID_OUT_PORT_NO4[z];
			col = row.insertCell();
			col.innerHTML = GBE_MULTI_VID_OUT_SYSRATE4[z];
			col = row.insertCell();
			col.innerHTML = GBE_MULTI_VID_OUT_VLDRATE4[z];
			col = row.insertCell();
			if(GBE_MULTI_VID_OUT_SWITCH_STAT4[z]==1)
			{
				col.innerHTML = "ON";	
			}
			else
			{
				col.innerHTML = "OFF";	
			}		
		}
	}
	else
	{
		for(k = 0;k < outportnum1; k++)	
		{
			row = document.createElement("tr");
			col = document.createElement("td");
			col.innerHTML = GBE_MULTI_VID_OUT_PORT_NO1[k];
			row.appendChild(col);
			col= document.createElement("td");
			col.innerHTML = GBE_MULTI_VID_OUT_SYSRATE1[k];
			row.appendChild(col);
			col= document.createElement("td");
			col.innerHTML = GBE_MULTI_VID_OUT_VLDRATE1[k];	
			row.appendChild(col);
			col= document.createElement("td");
			if(GBE_MULTI_VID_OUT_SWITCH_STAT1[k]==1)
			{
				col.innerHTML = "ON";	
			}
			else
			{
				col.innerHTML = "OFF";	
			}		
			row.appendChild(col);
			phyList3.appendChild(row);
		}
		for(k = 0;k < outportnum3; k++)	
		{
			row = document.createElement("tr");
			col = document.createElement("td");
			col.innerHTML = GBE_MULTI_VID_OUT_PORT_NO3[k];
			row.appendChild(col);
			col= document.createElement("td");
			col.innerHTML = GBE_MULTI_VID_OUT_SYSRATE3[k];
			row.appendChild(col);
			col= document.createElement("td");
			col.innerHTML = GBE_MULTI_VID_OUT_VLDRATE3[k];	
			row.appendChild(col);
			col= document.createElement("td");
			if(GBE_MULTI_VID_OUT_SWITCH_STAT3[k]==1)
			{
				col.innerHTML = "ON";	
			}
			else
			{
				col.innerHTML = "OFF";	
			}		
			row.appendChild(col);
			phyList7.appendChild(row);
		}	
		for(z = 0;z < outportnum2; z++)	
		{
			row = document.createElement("tr");
			col = document.createElement("td");
			col.innerHTML = GBE_MULTI_VID_OUT_PORT_NO2[z];
			row.appendChild(col);
			col= document.createElement("td");
			col.innerHTML = GBE_MULTI_VID_OUT_SYSRATE2[z];
			row.appendChild(col);
			col= document.createElement("td");
			col.innerHTML = GBE_MULTI_VID_OUT_VLDRATE2[z];	
			row.appendChild(col);
			col= document.createElement("td");
			if(GBE_MULTI_VID_OUT_SWITCH_STAT2[z]==1)
			{
				col.innerHTML = "ON";	
			}
			else
			{
				col.innerHTML = "OFF";	
			}		
			row.appendChild(col);
			phyList4.appendChild(row);
		}
		for(z = 0;z < outportnum4; z++)	
		{
			row = document.createElement("tr");
			col = document.createElement("td");
			col.innerHTML = GBE_MULTI_VID_OUT_PORT_NO4[z];
			row.appendChild(col);
			col= document.createElement("td");
			col.innerHTML = GBE_MULTI_VID_OUT_SYSRATE4[z];
			row.appendChild(col);
			col= document.createElement("td");
			col.innerHTML = GBE_MULTI_VID_OUT_VLDRATE4[z];	
			row.appendChild(col);
			col= document.createElement("td");
			if(GBE_MULTI_VID_OUT_SWITCH_STAT4[z]==1)
			{
				col.innerHTML = "ON";	
			}
			else
			{
				col.innerHTML = "OFF";	
			}		
			row.appendChild(col);
			phyList8.appendChild(row);
		}
	}
	</SCRIPT>
