diff options
author | N0YB <Al_Stu@Frontier.com> | 2012-11-28 01:10:48 -0800 |
---|---|---|
committer | N0YB <Al_Stu@Frontier.com> | 2012-11-28 01:10:48 -0800 |
commit | 909e7d0d72f5cf01aea06f84b033bb59dc2f389b (patch) | |
tree | 277f1d9a0d3f5d8239389a4978899a4ba53398f3 /usr/local/www/diag_tables.php | |
parent | 84464c9ab0b94b9602c6ec62502dc4ad3e7a8c0a (diff) | |
download | pfsense-909e7d0d72f5cf01aea06f84b033bb59dc2f389b.zip pfsense-909e7d0d72f5cf01aea06f84b033bb59dc2f389b.tar.gz |
Update usr/local/www/diag_tables.php
Add table entries count to status line.
Place table status line at top so don't have to scroll to bottom of large tables to see.Add Download latest bogon data button to bogonsv6 table.
Diffstat (limited to 'usr/local/www/diag_tables.php')
-rw-r--r-- | usr/local/www/diag_tables.php | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/usr/local/www/diag_tables.php b/usr/local/www/diag_tables.php index 0802d30..17f1810 100644 --- a/usr/local/www/diag_tables.php +++ b/usr/local/www/diag_tables.php @@ -70,7 +70,7 @@ if($_REQUEST['deleteall']) { } } -if(($tablename == "bogons") && ($_POST['Download'])) { +if((($tablename == "bogons") || ($tablename == "bogonsv6")) && ($_POST['Download'])) { mwexec_bg("/etc/rc.update_bogons.sh now"); $maxtimetowait = 0; $loading = true; @@ -139,7 +139,7 @@ include("fbegin.inc"); <?php echo $entry; ?> </td> <td> - <?php if ($tablename != "bogons") { ?> + <?php if ( ($tablename != "bogons") && ($tablename != "bogonsv6") ) { ?> <a onClick='del_entry("<?=htmlspecialchars($entry)?>");'> <img img src="/themes/<?=$g['theme'];?>/images/icons/icon_x.gif"> <?php } ?> @@ -149,17 +149,20 @@ include("fbegin.inc"); <?php $count++; endforeach; ?> <?php if($count == 0) - echo "<tr><td>" . gettext("No entries exist in this table.") . "</td></tr>"; + if( ($tablename == "bogons") || ($tablename == "bogonsv6") ) + echo "<p/>" . gettext("No entries exist in this table. ") . "<input name='Download' type='submit' class='formbtn' value='" . gettext("Download") . "'> " . gettext(" the latest bogon data."); + else + echo "<p/>" . gettext("No entries exist in this table."); ?> -</table> - <?php if($count > 0) - if($tablename == "bogons") - echo "<input name='Download' type='submit' class='formbtn' value='" . gettext("Download") . "'> " . gettext(" the latest bogon data."); + if( ($tablename == "bogons") || ($tablename == "bogonsv6") ) + echo "<p/>" . gettext("<b>$count</b> entries exist in this table. ") . "<input name='Download' type='submit' class='formbtn' value='" . gettext("Download") . "'> " . gettext(" the latest bogon data."); else - echo "<p/>" . gettext("Delete") . " <a href='diag_tables.php?deleteall=true&type=" . htmlspecialchars($tablename) . "'>" . gettext("all") . "</a> " . gettext("entries in this table."); + echo "<p/>" . gettext("Delete") . " <a href='diag_tables.php?deleteall=true&type=" . htmlspecialchars($tablename) . "'>" . gettext("all") . "</a> " . gettext("<b>$count</b> entries in this table."); ?> +</table> + <?php include("fend.inc"); ?> |