http://downloads.netgear.com/files/GPL/GPL_Source_V361j_DM111PSP_series_consumer_rele...
[bcm963xx.git] / userapps / broadcom / cfm / html / uploadinfo.html
1 <html>\r
2    <head>\r
3       <meta HTTP-EQUIV='Pragma' CONTENT='no-cache'>\r
4       <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'>\r
5 <style type="text/css">\r
6 <!--\r
7 BODY{\r
8         margin-left: 12px; margin-top: 0px; FONT-SIZE: 12px ;FONT-FAMILY: Arial, Helvetica, Geneva, Swiss, SunSans-Regular, sans-serif; COLOR: #000000; BACKGROUND-COLOR:#FFFFFF\r
9 }\r
10 -->\r
11 </style>      \r
12       <script language="javascript">\r
13 <!-- hide\r
14 \r
15 var randomNum = '<%ejGet(CheckNum)%>';\r
16 \r
17 var msg = new Array();\r
18 msg[0] = 'New firmware is being programmed to the flash memory. The ADSL Router will reboot upon completion. This process will take about 2 minutes.';\r
19 msg[1] = 'The firmware upgrade is failed. The system is out of memory.';\r
20 msg[2] = 'The firmware upgrade is failed. No image file was selected.';\r
21 msg[3] = 'The firmware upgrade is failed. The selected file contains an illegal image.';\r
22 msg[4] = 'The firmware upgrade is failed. The selected file contains an illegal image.';\r
23 msg[5] = 'The firmware upgrade is failed. The selected file contains an illegal image.';\r
24 msg[6] = 'The firmware upgrade is failed. The selected file contains checksum error.';\r
25 msg[7] = 'The firmware upgrade is failed. The selected file contains an illegal image.';\r
26 \r
27 var idxStr = '<%ejGetOther(sysInfo, upldSts)%>';\r
28 \r
29 function getMsgIndex() {\r
30    var idxNum = parseInt(idxStr);\r
31    if ( isNaN(idxNum) || idxNum < 0 || idxNum > 7 )\r
32       idxNum = 7;\r
33    return idxNum;\r
34 }\r
35 \r
36 function reboot() {\r
37         var loc = 'index.html';\r
38 \r
39         var code = 'window.top.location.href="/';\r
40         code += loc + '"';\r
41         eval(code);\r
42 }\r
43 \r
44 function frmLoad() {\r
45         setTimeout('reboot()', 130000);\r
46 }\r
47 \r
48 function btnBack() {\r
49         var code = 'window.location.href="/upload.cgi';\r
50         code += '?checkNum=' + randomNum + '"';\r
51         \r
52         eval(code);\r
53 }\r
54 \r
55 // done hiding -->\r
56 </script>\r
57    </head>\r
58    <body onLoad='frmLoad()' bgcolor=#ffffff style="padding-top: 10px">\r
59        \r
60       <span style="font-size: 10pt; FONT-FAMILY: Arial, Helvetica, Geneva, Swiss, SunSans-Regular, sans-serif;">\r
61       <b><font style="font-size: 12pt;  color: #0099cc">Firmware Upgrade</font></b><br>\r
62       <br>\r
63       <hr color="#0099cc" width="98%" align="left">         \r
64          <script language="javascript">\r
65 <!-- hide\r
66 var temp=getMsgIndex();\r
67 document.writeln("<table border='0' cellpadding='0' cellspacing='3' width='98%'>");\r
68 if (temp!=0){\r
69         document.write("<tr><td width='100%'>");\r
70         document.writeln("<span style='font-size: 10pt; FONT-FAMILY: Arial, Helvetica, Geneva, Swiss, SunSans-Regular, sans-serif;'>");\r
71         document.write(msg[temp]);\r
72         document.write("</td></tr>");\r
73         document.write("</span>");\r
74 } else {\r
75         document.write("<tr><td width='100%'>");\r
76         document.writeln("<span style='font-size: 10pt; color:#ff0000 ;FONT-FAMILY: Arial, Helvetica, Geneva, Swiss, SunSans-Regular, sans-serif;'>");\r
77         document.write("<b>Warning: DO NOT turn off your router during firmware upgrades.</b>");\r
78         document.write("</span>");\r
79         document.write("</td></tr>");\r
80         document.write("<tr height='40' valign='bottom'><td>");\r
81         document.write("<span style='font-size: 10pt; FONT-FAMILY: Arial, Helvetica, Geneva, Swiss, SunSans-Regular, sans-serif;'>");\r
82         document.write("New firmware is received correctly.");\r
83         document.write("</span>");\r
84         document.write("</td></tr>");\r
85         document.write("<tr height='25' valign='bottom'><td>");\r
86         document.write("<span style='font-size: 10pt; FONT-FAMILY: Arial, Helvetica, Geneva, Swiss, SunSans-Regular, sans-serif;'>");\r
87         document.write("Saving firmware and then rebooting the router in progress...");\r
88         document.write("</span>");\r
89         document.write("</td></tr>");\r
90 }       \r
91 document.writeln("</td></tr></table>");\r
92 if(temp!=0){\r
93 document.writeln("<br>");\r
94 document.writeln("<hr color='#0099cc' width='98%' align='left'>");\r
95 document.writeln("<table width='98%'>");\r
96 document.writeln("<tr><td align='right'>");\r
97 document.writeln("<input type='button' onClick='btnBack()' value='< Back'>");\r
98 document.writeln("</td></tr>");\r
99 document.writeln("</table>");\r
100 }\r
101 // done hiding -->\r
102 </script>\r
103 </span>\r
104 \r
105 </body>\r
106 </html>\r