add added files
[bcm963xx.git] / userapps / broadcom / cfm / html / adslcfg.html
diff --git a/userapps/broadcom/cfm/html/adslcfg.html b/userapps/broadcom/cfm/html/adslcfg.html
new file mode 100755 (executable)
index 0000000..85d5194
--- /dev/null
@@ -0,0 +1,143 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<!--
+       (c) 2005 U.S. Robotics Corporation
+-->
+<html>
+<head>
+       <title>Internet &raquo; ADSL Settings</title>
+
+       <link href="usr_main.css" rel="stylesheet" type="text/css">
+       <script src="usr_menus.js" type="text/javascript"></script>
+       <script src="usr_common.js" type="text/javascript"></script>
+
+       <meta HTTP-EQUIV='Pragma' CONTENT='no-cache'>
+
+<script type="text/javascript">
+<!-- hide
+setPageTitle("<%ejGetWl(wlInterface)%>");
+
+var chipId = <%ejGetOther(sysInfo, chipId)%>;
+
+function frmLoad() {
+   var adslFlag = '<%ejGet(adslFlag)%>';
+
+   with ( document.forms[0] ) {
+      if (adslFlag & 1)
+         adslMod[0].checked = true;
+      if (adslFlag & 2)
+         adslMod[1].checked = true;
+      if (adslFlag & 4)
+         adslMod[2].checked = true;
+      if (adslFlag & 8)
+         adslMod[3].checked = true;
+      if (adslFlag & 16)
+         adslMod[4].checked = true;
+      if (chipId == 0x6348 || chipId == 0x6338) {
+         if (adslFlag & 32)
+            adslMod[5].checked = true;
+         if (!(adslFlag & 64))
+            adslMod[6].checked = true;
+      } else {
+         if (adslFlag & 64)
+            adslMod[5].checked = true;
+      }
+      if (!(adslFlag & 0x02000000))
+         adslBitswap.checked = true;
+
+      if (adslFlag & 0x08000000)
+         adslSra.checked = true;
+   }
+}
+
+function applyClick() {
+   var loc = 'adslcfg.cgi?adslFlag=';
+   var adslFlag = 64;
+
+   with ( document.forms[0] ) {
+      if (adslMod[0].checked)
+         adslFlag |= 1;
+      if (adslMod[1].checked)
+         adslFlag |= 2;
+      if (adslMod[2].checked)
+         adslFlag |= 4;
+      if (adslMod[3].checked)
+         adslFlag |= 8;
+      if (adslMod[4].checked)
+         adslFlag |= 16;
+      if (chipId == 0x6348 || chipId == 0x6338) {
+         if (adslMod[5].checked)
+            adslFlag |= 32;
+         if (adslMod[6].checked)
+            adslFlag ^= 64;
+      } else {
+         if (adslMod[5].checked)
+            adslFlag |= 64;
+      }
+      if ((adslFlag & 0x000007f) == 0)
+         alert("Need to select at least one modulation mode.");
+
+      if (!adslBitswap.checked)
+         adslFlag |= 0x02000000;
+      if (adslSra.checked)
+         adslFlag |= 0x08000000;
+   }
+   loc += adslFlag;
+   var code = 'location.assign("' + loc + '")';
+   eval(code);
+}
+
+// done hiding -->
+</script>
+</head>
+
+<body onload="initMenu('idMenu'); frmLoad();">
+
+<script type="text/javascript">
+       writeHeader("ADSL Settings", "<%ejGet(curUserName)%>", "<%ejGetOther(sysInfo, adslStd)%>", "<%ejGetOther(sysInfo, noBrPrtcl)%>", <%ejGetOther(sysInfo, pppIpExtension)%>, <%ejGetOther(sysInfo, enblFirewall)%>, <%ejGetOther(sysInfo, enblNat)%>, "<%ejGetWl(wlInterface)%>", <%ejGet(enblQos)%>);
+</script>
+
+<h3>Modulation</h3>
+
+<form>
+<p>Select the modulation:</p>
+<p><input type="checkbox" name="adslMod" id="adslMod">
+       <label for="adslMod">G.DMT</label></p>
+<p><input type="checkbox" name="adslMod">
+       <label for="adslMod">G.lite</label></p>
+<p><input type="checkbox" name="adslMod">
+       <label for="adslMod">T1.413</label></p>
+<p><input type="checkbox" name="adslMod">
+       <label for="adslMod">ADSL2</label></p>
+<p><input type="checkbox" name="adslMod">
+       <label for="adslMod">AnnexL</label></p>
+
+        <script type="text/javascript">
+<!-- hide
+{
+   if (chipId == 0x6348 || chipId == 0x6338)
+      document.writeln("<p><input type='checkbox' name='adslMod' id='adslMod'> \
+                                               <label for='adslMod'>ADSL2+</label></p>");
+}
+// done hiding -->
+</script>
+       <p><input type="checkbox" name="adslMod" id="adslMod">
+               <label for="adslMod">AnnexM</label></p>
+
+<p>Capability:</p>
+<p><input type="checkbox" name="adslBitswap" id="adslBitswap">
+       <label for="adslBitswap">Bitswap</label></p>
+<p><input type="checkbox" name="adslSra" id="adslSra">
+       <label for="adslSra">SRA</label></p>
+
+<p>
+       <input type='button' onClick='applyClick()' value='Apply'>
+       <input type='button' onClick='location.href="adslcfgadv.html"' value='Advanced Settings'>
+</p>
+</form>
+
+<script type="text/javascript">
+       writeFooter();
+</script>
+
+</body>
+</html>