and added files
[bcm963xx.git] / userapps / broadcom / cfm / html / tr69cfg.html
1 <html>
2    <head>
3       <meta HTTP-EQUIV='Pragma' CONTENT='no-cache'>
4       <link rel="stylesheet" href='stylemain.css' type='text/css'>
5          <link rel="stylesheet" href='colors.css' type='text/css'>
6             <script language="javascript" src="util.js"></script>
7             <script language="javascript">
8 <!-- hide
9
10 function frmLoad() {
11    with ( document.forms[0] ) {
12       acsURL.value = '<%ejGetJS(tr69cAcsURL)%>';
13       acsUser.value = '<%ejGetJS(tr69cAcsUser)%>';
14       acsPwd.value = '<%ejGetJS(tr69cAcsPwd)%>';
15       connReqURL.value = '<%ejGetJS(tr69cConnReqURL)%>';
16       connReqUser.value = '<%ejGetJS(tr69cConnReqUser)%>';
17       connReqPwd.value = '<%ejGetJS(tr69cConnReqPwd)%>';
18       enblInform = '<%ejGetJS(tr69cInformEnable)%>';
19       if ( enblInform == '1' ) {
20          inform[1].checked = true;
21          informInterval.value = '<%ejGetJS(tr69cInformInterval)%>';
22       } else {
23          inform[0].checked = true;
24          informInterval.value = '';
25       }            
26    }
27 }
28
29 function btnApply() {
30    var loc = 'tr69cfg.cgi?';
31    with ( document.forms[0] ) {
32       if (acsURL.value == '') {
33          alert('ACS URL is required.');
34          return;
35       }
36       if ( inform[1].checked == true ) {
37          loc += 'tr69cInformEnable=1';
38          loc += '&tr69cInformInterval=' + informInterval.value;
39       } else
40          loc += 'tr69cInformEnable=0';
41       
42       if (acsURL.value.length > 256) {
43          alert('The length of ACS URL (' + acsURL.value.length + ') is too long [1-256].');
44          return;
45       }
46       loc += '&tr69cAcsURL=' + encodeUrl(acsURL.value);
47       
48       if (acsUser.value.length > 256) {
49          alert('The length of ACS user name (' + acsUser.value.length + ') is too long [0-256].');
50          return;
51       }
52       loc += '&tr69cAcsUser=' + encodeUrl(acsUser.value);
53       
54       if (acsPwd.value.length > 256) {
55          alert('The length of sysName (' + acsPwd.value.length + ') is too long [0-256].');
56          return;
57       }
58       loc += '&tr69cAcsPwd=' + encodeUrl(acsPwd.value);
59       
60       if (connReqURL.value.length > 256) {
61          alert('The length of connection request URL (' + connReqURL.value.length + ') is too long [0-256].');
62          return;
63       }
64       loc += '&tr69cConnReqURL=' + encodeUrl(connReqURL.value);
65       
66       if (connReqUser.value.length > 256) {
67          alert('The length of connection request user name (' + connReqUser.value.length + ') is too long [0-256].');
68          return;
69       }
70       loc += '&tr69cConnReqUser=' + encodeUrl(connReqUser.value);
71       
72       if (connReqPwd.value.length > 256) {
73          alert('The length of connection request password (' + connReqPwd.value.length + ') is too long [0-256].');
74          return;
75       }
76       loc += '&connReqPwd=' + encodeUrl(connReqPwd.value);
77    }
78    
79    var code = 'location = "' + loc + '"';
80    eval(code);
81 }
82
83 // done hiding -->
84 </script>
85    </head>
86    <body onLoad='frmLoad()'>
87       <blockquote>
88          <form>
89             <b>TR-069 client - Configuration<br>
90             </b>
91             <br>
92             WAN Management Protocol (TR-069) allows a Auto-Configuration Server (ACS) to 
93             perform auto-configuration, provision, collection, and diagnostics to this device.<br>
94             <br>
95             Select the desired values and click "Apply" to configure the TR-069 client options.<br>
96             <br>
97             <table border="0" cellpadding="0" cellspacing="0">
98                <tr>
99                   <td width="80">Inform</td>
100                   <td><input name='inform' type='radio'>Disable</td>
101                   <td><input name='inform' type='radio'>Enable</td>
102                </tr>
103             </table>
104             <br>
105             <table border="0" cellpadding="0" cellspacing="0">
106                <tr>
107                   <td width="200">Inform Interval:</td>
108                   <td><input type='text' name='informInterval' size="20" maxlength="256"></td>
109                </tr>
110                <tr>
111                   <td>ACS URL:</td>
112                   <td><input type='text' name='acsURL' size="20" maxlength="256"></td>
113                </tr>
114                <tr>
115                   <td>ACS User Name:</td>
116                   <td><input type='text' name='acsUser' size="20" maxlength="256"></td>
117                </tr>
118                <tr>
119                   <td>ACS Password:</td>
120                   <td><input type='password' name='acsPwd' size="20" maxlength="256"></td>
121                </tr>
122                <tr>
123                   <td>Connection Request URL:</td>
124                   <td><input type='text' name='connReqURL' size="20" maxlength="256"></td>
125                </tr>
126                <tr>
127                   <td>Connection Request User Name:</td>
128                   <td><input type='text' name='connReqUser' size="20" maxlength="256"></td>
129                </tr>
130                <tr>
131                   <td>Connection Request Password:</td>
132                   <td><input type='password' name='connReqPwd' size="20" maxlength="256"></td>
133                </tr>
134             </table>
135             <p align="center">
136                <input type='button' onClick='btnApply()' value='Save/Reboot'>
137          </form>
138          </P> </blockquote>
139    </body>
140 </html>