From a0c0e8aefbac3e3979bac5fbfdecfedfe49cc2d3 Mon Sep 17 00:00:00 2001 From: Colin Fleming Date: Wed, 16 Jan 2013 19:34:02 +0000 Subject: 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. --- usr/local/www/includes/functions.inc.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'usr/local/www/includes/functions.inc.php') 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 .= "
$online
"; + $data .= "
 $online 
"; } return $data; } @@ -312,4 +312,4 @@ function get_interfacestatus() { return $data; } -?> +?> \ No newline at end of file -- cgit v1.1