summaryrefslogtreecommitdiffstats
path: root/usr/local/www/widgets/widgets/interface_statistics.widget.php
diff options
context:
space:
mode:
authorColin Fleming <cj_fleming@sky.com>2013-03-05 16:58:08 +0000
committerColin Fleming <cj_fleming@sky.com>2013-03-05 16:58:08 +0000
commitbb1a8946bb8b3a8968b78d61a496990817dd31e0 (patch)
treed97d0b7f5e06277d668017231a32ab5fec805b8c /usr/local/www/widgets/widgets/interface_statistics.widget.php
parentbcab1b076d4a73bf2ffdb3aa527fe0157185a6cb (diff)
downloadpfsense-bb1a8946bb8b3a8968b78d61a496990817dd31e0.zip
pfsense-bb1a8946bb8b3a8968b78d61a496990817dd31e0.tar.gz
Tidy up widget XHTML
Removed duplicte TR tag Move norwap to the class definition.
Diffstat (limited to 'usr/local/www/widgets/widgets/interface_statistics.widget.php')
-rw-r--r--usr/local/www/widgets/widgets/interface_statistics.widget.php23
1 files changed, 11 insertions, 12 deletions
diff --git a/usr/local/www/widgets/widgets/interface_statistics.widget.php b/usr/local/www/widgets/widgets/interface_statistics.widget.php
index 7dca538..ff14a2e 100644
--- a/usr/local/www/widgets/widgets/interface_statistics.widget.php
+++ b/usr/local/www/widgets/widgets/interface_statistics.widget.php
@@ -82,7 +82,7 @@ require_once("/usr/local/www/widgets/include/interface_statistics.inc");
?>
<div style="padding: 5px">
<div id="int_labels" style="float:left;width:32%">
- <table width="100%" border="0" cellspacing="0" cellpadding="0">
+ <table width="100%" border="0" cellspacing="0" cellpadding="0" summary="interfaces statistics">
<tr><td class="widgetsubheader" style="height:25px">&nbsp;&nbsp;&nbsp;</td></tr>
<tr>
<td class="vncellt" style="height:25px">Packets In</td>
@@ -109,15 +109,14 @@ require_once("/usr/local/www/widgets/include/interface_statistics.inc");
</div>
<div id="interfacestats" style="float:right;overflow: auto; width:68%">
- <table width="100%" border="0" cellspacing="0" cellpadding="0">
+ <table width="100%" border="0" cellspacing="0" cellpadding="0" summary="the stats">
<tr>
- <tr>
<?php
$interface_names = array();
foreach ($ifdescrs as $ifdescr => $ifname):
$ifinfo = get_interface_info($ifdescr);
if ($ifinfo['status'] != "down"){ ?>
- <td class="widgetsubheader" nowrap style="height:25px">
+ <td class="widgetsubheader nowrap" style="height:25px">
<?=htmlspecialchars($ifname);?>
</td>
<?php
@@ -131,7 +130,7 @@ require_once("/usr/local/www/widgets/include/interface_statistics.inc");
<?php
$counter = 1;
foreach ($array_in_packets as $data): ?>
- <td class="listr" id="stat<?php echo $counter?>" nowrap style="height:25px">
+ <td class="listr nowrap" id="stat<?php echo $counter?>" style="height:25px">
<?=htmlspecialchars($data);?>
</td>
<?php
@@ -143,7 +142,7 @@ require_once("/usr/local/www/widgets/include/interface_statistics.inc");
<?php
$counter = 2;
foreach ($array_out_packets as $data): ?>
- <td class="listr" id="stat<?php echo $counter;?>" nowrap style="height:25px">
+ <td class="listr nowrap" id="stat<?php echo $counter;?>" style="height:25px">
<?=htmlspecialchars($data);?>
</td>
<?php
@@ -155,7 +154,7 @@ require_once("/usr/local/www/widgets/include/interface_statistics.inc");
<?php
$counter = 3;
foreach ($array_in_bytes as $data): ?>
- <td class="listr" id="stat<?php echo $counter;?>" nowrap style="height:25px">
+ <td class="listr nowrap" id="stat<?php echo $counter;?>" style="height:25px">
<?=htmlspecialchars($data);?>
</td>
<?php
@@ -167,7 +166,7 @@ require_once("/usr/local/www/widgets/include/interface_statistics.inc");
<?php
$counter = 4;
foreach ($array_out_bytes as $data): ?>
- <td class="listr" id="stat<?php echo $counter;?>" nowrap style="height:25px">
+ <td class="listr nowrap" id="stat<?php echo $counter;?>" style="height:25px">
<?=htmlspecialchars($data);?>
</td>
<?php
@@ -179,7 +178,7 @@ require_once("/usr/local/www/widgets/include/interface_statistics.inc");
<?php
$counter = 5;
foreach ($array_in_errors as $data): ?>
- <td class="listr" id="stat<?php echo $counter;?>" nowrap style="height:25px">
+ <td class="listr nowrap" id="stat<?php echo $counter;?>" style="height:25px">
<?=htmlspecialchars($data);?>
</td>
<?php
@@ -191,7 +190,7 @@ require_once("/usr/local/www/widgets/include/interface_statistics.inc");
<?php
$counter = 6;
foreach ($array_out_errors as $data): ?>
- <td class="listr" id="stat<?php echo $counter;?>" nowrap style="height:25px">
+ <td class="listr nowrap" id="stat<?php echo $counter;?>" style="height:25px">
<?=htmlspecialchars($data);?>
</td>
<?php
@@ -203,7 +202,7 @@ require_once("/usr/local/www/widgets/include/interface_statistics.inc");
<?php
$counter = 7;
foreach ($array_collisions as $data): ?>
- <td class="listr" id="stat<?php echo $counter;?>" nowrap style="height:25px">
+ <td class="listr nowrap" id="stat<?php echo $counter;?>" style="height:25px">
<?=htmlspecialchars($data);?>
</td>
<?php
@@ -212,4 +211,4 @@ require_once("/usr/local/www/widgets/include/interface_statistics.inc");
</tr>
</table>
</div>
- </div>
+ </div> \ No newline at end of file
OpenPOWER on IntegriCloud