summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xusr/local/www/progress.php53
-rwxr-xr-xusr/local/www/system_firmware.php4
2 files changed, 37 insertions, 20 deletions
diff --git a/usr/local/www/progress.php b/usr/local/www/progress.php
index 4b54779..f379221 100755
--- a/usr/local/www/progress.php
+++ b/usr/local/www/progress.php
@@ -53,30 +53,47 @@ if (!$X) {
</HEAD>
<BODY BGCOLOR="#FFFFFF">
-Uploading files...
+<table height="100%" width="100%" cellPadding="4" cellSpacing="4" style="border:1px solid #000066;">
+<tr><td>
-<table WIDTH="100%" cellPadding=0 cellSpacing=0 style='border:1px dashed #000066; BORDER-BOTTOM: 0px inset; BORDER-LEFT: 0px inset; BORDER-RIGHT: 0px inset; BORDER-TOP: 0px inset'> <tr><td>
- <table border=0 WIDTH="100%" COLS="34"><tr>
+ <font face="arial"><b><center>Uploading files...</b></center>
- <?
+ <br>
- for ($i=0; $i<100; $i+=3) {
- $color = ($i<$meter) ? " bgcolor='#00007F' " : '';
- $width = ($i+3<100) ? "3" : 100-$i;
- echo("<td $color class='uplmtr' WIDTH='$width%'>&nbsp;</td>\n");
- }
- ?>
+ <table WIDTH="100%" cellPadding="1" cellSpacing="2" style='border:1px dashed #000066; BORDER-BOTTOM: 1px inset; BORDER-LEFT: 1px inset; BORDER-RIGHT: 1px inset; BORDER-TOP: 1px inset'> <tr><td>
+ <table border=0 WIDTH="100%" COLS="34"><tr>
-</tr></table>
-</td></tr></table>
+ <?
-<TABLE WIDTH=100%><TR><TD>
-<?=$eta?> left (at <?=$speed?>KB/sec)
-</TD><TD ALIGN=right>
-<?=$upl?>/<?=$total?>(<?=$meter?>%)
-</TD></TR><TR><TD>
+ for ($i=0; $i<100; $i+=3) {
+ $color = ($i<$meter) ? " bgcolor='#00007F' " : '';
+ $width = ($i+3<100) ? "3" : 100-$i;
+ echo("<td $color class='uplmtr' WIDTH='$width%'>&nbsp;</td>\n");
+ }
+ ?>
-</TD></TR></TABLE>
+ </tr></table>
+ </td></tr></table>
+
+ <br>
+
+ <TABLE WIDTH=100%>
+ <tr>
+ <td align="right"><font face="arial"><b>Time Remaining:</td><td><font face="arial"><?=$eta?></td>
+ <td align="right"><font face="arial"><b>Speed:</td><td><font face="arial"><font face="arial"><?=$speed?>KB/sec</td>
+ </tr>
+
+ <tr>
+ <td align="right"><font face="arial"><b>Uploaded:</td><td><font face="arial"><?=$upl?></td>
+ <td align="right"><font face="arial"><b>File Size:</td><td><font face="arial"><?=$total?></td>
+ </tr>
+
+ <tr>
+ <td align="right"><font face="arial"><b>Completed:</td><td><font face="arial"><?=$meter?>%</td>
+ </tr>
+
+</td></tr>
+</table>
</BODY>
</HTML>
diff --git a/usr/local/www/system_firmware.php b/usr/local/www/system_firmware.php
index 66cd6d5..1d2db78 100755
--- a/usr/local/www/system_firmware.php
+++ b/usr/local/www/system_firmware.php
@@ -189,7 +189,7 @@ $dir = ini_get('upload_progress_meter.file.filename_template');
<!--
generated new UPLOAD_IDENTIFIER = <?=$id?>
php-config.upload_progress_meter.store_method = <?=$mth?>
-php-config.upload_progress_meter.file.filename_template = <?=$dir?>
+php-config.upload_progress_meter.file.filename_template = <?=$dir?>
-->
<?php include("fbegin.inc"); ?>
<p class="pgtitle">System: Firmware</p>
@@ -248,7 +248,7 @@ print_info_box($sig_warning);
<input name="ulfile" type="file" class="formfld">
<br><br>
- <input name="Submit" type="submit" class="formbtn" value="Upgrade firmware" onClick="window.open('progress.php?UPLOAD_IDENTIFIER=<?=$id?>','UploadMeter','width=370,height=115', true); return true; ">
+ <input name="Submit" type="submit" class="formbtn" value="Upgrade firmware" onClick="window.open('progress.php?UPLOAD_IDENTIFIER=<?=$id?>','UploadMeter','width=400,height=200', true); return true; ">
<?php endif; else: ?>
<strong>You must reboot the system before you can upgrade the firmware.</strong>
<?php endif; ?>
OpenPOWER on IntegriCloud