0365d7ab9a1bc7c951deee7e44775315d28048c2
[bcm963xx.git] / userapps / broadcom / cfm / html / tr69cfg.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2 <!--
3         (c) 2006 U.S. Robotics Corporation
4 -->
5 <html>
6 <head>
7         <title>TR-069 Configuration</title>
8
9         <link href="usr_layout.css" type="text/css" rel="stylesheet" />
10         <script src="usr_layout.js" type="text/javascript"></script>
11         <link href="usr_menus_dropdown.css" rel="stylesheet" type="text/css">
12         <script src="usr_menus_dropdown.js" type="text/javascript"></script>
13         <script src="usr_menus_build.js" type="text/javascript"></script>
14         <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>
15         <script src="util.js" type="text/javascript"></script>
16
17         <meta HTTP-EQUIV='Pragma' CONTENT='no-cache'>
18 <script type="text/javascript">
19
20 function frmLoad() {
21    with ( document.forms[0] ) {
22       acsURL.value = '<%ejGetJS(tr69cAcsURL)%>';
23       acsUser.value = '<%ejGetJS(tr69cAcsUser)%>';
24       acsPwd.value = '<%ejGetJS(tr69cAcsPwd)%>';
25       connReqUser.value = '<%ejGetJS(tr69cConnReqUser)%>';
26       connReqPwd.value = '<%ejGetJS(tr69cConnReqPwd)%>';
27       if ( '<%ejGetJS(tr69cInformEnable)%>' == '1' )
28          inform.checked = true;
29       if ( '<%ejGetJS(tr69cStatus)%>' == '1' )
30          enblTR69.checked = true;
31       informInterval.value = '<%ejGetJS(tr69cInformInterval)%>';
32       enblTR69Click(enblTR69);  
33    }
34 }
35
36 function enblTR69Click(cb) {
37     with (document.forms[0]) {
38         setVisibility("tr69", cb.checked);
39     }
40 }
41
42 function btnApply() {
43    var loc = 'tr69cfg.cgi?';
44    with ( document.forms[0] ) {
45       if (acsURL.value == '') {
46          alert('ACS URL is required.');
47          return;
48       }
49
50       if ( enblTR69.checked == true )
51          loc += 'tr69cStatus=1';
52           else
53          loc += 'tr69cStatus=0';
54
55       if ( inform.checked == true )
56          loc += '&tr69cInformEnable=1';
57           else
58          loc += '&tr69cInformEnable=0';
59
60       loc += '&tr69cInformInterval=' + informInterval.value;
61
62       if (acsURL.value.length > 256) {
63          alert('The maximum length of the ACS URL (' + acsURL.value.length + ') is 256 characters.');
64          return;
65       }
66       loc += '&tr69cAcsURL=' + encodeUrl(acsURL.value);
67
68       if (acsUser.value.length > 256) {
69          alert('The maximum length of the ACS user name (' + acsUser.value.length + ') is 256 characters.');
70          return;
71       }
72       loc += '&tr69cAcsUser=' + encodeUrl(acsUser.value);
73
74       if (acsPwd.value.length > 256) {
75          alert('The maximum length of the ACS password (' + acsPwd.value.length + ') is 256 characters.');
76          return;
77       }
78       loc += '&tr69cAcsPwd=' + encodeUrl(acsPwd.value);
79
80       if (connReqUser.value.length > 256) {
81          alert('The maximum length of the connection request user name (' + connReqUser.value.length + ') is 256 characters.');
82          return;
83       }
84       loc += '&tr69cConnReqUser=' + encodeUrl(connReqUser.value);
85
86       if (connReqPwd.value.length > 256) {
87          alert('The maximum length of the connection request password (' + connReqPwd.value.length + ') is 256 characters.');
88          return;
89       }
90       loc += '&tr69cConnReqPwd=' + encodeUrl(connReqPwd.value);
91    }
92
93    eval('location="' + loc + '"');
94 }
95
96 function btnGet() {
97    eval('location="tr69get.cgi"');
98 }
99 </script>
100 </head>
101
102 <body onLoad="initMenu(); frmLoad();">
103
104 <script type="text/javascript">
105         writeHeader();
106 </script>
107
108 <form>
109 <p>WAN Management Protocol (TR-069) allows a Auto-Configuration Server (ACS) to
110 perform auto-configuration, provision, collection, and diagnostics to this device.</p>
111
112 <p><input type="checkbox" name="enblTR69" id="enblTR69" onClick="enblTR69Click(this)"> <label for="enblTR69">Allow TR-069 management protocol</label></p>
113
114 <div id="tr69">
115 <p><input type="checkbox" name="inform" id="inform"> <label for="inform">Inform</label></p>
116
117 <table id="tr69tbl" border="0">
118         <tr>
119                 <td><label for="informInterval">Inform interval:</label></td>
120                 <td><input type='text' name='informInterval' id='informInterval' size="20" maxlength="256"></td>
121         </tr>
122         <tr>
123                 <td><label for="acsURL">ACS URL:</label></td>
124                 <td><input type='text' name='acsURL' id='acsURL' size="20" maxlength="256"></td>
125         </tr>
126         <tr>
127                 <td><label for="acsUser">ACS user name:</label></td>
128                 <td><input type='text' name='acsUser' id='acsUser' size="20" maxlength="256"></td>
129         </tr>
130         <tr>
131                 <td><label for="acsPwd">ACS password:</label></td>
132                 <td><input type='text' name='acsPwd' id='acsPwd' size="20" maxlength="256"></td>
133         </tr>
134         <tr>
135                 <td><label for="connReqUser">Connection request user name:</label></td>
136                 <td><input type='text' name='connReqUser' id='connReqUser' size="20" maxlength="256"></td>
137         </tr>
138         <tr>
139                 <td><label for="connReqPwd">Connection request password:</label></td>
140                 <td><input type='text' name='connReqPwd' id='connReqPwd' size="20" maxlength="256"></td>
141         </tr>
142 </table>
143 </div>
144
145 <p>
146         <input type='button' onClick='btnApply()' value="Apply">
147         <input type='button' onClick='btnGet()' value="Get RPC Methods">
148 </p>
149 </form>
150
151 <script type="text/javascript">
152         writeFooter();
153 </script>
154
155 </body>
156 </html>