www.usr.com/support/gpl/USR9113_release1.0.tar.gz
[bcm963xx.git] / userapps / broadcom / cfm / html / tr69cfg.html
index 217102b..0365d7a 100755 (executable)
@@ -1,31 +1,44 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<!--
+       (c) 2006 U.S. Robotics Corporation
+-->
 <html>
 <html>
-   <head>
-      <meta HTTP-EQUIV='Pragma' CONTENT='no-cache'>
-      <link rel="stylesheet" href='stylemain.css' type='text/css'>
-         <link rel="stylesheet" href='colors.css' type='text/css'>
-            <script language="javascript" src="util.js"></script>
-            <script language="javascript">
-<!-- hide
+<head>
+       <title>TR-069 Configuration</title>
+
+       <link href="usr_layout.css" type="text/css" rel="stylesheet" />
+       <script src="usr_layout.js" type="text/javascript"></script>
+       <link href="usr_menus_dropdown.css" rel="stylesheet" type="text/css">
+       <script src="usr_menus_dropdown.js" type="text/javascript"></script>
+       <script src="usr_menus_build.js" type="text/javascript"></script>
+       <link href="usr_device.css" type="text/css" rel="stylesheet" /><script src="usr_device.js" type="text/javascript"></script><link href="usr_91xx.css" type="text/css" rel="stylesheet" /><script src="usr_91xx.js" type="text/javascript"></script><script src="usr_resources.js" type="text/javascript"></script>
+       <script src="util.js" type="text/javascript"></script>
+
+       <meta HTTP-EQUIV='Pragma' CONTENT='no-cache'>
+<script type="text/javascript">
 
 function frmLoad() {
    with ( document.forms[0] ) {
       acsURL.value = '<%ejGetJS(tr69cAcsURL)%>';
       acsUser.value = '<%ejGetJS(tr69cAcsUser)%>';
       acsPwd.value = '<%ejGetJS(tr69cAcsPwd)%>';
 
 function frmLoad() {
    with ( document.forms[0] ) {
       acsURL.value = '<%ejGetJS(tr69cAcsURL)%>';
       acsUser.value = '<%ejGetJS(tr69cAcsUser)%>';
       acsPwd.value = '<%ejGetJS(tr69cAcsPwd)%>';
-      connReqURL.value = '<%ejGetJS(tr69cConnReqURL)%>';
       connReqUser.value = '<%ejGetJS(tr69cConnReqUser)%>';
       connReqPwd.value = '<%ejGetJS(tr69cConnReqPwd)%>';
       connReqUser.value = '<%ejGetJS(tr69cConnReqUser)%>';
       connReqPwd.value = '<%ejGetJS(tr69cConnReqPwd)%>';
-      enblInform = '<%ejGetJS(tr69cInformEnable)%>';
-      if ( enblInform == '1' ) {
-         inform[1].checked = true;
-         informInterval.value = '<%ejGetJS(tr69cInformInterval)%>';
-      } else {
-         inform[0].checked = true;
-         informInterval.value = '';
-      }            
+      if ( '<%ejGetJS(tr69cInformEnable)%>' == '1' )
+         inform.checked = true;
+      if ( '<%ejGetJS(tr69cStatus)%>' == '1' )
+         enblTR69.checked = true;
+      informInterval.value = '<%ejGetJS(tr69cInformInterval)%>';
+      enblTR69Click(enblTR69);  
    }
 }
 
    }
 }
 
+function enblTR69Click(cb) {
+    with (document.forms[0]) {
+        setVisibility("tr69", cb.checked);
+    }
+}
+
 function btnApply() {
    var loc = 'tr69cfg.cgi?';
    with ( document.forms[0] ) {
 function btnApply() {
    var loc = 'tr69cfg.cgi?';
    with ( document.forms[0] ) {
@@ -33,108 +46,111 @@ function btnApply() {
          alert('ACS URL is required.');
          return;
       }
          alert('ACS URL is required.');
          return;
       }
-      if ( inform[1].checked == true ) {
-         loc += 'tr69cInformEnable=1';
-         loc += '&tr69cInformInterval=' + informInterval.value;
-      } else
-         loc += 'tr69cInformEnable=0';
-      
+
+      if ( enblTR69.checked == true )
+         loc += 'tr69cStatus=1';
+         else
+         loc += 'tr69cStatus=0';
+
+      if ( inform.checked == true )
+         loc += '&tr69cInformEnable=1';
+         else
+         loc += '&tr69cInformEnable=0';
+
+      loc += '&tr69cInformInterval=' + informInterval.value;
+
       if (acsURL.value.length > 256) {
       if (acsURL.value.length > 256) {
-         alert('The length of ACS URL (' + acsURL.value.length + ') is too long [1-256].');
+         alert('The maximum length of the ACS URL (' + acsURL.value.length + ') is 256 characters.');
          return;
       }
       loc += '&tr69cAcsURL=' + encodeUrl(acsURL.value);
          return;
       }
       loc += '&tr69cAcsURL=' + encodeUrl(acsURL.value);
-      
+
       if (acsUser.value.length > 256) {
       if (acsUser.value.length > 256) {
-         alert('The length of ACS user name (' + acsUser.value.length + ') is too long [0-256].');
+         alert('The maximum length of the ACS user name (' + acsUser.value.length + ') is 256 characters.');
          return;
       }
       loc += '&tr69cAcsUser=' + encodeUrl(acsUser.value);
          return;
       }
       loc += '&tr69cAcsUser=' + encodeUrl(acsUser.value);
-      
+
       if (acsPwd.value.length > 256) {
       if (acsPwd.value.length > 256) {
-         alert('The length of sysName (' + acsPwd.value.length + ') is too long [0-256].');
+         alert('The maximum length of the ACS password (' + acsPwd.value.length + ') is 256 characters.');
          return;
       }
       loc += '&tr69cAcsPwd=' + encodeUrl(acsPwd.value);
          return;
       }
       loc += '&tr69cAcsPwd=' + encodeUrl(acsPwd.value);
-      
-      if (connReqURL.value.length > 256) {
-         alert('The length of connection request URL (' + connReqURL.value.length + ') is too long [0-256].');
-         return;
-      }
-      loc += '&tr69cConnReqURL=' + encodeUrl(connReqURL.value);
-      
+
       if (connReqUser.value.length > 256) {
       if (connReqUser.value.length > 256) {
-         alert('The length of connection request user name (' + connReqUser.value.length + ') is too long [0-256].');
+         alert('The maximum length of the connection request user name (' + connReqUser.value.length + ') is 256 characters.');
          return;
       }
       loc += '&tr69cConnReqUser=' + encodeUrl(connReqUser.value);
          return;
       }
       loc += '&tr69cConnReqUser=' + encodeUrl(connReqUser.value);
-      
+
       if (connReqPwd.value.length > 256) {
       if (connReqPwd.value.length > 256) {
-         alert('The length of connection request password (' + connReqPwd.value.length + ') is too long [0-256].');
+         alert('The maximum length of the connection request password (' + connReqPwd.value.length + ') is 256 characters.');
          return;
       }
          return;
       }
-      loc += '&connReqPwd=' + encodeUrl(connReqPwd.value);
+      loc += '&tr69cConnReqPwd=' + encodeUrl(connReqPwd.value);
    }
    }
-   
-   var code = 'location = "' + loc + '"';
-   eval(code);
+
+   eval('location="' + loc + '"');
 }
 
 }
 
-// done hiding -->
+function btnGet() {
+   eval('location="tr69get.cgi"');
+}
 </script>
 </script>
-   </head>
-   <body onLoad='frmLoad()'>
-      <blockquote>
-         <form>
-            <b>TR-069 client - Configuration<br>
-            </b>
-            <br>
-            WAN Management Protocol (TR-069) allows a Auto-Configuration Server (ACS) to 
-            perform auto-configuration, provision, collection, and diagnostics to this device.<br>
-            <br>
-            Select the desired values and click "Apply" to configure the TR-069 client options.<br>
-            <br>
-            <table border="0" cellpadding="0" cellspacing="0">
-               <tr>
-                  <td width="80">Inform</td>
-                  <td><input name='inform' type='radio'>Disable</td>
-                  <td><input name='inform' type='radio'>Enable</td>
-               </tr>
-            </table>
-            <br>
-            <table border="0" cellpadding="0" cellspacing="0">
-               <tr>
-                  <td width="200">Inform Interval:</td>
-                  <td><input type='text' name='informInterval' size="20" maxlength="256"></td>
-               </tr>
-               <tr>
-                  <td>ACS URL:</td>
-                  <td><input type='text' name='acsURL' size="20" maxlength="256"></td>
-               </tr>
-               <tr>
-                  <td>ACS User Name:</td>
-                  <td><input type='text' name='acsUser' size="20" maxlength="256"></td>
-               </tr>
-               <tr>
-                  <td>ACS Password:</td>
-                  <td><input type='password' name='acsPwd' size="20" maxlength="256"></td>
-               </tr>
-               <tr>
-                  <td>Connection Request URL:</td>
-                  <td><input type='text' name='connReqURL' size="20" maxlength="256"></td>
-               </tr>
-               <tr>
-                  <td>Connection Request User Name:</td>
-                  <td><input type='text' name='connReqUser' size="20" maxlength="256"></td>
-               </tr>
-               <tr>
-                  <td>Connection Request Password:</td>
-                  <td><input type='password' name='connReqPwd' size="20" maxlength="256"></td>
-               </tr>
-            </table>
-            <p align="center">
-               <input type='button' onClick='btnApply()' value='Save/Reboot'>
-         </form>
-         </P> </blockquote>
-   </body>
+</head>
+
+<body onLoad="initMenu(); frmLoad();">
+
+<script type="text/javascript">
+       writeHeader();
+</script>
+
+<form>
+<p>WAN Management Protocol (TR-069) allows a Auto-Configuration Server (ACS) to
+perform auto-configuration, provision, collection, and diagnostics to this device.</p>
+
+<p><input type="checkbox" name="enblTR69" id="enblTR69" onClick="enblTR69Click(this)"> <label for="enblTR69">Allow TR-069 management protocol</label></p>
+
+<div id="tr69">
+<p><input type="checkbox" name="inform" id="inform"> <label for="inform">Inform</label></p>
+
+<table id="tr69tbl" border="0">
+       <tr>
+               <td><label for="informInterval">Inform interval:</label></td>
+               <td><input type='text' name='informInterval' id='informInterval' size="20" maxlength="256"></td>
+       </tr>
+       <tr>
+               <td><label for="acsURL">ACS URL:</label></td>
+               <td><input type='text' name='acsURL' id='acsURL' size="20" maxlength="256"></td>
+       </tr>
+       <tr>
+               <td><label for="acsUser">ACS user name:</label></td>
+               <td><input type='text' name='acsUser' id='acsUser' size="20" maxlength="256"></td>
+       </tr>
+       <tr>
+               <td><label for="acsPwd">ACS password:</label></td>
+               <td><input type='text' name='acsPwd' id='acsPwd' size="20" maxlength="256"></td>
+       </tr>
+       <tr>
+               <td><label for="connReqUser">Connection request user name:</label></td>
+               <td><input type='text' name='connReqUser' id='connReqUser' size="20" maxlength="256"></td>
+       </tr>
+       <tr>
+               <td><label for="connReqPwd">Connection request password:</label></td>
+               <td><input type='text' name='connReqPwd' id='connReqPwd' size="20" maxlength="256"></td>
+       </tr>
+</table>
+</div>
+
+<p>
+       <input type='button' onClick='btnApply()' value="Apply">
+       <input type='button' onClick='btnGet()' value="Get RPC Methods">
+</p>
+</form>
+
+<script type="text/javascript">
+       writeFooter();
+</script>
+
+</body>
 </html>
 </html>