1 | <script language=JavaScript>
|
---|
2 | var statusPara = new Array(
|
---|
3 | 2,
|
---|
4 | 0,
|
---|
5 | 16,
|
---|
6 | 20000,
|
---|
7 | 152,
|
---|
8 | "4.0.1 Build 080909 Rel.52917n ",
|
---|
9 | "WA500G v2/WA501G v1 081520C2",
|
---|
10 | 0,0 );
|
---|
11 | </script>
|
---|
12 | <script language=JavaScript>
|
---|
13 | var lanPara = new Array(
|
---|
14 | "00-23-CD-CC-64-D3", "192.168.0.254", "255.255.255.0",
|
---|
15 | 0,0 );
|
---|
16 | </script>
|
---|
17 | <script language=JavaScript>
|
---|
18 | var wlanPara = new Array(
|
---|
19 | 5,
|
---|
20 | "HG520s",
|
---|
21 | 1,
|
---|
22 | 2,
|
---|
23 | "00-23-CD-CC-64-D3",
|
---|
24 | "192.168.0.254",
|
---|
25 | 0,
|
---|
26 | 5,
|
---|
27 | "10 dB",
|
---|
28 | 0,0 );
|
---|
29 | </script>
|
---|
30 | <script language=JavaScript>
|
---|
31 | var statistList = new Array(
|
---|
32 | 1173528, 236492, 1595, 1428,
|
---|
33 | 0,0 );
|
---|
34 | </script>
|
---|
35 | <script language=JavaScript>
|
---|
36 | var wanPara = new Array(
|
---|
37 | 0, "00-23-CD-CC-64-D3", "0.0.0.0", 1, "0.0.0.0", 0, 0, "0.0.0.0", 2, 1, 0, "0.0.0.0 , 0.0.0.0", "", 0,
|
---|
38 | 0,0 );
|
---|
39 | </script>
|
---|
40 | <meta http-equiv="pragma" content="no-cache">
|
---|
41 | <meta http-equiv="expires" content="wed, 26 Feb 1997 08:21:57 GMT">
|
---|
42 | <LINK href="/dynaform/css_main.css" rel=stylesheet>
|
---|
43 | <script language="JavaScript" src="/dynaform/common.js" type="text/JavaScript"></script>
|
---|
44 | <script language="JavaScript"><!--
|
---|
45 | if(window.parent == window){window.location.href="http://192.168.0.254";}
|
---|
46 | function Click(){ window.event.returnValue=false;}
|
---|
47 | document.oncontextmenu=Click;
|
---|
48 | //--></script>
|
---|
49 |
|
---|
50 | <script language=javascript><!--//
|
---|
51 | function doRefresh(){location.href="StatusRpm.htm"; return true;}
|
---|
52 | function doConnect(n){
|
---|
53 | var s = "&wan="+n;
|
---|
54 | location.href="StatusRpm.htm?Connect=Connect"+s;return true;
|
---|
55 | }
|
---|
56 | function doDisConnect(n){
|
---|
57 | var s = "&wan="+n;
|
---|
58 | location.href="StatusRpm.htm?Disconnect=Disconnect"+s;return true;
|
---|
59 | }
|
---|
60 | function doRenew(n){
|
---|
61 | var s = "&wan="+n;
|
---|
62 | location.href="StatusRpm.htm?RenewIp=Renew"+s;return true;
|
---|
63 | }
|
---|
64 | function doRelease(n){
|
---|
65 | var s = "&wan="+n;
|
---|
66 | location.href="StatusRpm.htm?ReleaseIp=Release"+s;return true;
|
---|
67 | }
|
---|
68 | function doLogin(n){
|
---|
69 | var s = "&wan="+n;
|
---|
70 | location.href="StatusRpm.htm?Login=Login"+s;return true;
|
---|
71 | }
|
---|
72 | function doLogout(n){
|
---|
73 | var s = "&wan="+n;
|
---|
74 | location.href="StatusRpm.htm?Logout=Logout"+s;return true;
|
---|
75 | }
|
---|
76 | var wanTypeStringArray = new Array(
|
---|
77 | " ",
|
---|
78 | "<span id = \"t_dyn_ip\">Dynamic IP</span>",
|
---|
79 | "<span id =\"t_static_ip\">Static IP</span>",
|
---|
80 | "PPPoE",
|
---|
81 | "<span id = \"t_ie_dyn\">IEEE802.1X + Dynamic IP</span>" ,
|
---|
82 | "<span id = \"t_ie_static\">IEEE802.1X + Static IP</span>",
|
---|
83 | "<span id = \"t_big_pond_cable\">Big Pond Cable</span>",
|
---|
84 | "L2TP",
|
---|
85 | "PPTP"
|
---|
86 | );
|
---|
87 | var wanStatusStringArray = new Array(
|
---|
88 | " ",
|
---|
89 | "<span id = \"t_disabled\">Disabled</span>",
|
---|
90 | "<span id = \"t_timeout\">Timeout</span>",
|
---|
91 | "<span id = \"t_link_down\">Link Down</span>",
|
---|
92 | "<span id = \"t_link_up\">Link Up</span>"
|
---|
93 | );
|
---|
94 | var wlanTypeStringArray = new Array(
|
---|
95 | " ",
|
---|
96 | "11Mbps (802.11b)",
|
---|
97 | "54Mbps (802.11g)",
|
---|
98 | "<span id=\"t_sta\">108Mbps (Static)</span>",
|
---|
99 | "<span id=\"t_dyn\">108Mbps (Dynamic)</span>",
|
---|
100 | " "
|
---|
101 | );
|
---|
102 | var IEEE8021xLoginStringArray = new Array(
|
---|
103 | " ",
|
---|
104 | "<span id = \"t_not_log_in\">Not log in</span>" ,
|
---|
105 | "<span id = \"t_logging_in\">Logging in, please wait...</span>" ,
|
---|
106 | "<span id = \"t_longin_successfully\">Login successfully</span>"
|
---|
107 | );
|
---|
108 | var DHCPStringArray = new Array(
|
---|
109 | " ",
|
---|
110 | "<span id = \"t_obtaining_net_paramenter\">Obtaining network parameters...</span>"
|
---|
111 | );
|
---|
112 | var maskArray = new Array(
|
---|
113 | "255.0.0.0",
|
---|
114 | "255.255.0.0",
|
---|
115 | "255.255.255.0"
|
---|
116 | );
|
---|
117 | var wlanChannelWidthArray = new Array(
|
---|
118 | "",
|
---|
119 | "20M",
|
---|
120 | "Auto",
|
---|
121 | "40M"
|
---|
122 | );
|
---|
123 | --></script></head>
|
---|
124 | <BODY onload="LoadHelp('StatusHelpRpm.htm');setTagStr(document,'ntw_status'); resize(this);" onResize="resize(this);">
|
---|
125 | <center><form action="StatusRpm.htm" enctype="multipart/form-data" method="get">
|
---|
126 | <TABLE id="autoWidth">
|
---|
127 | <TBODY>
|
---|
128 | <TR><TD class=h1 colspan=3 id = "t_title">Status</TD></TR>
|
---|
129 | <TR><TD class=blue colspan=3></TD></TR>
|
---|
130 | <TR><TD class=Item id = "t_firm_vs">Firmware Version:</TD><TD colspan=2><DIV ID="fversion"></DIV></TD></TR>
|
---|
131 | <TR><TD class=Item id = "t_hd_vs">Hardware Version:</TD><TD colspan=2><DIV ID="hversion"></DIV></TD></TR>
|
---|
132 | <TR><TD class=blue colspan=3></TD></TR>
|
---|
133 | <script language="JavaScript">
|
---|
134 | if(statusPara[1]!=0){document.write('<TR><TD class=h2 colspan=3 id = "t_lan">LAN</TD></TR>');}
|
---|
135 | else{document.write('<TR><TD class=h2 colspan=3 id = "t_wired">Wired</TD></TR>');}
|
---|
136 | </script>
|
---|
137 | <TR><TD width=25% class=Item id = "t_mac_addr">MAC Address:</TD><TD colspan=2><DIV ID="lanMac">-</DIV></TD></TR>
|
---|
138 |
|
---|
139 | <TR><TD class=Item id = "t_ip_addr">IP Address:</TD><TD colspan=2 ><DIV ID="lanIP">-</DIV></TD></TR>
|
---|
140 | <TR><TD class=Item id = "t_sub_mask">Subnet Mask:</TD><TD colspan=2 ><DIV ID="lanMask">-</DIV></TD></TR>
|
---|
141 | <TR><TD class=blue colspan=3></TD></TR>
|
---|
142 | <script language="JavaScript"><!--
|
---|
143 | var apModeName = new Array(
|
---|
144 | "<span id=\"t_node_disable\">Disabled</span>",
|
---|
145 | "<span id=\"t_acc_point\">Access Point</span>",
|
---|
146 | "<span id=\"t_client1\">Client</span>",
|
---|
147 | "<span id=\"t_client2\">Client</span>",
|
---|
148 | "<span id=\"t_repeater\">Repeater</span>",
|
---|
149 | "<span id=\"t_unRepeater\">Universal Repeater</span>",
|
---|
150 | "<span id=\"t_bridge_p2p\">Bridge (Point to Point)</span>",
|
---|
151 | "<span id=\"t_bridge_p2m\">Bridge (Point to Multi-Point)</span>",
|
---|
152 | 0, 0
|
---|
153 | );
|
---|
154 | var maskType = lanPara[2];
|
---|
155 | if (statusPara[0] >= 1)
|
---|
156 | {
|
---|
157 | var wlanMode = apModeName[wlanPara[0]];
|
---|
158 | var wlanSta = (wlanPara[0] == 0)?"<span id = \"t_disable\">Disable</span>":"<span id = \"t_enable\">Enable</span>" ;
|
---|
159 | var wlanName =wlanPara[1];
|
---|
160 | while(wlanName.indexOf(" ")!=-1)
|
---|
161 | {
|
---|
162 | wlanName = wlanName.replace(" ", " ");
|
---|
163 | }
|
---|
164 | var wlanChannel=wlanPara[2];
|
---|
165 | var wlanModeIndex=wlanPara[3];
|
---|
166 | var wlanMac=wlanPara[4];
|
---|
167 | var wlanIp=wlanPara[5];
|
---|
168 | var wlanRssi=wlanPara[8];
|
---|
169 | document.write('<TR><TD class=h2 colspan=3 id = "t_wireless">Wireless</TD></TR>');
|
---|
170 | if ((statusPara[0] == 2) && (wlanPara[0] > 0)){
|
---|
171 | document.write('<TR><TD class=Item id="t_mode1">Operating Mode:</TD><TD colspan=2>' + wlanMode +'</TD></TR>');
|
---|
172 | }
|
---|
173 | else{
|
---|
174 | document.write('<TR><TD class=Item id = "t_wireless_radio">Wireless Radio:</TD><TD colspan=2>' + wlanSta +'</TD></TR>');
|
---|
175 | }
|
---|
176 | if (wlanPara[0] >= 2){
|
---|
177 | document.write('<TR><TD class=Item id="t_signal">Signal:</TD><TD colspan=2>' + wlanRssi +'</TD></TR>');
|
---|
178 | }
|
---|
179 | if ((wlanPara[0] == 1) || (wlanPara[0] == 2) || (wlanPara[0] == 4) || (wlanPara[0] == 5)){
|
---|
180 | document.write('<TR><TD class=Item>SSID:</TD><TD colspan=2>' + wlanName +'</TD></TR>');
|
---|
181 | }
|
---|
182 | else if (wlanPara[0] > 0){
|
---|
183 | document.write('<TR><TD class=Item id="t_remoteMAC">Remote MAC:</TD><TD colspan=2>' + wlanName +'</TD></TR>');
|
---|
184 | }
|
---|
185 | document.write('<TR><TD class=Item id = "t_channel">Channel:</TD><TD colspan=2>' + wlanChannel +'</TD></TR>');
|
---|
186 | if (wlanPara[7]!=7){
|
---|
187 | document.write('<TR><TD class=Item id = "t_mode">Mode:</TD><TD colspan=2>' + wlanTypeStringArray[wlanModeIndex] +'</TD></TR>');
|
---|
188 | }
|
---|
189 | document.write('<TR><TD class=Item id = "t_mac_addr2">MAC Address:</TD><TD colspan=2>' + wlanMac +'</TD></TR>');
|
---|
190 | document.write('<TR><TD class=Item id = "t_ip_addr2">IP Address:</TD><TD colspan=2>' + wlanIp +'</TD></TR>');
|
---|
191 | document.write('<TR><TD class=blue colspan=3></TD></TR>');
|
---|
192 | }
|
---|
193 |
|
---|
194 | /* -------------------------------------------------------------------------------------------------------------------- */
|
---|
195 | var row = 0;
|
---|
196 | var wanStatusIndex;
|
---|
197 | var wanTypeIndex;
|
---|
198 | var IEEE8021xStatusIndex;
|
---|
199 | var DHCPBtnStatus;
|
---|
200 | var DHCPStatusIndex;
|
---|
201 | for (var i=1; i<=statusPara[1]; i++)
|
---|
202 | {
|
---|
203 | row = (i-1) * statusPara[2];
|
---|
204 |
|
---|
205 | if (statusPara[1] == 1)
|
---|
206 | {
|
---|
207 | document.write('<TR><TD class=h2 colspan=3 id = "t_wan1">WAN</TD></TR>');
|
---|
208 | }
|
---|
209 | else
|
---|
210 | {
|
---|
211 | wanStatusIndex = wanPara[row];
|
---|
212 | document.write('<TR><TD class=h2 colspan=3>WAN'+ i +'</TD></TR>');
|
---|
213 | document.write('<TR><TD class=Item id = "t_status">Status:</TD><TD colspan=2>' +
|
---|
214 | wanStatusStringArray[wanStatusIndex] +'</TD></TR>');
|
---|
215 | }
|
---|
216 |
|
---|
217 | document.write('<TR><TD class=Item id = "t_mac_addr1" name = "t_mac_addr1">MAC Address:</TD><TD colspan=2>' + wanPara[row+1] +'</TD></TR>');
|
---|
218 | wanTypeIndex = wanPara[row+3];
|
---|
219 | document.write('<TR><TD class=Item id = "t_ip_addr1" name = "t_ip_addr1">IP Address:</TD><TD>' + wanPara[row+2] +'</TD><TD>' + wanTypeStringArray[wanTypeIndex] +'</TD></TR>');
|
---|
220 | document.write('<TR><TD class=Item id = "t_sub_mask1" name = "t_sub_mask1">Subnet Mask:</TD><TD>' + wanPara[row+4] +'</TD>');
|
---|
221 |
|
---|
222 | IEEE8021xStatusIndex = wanPara[row+6];
|
---|
223 | if (wanPara[row+5] == 1)
|
---|
224 | {
|
---|
225 | document.write('<TD class=emp><input name=Logout type=button class=button value=Logout onClick="return doLogout(' + i +');"> ' + IEEE8021xLoginStringArray[IEEE8021xStatusIndex] +'</TD></TR>');
|
---|
226 | }
|
---|
227 | else if(wanPara[row+5] == 2)
|
---|
228 | {
|
---|
229 | document.write('<TD class=emp><input name=Login type=button class=button value=Login onClick="return doLogin(' + i +');"> ' + IEEE8021xLoginStringArray[IEEE8021xStatusIndex] +'</TD></TR>');
|
---|
230 | }
|
---|
231 | else
|
---|
232 | {
|
---|
233 | document.write('<TD> </TD></TR>');
|
---|
234 | }
|
---|
235 |
|
---|
236 | document.write('<TR><TD class=Item id = "t_def_gt" name = "t_def_gt">Default Gateway:</TD><TD>' + wanPara[row+7] +'</TD>');
|
---|
237 | DHCPBtnStatus = (wanPara[row+9] == 0)?"disabled":" ";
|
---|
238 | DHCPStatusIndex = wanPara[row+10];
|
---|
239 | if (wanPara[row+8] == 1)
|
---|
240 | {
|
---|
241 | document.write('<TD class=emp><input name="ReleaseIP" type=button class=button value="Release" onClick="return doRelease(' + i +');" ' + DHCPBtnStatus +'> ' + DHCPStringArray[DHCPStatusIndex] +'</TD></TR>');
|
---|
242 | }
|
---|
243 | else if (wanPara[row+8] == 2)
|
---|
244 | {
|
---|
245 | document.write('<TD class=emp><input name="RenewIP" type=button class=button value="Renew" onClick="return doRenew(' + i +');" ' + DHCPBtnStatus +'> ' + DHCPStringArray[DHCPStatusIndex] +'</TD></TR>');
|
---|
246 | }
|
---|
247 | else
|
---|
248 | {
|
---|
249 | document.write('<TD> </TD></TR>');
|
---|
250 | }
|
---|
251 | document.write('<TR><TD class=Item id = "t_ddns_ser">DNS Server:</TD><TD colspan=2>' + wanPara[row+11] +'</TD></TR>');
|
---|
252 | if(3==wanTypeIndex || 6==wanTypeIndex || 7==wanTypeIndex || 8==wanTypeIndex)
|
---|
253 | {
|
---|
254 | var pre = /\d+/;
|
---|
255 | var front=pre.exec(wanPara[row+12]);
|
---|
256 | var back = /\D\d+\S+/;
|
---|
257 | var end=back.exec(wanPara[row+12]);
|
---|
258 | //document.write('<TR><TD class=Item id = "t_online_time">Online Time:</TD><TD>' + wanPara[row+12] +'</TD>');
|
---|
259 | document.write('<TR><TD class=Item id = "t_online_time">Online Time:</TD><TD>' + front + '<span id="t_days"> day(s)</span>'+ end +'</TD>');
|
---|
260 | if (wanPara[row+13] == 0)
|
---|
261 | document.write('<TD><input name=Connect type=button class=button id=Connect value=Connect onClick="return doConnect(' + i +');" ></TD></TR>');
|
---|
262 | else if(wanPara[row+13] == 1)
|
---|
263 | document.write('<TD><input name=Disconnect type=button class=button id=Disconnect value=Disconnect onClick="return doDisConnect(' + i +');" ></TD></TR>');
|
---|
264 | else if (wanPara[row+13] == 2)
|
---|
265 | document.write('<TD class=emp id="t_connecting">Connecting...</TD></TR>');
|
---|
266 | }
|
---|
267 | document.write('<TR><TD class=blue colspan=3></TD></TR>');
|
---|
268 | }
|
---|
269 | --></script>
|
---|
270 |
|
---|
271 | <!-- ******************************************************************************************** -->
|
---|
272 | <TR><TD class=h2 colspan=3 id = "t_trff_stat">Traffic Statistics</TD></TR>
|
---|
273 | <TR><TD colspan=3>
|
---|
274 | <table border=0>
|
---|
275 | <script language="JavaScript"><!--
|
---|
276 | if (statusPara[1] == 1 || statusPara[1] == 0)
|
---|
277 | {
|
---|
278 | document.write('<TR><TD width=30%></TD><TD class=ListTC2 width=30% id = "t_received">Received</TD><TD class=ListTC2 id = "t_sent">Sent</TD></TR>');
|
---|
279 | document.write('<TR><TD class=Item id = "t_byt">Bytes:</TD><TD class=ListC2>' + statistList[0] + '</TD><TD class=ListC2>' + statistList[1] + '</TD></TR>');
|
---|
280 | document.write('<TR><TD class=Item id = "t_pcks">Packets:</TD><TD class=ListC2>' + statistList[2] + '</TD><TD class=ListC2>' + statistList[3] + '</TD></TR>');
|
---|
281 | }
|
---|
282 | else
|
---|
283 | {
|
---|
284 | document.write('<tr><td> </td><td class = ListTC2 id = "t_rate" >Rate</td><td class=ListTC2 id = "t_rece_byt">Received (Bytes)</td><td class=ListTC2>Sent (Bytes)</td><td class=ListTC2 id = "t_rece_pck">Received (Packets)</td><td class=ListTC2 id = "t_sent_pcks">Sent (Packets)</td></tr>');
|
---|
285 | var total1=0;
|
---|
286 | var total2=0;
|
---|
287 | var total3=0;
|
---|
288 | var total4=0;
|
---|
289 | for (var i=0; i<statusPara[1]; i++)
|
---|
290 | {
|
---|
291 | total1 = total1 + statistList[i*4];
|
---|
292 | total2 = total2 + statistList[i*4+1];
|
---|
293 | total3 = total3 + statistList[i*4+2];
|
---|
294 | total4 = total4 + statistList[i*4+3];
|
---|
295 | }
|
---|
296 | document.write('<tr><td class=Item id = "t_total">Total</td><td class=ListC2>' + total1 + '</td><td class=ListC2>' + total2 + '</td><td class=ListC2>' + total3 + '</td>' +'<td class=ListC2>'+ total4 +'</td></tr>');
|
---|
297 | for (var i=1; i<=statusPara[1]; i++)
|
---|
298 | document.write('<tr><td class=Item>WAN'+i + '</td><td class=ListC2>' + statistList[i*4-4] + '</td><td class=ListC2>' + statistList[i*4-3] + '</td><td class=ListC2>' + statistList[i*4-2] + '</td> '+ '<td class=ListC2>' + statistList[i*4-1] + '</td></tr>');
|
---|
299 | }
|
---|
300 | --></script>
|
---|
301 |
|
---|
302 | </table></TD></TR>
|
---|
303 |
|
---|
304 | <!-- ******************************************************************************************** -->
|
---|
305 | <TR><TD class=blue colspan=3></TD></TR>
|
---|
306 | <TR><TD class=Item id = "t_sys_up_time">System Up Time:</TD><TD><DIV ID="activeTime">-</DIV></TD><TD><input name="Refresh" class="button" type="button" id="Refresh" value="Refresh" onClick="return doRefresh();"></TD></TR>
|
---|
307 | </TBODY></TABLE>
|
---|
308 | </form></center></BODY></HTML>
|
---|
309 |
|
---|
310 | <!-- ******************************************************************************************** -->
|
---|
311 | <script language="JavaScript"><!--
|
---|
312 | var timeout = statusPara[3];
|
---|
313 | window.setTimeout("doRefresh()",timeout);
|
---|
314 | var unDays = parseInt(statusPara[4]/(24*60*60),10);
|
---|
315 | var unHours = parseInt((statusPara[4]%(24*60*60))/(60*60),10);
|
---|
316 | var unMinutes = parseInt(((statusPara[4]%(24*60*60))%(60*60))/60,10);
|
---|
317 | var unSeconds = ((statusPara[4]%(24*60*60))%(60*60))%60;
|
---|
318 | unHours = (unHours < 10)?("0"+unHours):unHours;
|
---|
319 | unMinutes = (unMinutes < 10)?("0"+unMinutes):unMinutes;
|
---|
320 | unSeconds = (unSeconds < 10)?("0"+unSeconds):unSeconds;
|
---|
321 | var upTime = unDays+" " + "<span id = \"t_day\"> day(s) </span>"+unHours+":"+unMinutes+":"+unSeconds;
|
---|
322 | document.getElementById("activeTime").innerHTML = upTime;
|
---|
323 | document.getElementById("fversion").innerHTML = statusPara[5];
|
---|
324 | document.getElementById("hversion").innerHTML = statusPara[6];
|
---|
325 | document.getElementById("lanMac").innerHTML = lanPara[0];
|
---|
326 | document.getElementById("lanIP").innerHTML = lanPara[1];
|
---|
327 | document.getElementById("lanMask").innerHTML = lanPara[2];
|
---|
328 | --></script>
|
---|