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_gateway_groups.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_gateway_groups.php')
-rwxr-xr-x | usr/local/www/status_gateway_groups.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/usr/local/www/status_gateway_groups.php b/usr/local/www/status_gateway_groups.php index 6365ef3..a270f61 100755 --- a/usr/local/www/status_gateway_groups.php +++ b/usr/local/www/status_gateway_groups.php @@ -122,21 +122,21 @@ include("head.inc"); $status = $gateways_status[$monitor]['status']; if (stristr($status, "down")) { $online = gettext("Offline"); - $bgcolor = "lightcoral"; + $bgcolor = "#F08080"; // lightcoral } elseif (stristr($status, "loss")) { $online = gettext("Warning, Packetloss"); - $bgcolor = "khaki"; + $bgcolor = "#F0E68C"; // khaki } elseif (stristr($status, "delay")) { $online = gettext("Warning, Latency"); - $bgcolor = "khaki"; + $bgcolor = "#F0E68C"; // khaki } elseif ($status == "none") { $online = gettext("Online"); - $bgcolor = "lightgreen"; + $bgcolor = "#90EE90"; // lightgreen } else { $online = gettext("Gathering data"); - $bgcolor = "lightblue"; + $bgcolor = "#ADD8E6"; // lightblue } - echo "<td bgcolor='$bgcolor'>". htmlspecialchars($member) .", $online</td>"; + echo "<td bgcolor='$bgcolor'> ". htmlspecialchars($member) .", $online </td>"; } else { echo "<td> </td>"; } |