summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--usr/local/www/status_lb_pool.php24
-rw-r--r--usr/local/www/status_lb_vs.php10
2 files changed, 17 insertions, 17 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>
diff --git a/usr/local/www/status_lb_vs.php b/usr/local/www/status_lb_vs.php
index 97b5588..afe13c9 100644
--- a/usr/local/www/status_lb_vs.php
+++ b/usr/local/www/status_lb_vs.php
@@ -59,7 +59,7 @@ include("head.inc");
?>
<body link="#0000CC" vlink="#0000CC" alink="#0000CC">
<?php include("fbegin.inc"); ?>
-<table width="100%" border="0" cellpadding="0" cellspacing="0">
+<table width="100%" border="0" cellpadding="0" cellspacing="0" summary="status load balancer virtual servers">
<tr><td class="tabnavtbl">
<?php
/* active tabs */
@@ -72,10 +72,10 @@ include("head.inc");
<tr>
<td>
<div id="mainarea">
- <table class="tabcont sortable" width="100%" border="0" cellpadding="0" cellspacing="0">
+ <table class="tabcont sortable" width="100%" border="0" cellpadding="0" cellspacing="0" summary="main area">
<tr>
<td width="10%" class="listhdrr"><?=gettext("Name"); ?></td>
- <td width="20%" class="listhdrr"><?=gettext("Address"); ?></td>
+ <td width="20%" class="listhdrr"><?=gettext("Address"); ?></td>
<td width="10%" class="listhdrr"><?=gettext("Servers"); ?></td>
<td width="25%" class="listhdrr"><?=gettext("Status"); ?></td>
<td width="25%" class="listhdr"><?=gettext("Description"); ?></td>
@@ -90,7 +90,7 @@ include("head.inc");
<br />
</td>
<td class="listr" align="center" >
- <table border="0" cellpadding="0" cellspacing="2">
+ <table border="0" cellpadding="0" cellspacing="2" summary="servers">
<?php
foreach ($a_pool as $vipent) {
if ($vipent['name'] == $vsent['poolname']) {
@@ -118,7 +118,7 @@ include("head.inc");
}
?>
<td class="listr" nowrap>
- <table border="0" cellpadding="3" cellspacing="2">
+ <table border="0" cellpadding="3" cellspacing="2" summary="status">
<tr><td bgcolor="<?=$bgcolor?>"><?=$rdr_a[$vsent['name']]['status']?> </td></tr>
</table>
<?php
OpenPOWER on IntegriCloud