summaryrefslogtreecommitdiffstats
path: root/usr/local/www/status_lb_pool.php
diff options
context:
space:
mode:
authorColin Fleming <cj_fleming@sky.com>2014-05-16 22:54:36 +0100
committerColin Fleming <cj_fleming@sky.com>2014-05-16 22:54:36 +0100
commitf96770abb68b515ab813767940421c2dc1fe8655 (patch)
tree80f924dab38aeeffa6cb24540dc9db5d568b9dbd /usr/local/www/status_lb_pool.php
parent024068017f98572f6bd41b7ba542fc36fccee39a (diff)
downloadpfsense-f96770abb68b515ab813767940421c2dc1fe8655.zip
pfsense-f96770abb68b515ab813767940421c2dc1fe8655.tar.gz
Tidy up "status_lb" XHTML
Add SUMMARY to TABLES Update HTML Boolean operators Close INPUT tags
Diffstat (limited to 'usr/local/www/status_lb_pool.php')
-rw-r--r--usr/local/www/status_lb_pool.php24
1 files changed, 12 insertions, 12 deletions
diff --git a/usr/local/www/status_lb_pool.php b/usr/local/www/status_lb_pool.php
index 125ce89..af25d1d 100644
--- a/usr/local/www/status_lb_pool.php
+++ b/usr/local/www/status_lb_pool.php
@@ -109,10 +109,10 @@ if ($_POST) {
<body link="#0000CC" vlink="#0000CC" alink="#0000CC">
<?php include("fbegin.inc"); ?>
<form action="status_lb_pool.php" method="post">
-<?php if (is_subsystem_dirty('loadbalancer')): ?><p>
+<?php if (is_subsystem_dirty('loadbalancer')): ?><br/>
<?php print_info_box_np(sprintf(gettext("The load balancer configuration has been changed%sYou must apply the changes in order for them to take effect."), "<br />"));?><br />
<?php endif; ?>
-<table width="100%" border="0" cellpadding="0" cellspacing="0">
+<table width="100%" border="0" cellpadding="0" cellspacing="0" summary="status load balancer pools">
<tr><td class="tabnavtbl">
<?php
/* active tabs */
@@ -125,7 +125,7 @@ if ($_POST) {
<tr>
<td>
<div id="mainarea">
- <table width="100%" border="0" cellpadding="0" cellspacing="0" class="tabcont sortable" name="sortabletable" id="sortabletable">
+ <table width="100%" border="0" cellpadding="0" cellspacing="0" class="tabcont sortable" id="sortabletable" summary="main area">
<tr>
<td width="10%" class="listhdrr"><?=gettext("Name");?></td>
<td width="10%" class="listhdrr"><?=gettext("Mode");?></td>
@@ -153,7 +153,7 @@ if ($_POST) {
?>
</td>
<td class="listr" align="center">
- <table border="0" cellpadding="2" cellspacing="0">
+ <table border="0" cellpadding="2" cellspacing="0" summary="status">
<?php
$pool_hosts=array();
foreach ((array) $pool['servers'] as $server) {
@@ -175,7 +175,7 @@ if ($_POST) {
switch ($server['ip']['state']) {
case 'up':
$bgcolor = "#90EE90"; // lightgreen
- $checked = "checked";
+ $checked = "checked=\"checked\"";
break;
case 'disabled':
$bgcolor = "white";
@@ -183,19 +183,19 @@ if ($_POST) {
break;
default:
$bgcolor = "#F08080"; // lightcoral
- $checked = "checked";
+ $checked = "checked=\"checked\"";
}
echo "<tr>";
switch ($pool['mode']) {
case 'loadbalance':
- echo "<td><input type='checkbox' name='{$pool['name']}|".str_replace('.', '_', $server['ip']['addr'])."' {$checked}></td>\n";
+ echo "<td><input type=\"checkbox\" name=\"{$pool['name']}|" . str_replace('.', '_', $server['ip']['addr']) . "\" {$checked} /></td>\n";
break;
case 'failover':
- echo "<td><input type='radio' name='{$pool['name']}' value='{$server['ip']['addr']}' {$checked}></td>\n";
+ echo "<td><input type=\"radio\" name=\"{$pool['name']}\" value=\"{$server['ip']['addr']}\" {$checked} /></td>\n";
break;
}
- echo "<td bgcolor={$bgcolor}>&nbsp;{$server['ip']['addr']}:{$pool['port']}&nbsp;</td><td bgcolor={$bgcolor}>&nbsp;";
-# echo "<td bgcolor={$bgcolor}>&nbsp;{$server['ip']['addr']}:{$pool['port']} ";
+ echo "<td bgcolor=\"{$bgcolor}\">&nbsp;{$server['ip']['addr']}:{$pool['port']}&nbsp;</td><td bgcolor=\"{$bgcolor}\">&nbsp;";
+# echo "<td bgcolor=\"{$bgcolor}\">&nbsp;{$server['ip']['addr']}:{$pool['port']} ";
if($server['ip']['avail'])
echo " ({$server['ip']['avail']}) ";
echo "&nbsp;</td></tr>";
@@ -214,8 +214,8 @@ if ($_POST) {
<?php endforeach; ?>
<tr>
<td colspan="5">
- <input name="Submit" type="submit" class="formbtn" value="<?= gettext("Save"); ?>">
- <input name="Reset" type="reset" class="formbtn" value="<?= gettext("Reset"); ?>">
+ <input name="Submit" type="submit" class="formbtn" value="<?= gettext("Save"); ?>" />
+ <input name="Reset" type="reset" class="formbtn" value="<?= gettext("Reset"); ?>" />
</td>
</tr>
</table>
OpenPOWER on IntegriCloud