diff options
author | Colin Fleming <cj_fleming@sky.com> | 2013-11-04 20:59:29 +0000 |
---|---|---|
committer | Colin Fleming <cj_fleming@sky.com> | 2013-11-04 20:59:29 +0000 |
commit | 512ae3706ff1e63f96dc20f26cb125a92242a71a (patch) | |
tree | c468e77f36f47d667b0509cc24b72e5777a736c1 /usr/local/www/diag_logs_filter_dynamic.php | |
parent | 8a0ae97fa0e249aa13538103e662aa6191ebde65 (diff) | |
download | pfsense-512ae3706ff1e63f96dc20f26cb125a92242a71a.zip pfsense-512ae3706ff1e63f96dc20f26cb125a92242a71a.tar.gz |
Tidy up "diag_logs_filter_dynamic.php" XHTML
Add CDATA to script statements
Move NOWRAP Boolean operator into class statement
Add SUMMARY to table statements
Add secondary TAB row for "filter" and "summary" logs
Close INPUT tags
Diffstat (limited to 'usr/local/www/diag_logs_filter_dynamic.php')
-rwxr-xr-x | usr/local/www/diag_logs_filter_dynamic.php | 44 |
1 files changed, 25 insertions, 19 deletions
diff --git a/usr/local/www/diag_logs_filter_dynamic.php b/usr/local/www/diag_logs_filter_dynamic.php index f1b714c..07f6f7d 100755 --- a/usr/local/www/diag_logs_filter_dynamic.php +++ b/usr/local/www/diag_logs_filter_dynamic.php @@ -65,7 +65,8 @@ include("head.inc"); ?> <body link="#0000CC" vlink="#0000CC" alink="#0000CC"> <?php include("fbegin.inc"); ?> -<script language="javascript"> +<script type="text/javascript"> +//<![CDATA[ lastsawtime = '<?php echo time(); ?>;'; var lines = Array(); var timer; @@ -82,15 +83,16 @@ include("head.inc"); /* Called by the AJAX updater */ function format_log_line(row) { var i = 0; - var line = '<td class="listMRlr" nowrap="nowrap" align="center">' + row[i++] + '</td>'; + var line = '<td class="listMRlr nowrap" align="center">' + row[i++] + '<\/td>'; while (i < 6) { - line += '<td class="listMRr" nowrap="nowrap">' + row[i++] + '</td>'; + line += '<td class="listMRr nowrap">' + row[i++] + '<\/td>'; } return line; } +//]]> </script> <script src="/javascript/filter_log.js" type="text/javascript"></script> -<table width="100%" border="0" cellpadding="0" cellspacing="0"> +<table width="100%" border="0" cellpadding="0" cellspacing="0" summary="logs filter dynamic"> <tr><td> <?php $tab_array = array(); @@ -108,20 +110,24 @@ include("head.inc"); display_top_tabs($tab_array); ?> </td></tr> + <tr><td class="tabnavtbl"> +<?php + $tab_array = array(); + $tab_array[] = array(gettext("Normal View"), false, "/diag_logs_filter.php"); + $tab_array[] = array(gettext("Dynamic View"), true, "/diag_logs_filter_dynamic.php"); + $tab_array[] = array(gettext("Summary View"), false, "/diag_logs_filter_summary.php"); + display_top_tabs($tab_array); +?> + </td> + </tr> <tr> <td> <div id="mainarea"> - <table class="tabcont" width="100%" border="0" cellpadding="0" cellspacing="0"> + <table class="tabcont" width="100%" border="0" cellpadding="0" cellspacing="0" summary="main area"> <thead> <tr> - <td colspan="6" align"left" valign="middle"> - <a href="diag_logs_filter.php"><?=gettext("Normal View");?></a> | <?=gettext("Dynamic View");?> | <a href="diag_logs_filter_summary.php"><?=gettext("Summary View");?></a> - <br/><br/> - </td> - </tr> - <tr> <td colspan="6" class="listtopic"> - <?php printf(gettext("Last %s records"),$nentries);?>; <?=gettext("Pause:");?><input valign="middle" type="checkbox" onClick="javascript:toggle_pause();"> + <?php printf(gettext("Last %s records"),$nentries);?>; <?=gettext("Pause:");?><input style="vertical-align:middle;" type="checkbox" onClick="javascript:toggle_pause();" /> </td> </tr> <tr> @@ -140,20 +146,20 @@ include("head.inc"); $evenRowClass = $rowIndex % 2 ? " listMReven" : " listMRodd"; $rowIndex++;?> <tr class="<?=$evenRowClass?>"> - <td class="listMRlr" nowrap="nowrap" align="center"> + <td class="listMRlr nowrap" align="center"> <a href="#" onclick="javascript:getURL('diag_logs_filter.php?getrulenum=<?php echo "{$filterent['rulenum']},{$filterent['act']}"; ?>', outputrule);"> <img border="0" src="<?php echo find_action_image($filterent['act']);?>" width="11" height="11" alt="<?php echo $filterent['act'];?>" title="<?php echo $filterent['act'];?>" /> </a> </td> - <td class="listMRr" nowrap="nowrap"><?php echo htmlspecialchars($filterent['time']);?></td> - <td class="listMRr" nowrap="nowrap"><?php echo htmlspecialchars($filterent['interface']);?></td> - <td class="listMRr" nowrap="nowrap"><?php echo htmlspecialchars($filterent['src']);?></td> - <td class="listMRr" nowrap="nowrap"><?php echo htmlspecialchars($filterent['dst']);?></td> + <td class="listMRr nowrap"><?php echo htmlspecialchars($filterent['time']);?></td> + <td class="listMRr nowrap"><?php echo htmlspecialchars($filterent['interface']);?></td> + <td class="listMRr nowrap"><?php echo htmlspecialchars($filterent['src']);?></td> + <td class="listMRr nowrap"><?php echo htmlspecialchars($filterent['dst']);?></td> <?php if ($filterent['proto'] == "TCP") $filterent['proto'] .= ":{$filterent['tcpflags']}"; ?> - <td class="listMRr" nowrap="nowrap"><?php echo htmlspecialchars($filterent['proto']);?></td> + <td class="listMRr nowrap"><?php echo htmlspecialchars($filterent['proto']);?></td> </tr> <?php endforeach; ?> </tbody> @@ -165,4 +171,4 @@ include("head.inc"); <p><span class="vexpl"><a href="http://doc.pfsense.org/index.php/What_are_TCP_Flags%3F"><?=gettext("TCP Flags"); ?></a>: F - FIN, S - SYN, A or . - ACK, R - RST, P - PSH, U - URG, E - ECE, C - CWR</span></p> <?php include("fend.inc"); ?> </body> -</html> +</html>
\ No newline at end of file |