diff options
author | Colin Fleming <cj_fleming@sky.com> | 2013-03-05 18:15:39 +0000 |
---|---|---|
committer | Colin Fleming <cj_fleming@sky.com> | 2013-03-05 18:15:39 +0000 |
commit | ab28bba41dd1254f430e351281edd3188b7aa1c5 (patch) | |
tree | 9e0fb74faec4b397b89f1e3e65226c1049d3aa4a /usr | |
parent | bcab1b076d4a73bf2ffdb3aa527fe0157185a6cb (diff) | |
download | pfsense-ab28bba41dd1254f430e351281edd3188b7aa1c5.zip pfsense-ab28bba41dd1254f430e351281edd3188b7aa1c5.tar.gz |
Tidy up widgets XHTML
Add summary to TABLE tags
Moved nowrap to class definition
Diffstat (limited to 'usr')
-rw-r--r-- | usr/local/www/widgets/widgets/ipsec.widget.php | 20 | ||||
-rw-r--r-- | usr/local/www/widgets/widgets/load_balancer_status.widget.php | 4 |
2 files changed, 11 insertions, 13 deletions
diff --git a/usr/local/www/widgets/widgets/ipsec.widget.php b/usr/local/www/widgets/widgets/ipsec.widget.php index c9653fc..059e51c 100644 --- a/usr/local/www/widgets/widgets/ipsec.widget.php +++ b/usr/local/www/widgets/widgets/ipsec.widget.php @@ -92,11 +92,11 @@ if (isset($config['ipsec']['phase1'])){?> <div id="ipsec-Overview" style="display:block;background-color:#EEEEEE;"> <div> - <table class="tabcont" width="100%" border="0" cellpadding="6" cellspacing="0"> + <table class="tabcont" width="100%" border="0" cellpadding="6" cellspacing="0" summary="heading"> <tr> - <td nowrap class="listhdrr">Active Tunnels</td> - <td nowrap class="listhdrr">Inactive Tunnels</td> - <td nowrap class="listhdrr">Mobile Users</td> + <td class="listhdrr nowrap">Active Tunnels</td> + <td class="listhdrr nowrap">Inactive Tunnels</td> + <td class="listhdrr nowrap">Mobile Users</td> </tr> <tr> <td class="listlr"><?php echo $activecounter; ?></td> @@ -141,7 +141,7 @@ if (isset($config['ipsec']['phase1'])){?> (<?php echo htmlspecialchars($ipsec['dest']);?>)<?php echo $spane;?> </div> <div class="listr" style="display:table-cell;width:90px"><?php echo $spans;?><?php echo htmlspecialchars($ipsec['descr']);?><?php echo $spane;?></div> - <div class="listr" style="display:table-cell;width:37px"><?php echo $spans;?><center> + <div class="listr" style="display:table-cell;width:37px" align="center"><?php echo $spans;?> <?php if($ipsec['status'] == "true") { @@ -154,7 +154,7 @@ if (isset($config['ipsec']['phase1'])){?> echo "<img src ='/themes/{$g['theme']}/images/icons/icon_{$iconfn}.gif'>"; - ?></center><?php echo $spane;?></div> + ?><?php echo $spane;?></div> </div> <?php endforeach; ?> </div> @@ -178,8 +178,8 @@ if (isset($config['ipsec']['phase1'])){?> <?php echo htmlspecialchars($muser['local']);?><br/> <?php echo htmlspecialchars($muser['remote']);?> </div> - <div class="listr" style="display:table-cell;width:30px"> - <center><a href="diag_ipsec.php?act=disconnect&user=<?php echo $muser['username']; ?>"><img src='/themes/<?php echo $g['theme']; ?>/images/icons/icon_x.gif' height='17' width='17' border='0'/></a></center> + <div class="listr" style="display:table-cell;width:30px" align="center"> + <a href="diag_ipsec.php?act=disconnect&user=<?php echo $muser['username']; ?>"><img src='/themes/<?php echo $g['theme']; ?>/images/icons/icon_x.gif' height='17' width='17' border='0' alt='x' /></a> </div> </div> <?php endforeach; ?> @@ -190,10 +190,9 @@ if (isset($config['ipsec']['phase1'])){?> }//end if tunnels are configured, else show code below else { ?> <div style="display:block"> - <table class="tabcont" width="100%" border="0" cellpadding="0" cellspacing="0"> + <table class="tabcont" width="100%" border="0" cellpadding="0" cellspacing="0" summary="note"> <tr> <td colspan="4"> - <p> <span class="vexpl"> <span class="red"> <strong> @@ -203,7 +202,6 @@ else { ?> You can configure your IPsec <a href="vpn_ipsec.php">here</a>. </span> - </p> </td> </tr> </table> 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 d63df92..3ec5ba6 100644 --- a/usr/local/www/widgets/widgets/load_balancer_status.widget.php +++ b/usr/local/www/widgets/widgets/load_balancer_status.widget.php @@ -62,7 +62,7 @@ if (!$nentries) ?> -<table bgcolor="#990000" width="100%" border="0" cellspacing="0" cellpadding="0"> +<table bgcolor="#990000" width="100%" border="0" cellspacing="0" cellpadding="0" summary="load balancer"> <tr> <td width="10%" class="listhdrr">Server</td> <td width="10%" class="listhdrr">Pool</td> @@ -91,7 +91,7 @@ if (!$nentries) <?=$vsent['ipaddr'].":".$vsent['port'];?><br/> </td> <td class="listr" align="center" > - <table border="0" cellpadding="0" cellspacing="2"> + <table border="0" cellpadding="0" cellspacing="2" summary="status"> <?php foreach ($a_pool as $pool) { if ($pool['name'] == $vsent['pool']) { |