2011-12-15 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
* operation/events/events_list.php operation/events/events.php: Added new option for display all events in event viewer. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5263 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
2223d7e629
commit
c6b4659e4b
|
@ -1,3 +1,9 @@
|
|||
2011-12-15 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
|
||||
|
||||
* operation/events/events_list.php
|
||||
operation/events/events.php: Added new option for display all
|
||||
events in event viewer.
|
||||
|
||||
2011-12-15 Sergio Martin <sergio.martin@artica.es>
|
||||
|
||||
* godmode/setup/setup.php: Fixed bad use of __() function
|
||||
|
|
|
@ -167,7 +167,7 @@ $delete = (bool) get_parameter ("delete");
|
|||
$validate = (bool) get_parameter ("validate", 0);
|
||||
$section = (string) get_parameter ("section", "list");
|
||||
$text_agent = (string)get_parameter('text_agent', __("All"));
|
||||
$filter_only_alert = (int)get_parameter('filter_only_alert', 0);
|
||||
$filter_only_alert = (int)get_parameter('filter_only_alert', -1);
|
||||
|
||||
$search = io_safe_output(preg_replace ("/&([A-Za-z]{0,4}\w{2,3};|#[0-9]{2,3};)/", "&", rawurldecode (get_parameter ("search"))));
|
||||
|
||||
|
|
|
@ -145,7 +145,7 @@ if ($tag != "") {
|
|||
if (isset($filter_only_alert)){
|
||||
if ($filter_only_alert == 0)
|
||||
$sql_post .= " AND event_type NOT LIKE '%alert%'";
|
||||
else
|
||||
else if ($filter_only_alert == 1)
|
||||
$sql_post .= " AND event_type LIKE '%alert%'";
|
||||
}
|
||||
|
||||
|
@ -271,9 +271,9 @@ html_print_select ($tags_name, "tag", $tag, '', __('All'), "");
|
|||
echo "</td>";
|
||||
|
||||
echo "<td>";
|
||||
echo __("Filter/Only alert events") . "</td><td>";
|
||||
echo __("Alert events") . "</td><td>";
|
||||
|
||||
html_print_select (array('0' => __('Filter alert events'), '1' => __('Only alert events')), "filter_only_alert", $filter_only_alert, '', '', '');
|
||||
html_print_select (array('-1' => __('All'), '0' => __('Filter alert events'), '1' => __('Only alert events')), "filter_only_alert", $filter_only_alert, '', '', '');
|
||||
|
||||
echo "</td></tr>";
|
||||
|
||||
|
|
Loading…
Reference in New Issue