diff options
author | Colin Fleming <cj_fleming@sky.com> | 2013-01-16 19:34:02 +0000 |
---|---|---|
committer | Colin Fleming <cj_fleming@sky.com> | 2013-01-16 19:34:02 +0000 |
commit | a0c0e8aefbac3e3979bac5fbfdecfedfe49cc2d3 (patch) | |
tree | cf4d91b9b6e1cbd5aa65f0a886db0072e30a34bf /usr/local/www/status_gateways.php | |
parent | 2151894c4f08a67ff2e0ffd49fe363425e5c56f9 (diff) | |
download | pfsense-a0c0e8aefbac3e3979bac5fbfdecfedfe49cc2d3.zip pfsense-a0c0e8aefbac3e3979bac5fbfdecfedfe49cc2d3.tar.gz |
Tidy up HTML Colour Names
With XHTML 1.0, the extended colour names are invalid, to make pfSense
as W3C compliant as possible, need to go back to using the HEX code.
Diffstat (limited to 'usr/local/www/status_gateways.php')
-rwxr-xr-x | usr/local/www/status_gateways.php | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/usr/local/www/status_gateways.php b/usr/local/www/status_gateways.php index 0219c95..e7154a8 100755 --- a/usr/local/www/status_gateways.php +++ b/usr/local/www/status_gateways.php @@ -117,25 +117,25 @@ include("head.inc"); $status = $gateways_status[$gname]; if (stristr($status['status'], "down")) { $online = gettext("Offline"); - $bgcolor = "lightcoral"; + $bgcolor = "#F08080"; // lightcoral } elseif (stristr($status['status'], "loss")) { $online = gettext("Warning, Packetloss").': '.$status['loss']; - $bgcolor = "khaki"; + $bgcolor = "#F0E68C"; // khaki } elseif (stristr($status['status'], "delay")) { $online = gettext("Warning, Latency").': '.$status['delay']; - $bgcolor = "khaki"; + $bgcolor = "#F0E68C"; // khaki } elseif ($status['status'] == "none") { $online = gettext("Online"); - $bgcolor = "lightgreen"; + $bgcolor = "#90EE90"; // lightgreen } } else if (isset($gateway['monitor_disable'])) { $online = gettext("Online"); - $bgcolor = "lightgreen"; + $bgcolor = "#90EE90"; // lightgreen } else { $online = gettext("Pending"); - $bgcolor = "lightgray"; + $bgcolor = "#D3D3D3"; // lightgray } - echo "<tr><td><table width='100%'><tr><td bgcolor=\"$bgcolor\" > $online </td></tr><tr><td>"; + echo "<tr><td><table width='100%'><tr><td bgcolor=\"$bgcolor\"> $online </td></tr><tr><td>"; $lastchange = $gateways_status[$gname]['lastcheck']; if(!empty($lastchange)) { echo gettext("Last check:") . '<br/>' . $lastchange; |