mirror of
https://github.com/unraid/webgui.git
synced 2026-01-13 21:20:01 -06:00
Replace deprecated HTML5 tags <big> <center> <font>
This commit is contained in:
@@ -22,7 +22,7 @@ function getUPSstatus() {
|
||||
$('#ups_summary').html(data[0]);
|
||||
$('#ups_status').html(data[1]);
|
||||
}
|
||||
<?if (($display['refresh']>0 || ($display['refresh']<0 && $var['mdResync']==0))):?>
|
||||
<?if ($update):?>
|
||||
setTimeout(getUPSstatus,<?=max(abs($display['refresh']),15000)?>);
|
||||
<?endif;?>
|
||||
});
|
||||
@@ -32,5 +32,5 @@ $(getUPSstatus);
|
||||
|
||||
<table class="tablesorter shift">
|
||||
<thead><tr><th style="width:15%">Key</th><th style="width:35%">Value</th><th style="width:15%">Key</th><th style="width:35%">Value</th></tr></thead>
|
||||
<tbody id="ups_status"><tr><td colspan="4"><center><i class="fa fa-spinner fa-spin icon"></i><em>Please wait, retrieving UPS information...</em></center></td></tr></tbody>
|
||||
<tbody id="ups_status"><tr><td colspan="4" style="text-align:center"><i class="fa fa-spinner fa-spin icon"></i><em>Please wait, retrieving UPS information...</em></td></tr></tbody>
|
||||
</table>
|
||||
|
||||
@@ -23,7 +23,7 @@ table.ups tbody tr td{padding-left:10px;font-weight:bold;}
|
||||
function getUPSstatus() {
|
||||
$.get('/plugins/dynamix.apcupsd/include/UPSstatus.php',{all:'false'},function(data) {
|
||||
if (data) $('#ups_summary').html(data);
|
||||
<?if (($display['refresh']>0 || ($display['refresh']<0 && $var['mdResync']==0))):?>
|
||||
<?if ($update):?>
|
||||
setTimeout(getUPSstatus, <?=max(abs($display['refresh']),15000)?>);
|
||||
<?endif;?>
|
||||
});
|
||||
|
||||
@@ -26,7 +26,7 @@ $green = "class='green-text'";
|
||||
$orange = "class='orange-text'";
|
||||
$status = array_fill(0,6,"<td>-</td>");
|
||||
$all = $_GET['all']=='true';
|
||||
$result = array();
|
||||
$result = [];
|
||||
|
||||
if (file_exists("/var/run/apcupsd.pid")) {
|
||||
exec("/sbin/apcaccess 2>/dev/null", $rows);
|
||||
@@ -62,7 +62,7 @@ if (file_exists("/var/run/apcupsd.pid")) {
|
||||
if ($all && count($rows)%2==1) $result[] = "<td></td><td></td></tr>";
|
||||
if ($power && $load) $status[4] = ($load>=90 ? "<td $red>" : "<td $green>").intval($power*$load/100)." Watts</td>";
|
||||
}
|
||||
if ($all && !$rows) $result[] = "<tr><td colspan='4'><center>No information available</center></td></tr>";
|
||||
if ($all && !$rows) $result[] = "<tr><td colspan='4' style='text-align:center'>No information available</td></tr>";
|
||||
|
||||
echo "<tr>".implode('', $status)."</tr>";
|
||||
if ($all) echo "\n".implode('', $result);
|
||||
|
||||
Reference in New Issue
Block a user