diff options
author | Colin Fleming <cj_fleming@sky.com> | 2014-05-17 18:12:37 +0100 |
---|---|---|
committer | Colin Fleming <cj_fleming@sky.com> | 2014-05-17 18:12:37 +0100 |
commit | f11afbf70fd23d354beeb3c14ad26398c2d1c311 (patch) | |
tree | 0e5e4c3de348696d8f73d8240a1daf0bb886fb6f /usr/local/www/diag_states_summary.php | |
parent | 024068017f98572f6bd41b7ba542fc36fccee39a (diff) | |
download | pfsense-f11afbf70fd23d354beeb3c14ad26398c2d1c311.zip pfsense-f11afbf70fd23d354beeb3c14ad26398c2d1c311.tar.gz |
Tidy up "diag_states_summary.php" XHTML
Add SUMMARY to TABLES
Update single quotes to double quotes in HTML
Add missing BODY, closing BODY and closing HTML tags
Diffstat (limited to 'usr/local/www/diag_states_summary.php')
-rw-r--r-- | usr/local/www/diag_states_summary.php | 29 |
1 files changed, 16 insertions, 13 deletions
diff --git a/usr/local/www/diag_states_summary.php b/usr/local/www/diag_states_summary.php index c67b668..9259912 100644 --- a/usr/local/www/diag_states_summary.php +++ b/usr/local/www/diag_states_summary.php @@ -136,7 +136,7 @@ function build_port_info($portarr, $proto) { function print_summary_table($label, $iparr, $sort = TRUE) { ?> <h3><?php echo $label; ?></h3> -<table class="tabcont" width="100%" border="0" cellspacing="0" cellpadding="0"> +<table class="tabcont" width="100%" border="0" cellspacing="0" cellpadding="0" summary="states summary"> <tr> <td class="listhdrr"><?=gettext("IP");?></td> <td class="listhdrr"># <?=gettext("States");?></td> @@ -149,21 +149,21 @@ function print_summary_table($label, $iparr, $sort = TRUE) { ?> uksort($iparr, "sort_by_ip"); foreach($iparr as $ip => $ipinfo) { ?> <tr> - <td class='vncell'><?php echo $ip; ?></td> - <td class='vncell'><?php echo $ipinfo['seen']; ?></td> - <td class='vncell'> </td> - <td class='vncell'> </td> - <td class='vncell'> </td> - <td class='vncell'> </td> + <td class="vncell"><?php echo $ip; ?></td> + <td class="vncell"><?php echo $ipinfo['seen']; ?></td> + <td class="vncell"> </td> + <td class="vncell"> </td> + <td class="vncell"> </td> + <td class="vncell"> </td> </tr> <?php foreach($ipinfo['protos'] as $proto => $protoinfo) { ?> <tr> - <td class='list'> </td> - <td class='list'> </td> - <td class='listlr'><?php echo $proto; ?></td> - <td class='listr' align="center"><?php echo $protoinfo['seen']; ?></td> - <td class='listr' align="center"><span title="<?php echo build_port_info($protoinfo['srcports'], $proto); ?>"><?php echo count($protoinfo['srcports']); ?></span></td> - <td class='listr' align="center"><span title="<?php echo build_port_info($protoinfo['dstports'], $proto); ?>"><?php echo count($protoinfo['dstports']); ?></span></td> + <td class="list"> </td> + <td class="list"> </td> + <td class="listlr"><?php echo $proto; ?></td> + <td class="listr" align="center"><?php echo $protoinfo['seen']; ?></td> + <td class="listr" align="center"><span title="<?php echo build_port_info($protoinfo['srcports'], $proto); ?>"><?php echo count($protoinfo['srcports']); ?></span></td> + <td class="listr" align="center"><span title="<?php echo build_port_info($protoinfo['dstports'], $proto); ?>"><?php echo count($protoinfo['dstports']); ?></span></td> </tr> <?php } ?> <?php } ?> @@ -176,6 +176,7 @@ function print_summary_table($label, $iparr, $sort = TRUE) { ?> $pgtitle = array(gettext("Diagnostics"),gettext("State Table Summary")); require_once("guiconfig.inc"); include("head.inc"); +echo "<body>"; include("fbegin.inc"); @@ -186,3 +187,5 @@ print_summary_table(gettext("By IP Pair"), $pairipinfo, FALSE); ?> <?php include("fend.inc"); ?> +</body> +</html> |