http://downloads.netgear.com/files/GPL/DM111PSP_v3.61d_GPL.tar.gz
[bcm963xx.git] / userapps / broadcom / cfm / html / uploadinfo.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">
7 <!-- hide
8 var msg = new Array();
9 msg[0] = 'Uploading is in progress. The DSL Router will reboot upon completion. This process will take about 2 minutes.';
10 msg[1] = 'Image uploading failed. The system is out of memory. The DSL Router is rebooting.';
11 msg[2] = 'Image uploading failed. No image file was selected.';
12 msg[3] = 'Image uploading failed. The selected file contains an illegal image.';
13 msg[4] = 'Fatal error during image uploading.';
14
15 var idxStr = '<%ejGetOther(sysInfo, upldSts)%>';
16
17 function getMsgIndex() {
18    var idxNum = parseInt(idxStr);
19    if ( isNaN(idxNum) || idxNum < 0 || idxNum > 4 )
20       idxNum = 4;
21
22    return idxNum;
23 }
24
25 function reboot() {
26    var enblPopWin = '<%ejGet(enblPopWin)%>';
27    var loc = 'main.html';
28    var code = 'window.top.location="' + loc + '"';
29
30    if ( enblPopWin == '1' ) {
31       loc = 'index.html';
32       code = 'location="' + loc + '"';
33    }
34
35    eval(code);
36 }
37
38 function frmLoad() {
39    // only reboot if upload progress is successful
40    if ( getMsgIndex() == 0 )
41       setTimeout('reboot()', 40000);
42 }
43
44 function btnBack() {
45    var code = 'location="' + 'upload.cgi' + '"';
46
47    if (<%ejGet(glbUploadMode)%> == 2)
48       code = 'location="' + 'updatesettings.cgi' + '"';
49    eval(code);
50 }
51
52 // done hiding -->
53 </script>
54    </head>
55    <body onLoad='frmLoad()'>
56       <blockquote> <b>DSL Router Update</b><br>
57          <br>
58          <script language="javascript">
59 <!-- hide
60 document.write(msg[getMsgIndex()]);
61 // done hiding -->
62 </script>
63          <br>
64          <br>
65          <center>
66             <input type='button' onClick='btnBack()' value='Back'>
67          </center>
68       </blockquote>
69    </body>
70 </html>