summaryrefslogtreecommitdiffstats
path: root/usr/local/www/widgets/widgets/gateways.widget.php
diff options
context:
space:
mode:
authorColin Fleming <cj_fleming@sky.com>2013-03-05 17:42:38 +0000
committerColin Fleming <cj_fleming@sky.com>2013-03-05 17:42:38 +0000
commit8e4bb27fb60591ba43c0b1637914d66467edaeef (patch)
tree5d252dce2973df9a8c4f3b0cd1d0fef7e6d7b103 /usr/local/www/widgets/widgets/gateways.widget.php
parentbcab1b076d4a73bf2ffdb3aa527fe0157185a6cb (diff)
downloadpfsense-8e4bb27fb60591ba43c0b1637914d66467edaeef.zip
pfsense-8e4bb27fb60591ba43c0b1637914d66467edaeef.tar.gz
Tidy up "gateways" widgets XHTML
Added summary to table tags Created new INC file to jump from the dashboard to the gateway status page
Diffstat (limited to 'usr/local/www/widgets/widgets/gateways.widget.php')
-rw-r--r--usr/local/www/widgets/widgets/gateways.widget.php11
1 files changed, 6 insertions, 5 deletions
diff --git a/usr/local/www/widgets/widgets/gateways.widget.php b/usr/local/www/widgets/widgets/gateways.widget.php
index 17efa58..1b7bd81 100644
--- a/usr/local/www/widgets/widgets/gateways.widget.php
+++ b/usr/local/www/widgets/widgets/gateways.widget.php
@@ -32,6 +32,7 @@ $nocsrf = true;
require_once("guiconfig.inc");
require_once("pfsense-utils.inc");
require_once("functions.inc");
+require_once("/usr/local/www/widgets/include/gateways.inc");
$a_gateways = return_gateways_array();
$gateways_status = array();
@@ -41,13 +42,13 @@ $counter = 1;
?>
-<table bgcolor="#990000" width="100%" border="0" cellspacing="0" cellpadding="0">
+<table bgcolor="#990000" width="100%" border="0" cellspacing="0" cellpadding="0" summary="gateway status">
<tr>
<td class="vncellt" width="30%" id="gatewayname">
Name
</td>
<td width="70%" class="listr">
- <table width="100%" border="0" cellspacing="0" cellpadding="0">
+ <table width="100%" border="0" cellspacing="0" cellpadding="0" summary="heading">
<tr>
<td width="25%" class="listhdrr">RTT</td>
<td width="25%" class="listhdrr">Loss</td>
@@ -65,7 +66,7 @@ $counter = 1;
<?php $counter++; ?>
</td>
<td width="70%" class="listr">
- <table width="100%" border="0" cellspacing="0" cellpadding="0">
+ <table width="100%" border="0" cellspacing="0" cellpadding="0" summary="address">
<tr>
<td class="vncellt" width="100%">
<div id="gateway<?php echo $counter; ?>" style="display:inline">
@@ -84,7 +85,7 @@ $counter = 1;
</td>
</tr>
</table>
- <table width="100%" border="0" cellspacing="0" cellpadding="0">
+ <table width="100%" border="0" cellspacing="0" cellpadding="0" summary="statistics">
<tr>
<td width="25%" class="listlr" align="center" id="gateway<?php echo $counter; ?>">
<?php
@@ -105,7 +106,7 @@ $counter = 1;
<?php $counter++; ?>
</td>
<td width="50%" class="listr" id="gateway<?php echo $counter ?>" >
- <table border="0" cellpadding="0" cellspacing="2">
+ <table border="0" cellpadding="0" cellspacing="2" summary="status">
<?php
if ($gateways_status[$gname]) {
if (stristr($gateways_status[$gname]['status'], "down")) {
OpenPOWER on IntegriCloud