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/widgets/widgets/load_balancer_status.widget.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/widgets/widgets/load_balancer_status.widget.php')
-rw-r--r-- | usr/local/www/widgets/widgets/load_balancer_status.widget.php | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/usr/local/www/widgets/widgets/load_balancer_status.widget.php b/usr/local/www/widgets/widgets/load_balancer_status.widget.php index 63f8bc4..d63df92 100644 --- a/usr/local/www/widgets/widgets/load_balancer_status.widget.php +++ b/usr/local/www/widgets/widgets/load_balancer_status.widget.php @@ -73,15 +73,15 @@ if (!$nentries) <?php switch (trim($rdr_a[$vsent['name']]['status'])) { case 'active': - $bgcolor = "lightgreen"; + $bgcolor = "#90EE90"; // lightgreen $rdr_a[$vsent['name']]['status'] = "Active"; break; case 'down': - $bgcolor = "lightcoral"; + $bgcolor = "#F08080"; // lightcoral $rdr_a[$vsent['name']]['status'] = "Down"; break; default: - $bgcolor = "lightgray"; + $bgcolor = "#D3D3D3"; // lightgray $rdr_a[$vsent['name']]['status'] = 'Unknown - relayd not running?'; } ?> @@ -113,22 +113,22 @@ if (!$nentries) if($server['ip']['addr']!="") { switch ($server['ip']['state']) { case 'up': - $bgcolor = "lightgreen"; + $bgcolor = "#90EE90"; // lightgreen $checked = "checked"; break; case 'disabled': - $bgcolor = "white"; + $bgcolor = "#FFFFFF"; // white $checked = ""; break; default: - $bgcolor = "lightcoral"; + $bgcolor = "#F08080"; // lightcoral $checked = "checked"; } echo "<tr>"; - echo "<td bgcolor={$bgcolor}> {$server['ip']['addr']}:{$pool['port']} </td><td bgcolor={$bgcolor}>"; + echo "<td bgcolor={$bgcolor}> {$server['ip']['addr']}:{$pool['port']} </td><td bgcolor={$bgcolor}> "; if($server['ip']['avail']) echo " ({$server['ip']['avail']}) "; - echo "</td></tr>"; + echo " </td></tr>"; } } } |