diff options
Diffstat (limited to 'cfe/cfe/arch/mips/board/bcm63xx_ram/src/html')
-rwxr-xr-x | cfe/cfe/arch/mips/board/bcm63xx_ram/src/html/ul.html | 48 | ||||
-rwxr-xr-x | cfe/cfe/arch/mips/board/bcm63xx_ram/src/html/ulinfo.html | 60 |
2 files changed, 108 insertions, 0 deletions
diff --git a/cfe/cfe/arch/mips/board/bcm63xx_ram/src/html/ul.html b/cfe/cfe/arch/mips/board/bcm63xx_ram/src/html/ul.html new file mode 100755 index 0000000..a663a35 --- /dev/null +++ b/cfe/cfe/arch/mips/board/bcm63xx_ram/src/html/ul.html @@ -0,0 +1,48 @@ +<html> + <head> + <meta HTTP-EQUIV='Pragma' CONTENT='no-cache'> + <script language="javascript"> +<!-- hide + +var progress = 0; + +function isInProgress() { + if ( progress == 0 ) { + progress = 1; + return true; + } + alert('Upload software is in progress. Please wait for a minute.'); + return false; +} + +// done hiding --> +</script> + </head> + <body> + <blockquote> + <form method='post' ENCTYPE='multipart/form-data' action='upload.cgi' onSubmit='return isInProgress();'> + <b>Update Software</b><br> + <br> + <b>Step 1:</b> Obtain an updated software image file from your ISP.<br> + <br> + <b>Step 2:</b> Enter the path to the image file location in the box below or + click the "Browse" button to locate the image file.<br> + <br> + <b>Step 3:</b> Click the "Update Software" button once to upload the new image + file.<br> + <br> + NOTE: The update process takes about 2 minutes to complete, and your DSL Router + will reboot.<br> + <br> + <table border="0" cellpadding="0" cellspacing="0"> + <tr> + <td>Software File Name: + </td> + <td><input type='file' name='filename' size='15'></td> + </tr> + </table> + <p align="center"><input type='submit' value='Update Software'></p> + </form> + </blockquote> + </body> +</html> diff --git a/cfe/cfe/arch/mips/board/bcm63xx_ram/src/html/ulinfo.html b/cfe/cfe/arch/mips/board/bcm63xx_ram/src/html/ulinfo.html new file mode 100755 index 0000000..1edb2ae --- /dev/null +++ b/cfe/cfe/arch/mips/board/bcm63xx_ram/src/html/ulinfo.html @@ -0,0 +1,60 @@ +<html> + <head> + <meta HTTP-EQUIV='Pragma' CONTENT='no-cache'> + <script language="javascript"> +<!-- hide +var msg = new Array(); +msg[0] = 'New software is being programmed to the flash memory. The DSL Router will reboot upon completion. This process will take about 2 minutes.'; +msg[1] = 'Image uploading failed. The system is out of memory. The DSL Router is rebooting.'; +msg[2] = 'Image uploading failed. No image file was selected.'; +msg[3] = 'Image uploading failed. The selected file contains an illegal image.'; +msg[4] = 'Image uploading failed. The selected file contains an illegal image.'; +msg[5] = 'Image uploading failed. The selected file contains an illegal image.'; +msg[6] = ' '; +msg[7] = 'Image uploading failed. The selected file contains an illegal image.'; + +var idxStr = '<%%>'; + +function getMsgIndex() { + var idxNum = parseInt(idxStr); + if ( isNaN(idxNum) || idxNum < 0 || idxNum > 7 ) + idxNum = 7; + + return idxNum; +} + +function reboot() { + var loc = 'upload.html'; + + var code = 'location.assign("' + loc + '")'; + eval(code); +} + +function frmLoad() { + setTimeout('reboot()', 40000); +} + +function btnBack() { + var code = 'location.assign("' + 'upload.html' + '")'; + eval(code); +} + +// done hiding --> +</script> + </head> + <body onLoad='frmLoad()'> + <blockquote> <b>DSL Router Software Upgrade</b><br> + <br> + <script language="javascript"> +<!-- hide +document.write(msg[getMsgIndex()]); +// done hiding --> +</script> + <br> + <br> + <center> + <input type='button' onClick='btnBack()' value='Back'> + </center> + </blockquote> + </body> +</html> |