diff options
author | NOYB <Al_Stu@Frontier.com> | 2016-01-23 01:11:06 -0800 |
---|---|---|
committer | NOYB <Al_Stu@Frontier.com> | 2016-01-23 01:11:06 -0800 |
commit | 98bf911e939fe8f46974e8f86dbc556d0feeb360 (patch) | |
tree | 0ae4f375498525af1516065b83f0bcfaa4713762 /src/usr/local/www/status_logs_filter.php | |
parent | 4d47827275a3ee5fdafd95773eb6924b2698c611 (diff) | |
download | pfsense-98bf911e939fe8f46974e8f86dbc556d0feeb360.zip pfsense-98bf911e939fe8f46974e8f86dbc556d0feeb360.tar.gz |
Status / System Logs - Filter Refinements
Use advanced filter in firewall dynamic view even if raw mode is set. Raw mode is not applicable to the firewall dynamic view.
Update the count in firewall dynamic view.
JQuery the actual count in raw mode instead of just displaying the max setting value.
Change some negative logic to positive.
Diffstat (limited to 'src/usr/local/www/status_logs_filter.php')
-rw-r--r-- | src/usr/local/www/status_logs_filter.php | 28 |
1 files changed, 24 insertions, 4 deletions
diff --git a/src/usr/local/www/status_logs_filter.php b/src/usr/local/www/status_logs_filter.php index 2a2f008..dff8641 100644 --- a/src/usr/local/www/status_logs_filter.php +++ b/src/usr/local/www/status_logs_filter.php @@ -174,10 +174,10 @@ if (!$rawfilter) { <div class="panel-heading"> <h2 class="panel-title"> <?php - if ((!$filtertext) && (!$filterfieldsarray)) { - printf(gettext("Last %d %s log entries."), count($filterlog), gettext($allowed_logs[$logfile]["name"])); - } else { + if (($filtersubmit) || ($filterlogentries_submit)) { printf(gettext("%d matched %s log entries."), count($filterlog), gettext($allowed_logs[$logfile]["name"])); + } else { + printf(gettext("Last %d %s log entries."), count($filterlog), gettext($allowed_logs[$logfile]["name"])); } printf(" (" . gettext("Maximum %d") . ")", $nentries); @@ -325,7 +325,19 @@ if (!$rawfilter) { } else { ?> <div class="panel panel-default"> - <div class="panel-heading"><h2 class="panel-title"><?=gettext("Last ")?><?=$nentries?> <?=gettext($allowed_logs[$logfile]["name"])?><?=gettext(" log entries")?></h2></div> + <div class="panel-heading"> + <h2 class="panel-title"> +<?php + if (($filtersubmit) || ($filterlogentries_submit)) { + printf(gettext("%s matched %s log entries."), "<span id='count'>_ _</span>", gettext($allowed_logs[$logfile]["name"])); + } else { + printf(gettext("Last %s %s log entries."), "<span id='count'>_ _</span>", gettext($allowed_logs[$logfile]["name"])); + } + + printf(" (" . gettext("Maximum %d") . ")", $nentries); +?> + </h2> + </div> <div class="table table-responsive"> <table class="table table-striped table-hover table-condensed sortable-theme-bootstrap" data-sortable> <thead> @@ -449,5 +461,13 @@ events.push(function() { //]]> </script> +<script type="text/javascript"> +//<![CDATA[ +events.push(function() { + $("#count").html(<?=$rows?>); +}); +//]]> +</script> + <?php include("foot.inc"); ?> |