Mercurial > ~darius > hgwebdir.cgi > adslstats
view adsl.html @ 4:f50214bca1ae
Update for Billion 7700NR2
author | Daniel O'Connor <darius@dons.net.au> |
---|---|
date | Fri, 07 Feb 2014 20:35:59 +1030 |
parents | 98fe11ea4c82 |
children |
line wrap: on
line source
<html> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"> <META http-equiv="Pragma" content="no-cache"> <META http-equiv="Expires" content="-1"> <link rel="stylesheet" type="text/css" href="default.css"> <SCRIPT language="javascript"> function SetChannelOptions(index) { var form=document.adsl; var default_annex='A'; a = new Array(7); a[0] = new Option("Auto", "0"); a[1] = new Option("ADSL Multimode", "1"); a[2] = new Option("ADSL2", "2"); a[3] = new Option("ADSL2+", "3"); a[4] = new Option("G.Lite", "4"); a[5] = new Option("T1.413", "5"); a[6] = new Option("G.DMT", "6"); for(var i = form.ADSLRATE.length - 1; i > 0; i--) { form.ADSLRATE.options[i] = null; } for(var i = form.ADSLMODE.length - 1; i > 0; i--) { form.ADSLMODE.options[i] = null; } if (default_annex == 'A'){ b = new Array(4); b[0] = new Option("Open Annex Type and Follow DSLAM's Setting", "0"); b[1] = new Option("Annex A", "1"); b[2] = new Option("Annex L", "2"); b[3] = new Option("Annex M", "3"); b[4] = new Option("Annex J", "4"); form.ADSLMODE.options[0] = b[0]; form.ADSLMODE.options[1] = b[1]; form.ADSLMODE.options[2] = b[2]; form.ADSLMODE.options[3] = b[3]; form.ADSLMODE.options[4] = b[4]; form.ADSLMODE.selectedIndex = index; }else{ b = new Array(1); b[0] = new Option("Annex B", "1"); form.ADSLMODE.options[0] = b[0]; form.ADSLMODE.selectedIndex = index-1; } if (index == 0 || index==1 ){ form.ADSLRATE.options[0] = a[0]; form.ADSLRATE.options[1] = a[1]; form.ADSLRATE.options[2] = a[2]; form.ADSLRATE.options[3] = a[3]; form.ADSLRATE.options[4] = a[4]; form.ADSLRATE.options[5] = a[5]; form.ADSLRATE.options[6] = a[6]; }else{ form.ADSLRATE.options[0] = a[2]; form.ADSLRATE.options[1] = a[3]; } } function load_adsl(){ var form = document.adsl; var ADSL_MODE_VALUE= form.ADSL_MODE.value; SetChannelOptions(form.ADSL_MODE.value); if (ADSL_MODE_VALUE==0 || ADSL_MODE_VALUE==1) form.ADSLRATE.selectedIndex = form.ADSL_RATE.value; else form.ADSLRATE.selectedIndex = form.ADSL_RATE.value-2; } function verifyform() { var form=document.adsl; form.apply.disabled=true; form.reset.disabled=true; form.submit(); return true; } </SCRIPT> </head> <body class="main" link="#3300cc" alink="#ff0000" vlink="#990066" onload="load_adsl();"> <table border="1" cellpadding="0" cellspacing="0" scrolling="no" style="border-collapse: collapse" bordercolor="#FFFFFF" width="80%"> <FORM name=adsl method="post" ACTION="/goform/adsl"> <tr><td class="headline" colspan=2>ADSL</td></tr> <tr><td colspan="2" class="header"><nobr>Parameters</nobr></td></tr> <tr><td class="title" width=35%><nobr>ADSL Mode</nobr></td> <td><nobr> <INPUT type=hidden name="ADSL_MODE" value="0"> <SELECT name=ADSLMODE onchange="SetChannelOptions(this.selectedIndex);"> <tr><td class="title" width=35%><nobr>Modulator</nobr></td> <td><nobr> <INPUT type=hidden name="ADSL_RATE" value="0"> <SELECT name=ADSLRATE> <tr><td class="title" width=35%><nobr>DSP FirmwareVersion</nobr></td> <td><nobr>DMT FwVer: 3.7.6.98_A_TC, HwVer:T14F7_1.0 <tr><td class="title" width=35%><nobr>DMT Status</nobr></td> <td><nobr>Up <tr><td class="title" width=35%><nobr>Operational Mode</nobr></td> <td><nobr>ADSL2 <tr><td class="title" width=35%><nobr>Upstream</nobr></td> <td><nobr>1001 kbps <tr><td class="title" width=35%><nobr>Downstream</nobr></td> <td><nobr>6094 kbps <tr><td class="title" width=35%><nobr>Noise Margin (Upstream)</nobr></td> <td><nobr>6.3 db <tr><td class="title" width=35%><nobr>Noise Margin (Downstream)</nobr></td> <td><nobr>6.2 db <tr><td class="title" width=35%><nobr>Attenuation (Upstream)</nobr></td> <td><nobr>35.2 db <tr><td class="title" width=35%><nobr>Attenuation (Downstream)</nobr></td> <td><nobr>46.0 db <tr> <td class=headline colspan=2> <br> <INPUT type="button" name=apply value="Apply" onclick="verifyform();"> <INPUT type="button" name=reset value="Refresh" onClick="location.reload();"> </td> </tr></FORM> </table> </body> </html>