www.usr.com/support/gpl/USR9107_release.1.4.tar.gz
[bcm963xx.git] / userapps / broadcom / cfm / html / uploadinfo.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2 <!--
3         (c) 2005 U.S. Robotics Corporation
4 -->
5 <html>
6 <head>
7         <title></title>
8
9         <link href="usr_main.css" rel="stylesheet" type="text/css">
10         <link href="usr_menus.css" rel="stylesheet" type="text/css"><script src="usr_menus.js" type="text/javascript"></script><script src="usr_menus_build.js" type="text/javascript"></script>
11         <script src="usr_common.js" type="text/javascript"></script>
12
13         <meta HTTP-EQUIV='Pragma' CONTENT='no-cache'>
14
15         <script type="text/javascript">
16 <!-- hide
17 setPageTitle("<%ejGetWlJS(wlInterface)%>");
18
19 /*      EasyConfigurator depends on the values of
20         this array. It assumes that 0 and 1 are
21         successful and others are failure.
22 */
23 var msg = new Array();
24 msg[0] = "<p>The router is being updated and will restart when finished. This will take a couple of minutes.</p>\
25 <p><b>Please do not turn off the power or disconnect any cables during this process.</b></p>";
26 msg[1] = "<p>The router has been reconfigured and is restarting. This will take about one minute.</p>\
27 <p>If the router&rsquo;s IP address has been modified, \
28 you may need to renew your connection to the router. (One way to do this is to restart your computer.)</p>\
29 <p><b>Please do not turn off the power or disconnect any cables during this process.</b></p>";
30 msg[2] = "The upload failed because the system is out of memory. The router is restarting.";
31 msg[3] = "The upload failed because no file was selected. Use your Web browser&rsquo;s Back button to try again.";
32 msg[4] = "The upload failed because the selected file is invalid. Use your Web browser&rsquo;s Back button to try again.";
33 msg[5] = "Fatal error while uploading file. Use your Web browser&rsquo;s Back button to try again.";
34
35 /*      EasyConfigurator depends on the name of this
36         variable and format of its initialization.
37 */
38 var idxNum = parseInt("<%ejGetOther(sysInfo, upldSts)%>");
39 var waitTime;
40
41 if( idxNum == 0 )
42     waitTime = 60 * 5;          // NUMBER OF SECONDS FOR PROGRESSBAR
43 else
44     waitTime = 60;
45
46 function getMsgIndex() {
47    idxNum = parseInt("<%ejGetOther(sysInfo, upldSts)%>");
48    if ( isNaN(idxNum) || idxNum < 0 || idxNum > msg.length )
49       idxNum = msg.length;
50
51    return idxNum;
52 }
53
54
55 var action = function reboot() {
56    
57    //USR9106 Refresh whole window
58    eval('top.location = "index.html"');
59
60
61 function frmLoad() {
62    if(idxNum==0 || idxNum==1)
63       progressBarInit();
64 }
65
66 // done hiding -->
67 </script>
68    </head>
69    <body onload="frmLoad();">
70
71 <script type="text/javascript">
72         writeHeaderInfo("Router Upgrade");
73 </script>
74
75 <p>
76 <script type="text/javascript">
77 <!-- hide
78    document.write(msg[getMsgIndex()]);
79 // done hiding -->
80 </script>
81 </p>
82
83 <script type="text/javascript" src="timerbar.js"></script>
84
85 <script type="text/javascript">
86         writeFooter();
87 </script>
88
89 </body>
90 </html>