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/includes/functions.inc.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/includes/functions.inc.php')
-rw-r--r-- | usr/local/www/includes/functions.inc.php | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/usr/local/www/includes/functions.inc.php b/usr/local/www/includes/functions.inc.php index b6afbff..b209641 100644 --- a/usr/local/www/includes/functions.inc.php +++ b/usr/local/www/includes/functions.inc.php @@ -42,19 +42,19 @@ function get_gatewaystats() { switch(strtolower($gws['status'])) { case "none": $online = "Online"; - $bgcolor = "lightgreen"; + $bgcolor = "#90EE90"; // lightgreen break; case "down": $online = "Offline"; - $bgcolor = "lightcoral"; + $bgcolor = "#F08080"; // lightcoral break; case "delay": $online = "Latency"; - $bgcolor = "khaki"; + $bgcolor = "#F0E68C"; // khaki break; case "loss": $online = "Packetloss"; - $bgcolor = "khaki"; + $bgcolor = "#F0E68C"; // khaki break; default: $online = "Pending"; @@ -65,10 +65,10 @@ function get_gatewaystats() { $gws['delay'] = "~"; $gws['loss'] = "~"; $online = "Unknown"; - $bgcolor = "lightblue"; + $bgcolor = "#ADD8E6"; // lightblue } $data .= ($online == "Pending") ? "{$online},{$online}," : "{$gws['delay']},{$gws['loss']},"; - $data .= "<table><tr><td bgcolor=\"$bgcolor\" > $online </td></td></tr></table>"; + $data .= "<table><tr><td bgcolor=\"$bgcolor\"> $online </td></td></tr></table>"; } return $data; } @@ -312,4 +312,4 @@ function get_interfacestatus() { return $data; } -?> +?>
\ No newline at end of file |