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