<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<div class="div_table_info1" >
<br />
<table style="display:none" id="table_info3" cellspacing="0">
	<tr>
		<th width="25%">Gbe1 Port</th>
		<th width="25%">Sync Status</th>
		<th width="25%">Total Bitrate</th>
		<th width="25%">Effective Bitrate</th>
		<!--<th width="25%">PID Bitrate</th>-->
	</tr>
</table>
<br />
<table style="display:none" id="table_info7" cellspacing="0">
  <tr>
   		 <th width="25%">Gbe3 Port</th>
		<th width="25%">Sync Status</th>
		<th width="25%">Total Bitrate</th>
		<th width="25%">Effective Bitrate</th>
		<!--<th width="25%">PID Bitrate</th>-->
  </tr>
</table>
<br />
<div id="d_table_info4" style="display:none" >
<table  id="table_info4" cellspacing="0">
	<tr>
		<th width="25%">Gbe2 Port</th>
		<th width="25%">Sync Status</th>
		<th width="25%">Total Bitrate</th>
		<th width="25%">Effective Bitrate</th>
		<!--<th width="25%">PID Bitrate</th>-->
	</tr>
</table>
<br />
</div>
<div id="d_table_info8" style="display:none" >
<table id="table_info8" cellspacing="0">
  <tr>
    	<th width="25%">Gbe4 Port</th>
		<th width="25%">Sync Status</th>
		<th width="25%">Total Bitrate</th>
		<th width="25%">Effective Bitrate</th>
		<!--<th width="25%">PID Bitrate</th>-->
  </tr>
</table>
<br />
</div>
	<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 phyList1 = document.getElementById("table_info3");
	var phyList2 = document.getElementById("table_info4");
	var phyListd2 = document.getElementById("d_table_info4");
	var phyList7 = document.getElementById("table_info7");
	var phyList8 = document.getElementById("table_info8");
	var phyListd8 = document.getElementById("d_table_info8");
	var row;
	var col;
	if(document.all)
	{
		for(i = 0; i < inportnum1; i++)
		{
			row = phyList1.insertRow();
			col = row.insertCell();				
			col.innerHTML = GBE_MULTI_VID_IN_PORT_NO1[i];
			col = row.insertCell();
			if(GBE_MULTI_VID_IN_STATUS1[i] == "0")
			{
				col.innerHTML = "Async";
			}	
			else if(GBE_MULTI_VID_IN_STATUS1[i] == "1")
			{
				col.innerHTML = "188 Pkt Sync";
			}
			else if(GBE_MULTI_VID_IN_STATUS1[i] == "2")
			{
				col.innerHTML = "204 Pkt Sync";
			}	
			col = row.insertCell();				
			col.innerHTML = GBE_MULTI_VID_IN_SYSRATE1[i];
			col = row.insertCell();
			col.innerHTML = GBE_MULTI_VID_IN_VLDRATE1[i];	
		}
		for(i = 0; i < inportnum2; i++)
		{
			row = phyList2.insertRow();
			col = row.insertCell();				
			col.innerHTML = GBE_MULTI_VID_IN_PORT_NO2[i];
			col = row.insertCell();
			if(GBE_MULTI_VID_IN_STATUS2[i] == "0")
			{
				col.innerHTML = "Async";
			}	
			else if(GBE_MULTI_VID_IN_STATUS2[i] == "1")
			{
				col.innerHTML = "188 Pkt Sync";
			}
			else if(GBE_MULTI_VID_IN_STATUS2[i] == "2")
			{
				col.innerHTML = "204 Pkt Sync";
			}	
			col = row.insertCell();				
			col.innerHTML = GBE_MULTI_VID_IN_SYSRATE2[i];
			col = row.insertCell();
			col.innerHTML = GBE_MULTI_VID_IN_VLDRATE2[i];	
		}
		for(i = 0; i < inportnum3; i++)
		{
			row = phyList7.insertRow();
			col = row.insertCell();				
			col.innerHTML = GBE_MULTI_VID_IN_PORT_NO3[i];
			col = row.insertCell();
			if(GBE_MULTI_VID_IN_STATUS3[i] == "0")
			{
				col.innerHTML = "Async";
			}	
			else if(GBE_MULTI_VID_IN_STATUS3[i] == "1")
			{
				col.innerHTML = "188 Pkt Sync";
			}
			else if(GBE_MULTI_VID_IN_STATUS3[i] == "2")
			{
				col.innerHTML = "204 Pkt Sync";
			}	
			col = row.insertCell();				
			col.innerHTML = GBE_MULTI_VID_IN_SYSRATE3[i];
			col = row.insertCell();
			col.innerHTML = GBE_MULTI_VID_IN_VLDRATE3[i];	
		}
		for(i = 0; i < inportnum4; i++)
		{
			row = phyList8.insertRow();
			col = row.insertCell();				
			col.innerHTML = GBE_MULTI_VID_IN_PORT_NO4[i];
			col = row.insertCell();
			if(GBE_MULTI_VID_IN_STATUS4[i] == "0")
			{
				col.innerHTML = "Async";
			}	
			else if(GBE_MULTI_VID_IN_STATUS4[i] == "1")
			{
				col.innerHTML = "188 Pkt Sync";
			}
			else if(GBE_MULTI_VID_IN_STATUS4[i] == "2")
			{
				col.innerHTML = "204 Pkt Sync";
			}	
			col = row.insertCell();				
			col.innerHTML = GBE_MULTI_VID_IN_SYSRATE4[i];
			col = row.insertCell();
			col.innerHTML = GBE_MULTI_VID_IN_VLDRATE4[i];	
		}
	}
	else
	{
		for(i = 0; i < inportnum1; i++)
		{
			row = document.createElement("tr");
			col = document.createElement("td");
			col.innerHTML = GBE_MULTI_VID_IN_PORT_NO1[i];
			row.appendChild(col);
			col= document.createElement("td");
			if(GBE_MULTI_VID_IN_STATUS1[i] == "0")
			{
				col.innerHTML = "Async";
			}	
			else if(GBE_MULTI_VID_IN_STATUS1[i] == "1")
			{
				col.innerHTML = "188 Pkt Sync";
			}
			else if(GBE_MULTI_VID_IN_STATUS1[i] == "2")
			{
				col.innerHTML = "204 Pkt Sync";
			}	
			row.appendChild(col);
			col= document.createElement("td");
			col.innerHTML = GBE_MULTI_VID_IN_SYSRATE1[i];	
			row.appendChild(col);
			col= document.createElement("td");
			col.innerHTML = GBE_MULTI_VID_IN_VLDRATE1[i];	
			row.appendChild(col);
			/*col= document.createElement("td");
			col.innerHTML = GBE_MULTI_VID_IN_PIDRATE1[i];	
			row.appendChild(col);*/
			phyList1.appendChild(row);				
		}
		for(j = 0; j < inportnum2; j++)
		{
			row = document.createElement("tr");
			col = document.createElement("td");
			col.innerHTML = GBE_MULTI_VID_IN_PORT_NO2[j];
			row.appendChild(col);
			col= document.createElement("td");
			if(GBE_MULTI_VID_IN_STATUS2[j] == "0")
			{
				col.innerHTML = "Async";
			}	
			else if(GBE_MULTI_VID_IN_STATUS2[j] == "1")
			{
				col.innerHTML = "188 Pkt Sync";
			}
			else if(GBE_MULTI_VID_IN_STATUS2[j] == "2")
			{
				col.innerHTML = "204 Pkt Sync";
			}	
			row.appendChild(col);
			col= document.createElement("td");
			col.innerHTML = GBE_MULTI_VID_IN_SYSRATE2[j];	
			row.appendChild(col);
			col= document.createElement("td");
			col.innerHTML = GBE_MULTI_VID_IN_VLDRATE2[j];	
			row.appendChild(col);
			/*col= document.createElement("td");
			col.innerHTML = GBE_MULTI_VID_IN_PIDRATE2[j];	
			row.appendChild(col);*/
			phyList2.appendChild(row);		
		}
		for(i = 0; i < inportnum3; i++)
		{
			row = document.createElement("tr");
			col = document.createElement("td");
			col.innerHTML = GBE_MULTI_VID_IN_PORT_NO3[i];
			row.appendChild(col);
			col= document.createElement("td");
			if(GBE_MULTI_VID_IN_STATUS3[i] == "0")
			{
				col.innerHTML = "Async";
			}	
			else if(GBE_MULTI_VID_IN_STATUS3[i] == "1")
			{
				col.innerHTML = "188 Pkt Sync";
			}
			else if(GBE_MULTI_VID_IN_STATUS3[i] == "2")
			{
				col.innerHTML = "204 Pkt Sync";
			}	
			row.appendChild(col);
			col= document.createElement("td");
			col.innerHTML = GBE_MULTI_VID_IN_SYSRATE3[i];	
			row.appendChild(col);
			col= document.createElement("td");
			col.innerHTML = GBE_MULTI_VID_IN_VLDRATE3[i];	
			row.appendChild(col);
			/*col= document.createElement("td");
			col.innerHTML = GBE_MULTI_VID_IN_PIDRATE3[i];	
			row.appendChild(col);*/
			phyList7.appendChild(row);				
		}
		for(j = 0; j < inportnum4; j++)
		{
			row = document.createElement("tr");
			col = document.createElement("td");
			col.innerHTML = GBE_MULTI_VID_IN_PORT_NO4[j];
			row.appendChild(col);
			col= document.createElement("td");
			if(GBE_MULTI_VID_IN_STATUS4[j] == "0")
			{
				col.innerHTML = "Async";
			}	
			else if(GBE_MULTI_VID_IN_STATUS4[j] == "1")
			{
				col.innerHTML = "188 Pkt Sync";
			}
			else if(GBE_MULTI_VID_IN_STATUS4[j] == "2")
			{
				col.innerHTML = "204 Pkt Sync";
			}	
			row.appendChild(col);
			col= document.createElement("td");
			col.innerHTML = GBE_MULTI_VID_IN_SYSRATE4[j];	
			row.appendChild(col);
			col= document.createElement("td");
			col.innerHTML = GBE_MULTI_VID_IN_VLDRATE4[j];	
			row.appendChild(col);
			/*col= document.createElement("td");
			col.innerHTML = GBE_MULTI_VID_IN_PIDRATE4[j];	
			row.appendChild(col);*/
			phyList8.appendChild(row);		
		}
	}
	if(GBE_MULTI_VID_LICENSE == 0)	//1+1备份，只有1.3网口（前提是网口的备份开关打开）
	{
		if(GBE_MULTI_VID_NET_BKUP_SWITCH[0] == "1")
		{
			phyList1.style.display="";
			phyList7.style.display="";
		}
		else
		{
			phyList1.style.display="";
		}
	}
	else
	{
		if(GBE_MULTI_VID_NET_BKUP_SWITCH[0] == "1")
		{
			phyList1.style.display="";
			phyList7.style.display="";
		}
		else
		{
			phyList1.style.display="";
		}
		if(GBE_MULTI_VID_NET_BKUP_SWITCH[1] =="1")
		{
			phyListd2.style.display="";
			phyListd8.style.display="";
		}
		else
		{
			phyListd2.style.display="";
		}	
	}	
	</SCRIPT>
