diff options
author | PiBa-NL <pba_2k3@yahoo.com> | 2012-09-16 12:17:17 +0200 |
---|---|---|
committer | PiBa-NL <pba_2k3@yahoo.com> | 2012-09-16 12:17:17 +0200 |
commit | f06f7cc0c2051e3e5e507d6b95583fcc32b7890e (patch) | |
tree | 4849c0ed7aa9b7295d02683bad8dc2c4175e7aae /usr/local/www/diag_routes.php | |
parent | 32f8552e8a3fc10ef8dec0f325189e4fcc295fcf (diff) | |
download | pfsense-f06f7cc0c2051e3e5e507d6b95583fcc32b7890e.zip pfsense-f06f7cc0c2051e3e5e507d6b95583fcc32b7890e.tar.gz |
(line endings UNIX format..)
Firewall log alternating colored rows
Firewall log sortable
Fixed several sorting issues in widgets and other pages
Sorting now possible on multiple rows in the header tables
Sorting now possible for text that starts with IPv4:port
Diffstat (limited to 'usr/local/www/diag_routes.php')
-rw-r--r-- | usr/local/www/diag_routes.php | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/usr/local/www/diag_routes.php b/usr/local/www/diag_routes.php index 980150f..e4a364f 100644 --- a/usr/local/www/diag_routes.php +++ b/usr/local/www/diag_routes.php @@ -86,18 +86,24 @@ include('head.inc'); $elements = ($tabindex == 0 ? 8 : 8); $name = ($tabindex == 0 ? 'IPv4' : 'IPv6'); ?> -<table class="tabcont" width="100%" cellspacing="0" cellpadding="6" border="0"> +<table class="tabcont sortable" width="100%" cellspacing="0" cellpadding="6" border="0"> +<thead> <tr><td class="listtopic" colspan="<?=$elements?>"><strong><?=$name;?></strong></font></td></tr> <?php foreach (explode("\n", $table) as $i => $line) { if ($i == 0) continue; + if ($line == "") continue; if ($i == 1) $class = 'listhdrr'; else $class = 'listlr'; - print("<tr>\n"); + if ($i == 1) + print("<tr class=\"sortableHeaderRowIdentifier\">\n"); + else + print("<tr>\n"); + $j = 0; foreach (explode(' ', $line) as $entry) { if ($entry == '') continue; @@ -112,6 +118,8 @@ include('head.inc'); if ($j == $elements - 1) print('<td class="listr"> </td>' . "\n"); print("</tr>\n"); + if ($i == 1) + print("</thead>\n"); } print("</table>\n"); } |