2119 lines
78 KiB
Plaintext
Executable File
2119 lines
78 KiB
Plaintext
Executable File
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||
<HTML><HEAD><TITLE>É豸ÐÅÏ¢</TITLE>
|
||
<META http-equiv=Content-Language content=zh-cn>
|
||
<META http-equiv=Content-Type content="text/html; charset=gb2312"><LINK
|
||
href="/JS/stylemain.css" type=text/css rel=stylesheet>
|
||
<SCRIPT language=javascript src="/JS/menu.js"></SCRIPT>
|
||
|
||
<SCRIPT language=javascript src="/JS/util.js"></SCRIPT>
|
||
|
||
<META content="MSHTML 6.00.6000.16809" name=GENERATOR></HEAD>
|
||
<BODY style="TEXT-ALIGN: center" vLink=#000000 aLink=#000000 link=#000000
|
||
leftMargin=0 topMargin=0
|
||
onload="DisplayLocation(getElement('Selected_Menu').value);FinishLoad();if(getElById('ConfigForm') != null)LoadFrame()"
|
||
onunload=DoUnload() marginheight="0" marginwidth="0">
|
||
<TABLE height="100%" cellSpacing=0 cellPadding=0 width=808 align=center
|
||
border=0>
|
||
<TBODY>
|
||
<TR>
|
||
<TD height=1>
|
||
<% if tcwebApi_get("WebCustom_Entry","isCYE8SFUSupported","h") = "Yes" then %>
|
||
<TABLE height=80 cellSpacing=0 cellPadding=0 width=808
|
||
background=/img/framelogo.jpg border=0>
|
||
<% else %>
|
||
<% if tcwebApi_get("WebCustom_Entry","isCTPONTYLOGOSupported","h") = "Yes" then %>
|
||
<TABLE height=80 cellSpacing=0 cellPadding=0 width=808
|
||
background=/img/framelogo.jpg border=0>
|
||
<% else %>
|
||
<TABLE height=117 cellSpacing=0 cellPadding=0 width=808
|
||
background=/img/framelogo.jpg border=0>
|
||
<% end if %>
|
||
<% end if %>
|
||
<TBODY>
|
||
<TR>
|
||
<TD> </TD>
|
||
<TD vAlign=bottom align=right width=358>
|
||
<TABLE id=table8 cellSpacing=0 cellPadding=0 border=0>
|
||
<TBODY>
|
||
<TR>
|
||
<TD vAlign=bottom align=right><SPAN class=curUserName>
|
||
</SPAN></TD>
|
||
<TD class=welcom vAlign=bottom align=middle width=120>»¶ÓÄú£¡ </TD>
|
||
<TD vAlign=bottom width=50><A onclick=DoLogout()
|
||
href="/cgi-bin/logout.cgi" target=_top><SPAN
|
||
class=logout>Í˳ö
|
||
</SPAN></A></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
|
||
<TABLE id=table2 height=100 cellSpacing=0 cellPadding=0 width=808
|
||
border=0>
|
||
<TBODY>
|
||
<TR>
|
||
<TD class=LocationDisplay id=LocationDisplay align=middle width=163
|
||
bgColor=#ef8218 rowSpan=3></TD>
|
||
<TD width=434 bgColor=#427594 height=33>
|
||
<P align=right><FONT face=ºÚÌå color=#ffffff><B><FONT face=ºÚÌå
|
||
color=#ffffff size=6><INPUT id=Selected_Menu type=hidden
|
||
value="״̬->É豸ÐÅÏ¢" name=Selected_Menu> </FONT></B><SPAN
|
||
class=GatewayName>Íø¹ØÃû³Æ:
|
||
<SCRIPT
|
||
language=javascript>
|
||
document.write(top.gateWayName);
|
||
</SCRIPT>
|
||
</SPAN></FONT></P></TD>
|
||
<TD width=211 bgColor=#ef8218 height=33>
|
||
<P class=GatewayType align=center>ÐͺÅ:
|
||
<SCRIPT language=javascript>
|
||
document.write(top.ModelName);
|
||
</SCRIPT>
|
||
</P></TD></TR>
|
||
<TR>
|
||
<TD id=MenuArea_L1 vAlign=bottom bgColor=#ef8218 colSpan=2
|
||
height=43> </TD></TR>
|
||
<TR>
|
||
<TD id=MenuArea_L2 bgColor=#427594 colSpan=2
|
||
height=24></TD></TR></TBODY></TABLE>
|
||
<SCRIPT
|
||
language=javascript>
|
||
MakeMenu(getElById ('Selected_Menu').value);
|
||
</SCRIPT>
|
||
|
||
<TABLE id=table3 height=15 cellSpacing=0 cellPadding=0 width=808
|
||
border=0><TBODY>
|
||
<TR>
|
||
<TD height=15><IMG height=15 src="/img/panel1.gif"
|
||
width=164 border=0> </TD>
|
||
<TD><IMG height=15 src="/img/panel2.gif" width=645
|
||
border=0> </TD></TR></TBODY></TABLE></TD></TR>
|
||
<TR>
|
||
<TD vAlign=top>
|
||
<SCRIPT language=JavaScript type=text/javascript>
|
||
|
||
var Nametype = 0;
|
||
var para = 0;
|
||
var pvc_counts=<% tcWebApi_get("WanInfo_Common","CycleNum","s") %>;
|
||
//get all value
|
||
// num 0
|
||
var vArrayStr = "<% tcWebApi_get("WanInfo_Common","CycleValue","s") %>";
|
||
var Wan_WanName = vArrayStr.split(',');
|
||
// num 1
|
||
vArrayStr = "<% tcWebApi_get("WanInfo_Common","CycleValue","s") %>";
|
||
var Wan_WanValue = vArrayStr.split(',');
|
||
// num 2
|
||
vArrayStr = "<% tcWebApi_get("WanInfo_Common","CycleValue","s") %>";
|
||
// num 3
|
||
vArrayStr = "<% tcWebApi_get("WanInfo_Common","CycleValue","s") %>";
|
||
Wan_Actives = vArrayStr.split(',');
|
||
// num 4
|
||
vArrayStr = "<% tcWebApi_get("WanInfo_Common","CycleValue","s") %>";
|
||
var WANEnNAT = vArrayStr.split(',');
|
||
// num 5
|
||
vArrayStr = "<% tcWebApi_get("WanInfo_Common","CycleValue","s") %>";
|
||
var Wan_IFName = vArrayStr.split(',');
|
||
// num 6
|
||
vArrayStr = "<% tcWebApi_get("WanInfo_Common","CycleValue","s") %>";
|
||
var Wan_IPVERSION = vArrayStr.split(',');
|
||
// num 7
|
||
vArrayStr = "<% tcWebApi_get("WanInfo_Common","CycleValue","s") %>";
|
||
var Wan_Status4 = vArrayStr.split(',');
|
||
// num 8
|
||
vArrayStr = "<% tcWebApi_get("WanInfo_Common","CycleValue","s") %>";
|
||
var Wan_IP4 = vArrayStr.split(',');
|
||
// num 9
|
||
vArrayStr = "<% tcWebApi_get("WanInfo_Common","CycleValue","s") %>";
|
||
var Wan_ENCAP = vArrayStr.split(',');
|
||
// num 10
|
||
vArrayStr = "<% tcWebApi_get("WanInfo_Common","CycleValue","s") %>";
|
||
var Wan_GateWay4 = vArrayStr.split(',');
|
||
// num 11
|
||
vArrayStr = "<% tcWebApi_get("WanInfo_Common","CycleValue","s") %>";
|
||
var Wan_DNS4 = vArrayStr.split(',');
|
||
// num 12
|
||
vArrayStr = "<% tcWebApi_get("WanInfo_Common","CycleValue","s") %>";
|
||
var Wan_SecDNS4 = vArrayStr.split(',');
|
||
// num 13
|
||
vArrayStr = "<% tcWebApi_get("WanInfo_Common","CycleValue","s") %>";
|
||
var Wan_Status6 = vArrayStr.split(',');
|
||
// num 14
|
||
vArrayStr = "<% tcWebApi_get("WanInfo_Common","CycleValue","s") %>";
|
||
var Wan_IP6 = vArrayStr.split(',');
|
||
// num 15
|
||
vArrayStr = "<% tcWebApi_get("WanInfo_Common","CycleValue","s") %>";
|
||
var Wan_GateWay6 = vArrayStr.split(',');
|
||
// num 16
|
||
vArrayStr = "<% tcWebApi_get("WanInfo_Common","CycleValue","s") %>";
|
||
var Wan_DNS6 = vArrayStr.split(',');
|
||
// num 17
|
||
vArrayStr = "<% tcWebApi_get("WanInfo_Common","CycleValue","s") %>";
|
||
var Wan_SecDNS6 = vArrayStr.split(',');
|
||
// num 18
|
||
vArrayStr = "<% tcWebApi_get("WanInfo_Common","CycleValue","s") %>";
|
||
var Wan_PD6 = vArrayStr.split(',');
|
||
// num 19
|
||
vArrayStr = "<% tcWebApi_get("WanInfo_Common","CycleValue","s") %>";
|
||
var Wan_NetMask4 = vArrayStr.split(',');
|
||
// num 20
|
||
vArrayStr = "<% tcWebApi_get("WanInfo_Common","CycleValue","s") %>";
|
||
// num 21
|
||
vArrayStr = "<% tcWebApi_get("WanInfo_Common","CycleValue","s") %>";
|
||
// num 22
|
||
vArrayStr = "<% tcWebApi_get("WanInfo_Common","CycleValue","s") %>";
|
||
var Wan_Connection = vArrayStr.split(',');
|
||
// num 23
|
||
vArrayStr = "<% tcWebApi_get("WanInfo_Common","CycleValue","s") %>";
|
||
var Wan_VidPRI = vArrayStr.split(',');
|
||
// num 24
|
||
vArrayStr = "<% tcWebApi_get("WanInfo_Common","CycleValue","s") %>";
|
||
var Wan_MAC = vArrayStr.split(',');
|
||
vArrayStr = "<% tcWebApi_get("WanInfo_Common","ConnectionError","s") %>";
|
||
var Wan_ConnectionError = vArrayStr.split(',');
|
||
SortUtil.SetReplaceStrflag(1);
|
||
Wan_WanName = SortUtil.UpdateWanIFName( Wan_WanName, pvc_counts );
|
||
|
||
Wan_Actives = SortUtil.SortMyArray( Wan_Actives );
|
||
Wan_IPVERSION = SortUtil.SortMyArray( Wan_IPVERSION );
|
||
Wan_Status4 = SortUtil.SortMyArray( Wan_Status4 );
|
||
Wan_IP4 = SortUtil.SortMyArray( Wan_IP4 );
|
||
Wan_ENCAP = SortUtil.SortMyArray( Wan_ENCAP );
|
||
Wan_GateWay4 = SortUtil.SortMyArray( Wan_GateWay4 );
|
||
Wan_DNS4 = SortUtil.SortMyArray( Wan_DNS4 );
|
||
Wan_SecDNS4 = SortUtil.SortMyArray( Wan_SecDNS4 );
|
||
Wan_Status6 = SortUtil.SortMyArray( Wan_Status6 );
|
||
Wan_IP6 = SortUtil.SortMyArray( Wan_IP6 );
|
||
Wan_GateWay6 = SortUtil.SortMyArray( Wan_GateWay6 );
|
||
Wan_DNS6 = SortUtil.SortMyArray( Wan_DNS6 );
|
||
Wan_SecDNS6 = SortUtil.SortMyArray( Wan_SecDNS6 );
|
||
Wan_PD6 = SortUtil.SortMyArray( Wan_PD6 );
|
||
Wan_NetMask4 = SortUtil.SortMyArray( Wan_NetMask4 );
|
||
Wan_Connection = SortUtil.SortMyArray( Wan_Connection );
|
||
Wan_VidPRI = SortUtil.SortMyArray( Wan_VidPRI );
|
||
Wan_MAC = SortUtil.SortMyArray( Wan_MAC );
|
||
Wan_ConnectionError = SortUtil.SortMyArray( Wan_ConnectionError );
|
||
Wan_IFName = SortUtil.SortMyArray( Wan_IFName );
|
||
|
||
|
||
<% if tcWebApi_get("WebCustom_Entry", "isCT2PORTSSupported", "h") = "Yes" then %>
|
||
var portNumber = "2";
|
||
<% else %>
|
||
var portNumber = "4";
|
||
<% end if%>
|
||
<% if tcWebApi_get("WebCustom_Entry", "isWLanSupported", "h") = "Yes" then %>
|
||
var isWifiSupported = "AP";
|
||
<% else %>
|
||
var isWifiSupported = "NoAP";
|
||
<% end if%>
|
||
<% if tcWebApi_get("WebCustom_Entry", "isCT1PORTSupported", "h") = "Yes" then %>
|
||
var deviceType = "E8C 1 "+isWifiSupported;
|
||
<% else %>
|
||
var deviceType = "E8C "+portNumber+"+1 "+isWifiSupported;
|
||
<% end if%>
|
||
|
||
|
||
|
||
function stDeviceInfo(domain,ProductClass,SerialNumber,HardwareVersion,SoftwareVersion,ManufacturerOUI)
|
||
{
|
||
this.domain = domain;
|
||
this.ProductClass = ProductClass;
|
||
this.ManufacturerOUI = ManufacturerOUI;
|
||
this.SerialNumber = SerialNumber;
|
||
this.HardwareVersion = HardwareVersion;
|
||
this.SoftwareVersion = SoftwareVersion;
|
||
}
|
||
temp = new Array(new stDeviceInfo("InternetGatewayDevice.DeviceInfo",top.ModelName,"19191900AABB818180","HG530RRA.VER.C","V100R001C01B010","00AABB"),null);
|
||
var DeviceInfo = temp[0];
|
||
function LoadFrame()
|
||
{
|
||
<% if tcWebApi_get("WebCustom_Entry", "isCTPONCYJXSupported", "h") = "Yes" then %>
|
||
writelisttable();
|
||
<% end if%>
|
||
}
|
||
var BatchNumber = "RWC30P0.010.84725";
|
||
|
||
function PonInfoClass()
|
||
{
|
||
this.LinkSta = '<% tcWebApi_get("XPON_LinkCfg","LinkSta","s") %>';
|
||
this.trafficstate = '<% tcWebApi_get("XPON_Common","trafficStatus","s") %>';
|
||
this.fecState = '<% tcWebApi_get("Info_PonPhy","FecStatus","s") %>';
|
||
this.PonState = 'down';
|
||
this.FECEnable = 'disabled';
|
||
this.WarnInfo = 'disconnect';
|
||
this.PonSendPkt = '<% tcWebApi_get("Info_PonWanStats","TxFrameCnt","s") %>';
|
||
this.PonRecvPkt = '<% tcWebApi_get("Info_PonWanStats","RxFrameCnt","s") %>';
|
||
this.SendPower = '-';
|
||
this.RecvPower = '-';
|
||
this.WorkVoltage = '-';
|
||
this.WorkElectric = '-';
|
||
this.WorkTemperature = '-';
|
||
|
||
if ( 'up' == this.trafficstate )
|
||
{
|
||
this.PonState = 'up';
|
||
this.WarnInfo = 'no info';
|
||
}
|
||
|
||
if( '0' != this.LinkSta)
|
||
{
|
||
this.SendPower = (Math.round(Math.log((Number(<%tcWebApi_get("Info_PonPhy", "TxPower", "s")%>))/10000)/(Math.log(10))*100)/10);
|
||
this.RecvPower = (Math.round(Math.log((Number(<%tcWebApi_get("Info_PonPhy", "RxPower", "s")%>))/10000)/(Math.log(10))*100)/10);
|
||
}
|
||
|
||
if ( '1' == this.fecState )
|
||
{
|
||
this.FECEnable = 'enabled';
|
||
}
|
||
}
|
||
var PonInfo = new PonInfoClass();
|
||
<% if tcWebApi_get("WebCustom_Entry", "isCTFJSupported", "h") = "Yes" then %>
|
||
function ListCreate_info1()
|
||
{
|
||
var ITV_name = '<% tcWebApi_get("WanInfo_Common","ITVInfo","s") %>';
|
||
|
||
for(var i=0;i<pvc_counts;i++)
|
||
{
|
||
if(Wan_Actives[i] != "N/A")
|
||
{
|
||
if(Wan_IPVERSION[i] == "IPv4" || Wan_IPVERSION[i] == "IPv4/IPv6")
|
||
{
|
||
<% if tcWebApi_get("WebCustom_Entry", "isCTFJSupported", "h") = "Yes" then %>
|
||
if(Wan_IP4[i] == '-')
|
||
{
|
||
Wan_IP4[i] = '/';
|
||
}
|
||
<%end if%>
|
||
document.write('<tr align="middle">');
|
||
|
||
if(Wan_WanName[i].indexOf('TR069') >= 0)
|
||
{
|
||
document.write('<td>' + 'ITMS¹ÜÀíͨµÀ״̬' + '</td>');
|
||
|
||
if(PonInfo.PonState == "up")
|
||
{
|
||
if('up' == Wan_Status4[i])
|
||
{
|
||
document.write('<td align="center">Õý³£ </td>');
|
||
}
|
||
else
|
||
{
|
||
document.write('<td align="center">Òì³£ </td>');
|
||
}
|
||
}
|
||
else
|
||
{
|
||
document.write('<td align="center">Òì³£ </td>');
|
||
}
|
||
document.write('<td align="center">' + '·ÓÉ£¨DHCP×Ô¶¯»ñÈ¡£©' + ' </td>');
|
||
document.write('<td>' + Wan_IP4[i] + ' </td>');
|
||
document.write('<td>' + '/' + ' </td>');
|
||
document.write('<td>' + '/' + ' </td>');
|
||
}
|
||
else if(Wan_WanName[i].indexOf('INTERNET') >= 0)
|
||
{
|
||
document.write('<td>' + 'INTERNET£¨ÉÏÍøÒµÎñ£©' + '</td>');
|
||
|
||
if(PonInfo.PonState == "up")
|
||
{
|
||
if('up' == Wan_Status4[i])
|
||
{
|
||
document.write('<td align="center">Õý³£ </td>');
|
||
}
|
||
else
|
||
{
|
||
document.write('<td align="center">Òì³£ </td>');
|
||
}
|
||
}
|
||
else
|
||
{
|
||
document.write('<td align="center">Òì³£ </td>');
|
||
}
|
||
|
||
if( (Wan_ENCAP[i].indexOf('PPPoE') >=0 ) || (Wan_ENCAP[i].indexOf('DHCP') >=0 ) )
|
||
{
|
||
document.write('<td align="center">' + '·ÓÉ£¨ÖÕ¶ËÄÚÖò¦ºÅ£©' + ' </td>');
|
||
}
|
||
else
|
||
{
|
||
document.write('<td align="center">' + 'ÇŽӣ¨µçÄÔ²¦ºÅ£©' + ' </td>');
|
||
}
|
||
document.write('<td>' + Wan_IP4[i] + ' </td>');
|
||
if((PonInfo.PonState == "up")&&('up' == Wan_Status4[i]))
|
||
document.write('<td>' + '/' + ' </td>');
|
||
else{
|
||
var ErrCode=Wan_ConnectionError[i];
|
||
var ErrDes;
|
||
if ( ErrCode == 'ERROR_AUTHENTICATION_FAILURE' )
|
||
ErrDes='691(ÈÏ֤ʧ°Ü)';
|
||
else if ( ErrCode == 'ERROR_IDLE_DISCONNECT' )
|
||
ErrDes='¿ÕÏжϿª';
|
||
else if ( ErrCode == 'ERROR_ISP_TIME_OUT' )
|
||
ErrDes='678(ÏìÓ¦³¬Ê±)';
|
||
else if ( ErrCode == 'ERROR_USER_DISCONNECT' )
|
||
ErrDes='Óû§¶Ï¿ª';
|
||
else if ( ErrCode == 'ERROR_NO_ANSWER' )
|
||
ErrDes='ÎÞÏìÓ¦';
|
||
else if ( ErrCode == 'ERROR_NOT_ENABLED_FOR_INTERNET' )
|
||
ErrDes='ÎÞЧÁ´½Ó';
|
||
else
|
||
ErrDes='ÆäËûÒì³£';
|
||
document.write('<td>' + ErrDes + ' </td>');
|
||
}
|
||
document.write('<td>' + '/' + ' </td>');
|
||
}
|
||
else if(Wan_WanName[i].indexOf('VOICE') >= 0)
|
||
{
|
||
document.write('<td>' + 'VOIP£¨ÓïÒôÒµÎñ£©' + '</td>');
|
||
|
||
if(PonInfo.PonState == "up")
|
||
{
|
||
if('up' == Wan_Status4[i])
|
||
{
|
||
document.write('<td align="center">Õý³£ </td>');
|
||
}
|
||
else
|
||
{
|
||
document.write('<td align="center">Òì³£ </td>');
|
||
}
|
||
}
|
||
else
|
||
{
|
||
document.write('<td align="center">Òì³£ </td>');
|
||
}
|
||
document.write('<td align="center">' + '·ÓÉ£¨DHCP×Ô¶¯»ñÈ¡£©' + ' </td>');
|
||
document.write('<td>' + Wan_IP4[i] + ' </td>');
|
||
document.write('<td>' + '/' + ' </td>');
|
||
VoipInfo.showRegisterState(1);
|
||
}
|
||
|
||
document.write('</tr>');
|
||
|
||
if(ITV_name != '')
|
||
{
|
||
document.write('<tr align="middle">');
|
||
|
||
if(Wan_WanValue[i].indexOf(ITV_name) >= 0)
|
||
{
|
||
document.write('<TD align=middle>' + 'ITVÒµÎñ' + ' </TD>');
|
||
|
||
if(PonInfo.PonState == "up")
|
||
{
|
||
if('up' == Wan_Status4[i])
|
||
{
|
||
document.write('<td align="center">Õý³£ </td>');
|
||
}
|
||
else
|
||
{
|
||
document.write('<td align="center">Òì³£ </td>');
|
||
}
|
||
}
|
||
else
|
||
{
|
||
document.write('<td align="center">Òì³£ </td>');
|
||
}
|
||
|
||
document.write('<TD align="center">' + 'ÇŽӣ¨ITVÖÕ¶Ë×Ô¶¯»ñÈ¡£©'+ ' </TD>');
|
||
document.write('<td>' + Wan_IP4[i] + ' </td>');
|
||
document.write('<TD align="center">' + '/' + ' </TD>');
|
||
document.write('<TD align="center">' + '/' + ' </TD>');
|
||
}
|
||
document.write('</tr>');
|
||
}
|
||
}
|
||
else if(Wan_IPVERSION[i] == "IPv6")
|
||
{
|
||
document.write('<tr align="middle">');
|
||
<% if tcWebApi_get("WebCustom_Entry", "isCTFJSupported", "h") = "Yes" then %>
|
||
if(Wan_IP6[i] == '-')
|
||
{
|
||
Wan_IP6[i] = '/';
|
||
}
|
||
<%end if%>
|
||
if(Wan_WanName[i].indexOf('TR069') >= 0)
|
||
{
|
||
document.write('<td>' + 'ITMS¹ÜÀíͨµÀ״̬' + '</td>');
|
||
|
||
if(PonInfo.PonState == "up")
|
||
{
|
||
if('up' == Wan_Status6[i])
|
||
{
|
||
document.write('<td align="center">Õý³£ </td>');
|
||
}
|
||
else
|
||
{
|
||
document.write('<td align="center">Òì³£ </td>');
|
||
}
|
||
}
|
||
else
|
||
{
|
||
document.write('<td align="center">Òì³£ </td>');
|
||
}
|
||
document.write('<td align="center">' + '·ÓÉ£¨DHCP×Ô¶¯»ñÈ¡£©' + ' </td>');
|
||
document.write('<td>' + Wan_IP6[i] + ' </td>');
|
||
document.write('<td>' + '/' + ' </td>');
|
||
document.write('<td>' + '/' + ' </td>');
|
||
}
|
||
else if(Wan_WanName[i].indexOf('INTERNET') >= 0)
|
||
{
|
||
document.write('<td>' + 'INTERNET£¨ÉÏÍøÒµÎñ£©' + '</td>');
|
||
|
||
if(PonInfo.PonState == "up")
|
||
{
|
||
if('up' == Wan_Status6[i])
|
||
{
|
||
document.write('<td align="center">Õý³£ </td>');
|
||
}
|
||
else
|
||
{
|
||
document.write('<td align="center">Òì³£ </td>');
|
||
}
|
||
}
|
||
else
|
||
{
|
||
document.write('<td align="center">Òì³£ </td>');
|
||
}
|
||
|
||
if( (Wan_ENCAP[i].indexOf('PPPoE') >=0 ) || (Wan_ENCAP[i].indexOf('DHCP') >=0 ) )
|
||
{
|
||
document.write('<td align="center">' + '·ÓÉ£¨ÖÕ¶ËÄÚÖò¦ºÅ£©' + ' </td>');
|
||
}
|
||
else
|
||
{
|
||
document.write('<td align="center">' + 'ÇŽӣ¨µçÄÔ²¦ºÅ£©' + ' </td>');
|
||
}
|
||
document.write('<td>' + Wan_IP6[i] + ' </td>');
|
||
if((PonInfo.PonState == "up")&&('up' == Wan_Status6[i]))
|
||
document.write('<td>' + '/' + ' </td>');
|
||
else{
|
||
var ErrCode=Wan_ConnectionError[i];
|
||
var ErrDes;
|
||
if ( ErrCode == 'ERROR_AUTHENTICATION_FAILURE' )
|
||
ErrDes='691(ÈÏ֤ʧ°Ü)';
|
||
else if ( ErrCode == 'ERROR_IDLE_DISCONNECT' )
|
||
ErrDes='¿ÕÏжϿª';
|
||
else if ( ErrCode == 'ERROR_ISP_TIME_OUT' )
|
||
ErrDes='678(ÏìÓ¦³¬Ê±)';
|
||
else if ( ErrCode == 'ERROR_USER_DISCONNECT' )
|
||
ErrDes='Óû§¶Ï¿ª';
|
||
else if ( ErrCode == 'ERROR_NO_ANSWER' )
|
||
ErrDes='ÎÞÏìÓ¦';
|
||
else if ( ErrCode == 'ERROR_NOT_ENABLED_FOR_INTERNET' )
|
||
ErrDes='ÎÞЧÁ´½Ó';
|
||
else
|
||
ErrDes='ÆäËûÒì³£';
|
||
document.write('<td>' + ErrDes + ' </td>');
|
||
}
|
||
document.write('<td>' + '/' + ' </td>');
|
||
}
|
||
else if(Wan_WanName[i].indexOf('VOICE') >= 0)
|
||
{
|
||
document.write('<td>' + 'VOIP£¨ÓïÒôÒµÎñ£©' + '</td>');
|
||
|
||
if(PonInfo.PonState == "up")
|
||
{
|
||
if('up' == Wan_Status6[i])
|
||
{
|
||
document.write('<td align="center">Õý³£ </td>');
|
||
}
|
||
else
|
||
{
|
||
document.write('<td align="center">Òì³£ </td>');
|
||
}
|
||
}
|
||
else
|
||
{
|
||
document.write('<td align="center">Òì³£ </td>');
|
||
}
|
||
document.write('<td align="center">' + '·ÓÉ£¨DHCP×Ô¶¯»ñÈ¡£©' + ' </td>');
|
||
document.write('<td>' + Wan_IP6[i] + ' </td>');
|
||
document.write('<td>' + '/' + ' </td>');
|
||
VoipInfo.showRegisterState(1);
|
||
}
|
||
|
||
document.write('</tr>');
|
||
|
||
if(ITV_name != '')
|
||
{
|
||
document.write('<tr align="middle">');
|
||
|
||
if(Wan_WanValue[i].indexOf(ITV_name) >= 0)
|
||
{
|
||
document.write('<TD align=middle>' + 'ITVÒµÎñ' + ' </TD>');
|
||
|
||
if(PonInfo.PonState == "up")
|
||
{
|
||
if('up' == Wan_Status6[i])
|
||
{
|
||
document.write('<td align="center">Õý³£ </td>');
|
||
}
|
||
else
|
||
{
|
||
document.write('<td align="center">Òì³£ </td>');
|
||
}
|
||
}
|
||
else
|
||
{
|
||
document.write('<td align="center">Òì³£ </td>');
|
||
}
|
||
|
||
document.write('<TD align="center">' + 'ÇŽӣ¨ITVÖÕ¶Ë×Ô¶¯»ñÈ¡£©'+ ' </TD>');
|
||
document.write('<td>' + Wan_IP6[i] + ' </td>');
|
||
document.write('<TD align="center">' + '/' + ' </TD>');
|
||
document.write('<TD align="center">' + '/' + ' </TD>');
|
||
}
|
||
document.write('</tr>');
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
|
||
function PrintRecvPower()
|
||
{
|
||
if(PonInfo.RecvPower == '-')
|
||
{
|
||
document.write('<TD width="250">' + '<font color="#ff0000">' +'¹âÏ˲å½Ó²»Õý³££¬Çë¼ì²é¹â·»òODFÊÇ·ñÓнӴí'+ ' </font></TD>');
|
||
}
|
||
else if(PonInfo.RecvPower < -24)
|
||
{
|
||
document.write('<TD width="250">' + '<font color="#ff0000">' +'¹â¹¦ÂʹýµÍ£¬Çë¼ì²é¹â·»òODFÊÇ·ñÓнӴí(' + PonInfo.RecvPower + 'dbm)'+ ' </font></TD>');
|
||
}
|
||
else
|
||
{
|
||
document.write('<TD width="250">' + PonInfo.RecvPower + 'dBm' + ' </TD>');
|
||
}
|
||
}
|
||
|
||
function VoipInfoClass()
|
||
{
|
||
this.Reg1Status = '<%if tcWebAPI_get("InfoVoIP_Entry0", "Status", "h") <> "N/A" then tcWebAPI_get("InfoVoIP_Entry0", "Status", "s") else asp_Write("") end if %>';
|
||
this.Reg2Status = '<%if tcWebAPI_get("InfoVoIP_Entry1", "Status", "h") <> "N/A" then tcWebAPI_get("InfoVoIP_Entry1", "Status", "s") else asp_Write("") end if %>';
|
||
this.Line1Number = '<%if tcWebAPI_get("VoIPBasic_Entry0", "SIPDisplayName", "h") <> "N/A" then tcWebAPI_get("VoIPBasic_Entry0", "SIPDisplayName", "s") else asp_Write("") end if %>';
|
||
this.Line2Number = '<%if tcWebAPI_get("VoIPBasic_Entry1", "SIPDisplayName", "h") <> "N/A" then tcWebAPI_get("VoIPBasic_Entry1", "SIPDisplayName", "s") else asp_Write("") end if %>';
|
||
this.showRegisterState = showRegisterState;
|
||
}
|
||
var VoipInfo = new VoipInfoClass();
|
||
|
||
function showRegisterState(port)
|
||
{
|
||
var Status = '';
|
||
|
||
if ( 1 == port )
|
||
{
|
||
Status = this.Reg1Status;
|
||
}
|
||
else if ( 2 == port )
|
||
{
|
||
Status = this.Reg2Status;
|
||
}
|
||
else
|
||
{
|
||
return;
|
||
}
|
||
|
||
if ( Status == 'Up' )
|
||
document.write('<td>' +'Õý³£×¢²á'+ ' </td>');
|
||
else if ( Status == 'Initializing' )
|
||
document.write('<td>' +'³õʼ»¯ÖÐ'+ ' </td>');
|
||
else if ( Status == 'Registering' )
|
||
document.write('<td>' +'×¢²áÖÐ'+ ' </td>');
|
||
else if ( Status == 'Unregistering' )
|
||
document.write('<td>' +'δע²á'+ ' </td>');
|
||
else if ( Status == 'Quiescent' )
|
||
document.write('<td>' +'Í£Ö¹µÄ'+ ' </td>');
|
||
else if ( Status == 'Disabled' )
|
||
document.write('<td>' +'ȥʹÄÜ'+ ' </td>');
|
||
else if ( Status == 'Error' )
|
||
document.write('<td>' +'¹ÊÕÏ'+ ' </td>');
|
||
else if ( Status == 'Testing' )
|
||
document.write('<td>' +'²âÊÔÖÐ'+ ' </td>');
|
||
else
|
||
document.write('<td>' +'ÆäËûÒì³£'+ ' </td>');
|
||
}
|
||
<% end if%>
|
||
function usable_port(index)
|
||
{
|
||
var pvcindex = Wan_IFName[index].indexOf('_')-1;
|
||
var interface = parseInt(Wan_IFName[index].substr(pvcindex,1));
|
||
var tempbuf = '';
|
||
var usable_port='';
|
||
switch(interface)
|
||
{
|
||
case 0:
|
||
<%if tcWebAPI_get("Wan_PVC0_Entry0", "LAN1", "h") = "Yes" then%>
|
||
tempbuf += ',LAN1';
|
||
<%end if%>
|
||
<%if tcWebAPI_get("Wan_PVC0_Entry0", "LAN2", "h") = "Yes" then%>
|
||
tempbuf += ',LAN2';
|
||
<%end if%>
|
||
<%if tcWebAPI_get("Wan_PVC0_Entry0", "LAN3", "h") = "Yes" then%>
|
||
tempbuf += ',LAN3';
|
||
<%end if%>
|
||
<%if tcWebAPI_get("Wan_PVC0_Entry0", "LAN4", "h") = "Yes" then%>
|
||
tempbuf += ',LAN4';
|
||
<%end if%>
|
||
<%if tcWebAPI_get("Wan_PVC0_Entry0", "SSID1", "h") = "Yes" then%>
|
||
tempbuf += ',SSID1';
|
||
<%end if%>
|
||
<%if tcWebAPI_get("Wan_PVC0_Entry0", "SSID2", "h") = "Yes" then%>
|
||
tempbuf += ',SSID2';
|
||
<%end if%>
|
||
<%if tcWebAPI_get("Wan_PVC0_Entry0", "SSID3", "h") = "Yes" then%>
|
||
tempbuf += ',SSID3';
|
||
<%end if%>
|
||
<%if tcWebAPI_get("Wan_PVC0_Entry0", "SSID4", "h") = "Yes" then%>
|
||
tempbuf += ',SSID4';
|
||
<%end if%>
|
||
break;
|
||
case 1:
|
||
<%if tcWebAPI_get("Wan_PVC1_Entry0", "LAN1", "h") = "Yes" then%>
|
||
tempbuf += ',LAN1';
|
||
<%end if%>
|
||
<%if tcWebAPI_get("Wan_PVC1_Entry0", "LAN2", "h") = "Yes" then%>
|
||
tempbuf += ',LAN2';
|
||
<%end if%>
|
||
<%if tcWebAPI_get("Wan_PVC1_Entry0", "LAN3", "h") = "Yes" then%>
|
||
tempbuf += ',LAN3';
|
||
<%end if%>
|
||
<%if tcWebAPI_get("Wan_PVC1_Entry0", "LAN4", "h") = "Yes" then%>
|
||
tempbuf += ',LAN4';
|
||
<%end if%>
|
||
<%if tcWebAPI_get("Wan_PVC1_Entry0", "SSID1", "h") = "Yes" then%>
|
||
tempbuf += ',SSID1';
|
||
<%end if%>
|
||
<%if tcWebAPI_get("Wan_PVC1_Entry0", "SSID2", "h") = "Yes" then%>
|
||
tempbuf += ',SSID2';
|
||
<%end if%>
|
||
<%if tcWebAPI_get("Wan_PVC1_Entry0", "SSID3", "h") = "Yes" then%>
|
||
tempbuf += ',SSID3';
|
||
<%end if%>
|
||
<%if tcWebAPI_get("Wan_PVC1_Entry0", "SSID4", "h") = "Yes" then%>
|
||
tempbuf += ',SSID4';
|
||
<%end if%>
|
||
break;
|
||
case 2:
|
||
<%if tcWebAPI_get("Wan_PVC2_Entry0", "LAN1", "h") = "Yes" then%>
|
||
tempbuf += ',LAN1';
|
||
<%end if%>
|
||
<%if tcWebAPI_get("Wan_PVC2_Entry0", "LAN2", "h") = "Yes" then%>
|
||
tempbuf += ',LAN2';
|
||
<%end if%>
|
||
<%if tcWebAPI_get("Wan_PVC2_Entry0", "LAN3", "h") = "Yes" then%>
|
||
tempbuf += ',LAN3';
|
||
<%end if%>
|
||
<%if tcWebAPI_get("Wan_PVC2_Entry0", "LAN4", "h") = "Yes" then%>
|
||
tempbuf += ',LAN4';
|
||
<%end if%>
|
||
<%if tcWebAPI_get("Wan_PVC2_Entry0", "SSID1", "h") = "Yes" then%>
|
||
tempbuf += ',SSID1';
|
||
<%end if%>
|
||
<%if tcWebAPI_get("Wan_PVC2_Entry0", "SSID2", "h") = "Yes" then%>
|
||
tempbuf += ',SSID2';
|
||
<%end if%>
|
||
<%if tcWebAPI_get("Wan_PVC2_Entry0", "SSID3", "h") = "Yes" then%>
|
||
tempbuf += ',SSID3';
|
||
<%end if%>
|
||
<%if tcWebAPI_get("Wan_PVC2_Entry0", "SSID4", "h") = "Yes" then%>
|
||
tempbuf += ',SSID4';
|
||
<%end if%>
|
||
break;
|
||
case 3:
|
||
<%if tcWebAPI_get("Wan_PVC3_Entry0", "LAN1", "h") = "Yes" then%>
|
||
tempbuf += ',LAN1';
|
||
<%end if%>
|
||
<%if tcWebAPI_get("Wan_PVC3_Entry0", "LAN2", "h") = "Yes" then%>
|
||
tempbuf += ',LAN2';
|
||
<%end if%>
|
||
<%if tcWebAPI_get("Wan_PVC3_Entry0", "LAN3", "h") = "Yes" then%>
|
||
tempbuf += ',LAN3';
|
||
<%end if%>
|
||
<%if tcWebAPI_get("Wan_PVC3_Entry0", "LAN4", "h") = "Yes" then%>
|
||
tempbuf += ',LAN4';
|
||
<%end if%>
|
||
<%if tcWebAPI_get("Wan_PVC3_Entry0", "SSID1", "h") = "Yes" then%>
|
||
tempbuf += ',SSID1';
|
||
<%end if%>
|
||
<%if tcWebAPI_get("Wan_PVC3_Entry0", "SSID2", "h") = "Yes" then%>
|
||
tempbuf += ',SSID2';
|
||
<%end if%>
|
||
<%if tcWebAPI_get("Wan_PVC3_Entry0", "SSID3", "h") = "Yes" then%>
|
||
tempbuf += ',SSID3';
|
||
<%end if%>
|
||
<%if tcWebAPI_get("Wan_PVC3_Entry0", "SSID4", "h") = "Yes" then%>
|
||
tempbuf += ',SSID4';
|
||
<%end if%>
|
||
break;
|
||
case 4:
|
||
<%if tcWebAPI_get("Wan_PVC4_Entry0", "LAN1", "h") = "Yes" then%>
|
||
tempbuf += ',LAN1';
|
||
<%end if%>
|
||
<%if tcWebAPI_get("Wan_PVC4_Entry0", "LAN2", "h") = "Yes" then%>
|
||
tempbuf += ',LAN2';
|
||
<%end if%>
|
||
<%if tcWebAPI_get("Wan_PVC4_Entry0", "LAN3", "h") = "Yes" then%>
|
||
tempbuf += ',LAN3';
|
||
<%end if%>
|
||
<%if tcWebAPI_get("Wan_PVC4_Entry0", "LAN4", "h") = "Yes" then%>
|
||
tempbuf += ',LAN4';
|
||
<%end if%>
|
||
<%if tcWebAPI_get("Wan_PVC4_Entry0", "SSID1", "h") = "Yes" then%>
|
||
tempbuf += ',SSID1';
|
||
<%end if%>
|
||
<%if tcWebAPI_get("Wan_PVC4_Entry0", "SSID2", "h") = "Yes" then%>
|
||
tempbuf += ',SSID2';
|
||
<%end if%>
|
||
<%if tcWebAPI_get("Wan_PVC4_Entry0", "SSID3", "h") = "Yes" then%>
|
||
tempbuf += ',SSID3';
|
||
<%end if%>
|
||
<%if tcWebAPI_get("Wan_PVC4_Entry0", "SSID4", "h") = "Yes" then%>
|
||
tempbuf += ',SSID4';
|
||
<%end if%>
|
||
break;
|
||
case 5:
|
||
<%if tcWebAPI_get("Wan_PVC5_Entry0", "LAN1", "h") = "Yes" then%>
|
||
tempbuf += ',LAN1';
|
||
<%end if%>
|
||
<%if tcWebAPI_get("Wan_PVC5_Entry0", "LAN2", "h") = "Yes" then%>
|
||
tempbuf += ',LAN2';
|
||
<%end if%>
|
||
<%if tcWebAPI_get("Wan_PVC5_Entry0", "LAN3", "h") = "Yes" then%>
|
||
tempbuf += ',LAN3';
|
||
<%end if%>
|
||
<%if tcWebAPI_get("Wan_PVC5_Entry0", "LAN4", "h") = "Yes" then%>
|
||
tempbuf += ',LAN4';
|
||
<%end if%>
|
||
<%if tcWebAPI_get("Wan_PVC5_Entry0", "SSID1", "h") = "Yes" then%>
|
||
tempbuf += ',SSID1';
|
||
<%end if%>
|
||
<%if tcWebAPI_get("Wan_PVC5_Entry0", "SSID2", "h") = "Yes" then%>
|
||
tempbuf += ',SSID2';
|
||
<%end if%>
|
||
<%if tcWebAPI_get("Wan_PVC5_Entry0", "SSID3", "h") = "Yes" then%>
|
||
tempbuf += ',SSID3';
|
||
<%end if%>
|
||
<%if tcWebAPI_get("Wan_PVC5_Entry0", "SSID4", "h") = "Yes" then%>
|
||
tempbuf += ',SSID4';
|
||
<%end if%>
|
||
break;
|
||
case 6:
|
||
<%if tcWebAPI_get("Wan_PVC6_Entry0", "LAN1", "h") = "Yes" then%>
|
||
tempbuf += ',LAN1';
|
||
<%end if%>
|
||
<%if tcWebAPI_get("Wan_PVC6_Entry0", "LAN2", "h") = "Yes" then%>
|
||
tempbuf += ',LAN2';
|
||
<%end if%>
|
||
<%if tcWebAPI_get("Wan_PVC6_Entry0", "LAN3", "h") = "Yes" then%>
|
||
tempbuf += ',LAN3';
|
||
<%end if%>
|
||
<%if tcWebAPI_get("Wan_PVC6_Entry0", "LAN4", "h") = "Yes" then%>
|
||
tempbuf += ',LAN4';
|
||
<%end if%>
|
||
<%if tcWebAPI_get("Wan_PVC6_Entry0", "SSID1", "h") = "Yes" then%>
|
||
tempbuf += ',SSID1';
|
||
<%end if%>
|
||
<%if tcWebAPI_get("Wan_PVC6_Entry0", "SSID2", "h") = "Yes" then%>
|
||
tempbuf += ',SSID2';
|
||
<%end if%>
|
||
<%if tcWebAPI_get("Wan_PVC6_Entry0", "SSID3", "h") = "Yes" then%>
|
||
tempbuf += ',SSID3';
|
||
<%end if%>
|
||
<%if tcWebAPI_get("Wan_PVC6_Entry0", "SSID4", "h") = "Yes" then%>
|
||
tempbuf += ',SSID4';
|
||
<%end if%>
|
||
break;
|
||
case 7:
|
||
<%if tcWebAPI_get("Wan_PVC7_Entry0", "LAN1", "h") = "Yes" then%>
|
||
tempbuf += ',LAN1';
|
||
<%end if%>
|
||
<%if tcWebAPI_get("Wan_PVC7_Entry0", "LAN2", "h") = "Yes" then%>
|
||
tempbuf += ',LAN2';
|
||
<%end if%>
|
||
<%if tcWebAPI_get("Wan_PVC7_Entry0", "LAN3", "h") = "Yes" then%>
|
||
tempbuf += ',LAN3';
|
||
<%end if%>
|
||
<%if tcWebAPI_get("Wan_PVC7_Entry0", "LAN4", "h") = "Yes" then%>
|
||
tempbuf += ',LAN4';
|
||
<%end if%>
|
||
<%if tcWebAPI_get("Wan_PVC7_Entry0", "SSID1", "h") = "Yes" then%>
|
||
tempbuf += ',SSID1';
|
||
<%end if%>
|
||
<%if tcWebAPI_get("Wan_PVC7_Entry0", "SSID2", "h") = "Yes" then%>
|
||
tempbuf += ',SSID2';
|
||
<%end if%>
|
||
<%if tcWebAPI_get("Wan_PVC7_Entry0", "SSID3", "h") = "Yes" then%>
|
||
tempbuf += ',SSID3';
|
||
<%end if%>
|
||
<%if tcWebAPI_get("Wan_PVC7_Entry0", "SSID4", "h") = "Yes" then%>
|
||
tempbuf += ',SSID4';
|
||
<%end if%>
|
||
break;
|
||
}
|
||
for(var i= 1 ;i<tempbuf.length;i++)
|
||
{
|
||
usable_port += tempbuf.charAt(i);
|
||
}
|
||
return usable_port;
|
||
}
|
||
|
||
function ListCreate_info2()
|
||
{
|
||
var index = -1;
|
||
var index1 = -1;
|
||
var loc = new Array();
|
||
var usable = new Array();
|
||
var disusable = new Array();
|
||
for(var i=0; i<pvc_counts; i++)
|
||
{
|
||
loc[i] = '<TABLE cellSpacing=0 cellPadding=3 width=440 border=1>';
|
||
loc[i] += '<tr>';
|
||
loc[i] += '<TD class=table_title align=middle width="15%">ÒµÎñÀàÐÍ</TD>';
|
||
loc[i] += '<TD class=table_title align=middle width="15%">״̬</TD>';
|
||
loc[i] += '<TD class=table_title align=middle width="15%">IPÐÒé</TD>';
|
||
loc[i] += '<TD class=table_title align=middle width="15%">Á¬½Óģʽ</TD>';
|
||
loc[i] += '<TD class=table_title align=middle width="15%">¿ÉÓö˿Ú</TD>';
|
||
loc[i] += '<TD class=table_title align=middle width="15%">Á¬½ÓÃû³Æ</TD>';
|
||
loc[i] += '</tr>';
|
||
loc[i] += '<tr>';
|
||
if(Wan_WanName[i].indexOf('INTERNET') >= 0)
|
||
{
|
||
var port = usable_port(i);
|
||
loc[i] += '<td width="15">' + 'ÍøÂç' + '</td>';
|
||
if(Wan_IPVERSION[i] == "IPv4" || Wan_IPVERSION[i] == "IPv4/IPv6")
|
||
{
|
||
if(PonInfo.PonState == "up")
|
||
{
|
||
if('up' == Wan_Status4[i])
|
||
{
|
||
loc[i] += '<td width="15">' + '¿ÉÓÃ' + '</td>';
|
||
index ++;
|
||
usable[index] = i;
|
||
}
|
||
else
|
||
{
|
||
loc[i] += '<td width="15">' + '²»¿ÉÓÃ' + '</td>';
|
||
index1 ++;
|
||
disusable[index1] = i;
|
||
}
|
||
loc[i] += '<td width="15">' + Wan_IPVERSION[i] + '</td>';
|
||
if( (Wan_ENCAP[i].indexOf('PPPoE') >=0 ) || (Wan_ENCAP[i].indexOf('DHCP') >=0 ) )
|
||
{
|
||
loc[i] += '<td width="15">' + '·ÓÉ' + '</td>';
|
||
}
|
||
else
|
||
{
|
||
loc[i] += '<td width="15">' + 'ÇŽÓ' + '</td>';
|
||
}
|
||
loc[i] += '<td width="15">' + port + '</td>';
|
||
loc[i] += '<td width="25">' + Wan_WanName[i] + '</td>';
|
||
}
|
||
else
|
||
{
|
||
index1 ++;
|
||
disusable[index1] = i;
|
||
loc[i] += '<td width="15">' + '²»¿ÉÓÃ' + '</td>';
|
||
loc[i] += '<td width="15">' + Wan_IPVERSION[i] + '</td>';
|
||
if( (Wan_ENCAP[i].indexOf('PPPoE') >=0 ) || (Wan_ENCAP[i].indexOf('DHCP') >=0 ) )
|
||
{
|
||
loc[i] += '<td width="15">' + '·ÓÉ' + '</td>';
|
||
}
|
||
else
|
||
{
|
||
loc[i] += '<td width="15">' + 'ÇŽÓ' + '</td>';
|
||
}
|
||
|
||
loc[i] += '<td width="15">' + port + '</td>';
|
||
loc[i] += '<td width="25">' + Wan_WanName[i] + '</td>';
|
||
}
|
||
}
|
||
else if(Wan_IPVERSION[i] == "IPv6")
|
||
{
|
||
if(PonInfo.PonState == "up")
|
||
{
|
||
if('up' == Wan_Status6[i])
|
||
{
|
||
loc[i] += '<td width="15">' + '¿ÉÓÃ' + '</td>';
|
||
index ++;
|
||
usable[index] = i;
|
||
}
|
||
else
|
||
{
|
||
loc[i] += '<td width="15">' + '²»¿ÉÓÃ' + '</td>';
|
||
index1 ++;
|
||
disusable[index1] = i;
|
||
}
|
||
loc[i] += '<td width="15">' + Wan_IPVERSION[i] + '</td>';
|
||
if( (Wan_ENCAP[i].indexOf('PPPoE') >=0 ) || (Wan_ENCAP[i].indexOf('DHCP') >=0 ) )
|
||
{
|
||
loc[i] += '<td width="15">' + '·ÓÉ' + '</td>';
|
||
}
|
||
else
|
||
{
|
||
loc[i] += '<td width="15">' + 'ÇŽÓ' + '</td>';
|
||
}
|
||
loc[i] += '<td width="15">' + port + '</td>';
|
||
loc[i] += '<td width="25">' + Wan_WanName[i] + '</td>';
|
||
}
|
||
else
|
||
{
|
||
index1 ++;
|
||
disusable[index1] = i;
|
||
loc[i] += '<td width="15">' + '²»¿ÉÓÃ' + '</td>';
|
||
loc[i] += '<td width="15">' + Wan_IPVERSION[i] + '</td>';
|
||
if( (Wan_ENCAP[i].indexOf('PPPoE') >=0 ) || (Wan_ENCAP[i].indexOf('DHCP') >=0 ) )
|
||
{
|
||
loc[i] += '<td width="15">' + '·ÓÉ' + '</td>';
|
||
}
|
||
else
|
||
{
|
||
loc[i] += '<td width="15">' + 'ÇŽÓ' + '</td>';
|
||
}
|
||
loc[i] += '<td width="15">' + port + '</td>';
|
||
loc[i] += '<td width="25">' + Wan_WanName[i] + '</td>';
|
||
}
|
||
}
|
||
}
|
||
else
|
||
{
|
||
loc[i] += '<td width="15">' + 'ÍøÂç' + '</td>';
|
||
loc[i] += '<td width="15">' + 'δÅäÖÃ' + '</td>';
|
||
loc[i] += '<td width="15">' + 'δÅäÖÃ' + '</td>';
|
||
loc[i] += '<td width="15">' + 'δÅäÖÃ' + '</td>';
|
||
loc[i] += '<td width="15">' + 'δÅäÖÃ' + '</td>';
|
||
loc[i] += '<td width="25">' + 'δÅäÖÃ' + '</td>';
|
||
}
|
||
loc[i] += '</tr>';
|
||
}
|
||
if(index != -1)
|
||
return loc[usable[0]];
|
||
else {
|
||
if(index1 != -1)
|
||
return loc[disusable[0]];
|
||
}
|
||
return loc[0];
|
||
}
|
||
function ListCreate_info3()
|
||
{
|
||
var index = -1;
|
||
var index1 = -1;
|
||
var loc = new Array();
|
||
var ITV_name = '<% tcWebApi_get("WanInfo_Common","ITVInfo","s") %>';
|
||
var usable = new Array();
|
||
var disusable = new Array();
|
||
for(var i=0; i<pvc_counts; i++)
|
||
{
|
||
loc[i] = '<tr>';
|
||
if(Wan_WanName[i].indexOf(ITV_name) >= 0)
|
||
{
|
||
var port = usable_port(i);
|
||
loc[i] += '<td width="15">' + 'iTV' + '</td>';
|
||
if(Wan_IPVERSION[i] == "IPv4" || Wan_IPVERSION[i] == "IPv4/IPv6")
|
||
{
|
||
if(PonInfo.PonState == "up")
|
||
{
|
||
if('up' == Wan_Status4[i])
|
||
{
|
||
loc[i] += '<td width="15">' + '¿ÉÓÃ' + '</td>';
|
||
index ++;
|
||
usable[index] = i;
|
||
}
|
||
else
|
||
{
|
||
loc[i] += '<td width="15">' + '²»¿ÉÓÃ' + '</td>';
|
||
index1 ++;
|
||
disusable[index1] = i;
|
||
}
|
||
loc[i] += '<td width="15">' + Wan_IPVERSION[i] + '</td>';
|
||
if( (Wan_ENCAP[i].indexOf('PPPoE') >=0 ) || (Wan_ENCAP[i].indexOf('DHCP') >=0 ) )
|
||
{
|
||
loc[i] += '<td width="15">' + '·ÓÉ' + '</td>';
|
||
}
|
||
else
|
||
{
|
||
loc[i] += '<td width="15">' + 'ÇŽÓ' + '</td>';
|
||
}
|
||
loc[i] += '<td width="15">' + port + '</td>';
|
||
loc[i] += '<td width="25">' + Wan_WanName[i] + '</td>';
|
||
}
|
||
else
|
||
{
|
||
index1 ++;
|
||
disusable[index1] = i;
|
||
loc[i] += '<td width="15">' + port + '</td>';
|
||
loc[i] += '<td width="15">' + Wan_IPVERSION[i] + '</td>';
|
||
if( (Wan_ENCAP[i].indexOf('PPPoE') >=0 ) || (Wan_ENCAP[i].indexOf('DHCP') >=0 ) )
|
||
{
|
||
loc[i] += '<td width="15">' + '·ÓÉ' + '</td>';
|
||
}
|
||
else
|
||
{
|
||
loc[i] += '<td width="15">' + 'ÇŽÓ' + '</td>';
|
||
}
|
||
loc[i] += '<td width="15">' + port + '</td>';
|
||
loc[i] += '<td width="25">' + Wan_WanName[i] + '</td>';
|
||
}
|
||
}
|
||
else if(Wan_IPVERSION[i] == "IPv6")
|
||
{
|
||
if(PonInfo.PonState == "up")
|
||
{
|
||
if('up' == Wan_Status6[i])
|
||
{
|
||
loc[i] += '<td width="15">' + '¿ÉÓÃ' + '</td>';
|
||
index ++;
|
||
usable[index] = i;
|
||
}
|
||
else
|
||
{
|
||
loc[i] += '<td width="15">' + '²»¿ÉÓÃ' + '</td>';
|
||
index1 ++;
|
||
usable[index1] = i;
|
||
}
|
||
loc[i] += '<td width="15">' + Wan_IPVERSION[i] + '</td>';
|
||
if( (Wan_ENCAP[i].indexOf('PPPoE') >=0 ) || (Wan_ENCAP[i].indexOf('DHCP') >=0 ) )
|
||
{
|
||
loc[i] += '<td width="15">' + '·ÓÉ' + '</td>';
|
||
}
|
||
else
|
||
{
|
||
loc[i] += '<td width="15">' + 'ÇŽÓ' + '</td>';
|
||
}
|
||
loc[i] += '<td width="15">' + port + '</td>';
|
||
loc[i] += '<td width="25">' + Wan_WanName[i] + '</td>';
|
||
}
|
||
else
|
||
{
|
||
index1 ++;
|
||
usable[index1] = i;
|
||
loc[i] += '<td width="15">' + '²»¿ÉÓÃ' + '</td>';
|
||
loc[i] += '<td width="15">' + Wan_IPVERSION[i] + '</td>';
|
||
if( (Wan_ENCAP[i].indexOf('PPPoE') >=0 ) || (Wan_ENCAP[i].indexOf('DHCP') >=0 ) )
|
||
{
|
||
loc[i] += '<td width="15">' + '·ÓÉ' + '</td>';
|
||
}
|
||
else
|
||
{
|
||
loc[i] += '<td width="15">' + 'ÇŽÓ' + '</td>';
|
||
}
|
||
loc[i] += '<td width="15">' + port + '</td>';
|
||
loc[i] += '<td width="25">' + Wan_WanName[i] + '</td>';
|
||
}
|
||
}
|
||
}
|
||
else
|
||
{
|
||
loc[i] += '<td width="15">' + 'iTV' + '</td>';
|
||
loc[i] += '<td width="15">' + 'δÅäÖÃ' + '</td>';
|
||
loc[i] += '<td width="15">' + 'δÅäÖÃ' + '</td>';
|
||
loc[i] += '<td width="15">' + 'δÅäÖÃ' + '</td>';
|
||
loc[i] += '<td width="15">' + 'δÅäÖÃ' + '</td>';
|
||
loc[i] += '<td width="25">' + 'δÅäÖÃ' + '</td>';
|
||
}
|
||
loc[i] += '</tr>';
|
||
|
||
}
|
||
if(index != -1)
|
||
return loc[usable[0]];
|
||
else {
|
||
if(index1 != -1)
|
||
return loc[disusable[0]];
|
||
}
|
||
return loc[0];
|
||
}
|
||
function ListCreate_info4()
|
||
{
|
||
var index = -1;
|
||
var index1 = -1;
|
||
var loc = new Array();
|
||
var usable = new Array();
|
||
var disusable = new Array();
|
||
for(var i=0; i<pvc_counts; i++)
|
||
{
|
||
var port = usable_port(i);
|
||
loc[i] = '<tr>';
|
||
if(Wan_WanName[i].indexOf('VOICE') >= 0)
|
||
{
|
||
loc[i] += '<td width="15">' + 'ÓïÒô' + '</td>';
|
||
if(Wan_IPVERSION[i] == "IPv4" || Wan_IPVERSION[i] == "IPv4/IPv6")
|
||
{
|
||
if(PonInfo.PonState == "up")
|
||
{
|
||
if('up' == Wan_Status4[i])
|
||
{
|
||
loc[i] += '<td width="15">' + '¿ÉÓÃ' + '</td>';
|
||
index ++;
|
||
usable[index] = i;
|
||
}
|
||
else
|
||
{
|
||
loc[i] += '<td width="15">' + '²»¿ÉÓÃ' + '</td>';
|
||
index1 ++;
|
||
disusable[index1] = i;
|
||
}
|
||
loc[i] += '<td width="15">' + Wan_IPVERSION[i] + '</td>';
|
||
if( (Wan_ENCAP[i].indexOf('PPPoE') >=0 ) || (Wan_ENCAP[i].indexOf('DHCP') >=0 ) )
|
||
{
|
||
loc[i] += '<td width="15">' + '·ÓÉ' + '</td>';
|
||
}
|
||
else
|
||
{
|
||
loc[i] += '<td width="15">' + 'ÇŽÓ' + '</td>';
|
||
}
|
||
loc[i] += '<td width="15">' + port + '</td>';
|
||
loc[i] += '<td width="25">' + Wan_WanName[i] + '</td>';
|
||
}
|
||
else
|
||
{
|
||
index1 ++;
|
||
disusable[index1] = i;
|
||
loc[i] += '<td width="15">' + '²»¿ÉÓÃ' + '</td>';
|
||
loc[i] += '<td width="15">' + Wan_IPVERSION[i] + '</td>';
|
||
if( (Wan_ENCAP[i].indexOf('PPPoE') >=0 ) || (Wan_ENCAP[i].indexOf('DHCP') >=0 ) )
|
||
{
|
||
loc[i] += '<td width="15">' + '·ÓÉ' + '</td>';
|
||
}
|
||
else
|
||
{
|
||
loc[i] += '<td width="15">' + 'ÇŽÓ' + '</td>';
|
||
}
|
||
loc[i] += '<td width="15">' + port + '</td>';
|
||
loc[i] += '<td width="25">' + Wan_WanName[i] + '</td>';
|
||
}
|
||
}
|
||
else if(Wan_IPVERSION[i] == "IPv6" || Wan_IPVERSION[i] == "IPv4/IPv6")
|
||
{
|
||
if(PonInfo.PonState == "up")
|
||
{
|
||
if('up' == Wan_Status6[i])
|
||
{
|
||
loc[i] += '<td width="15">' + '¿ÉÓÃ' + '</td>';
|
||
index ++;
|
||
usable[index] = i;
|
||
}
|
||
else
|
||
{
|
||
loc[i] += '<td width="15">' + '²»¿ÉÓÃ' + '</td>';
|
||
index1 ++;
|
||
disusable[index1] = i;
|
||
}
|
||
loc[i] += '<td width="15">' + Wan_IPVERSION[i] + '</td>';
|
||
if( (Wan_ENCAP[i].indexOf('PPPoE') >=0 ) || (Wan_ENCAP[i].indexOf('DHCP') >=0 ) )
|
||
{
|
||
loc[i] += '<td width="15">' + '·ÓÉ' + '</td>';
|
||
}
|
||
else
|
||
{
|
||
loc[i] += '<td width="15">' + 'ÇŽÓ' + '</td>';
|
||
}
|
||
loc[i] += '<td width="15">' + port + '</td>';
|
||
loc[i] += '<td width="25">' + Wan_WanName[i] + '</td>';
|
||
}
|
||
else
|
||
{
|
||
index1 ++;
|
||
disusable[index1] = i;
|
||
loc[i] += '<td width="15">' + '²»¿ÉÓÃ' + '</td>';
|
||
loc[i] += '<td width="15">' + Wan_IPVERSION[i] + '</td>';
|
||
if( (Wan_ENCAP[i].indexOf('PPPoE') >=0 ) || (Wan_ENCAP[i].indexOf('DHCP') >=0 ) )
|
||
{
|
||
loc[i] += '<td width="15">' + '·ÓÉ' + '</td>';
|
||
}
|
||
else
|
||
{
|
||
loc[i] += '<td width="15">' + 'ÇŽÓ' + '</td>';
|
||
}
|
||
loc[i] += '<td width="15">' + port + '</td>';
|
||
loc[i] += '<td width="25">' + Wan_WanName[i] + '</td>';
|
||
}
|
||
}
|
||
}
|
||
else
|
||
{
|
||
loc[i] += '<td width="15">' + 'ÓïÒô' + '</td>';
|
||
loc[i] += '<td width="15">' + 'δÅäÖÃ' + '</td>';
|
||
loc[i] += '<td width="15">' + 'δÅäÖÃ' + '</td>';
|
||
loc[i] += '<td width="15">' + 'δÅäÖÃ' + '</td>';
|
||
loc[i] += '<td width="15">' + 'δÅäÖÃ' + '</td>';
|
||
loc[i] += '<td width="25">' + 'δÅäÖÃ' + '</td>';
|
||
}
|
||
loc[i] += '</tr>';
|
||
}
|
||
|
||
if(index != -1)
|
||
return loc[usable[0]];
|
||
else
|
||
{
|
||
if(index1 != -1)
|
||
return loc[disusable[0]];
|
||
else
|
||
return loc[0];
|
||
}
|
||
}
|
||
function ListCreate_info5()
|
||
{
|
||
var index = -1;
|
||
var index1 = -1;
|
||
var loc = new Array();
|
||
var usable = new Array();
|
||
var disusable = new Array();
|
||
for(var i=0; i<pvc_counts; i++)
|
||
{
|
||
var port = usable_port(i);
|
||
loc[i] = '<tr>';
|
||
if(Wan_WanName[i].indexOf('TR069') >= 0)
|
||
{
|
||
loc[i] += '<td width="15">' + '¹ÜÀí' + '</td>';
|
||
if(Wan_IPVERSION[i] == "IPv4" || Wan_IPVERSION[i] == "IPv4/IPv6")
|
||
{
|
||
if(PonInfo.PonState == "up")
|
||
{
|
||
if('up' == Wan_Status4[i])
|
||
{
|
||
loc[i] += '<td width="15">' + '¿ÉÓÃ' + '</td>';
|
||
index ++;
|
||
usable[index] = i;
|
||
}
|
||
else
|
||
{
|
||
loc[i] += '<td width="15">' + '²»¿ÉÓÃ' + '</td>';
|
||
index1 ++;
|
||
disusable[index1] = i;
|
||
}
|
||
loc[i] += '<td width="15">' + Wan_IPVERSION[i] + '</td>';
|
||
if( (Wan_ENCAP[i].indexOf('PPPoE') >=0 ) || (Wan_ENCAP[i].indexOf('DHCP') >=0 ) )
|
||
{
|
||
loc[i] += '<td width="15">' + '·ÓÉ' + '</td>';
|
||
}
|
||
else
|
||
{
|
||
loc[i] += '<td width="15">' + 'ÇŽÓ' + '</td>';
|
||
}
|
||
loc[i] += '<td width="15">' + port + '</td>';
|
||
loc[i] += '<td width="25">' + Wan_WanName[i] + '</td>';
|
||
}
|
||
else
|
||
{
|
||
index1 ++;
|
||
disusable[index1] = i;
|
||
loc[i] += '<td width="15">' + '²»¿ÉÓÃ' + '</td>';
|
||
loc[i] += '<td width="15">' + Wan_IPVERSION[i] + '</td>';
|
||
if( (Wan_ENCAP[i].indexOf('PPPoE') >=0 ) || (Wan_ENCAP[i].indexOf('DHCP') >=0 ) )
|
||
{
|
||
loc[i] += '<td width="15">' + '·ÓÉ' + '</td>';
|
||
}
|
||
else
|
||
{
|
||
loc[i] += '<td width="15">' + 'ÇŽÓ' + '</td>';
|
||
}
|
||
loc[i] += '<td width="15">' + port + '</td>';
|
||
loc[i] += '<td width="25">' + Wan_WanName[i] + '</td>';
|
||
}
|
||
}
|
||
else if(Wan_IPVERSION[i] == "IPv6")
|
||
{
|
||
if(PonInfo.PonState == "up")
|
||
{
|
||
if('up' == Wan_Status6[i])
|
||
{
|
||
loc[i] += '<td width="15">' + '¿ÉÓÃ' + '</td>';
|
||
index ++;
|
||
usable[index] = i;
|
||
}
|
||
else
|
||
{
|
||
loc[i] += '<td width="15">' + '²»¿ÉÓÃ' + '</td>';
|
||
index1 ++;
|
||
disusable[index1] = i;
|
||
}
|
||
loc[i] += '<td width="15">' + Wan_IPVERSION[i] + '</td>';
|
||
if( (Wan_ENCAP[i].indexOf('PPPoE') >=0 ) || (Wan_ENCAP[i].indexOf('DHCP') >=0 ) )
|
||
{
|
||
loc[i] += '<td width="15">' + '·ÓÉ' + '</td>';
|
||
}
|
||
else
|
||
{
|
||
loc[i] += '<td width="15">' + 'ÇŽÓ' + '</td>';
|
||
}
|
||
loc[i] += '<td width="15">' + port + '</td>';
|
||
loc[i] += '<td width="25">' + Wan_WanName[i] + '</td>';
|
||
}
|
||
else
|
||
{
|
||
index1 ++;
|
||
disusable[index1] = i;
|
||
loc[i] += '<td width="15">' + '²»¿ÉÓÃ' + '</td>';
|
||
loc[i] += '<td width="15">' + Wan_IPVERSION[i] + '</td>';
|
||
if( (Wan_ENCAP[i].indexOf('PPPoE') >=0 ) || (Wan_ENCAP[i].indexOf('DHCP') >=0 ) )
|
||
{
|
||
loc[i] += '<td width="15">' + '·ÓÉ' + '</td>';
|
||
}
|
||
else
|
||
{
|
||
loc[i] += '<td width="15">' + 'ÇŽÓ' + '</td>';
|
||
}
|
||
loc[i] += '<td width="15">' + port + '</td>';
|
||
loc[i] += '<td width="25">' + Wan_WanName[i] + '</td>';
|
||
}
|
||
}
|
||
}
|
||
else
|
||
{
|
||
loc[i] += '<td width="15">' + '¹ÜÀí' + '</td>';
|
||
loc[i] += '<td width="15">' + 'δÅäÖÃ' + '</td>';
|
||
loc[i] += '<td width="15">' + 'δÅäÖÃ' + '</td>';
|
||
loc[i] += '<td width="15">' + 'δÅäÖÃ' + '</td>';
|
||
loc[i] += '<td width="15">' + 'δÅäÖÃ' + '</td>';
|
||
loc[i] += '<td width="25">' + 'δÅäÖÃ' + '</td>';
|
||
}
|
||
loc[i] += '</tr>';
|
||
loc[i] += '</table>';
|
||
}
|
||
|
||
if(index != -1)
|
||
return loc[usable[0]];
|
||
else
|
||
{
|
||
if(index1 != -1)
|
||
return loc[disusable[0]];
|
||
else
|
||
return loc[0];
|
||
}
|
||
}
|
||
|
||
function writelisttable()
|
||
{
|
||
var loc = '';
|
||
var loc_internet = ListCreate_info2();
|
||
var loc_itv = ListCreate_info3();
|
||
var loc_voice = ListCreate_info4();
|
||
var loc_tr69 = ListCreate_info5();
|
||
|
||
loc = loc_internet + loc_itv + loc_voice + loc_tr69;
|
||
getElById('service').innerHTML = loc;
|
||
}
|
||
|
||
function uptime()
|
||
{
|
||
var ponuptime = "<% tcWebApi_get("DeviceInfo","ponUpTime","s")%>";
|
||
var curtime = '<% tcWebApi_get("DeviceInfo","CurTime","s")%>';
|
||
var update = new Date(ponuptime);
|
||
var curdate = new Date(curtime);
|
||
var diffDate = (curdate.getTime() - update.getTime())/1000;
|
||
var hour;
|
||
var minute;
|
||
var sec;
|
||
var tempbuf = "";
|
||
|
||
hour = parseInt(diffDate/3600);
|
||
minute = parseInt((diffDate%3600)/60);
|
||
sec = (diffDate%3600)%60;
|
||
tempbuf = hour + 'ʱ' + minute + '·Ö' + sec + 'Ãë';
|
||
document.write(tempbuf);
|
||
|
||
}
|
||
|
||
function stWlan(domain,enable,ssid,BeaconType,BasicEncrypt,BasicAuth,WPAEncrypt,WPAAuth,IEEE11iEncrypt,IEEE11iAuth,Channel,ChannelsInUse)
|
||
{
|
||
this.domain = domain;
|
||
this.enable = enable;
|
||
this.ssid = ssid;
|
||
this.BeaconType = BeaconType;
|
||
this.BasicAuth = BasicAuth;
|
||
this.BasicEncrypt = BasicEncrypt;
|
||
this.WPAAuth = WPAAuth;
|
||
this.WPAEncrypt = WPAEncrypt;
|
||
this.IEEE11iAuth = IEEE11iAuth;
|
||
this.IEEE11iEncrypt = IEEE11iEncrypt;
|
||
this.Channel = Channel;
|
||
this.ChannelsInUse = ChannelsInUse;
|
||
}
|
||
|
||
|
||
var WlanInfo = new Array(4);
|
||
WlanInfo[0] = new stWlan("0","<% tcWebApi_get("WLan_Entry0","HideSSID","s") %>","<% tcWebApi_get("WLan_Entry0","SSID","s") %>","<% tcWebApi_get("WLan_Entry0","AuthMode","s") %>","<% tcWebApi_get("WLan_Entry0","AuthMode","s") %>","<% tcWebApi_get("WLan_Entry0","WEPAuthType","s") %>","<% tcWebApi_get("WLan_Entry0","AuthMode","s") %>","<% tcWebApi_get("WLan_Entry0","EncrypType","s") %>","AESEncryption","PSKAuthentication","0","1");
|
||
|
||
WlanInfo[1] = new stWlan("1","<% tcWebApi_get("WLan_Entry1","HideSSID","s") %>","<% tcWebApi_get("WLan_Entry1","SSID","s") %>","<% tcWebApi_get("WLan_Entry1","AuthMode","s") %>","<% tcWebApi_get("WLan_Entry1","AuthMode","s") %>","<% tcWebApi_get("WLan_Entry1","WEPAuthType","s") %>","<% tcWebApi_get("WLan_Entry1","AuthMode","s") %>","<% tcWebApi_get("WLan_Entry1","EncrypType","s") %>","AESEncryption","PSKAuthentication","0","1");
|
||
WlanInfo[2] = new stWlan("2","<% tcWebApi_get("WLan_Entry2","HideSSID","s") %>","<% tcWebApi_get("WLan_Entry2","SSID","s") %>","<% tcWebApi_get("WLan_Entry2","AuthMode","s") %>","<% tcWebApi_get("WLan_Entry2","AuthMode","s") %>","<% tcWebApi_get("WLan_Entry2","WEPAuthType","s") %>","<% tcWebApi_get("WLan_Entry2","AuthMode","s") %>","<% tcWebApi_get("WLan_Entry2","EncrypType","s") %>","AESEncryption","PSKAuthentication","0","1");
|
||
WlanInfo[3] = new stWlan("3","<% tcWebApi_get("WLan_Entry3","HideSSID","s") %>","<% tcWebApi_get("WLan_Entry3","SSID","s") %>","<% tcWebApi_get("WLan_Entry3","AuthMode","s") %>","<% tcWebApi_get("WLan_Entry3","AuthMode","s") %>","<% tcWebApi_get("WLan_Entry3","WEPAuthType","s") %>","<% tcWebApi_get("WLan_Entry3","AuthMode","s") %>","<% tcWebApi_get("WLan_Entry3","EncrypType","s") %>","AESEncryption","PSKAuthentication","0","1");
|
||
|
||
var PacketInfo = new Array();
|
||
PacketInfo = [["0","0","0","0","0","0","0","0","0"],null];
|
||
</SCRIPT>
|
||
|
||
<FORM style="DISPLAY: none" name=ConfigForm></FORM>
|
||
<SCRIPT language=JavaScript src="/JS/printtable.js"></SCRIPT>
|
||
|
||
<TABLE height="100%" cellSpacing=0 cellPadding=0 border=0>
|
||
<TBODY>
|
||
<TR>
|
||
<TD class=Item_L1 width=157 bgColor=#ef8218 height=30>
|
||
<P>É豸»ù±¾ÐÅÏ¢</P></TD>
|
||
<TD width=7 bgColor=#ef8218>¡¡</TD>
|
||
<% if tcWebApi_get("WebCustom_Entry", "isCTFJSupported", "h") = "Yes" then %>
|
||
<TD width=474>¡¡
|
||
<LABEL>ÔÚ±¾Ò³ÃæÉÏ£¬Äú¿ÉÒԲ鿴É豸µÄ»ù±¾ÐÅÏ¢¡¢ITMS×¢²á״̬ºÍÒµÎñ״̬ÏÔʾ¡£
|
||
</LABEL></TD>
|
||
<TD vAlign=top width=170 background=/img/panel4.gif
|
||
rowSpan=7>
|
||
<%else%>
|
||
<TD width=474>¡¡</TD>
|
||
<TD vAlign=top width=170 background=/img/panel4.gif
|
||
rowSpan=20>
|
||
<% end if%>
|
||
<TABLE cellSpacing=0 cellPadding=20 width="100%" border=0 height='100%'>
|
||
<TBODY>
|
||
<TR>
|
||
<TD valign='top'><A href="/cgi-bin/help_content.asp#״̬"
|
||
target=_blank><IMG height=34 src="/img/help.gif"
|
||
width=40 border=0></A></TD></TR>
|
||
<% if tcwebApi_get("WebCustom_Entry","isWebTYLOGOSupported","h") = "Yes" then %>
|
||
<TR>
|
||
<TD valign='bottom'><IMG src='/img/tybottom.jpg' height=76 width=112></TD></TR>
|
||
<% end if %>
|
||
</TBODY></TABLE></TD></TR>
|
||
<TR>
|
||
<TD vAlign=top width=157 bgColor=#e7e7e7 height=10></TD>
|
||
<TD width=7 background=/img/panel3.gif>¡¡</TD>
|
||
<TD></TD></TR>
|
||
<TR>
|
||
<TD class=Item_L2 vAlign=top width=157 bgColor=#e7e7e7 height=30>
|
||
<P></P></TD>
|
||
<TD width=7 background=/img/panel3.gif>¡¡</TD>
|
||
<TD>
|
||
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
|
||
<TBODY>
|
||
<TR>
|
||
<TD width=10> </TD>
|
||
<TD>
|
||
<TABLE cellSpacing=0 cellPadding=3 width=400 border=1>
|
||
<TBODY>
|
||
<% if tcWebApi_get("WebCustom_Entry", "isCTPONCYJXSupported", "h") = "Yes" then %>
|
||
<TR>
|
||
<TD width=100 class=table_title>É豸ÀàÐÍ:</TD>
|
||
<TD width=300>
|
||
<SCRIPT language=javascript>
|
||
document.write(deviceType);
|
||
</SCRIPT>
|
||
</TD></TR>
|
||
</TR>
|
||
<TR>
|
||
<TD width=100 class=table_title>Éú²ú³§¼Ò:</TD>
|
||
<TD width=300>
|
||
<SCRIPT language=javascript>
|
||
document.write('<% tcWebApi_get("DeviceInfo_devParaStatic","Manufacturer","s") %>');
|
||
</SCRIPT>
|
||
</TD></TR>
|
||
<% end if %>
|
||
<% if tcWebApi_get("WebCustom_Entry", "isCTPONYNSupported", "h") = "Yes" then %>
|
||
<TR>
|
||
<TD width=100 class=table_title>É豸ÀàÐÍ:</TD>
|
||
<TD width=300>
|
||
<SCRIPT language=javascript>
|
||
document.write(deviceType);
|
||
</SCRIPT>
|
||
</TD></TR>
|
||
</TR>
|
||
<TR>
|
||
<TD class=table_title>É豸½ÓÈëÀàÐÍ:</TD>
|
||
<TD width=300>
|
||
<SCRIPT language=javascript>
|
||
var xponMode = '<% tcWebApi_get("XPON_Common","xponMode","s")%>';
|
||
if ((xponMode == "N/A") || ( xponMode == "GPON"))
|
||
document.write("Gpon");
|
||
else
|
||
document.write("Epon");
|
||
</SCRIPT>
|
||
</TD></TR>
|
||
</TR>
|
||
<% end if %>
|
||
<TD class=table_title>É豸ÐͺÅ:</TD>
|
||
<% if tcWebApi_get("WebCustom_Entry", "isCTFJSupported", "h") = "Yes" then %>
|
||
<TD width=250>
|
||
<%else%>
|
||
<TD width=300>
|
||
<% end if%>
|
||
<SCRIPT language=javascript>
|
||
<% if tcwebApi_get("WebCustom_Entry","isCYE8SFUSupported","h") = "Yes" then %>
|
||
document.write(top.ModelName_dev);
|
||
<% else %>
|
||
document.write(top.ModelName);
|
||
<% end if %>
|
||
</SCRIPT>
|
||
</TD></TR>
|
||
<% if tcWebApi_get("WebCustom_Entry", "isCTFJSupported", "h") = "Yes" then %>
|
||
<TR style="display:none">
|
||
<TD class=table_title>ÃèÊö:</TD>
|
||
<TD width=250>
|
||
<SCRIPT language=javascript>
|
||
document.write('<% tcWebApi_get("DeviceInfo_devParaStatic","DevDescribtion","s") %>');
|
||
</SCRIPT>
|
||
</TD></TR>
|
||
<% end if%>
|
||
<TR>
|
||
<TD class=table_title>É豸±êʶºÅ:</TD>
|
||
<% if tcWebApi_get("WebCustom_Entry", "isCTFJSupported", "h") = "Yes" then %>
|
||
<TD width=250 style="word-break:break-all">
|
||
<%else%>
|
||
<TD width=300 style="word-break:break-all">
|
||
<% end if%>
|
||
<%If tcWebApi_get("DeviceInfo_devParaDynamic","ManufacturerOUI","h") <> "N/A" Then tcWebApi_get("DeviceInfo_devParaDynamic","ManufacturerOUI","s") asp_write("-") end if%><%If tcWebApi_get("DeviceInfo_devParaDynamic","SerialNum","h") <> "N/A" Then tcWebApi_get("DeviceInfo_devParaDynamic","SerialNum","s") end if%>
|
||
|
||
</TD></TR>
|
||
<% if tcWebApi_get("WebCustom_Entry", "isCTFJSupported", "h") = "Yes" then %>
|
||
<TR style="DISPLAY: none">
|
||
<TD class=table_title>¼ÒÍ¥Íø¿¨×´Ì¬:</TD>
|
||
<TD width=250>¼ÒÍ¥Íø¹Ø¿¨²åÈëÕý³£</TD>
|
||
</TD></TR>
|
||
<% end if%>
|
||
<TR>
|
||
<TD class=table_title>Ó²¼þ°æ±¾:</TD>
|
||
<% if tcWebApi_get("WebCustom_Entry", "isCTFJSupported", "h") = "Yes" then %>
|
||
<TD width=250>
|
||
<%else%>
|
||
<TD width=300>
|
||
<% end if%>
|
||
<%If tcWebApi_get("DeviceInfo_devParaStatic","CustomerHWVersion","h") <> "N/A" Then tcWebApi_get("DeviceInfo_devParaStatic","CustomerHWVersion","s") end if%>
|
||
</TD></TR>
|
||
<TR>
|
||
<TD class=table_title>Èí¼þ°æ±¾:</TD>
|
||
<% if tcWebApi_get("WebCustom_Entry", "isCTFJSupported", "h") = "Yes" then %>
|
||
<TD width=250>
|
||
<%else%>
|
||
<TD width=300>
|
||
<% end if%>
|
||
<%If tcWebApi_get("DeviceInfo_devParaStatic","CustomerSWVersion","h") <> "N/A" Then tcWebApi_get("DeviceInfo_devParaStatic","CustomerSWVersion","s") end if%>
|
||
</TD></TR>
|
||
<% if tcWebApi_get("WebCustom_Entry", "isCTPONCZGDSupported", "h") = "Yes" then %>
|
||
<TR>
|
||
<TD class=table_title>°æ±¾Ê±¼ä:</TD>
|
||
<% if tcWebApi_get("WebCustom_Entry", "isCTFJSupported", "h") = "Yes" then %>
|
||
<TD width=250>
|
||
<%else%>
|
||
<TD width=300>
|
||
<% end if%>
|
||
<SCRIPT language=javascript>
|
||
var compileTime = '<%tcWebApi_get("DeviceInfo","CompileTime","s")%>';
|
||
var compileTimelist = compileTime.split(' ');
|
||
if ( 6 == compileTimelist.length )
|
||
{
|
||
document.write( compileTimelist[1] + ' ' + compileTimelist[2] + ' ' + compileTimelist[5] + ' ' + compileTimelist[3] );
|
||
}
|
||
else
|
||
document.write('N/A');
|
||
</SCRIPT>
|
||
|
||
</TD>
|
||
</TR>
|
||
<% end if%>
|
||
<% if tcWebApi_get("WebCustom_Entry", "isCTFJSupported", "h") = "Yes" then %>
|
||
<TR>
|
||
<TD class=table_title>OLT×¢²á״̬:</TD>
|
||
<TD width=250>
|
||
<%If tcWebApi_get("XPON_Common","trafficStatus","h") = "up" Then%>
|
||
<SCRIPT language=JavaScript type=text/javascript>
|
||
document.write("×¢²áÕý³£");
|
||
</SCRIPT>
|
||
<%else%>
|
||
<SCRIPT language=JavaScript type=text/javascript>
|
||
document.write("×¢²áʧ°Ü£¨Çë¼ì²éÊչ⹦ÂÊ»òÈ·ÈÏLOIDÊÇ·ñÕýÈ·£©");
|
||
</SCRIPT>
|
||
<%end if%>
|
||
</TD></TR>
|
||
<TR>
|
||
<TD class=table_title>ITMS×¢²á״̬:</TD>
|
||
<TD width=250>
|
||
<SCRIPT language=JavaScript type=text/javascript>
|
||
var Status = '<% tcWebApi_get("deviceAccount_Entry","registerStatus","s")%>';
|
||
if ( Status == '0' || Status == '5')
|
||
document.write("×¢²áÕý³£");
|
||
else
|
||
document.write("×¢²áʧ°Ü");
|
||
</SCRIPT>
|
||
</TD></TR>
|
||
<TR>
|
||
<TD class=table_title>½ÓÊչ⹦ÂÊ:</TD>
|
||
<SCRIPT language=javascript>
|
||
PrintRecvPower();
|
||
</SCRIPT>
|
||
</TR>
|
||
<% end if%>
|
||
<TR id=div_BatCode>
|
||
<TD class=table_title>Åú´Î±àÂë:</TD>
|
||
<TD width=300>
|
||
<%If tcWebApi_get("DeviceInfo_devParaStatic","BatCode","h") <> "N/A" Then tcWebApi_get("DeviceInfo_devParaStatic","BatCode","s") end if%>
|
||
</TD></TR>
|
||
<SCRIPT language=JavaScript type=text/javascript>
|
||
getElement("div_BatCode").style.display = "none";
|
||
</SCRIPT>
|
||
<% if tcWebApi_get("WebCustom_Entry", "isCTPONYNSupported", "h") = "Yes" then %>
|
||
<TR>
|
||
<TD class=table_title>PON×¢²á״̬:</TD>
|
||
<TD width=250>
|
||
<SCRIPT language=javascript>
|
||
var g_authStstus = '<% tcWebApi_get("GPON_LOIDAuth","AuthStatus","s")%>';
|
||
var e_authStstus = '<% tcWebApi_get("EPON_LOIDAuth","AuthStatus","s")%>';
|
||
var trafficStstus = '<% tcWebApi_get("XPON_Common","trafficStatus","s")%>';
|
||
var linkStstus = '<% tcWebApi_get("XPON_LinkCfg","LinkSta","s")%>';
|
||
if (trafficStstus == "up")
|
||
{
|
||
document.write("×¢²á³É¹¦");
|
||
}
|
||
else if(linkStstus != "0") // phy up
|
||
{
|
||
if((linkStstus == "1" && g_authStstus == "2") || (linkStstus == "2" && e_authStstus == "2")) // linkStstus 1:gpon 2:epon
|
||
{
|
||
document.write("×¢²áʧ°Ü");
|
||
}
|
||
else
|
||
{
|
||
document.write("ÕýÔÚ×¢²á");
|
||
}
|
||
}
|
||
else
|
||
{
|
||
document.write("δע²á");
|
||
}
|
||
</SCRIPT>
|
||
</TD></TR>
|
||
</TR>
|
||
<% end if %>
|
||
<% if tcWebApi_get("WebCustom_Entry", "isCTGDSupported", "h") = "Yes" then %>
|
||
<TR>
|
||
<TD class=table_title>PON×¢²á״̬:</TD>
|
||
<TD width=300>
|
||
<SCRIPT language=JavaScript type=text/javascript>
|
||
var trafficStatus = '<% tcWebApi_get("XPON_Common","trafficStatus","s")%>';
|
||
if(trafficStatus == "up")
|
||
{
|
||
document.write("³É¹¦-ÒÑ×¢²áÒÑÈÏÖ¤");
|
||
}
|
||
else
|
||
{
|
||
var losStatus = '<% tcWebApi_get("XPON_Common","losStatus","s")%>';
|
||
if ( losStatus.indexOf("down") >= 0)
|
||
{
|
||
document.write("ʧ°Ü-δע²áδÈÏÖ¤");
|
||
}
|
||
else
|
||
{
|
||
document.write("ʧ°Ü-ÒÑ×¢²áδÈÏÖ¤");
|
||
}
|
||
}
|
||
</SCRIPT>
|
||
</TD>
|
||
</TR>
|
||
<% end if%>
|
||
</TBODY></TABLE></TD>
|
||
<TD width=10> </TD></TR>
|
||
<TR>
|
||
<TD width=10> </TD>
|
||
<TD></TD>
|
||
<TD width=10> </TD></TR></TBODY></TABLE></TD></TR>
|
||
<% if tcWebApi_get("WebCustom_Entry", "isCTFJSupported", "h") = "Yes" then %>
|
||
<TR>
|
||
<TD vAlign=top width=157 bgColor=#e7e7e7 height=10></TD>
|
||
<TD width=7 background=/img/panel3.gif>¡¡</TD>
|
||
<TD></TD></TR>
|
||
<TR>
|
||
<TD class=Item_L2 vAlign=top width=157 bgColor=#e7e7e7 height=30>
|
||
<P></P></TD>
|
||
<TD width=7 background=/img/panel3.gif>¡¡</TD>
|
||
<TD>
|
||
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
|
||
<TBODY>
|
||
<TR>
|
||
<TD width=10> </TD>
|
||
<TD>
|
||
<TABLE cellSpacing=0 cellPadding=3 width=400 border=1>
|
||
<TBODY>
|
||
<TR>
|
||
<TD class=table_title align=middle width="20%"> </TD>
|
||
<TD class=table_title align=middle width="15%">ͨµÀ£¨WANÁ¬½Ó£©×´Ì¬</TD>
|
||
<TD class=table_title align=middle width="20%">IPµØÖ·»ñÈ¡·½Ê½</TD>
|
||
<TD class=table_title align=middle width="15%">»ñÈ¡µÄIPµØÖ·</TD>
|
||
<TD class=table_title align=middle width="15%">ÉÏÍø²¦ºÅ״̬</TD>
|
||
<TD class=table_title align=middle width="15%">ÓïÒô×¢²á״̬</TD></TR>
|
||
<SCRIPT language=JavaScript type=text/javascript>
|
||
ListCreate_info1();
|
||
</SCRIPT>
|
||
</TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR>
|
||
<% end if%>
|
||
<% if tcWebApi_get("WebCustom_Entry", "isCTPONCYJXSupported", "h") = "Yes" then %>
|
||
<TR>
|
||
<TD width=157 bgColor=#ef8218 height=30>
|
||
<P class=Item_L1>PONÐÅÏ¢</P></TD>
|
||
<TD width=7 bgColor=#ef8218>¡¡</TD>
|
||
<TD width=474>¡¡</TD></TR>
|
||
<TR>
|
||
<TD vAlign=top width=157 bgColor=#e7e7e7 height=10></TD>
|
||
<TD width=7 background=/img/panel3.gif>¡¡</TD>
|
||
<TD></TD></TR>
|
||
<TR>
|
||
<TD class=Item_L2 vAlign=top width=157 bgColor=#e7e7e7 height=30>
|
||
<P></P></TD>
|
||
<TD width=7 background=/img/panel3.gif>¡¡</TD>
|
||
<TD>
|
||
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
|
||
<TBODY>
|
||
<TR>
|
||
<TD width=10> </TD>
|
||
<TD>
|
||
<TABLE cellSpacing=0 cellPadding=3 width=400 border=1>
|
||
<TBODY>
|
||
|
||
<TR>
|
||
<TD width=100 class=table_title>Ïß·ÐÒé:</TD>
|
||
<TD width=300>
|
||
<% if tcWebApi_get("XPON_LinkCfg","LinkSta","h") = "1" then asp_write("GPON")
|
||
|
||
elseif tcWebApi_get("XPON_LinkCfg","LinkSta","h") = "2" then asp_write("EPON")
|
||
|
||
else asp_write("Unknown")
|
||
end if %>
|
||
</TD></TR>
|
||
<TR>
|
||
<TD width=100 class=table_title>Á¬½Ó״̬:</TD>
|
||
<TD width=300>
|
||
<% if tcWebApi_get("XPON_Common","trafficStatus","h") = "up" then asp_write("ÒÑÁ¬½Ó")
|
||
|
||
else asp_write("δÁ¬½Ó")
|
||
end if %>
|
||
</TD></TR>
|
||
<TR>
|
||
<TD width=100 class=table_title>Á¬½Óʱ¼ä:</TD>
|
||
<input type="hidden" name="Uptime" id="Uptime" value="<% tcWebApi_get("DeviceInfo","ponUpTime","s")%>">
|
||
<TD width=300>
|
||
<SCRIPT language=javascript>
|
||
if(PonInfo.trafficstate == "up")
|
||
uptime();
|
||
else
|
||
document.write("0ʱ0·Ö0Ãë");
|
||
</SCRIPT>
|
||
</TD></TR>
|
||
<TR>
|
||
<TD width=100 class=table_title>·¢Ë͹⹦ÂÊ:</TD>
|
||
<TD width=300>
|
||
<SCRIPT language=JavaScript type=text/javascript>
|
||
document.write(PonInfo.SendPower);
|
||
</SCRIPT>dBm
|
||
</TD></TR>
|
||
<TR>
|
||
<TD width=100 class=table_title>½ÓÊչ⹦ÂÊ:</TD>
|
||
<TD width=300>
|
||
<SCRIPT language=JavaScript type=text/javascript>
|
||
document.write(PonInfo.RecvPower);
|
||
</SCRIPT>dBm
|
||
</TD></TR>
|
||
</TBODY></TABLE></TD>
|
||
<TD width=10> </TD></TR>
|
||
<TR>
|
||
<TD width=10> </TD>
|
||
<TD></TD>
|
||
<TD width=10> </TD></TR></TBODY></TABLE></TD></TR>
|
||
<TR>
|
||
|
||
<TD width=157 bgColor=#ef8218 height=30>
|
||
<P class=Item_L1>Íø¹Ø×¢²áÐÅÏ¢</P></TD>
|
||
<TD width=7 bgColor=#ef8218>¡¡</TD>
|
||
<TD width=474>¡¡</TD></TR>
|
||
<TR>
|
||
<TD vAlign=top width=157 bgColor=#e7e7e7 height=10></TD>
|
||
<TD width=7 background=/img/panel3.gif>¡¡</TD>
|
||
<TD></TD></TR>
|
||
<TR>
|
||
<TD class=Item_L2 vAlign=top width=157 bgColor=#e7e7e7 height=30>
|
||
<P></P></TD>
|
||
<TD width=7 background=/img/panel3.gif>¡¡</TD>
|
||
<TD>
|
||
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
|
||
<TBODY>
|
||
<TR>
|
||
<TD width=10> </TD>
|
||
<TD>
|
||
<TABLE cellSpacing=0 cellPadding=3 width=400 border=1>
|
||
<TBODY>
|
||
|
||
<TR>
|
||
<TD width=130 class=table_title>Âß¼ID:</TD>
|
||
<TD width=270>
|
||
<% if tcWebApi_get("XPON_LinkCfg","LinkSta","h") = "1" then tcWebApi_get("GPON_LOIDAuth","LOID","s")
|
||
else tcWebApi_get("EPON_LOIDAuth","LOID0","s")
|
||
end if %>
|
||
</TD></TR>
|
||
<TR>
|
||
<TD width=130 class=table_title>¹â·£¨OLT£©ÈÏÖ¤:</TD>
|
||
<TD width=270>
|
||
<SCRIPT language=javascript>
|
||
if(PonInfo.trafficstate == "up")
|
||
document.write("ÒÑÈÏÖ¤");
|
||
else
|
||
document.write("δÈÏÖ¤");
|
||
</SCRIPT>
|
||
</TD></TR>
|
||
<TR>
|
||
<TD width=130 class=table_title>¹ÜÀí£¨ITMS£©×¢²á:</TD>
|
||
<TD width=270>
|
||
<SCRIPT language=javascript>
|
||
var Status = '<% tcWebApi_get("deviceAccount_Entry","registerStatus","s")%>';
|
||
if ( Status == '0' || Status == '5')
|
||
document.write("ÒÑ×¢²á");
|
||
else
|
||
document.write("δע²á");
|
||
</SCRIPT>
|
||
</TD></TR>
|
||
</TBODY></TABLE></TD>
|
||
<TD width=10> </TD></TR>
|
||
<TR>
|
||
<TD width=10> </TD>
|
||
<TD></TD>
|
||
<TD width=10> </TD></TR></TBODY></TABLE></TD></TR>
|
||
<TR>
|
||
<TD width=157 bgColor=#ef8218 height=30>
|
||
<P class=Item_L1>ÒµÎñÐÅÏ¢</P></TD>
|
||
<TD width=7 bgColor=#ef8218>¡¡</TD>
|
||
<TD width=474>¡¡</TD></TR>
|
||
<TR>
|
||
<TD vAlign=top width=157 bgColor=#e7e7e7 height=10></TD>
|
||
<TD width=7 background=/img/panel3.gif>¡¡</TD>
|
||
<TD></TD></TR>
|
||
<TR>
|
||
<TD class=Item_L2 vAlign=top width=157 bgColor=#e7e7e7 height=30>
|
||
<P></P></TD>
|
||
<TD width=7 background=/img/panel3.gif>¡¡</TD>
|
||
<TD>
|
||
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
|
||
<TBODY>
|
||
<TR>
|
||
<TD width=10> </TD>
|
||
<TD>
|
||
<div id=service></div>
|
||
</TD>
|
||
<TD width=10> </TD></TR>
|
||
<TR>
|
||
<TD width=10> </TD>
|
||
<TD></TD>
|
||
<TD width=10> </TD></TR></TBODY></TABLE></TD></TR>
|
||
<TR>
|
||
<TD width=157 bgColor=#ef8218 height=30>
|
||
<P class=Item_L1>Óû§²àÒÔÌ«ÍøÐÅÏ¢</P></TD>
|
||
<TD width=7 bgColor=#ef8218>¡¡</TD>
|
||
<TD width=474>¡¡</TD></TR>
|
||
<TR>
|
||
<TD vAlign=top width=157 bgColor=#e7e7e7 height=10></TD>
|
||
<TD width=7 background=/img/panel3.gif>¡¡</TD>
|
||
<TD></TD></TR>
|
||
<TR>
|
||
<TD class=Item_L2 vAlign=top width=157 bgColor=#e7e7e7 height=30>
|
||
<P></P></TD>
|
||
<TD width=7 background=/img/panel3.gif>¡¡</TD>
|
||
<TD>
|
||
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
|
||
<TBODY>
|
||
<TR>
|
||
<TD width=10> </TD>
|
||
<TD>
|
||
<TABLE cellSpacing=0 cellPadding=3 width=400 border=1>
|
||
<TBODY>
|
||
|
||
<TR>
|
||
<TD width=130 class=table_title>Íø¿Ú1:</TD>
|
||
<TD width=270>
|
||
<SCRIPT language=javascript>
|
||
var Status = "<% tcWebApi_get("Info_Ether","Port1Status","s") %>";
|
||
if ( Status == '1')
|
||
document.write("ÒÑÁ¬½ÓÉ豸");
|
||
else
|
||
document.write("δÁ¬½ÓÉ豸");
|
||
</SCRIPT>
|
||
</TD></TR>
|
||
<% if tcwebApi_get("WebCustom_Entry","isCT1PORTSupported","h") <> "Yes" then %>
|
||
<TR>
|
||
<TD width=130 class=table_title>Íø¿Ú2:</TD>
|
||
<TD width=270>
|
||
<SCRIPT language=javascript>
|
||
var Status = "<% tcWebApi_get("Info_Ether","Port2Status","s") %>";
|
||
if ( Status == '1')
|
||
document.write("ÒÑÁ¬½ÓÉ豸");
|
||
else
|
||
document.write("δÁ¬½ÓÉ豸");
|
||
</SCRIPT>
|
||
</TD></TR>
|
||
<%end if%>
|
||
<% if tcwebApi_get("WebCustom_Entry","isCT2PORTSSupported","h") <> "Yes" then %>
|
||
<TR>
|
||
<TD width=130 class=table_title>Íø¿Ú3:</TD>
|
||
<TD width=270>
|
||
<SCRIPT language=javascript>
|
||
var Status = "<% tcWebApi_get("Info_Ether","Port3Status","s") %>";
|
||
if ( Status == '1')
|
||
document.write("ÒÑÁ¬½ÓÉ豸");
|
||
else
|
||
document.write("δÁ¬½ÓÉ豸");
|
||
</SCRIPT>
|
||
</TD></TR>
|
||
<TR>
|
||
<TD width=130 class=table_title>Íø¿Ú4:</TD>
|
||
<TD width=270>
|
||
<SCRIPT language=javascript>
|
||
var Status = "<% tcWebApi_get("Info_Ether","Port4Status","s") %>";
|
||
if ( Status == '1')
|
||
document.write("ÒÑÁ¬½ÓÉ豸");
|
||
else
|
||
document.write("δÁ¬½ÓÉ豸");
|
||
</SCRIPT>
|
||
</TD></TR>
|
||
<%end if%>
|
||
</TBODY></TABLE>
|
||
</TD>
|
||
<TD width=10> </TD></TR>
|
||
<TR>
|
||
<TD width=10> </TD>
|
||
<TD></TD>
|
||
<TD width=10> </TD></TR></TBODY></TABLE></TD></TR>
|
||
<% if TCWebApi_get("WebCustom_Entry","isWLanSupported","h" ) = "Yes" then %>
|
||
<TR>
|
||
<TD width=157 bgColor=#ef8218 height=30>
|
||
<P class=Item_L1>Óû§²àWLanÐÅÏ¢</P></TD>
|
||
<TD width=7 bgColor=#ef8218>¡¡</TD>
|
||
<TD width=474>¡¡</TD></TR>
|
||
<TR>
|
||
<TD vAlign=top width=157 bgColor=#e7e7e7 height=10></TD>
|
||
<TD width=7 background=/img/panel3.gif>¡¡</TD>
|
||
<TD></TD></TR>
|
||
<TR>
|
||
<TD class=Item_L2 vAlign=top width=157 bgColor=#e7e7e7 height=30>
|
||
<P></P></TD>
|
||
<TD width=7 background=/img/panel3.gif>¡¡</TD>
|
||
<TD>
|
||
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
|
||
<TBODY>
|
||
<TR>
|
||
<TD width=10> </TD>
|
||
<TD>
|
||
<TABLE cellSpacing=0 cellPadding=3 width="400" border=1>
|
||
<TBODY>
|
||
<TR>
|
||
<TD class=table_title width="29%">ÎÞÏßÍøÂçÁ¬½Ó״̬:</TD>
|
||
<TD width="71%">
|
||
|
||
<SCRIPT language=JavaScript type=text/javascript>
|
||
var wlanEnbl = "<% TCWebApi_get("WLan_Common", "APOn", "s") %>";
|
||
if (wlanEnbl == "0")
|
||
{
|
||
document.write('δÆôÓÃ')
|
||
}
|
||
else
|
||
{
|
||
document.write('ÆôÓÃ')
|
||
}
|
||
</SCRIPT>
|
||
</TD></TR>
|
||
<SCRIPT language=JavaScript type=text/javascript>
|
||
if (( wlanEnbl == "1") && (curUserName == sptUserName))
|
||
document.write( '<tr>' +
|
||
'<td class="table_title">ÐŵÀ:</td>' +
|
||
'<td>' + "<%tcWebApi_get("Info_WLan","CurrentChannel","s") %>" +' </td>' +
|
||
//'<td>' + WlanInfo[0].ChannelsInUse +' </td>' +
|
||
'</tr>');
|
||
</SCRIPT>
|
||
</TBODY></TABLE><BR>
|
||
<TABLE id=NetPacketInfo_WLan cellSpacing=0 cellPadding=3
|
||
width="100%" border=1>
|
||
<TBODY>
|
||
<TR>
|
||
<TD class=table_title align=middle>½Ó¿Ú</TD>
|
||
<TD class=table_title align=middle colSpan=4>
|
||
<CENTER>½ÓÊÕ </CENTER></TD>
|
||
<TD class=table_title align=middle colSpan=4>
|
||
<CENTER>·¢ËÍ </CENTER></TD></TR>
|
||
<TR>
|
||
<TD class=table_title align=middle> </TD>
|
||
<TD class=table_title align=middle>×Ö½Ú</TD>
|
||
<TD class=table_title align=middle>°ü</TD>
|
||
<TD class=table_title align=middle>´íÎó</TD>
|
||
<TD class=table_title align=middle>¶ªÆú</TD>
|
||
<TD class=table_title align=middle>×Ö½Ú</TD>
|
||
<TD class=table_title align=middle>°ü</TD>
|
||
<TD class=table_title align=middle>´íÎó</TD>
|
||
<TD class=table_title align=middle>¶ªÆú</TD></TR>
|
||
<SCRIPT language=javascript>
|
||
if (wlanEnbl == "1")
|
||
{
|
||
document.writeln(" <tr>");
|
||
document.writeln(" <td class='table_title' align='center'>" + "ÎÞÏß" + "</td>");
|
||
document.writeln("<td>" + "<% tcWebApi_get("Info_WLan","rxbytes","s") %>" + " </td>");
|
||
document.writeln("<td>" + "<% tcWebApi_get("Info_WLan","wlanRxFrames","s") %>" + " </td>");
|
||
document.writeln("<td>" + "<% tcWebApi_get("Info_WLan","wlanRxErrFrames","s") %>" + " </td>");
|
||
document.writeln("<td>" + "<% tcWebApi_get("Info_WLan","wlanRxDropFrames","s") %>" + " </td>");
|
||
|
||
document.writeln("<td>" + "<% tcWebApi_get("Info_WLan","txbytes","s") %>" + " </td>");
|
||
document.writeln("<td>" + "<% tcWebApi_get("Info_WLan","wlanTxFrames","s") %>" + " </td>");
|
||
document.writeln("<td>" + "<% tcWebApi_get("Info_WLan","wlanTxErrFrames","s") %>" + " </td>");
|
||
document.writeln("<td>" + "<% tcWebApi_get("Info_WLan","wlanTxDropFrames","s") %>" + " </td>");
|
||
document.writeln(" </tr>");
|
||
}
|
||
</SCRIPT>
|
||
</TBODY></TABLE>
|
||
<TABLE cellSpacing=0 cellPadding=3 width="400" border=1>
|
||
<TBODY>
|
||
<TR>
|
||
<TD width="20%" height="28" align=middle class=table_title>SSIDË÷Òý</TD>
|
||
<TD class=table_title align=middle>SSIDÃû³Æ</TD>
|
||
<TD class=table_title align=middle>°²È«ÅäÖÃ</TD>
|
||
<TD class=table_title align=middle>ÈÏÖ¤·½Ê½</TD>
|
||
<TD class=table_title align=middle>¼ÓÃÜ </TD></TR>
|
||
<SCRIPT language=javascript>
|
||
var ssidnum=<% tcWebApi_get("WLan_Common","BssidNum","s") %>
|
||
|
||
if (wlanEnbl == "1")
|
||
{
|
||
for (var i = 0; i < ssidnum; i++)
|
||
{
|
||
var Auth = "";
|
||
var Encrypt = "";
|
||
var AuthSt = "ÒÑÅäÖÃ";
|
||
if (WlanInfo[i].BeaconType.indexOf('WEP') > -1)
|
||
{
|
||
Auth = WlanInfo[i].BasicAuth;
|
||
Encrypt = WlanInfo[i].BasicEncrypt;
|
||
}
|
||
else if(WlanInfo[i].BeaconType.indexOf('OPEN') > -1)
|
||
{
|
||
Auth = "OPENSYSTEM";
|
||
Encrypt = "NONE";
|
||
AuthSt = "δÅäÖÃ";
|
||
}
|
||
else
|
||
{
|
||
Encrypt = WlanInfo[i].WPAAuth;
|
||
Auth = WlanInfo[i].WPAEncrypt;
|
||
}
|
||
document.writeln('<tr>' + '<td class="table_title" align="center">' + 'SSID-' + (i+1) + ':</td>' + '<td align="center">' + WlanInfo[i].ssid + ' </td><td align="center">' + AuthSt + ' </td>' + ' </td><td align="center">' + Auth.toUpperCase () + ' </td>' + '<td' + ' align="center">' + Encrypt.toUpperCase() + ' </td>' + '</tr>');
|
||
}
|
||
}
|
||
</SCRIPT>
|
||
<BR>
|
||
</TABLE>
|
||
</TD>
|
||
<TD width=10> </TD></TR>
|
||
<TR>
|
||
<TD width=10> </TD>
|
||
<TD></TD>
|
||
<TD width=10> </TD></TR></TBODY></TABLE></TD></TR>
|
||
<%end if%>
|
||
<%end if%>
|
||
<TR>
|
||
<TD vAlign=top width=157 bgColor=#e7e7e7 height=10></TD>
|
||
<TD width=7 background=/img/panel3.gif>¡¡</TD>
|
||
<TD></TD></TR>
|
||
|
||
<TR>
|
||
<TD vAlign=top width=157 bgColor=#e7e7e7></TD>
|
||
<TD width=7 background=/img/panel3.gif>¡¡</TD>
|
||
<TD></TD></TR></TBODY></TABLE></TD></TR>
|
||
<TR>
|
||
<TD height=1>
|
||
<TABLE id=table7 height=35 cellSpacing=0 cellPadding=0 width=808
|
||
border=0><TBODY>
|
||
<TR>
|
||
<TD width=162 bgColor=#ef8218>¡¡</TD>
|
||
<TD width=278 bgColor=#427594>¡¡</TD>
|
||
<TD width=196 bgColor=#427594>
|
||
<P align=center></P></TD>
|
||
<TD width=170
|
||
bgColor=#313031>¡¡</TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></BODY></HTML>
|