mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
a2013-10-14 Miguel de Dios <miguel.dedios@artica.es>
* operation/events/events.build_query.php, operation/events/events_list.php, operation/events/events.php: added the filter for events of group childrens of parent group selected. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8911 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
ec1f12b9ea
commit
5adf9a17e4
@ -1,3 +1,9 @@
|
|||||||
|
2013-10-14 Miguel de Dios <miguel.dedios@artica.es>
|
||||||
|
|
||||||
|
* operation/events/events.build_query.php,
|
||||||
|
operation/events/events_list.php, operation/events/events.php: added
|
||||||
|
the filter for events of group childrens of parent group selected.
|
||||||
|
|
||||||
2013-10-14 Sergio Martin <sergio.martin@artica.es>
|
2013-10-14 Sergio Martin <sergio.martin@artica.es>
|
||||||
|
|
||||||
* include/functions_events.php
|
* include/functions_events.php
|
||||||
|
@ -24,8 +24,22 @@ if ($id_group > 0 && in_array ($id_group, array_keys ($groups))) {
|
|||||||
$sql_post = " AND group_name = '$group_name'";
|
$sql_post = " AND group_name = '$group_name'";
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
//If a group is selected and it's in the groups allowed
|
if ($recursion) {
|
||||||
$sql_post = " AND id_grupo = $id_group";
|
$childrens_ids = array($id_group);
|
||||||
|
|
||||||
|
$childrens = groups_get_childrens($id_group);
|
||||||
|
if (!empty($childrens)) {
|
||||||
|
foreach ($childrens as $child) {
|
||||||
|
$childrens_ids[] = $child['id_grupo'];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$sql_post = " AND id_grupo IN (" . implode(',', $childrens_ids) . ")";
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
//If a group is selected and it's in the groups allowed
|
||||||
|
$sql_post = " AND id_grupo = $id_group";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
@ -181,6 +181,14 @@ if (is_ajax ()) {
|
|||||||
|
|
||||||
$offset = (int) get_parameter ("offset", 0);
|
$offset = (int) get_parameter ("offset", 0);
|
||||||
$id_group = (int) get_parameter('id_group', 0);//0 all
|
$id_group = (int) get_parameter('id_group', 0);//0 all
|
||||||
|
//**********************************************************************
|
||||||
|
// TODO
|
||||||
|
// This code is disabled for to enabled in Pandora 5.1
|
||||||
|
// but it needs a field in tevent_filter.
|
||||||
|
//
|
||||||
|
//$recursion = (bool)get_parameter('recursion', false); //Flag show in child groups
|
||||||
|
//**********************************************************************
|
||||||
|
$recursion = (bool)get_parameter('recursion', true); //Flag show in child groups
|
||||||
$event_type = get_parameter ("event_type", ''); // 0 all
|
$event_type = get_parameter ("event_type", ''); // 0 all
|
||||||
$severity = (int) get_parameter ("severity", -1); // -1 all
|
$severity = (int) get_parameter ("severity", -1); // -1 all
|
||||||
$status = (int) get_parameter ("status", 3); // -1 all, 0 only new, 1 only validated, 2 only in process, 3 only not validated,
|
$status = (int) get_parameter ("status", 3); // -1 all, 0 only new, 1 only validated, 2 only in process, 3 only not validated,
|
||||||
@ -225,6 +233,7 @@ $params = "search=" . rawurlencode(io_safe_input($search)) .
|
|||||||
"&severity=" . $severity .
|
"&severity=" . $severity .
|
||||||
"&status=" . $status .
|
"&status=" . $status .
|
||||||
"&id_group=" . $id_group .
|
"&id_group=" . $id_group .
|
||||||
|
"&recursion=" . $recursion .
|
||||||
"&refr=" . (int)get_parameter("refr", 0) .
|
"&refr=" . (int)get_parameter("refr", 0) .
|
||||||
"&id_agent=" . $id_agent .
|
"&id_agent=" . $id_agent .
|
||||||
"&pagination=" . $pagination .
|
"&pagination=" . $pagination .
|
||||||
@ -238,7 +247,6 @@ $params = "search=" . rawurlencode(io_safe_input($search)) .
|
|||||||
"&toogle_filter=no" .
|
"&toogle_filter=no" .
|
||||||
"&filter_id=" . $filter_id .
|
"&filter_id=" . $filter_id .
|
||||||
"&id_name=" . $id_name .
|
"&id_name=" . $id_name .
|
||||||
"&id_group=" . $id_group .
|
|
||||||
"&history=" . (int)$history .
|
"&history=" . (int)$history .
|
||||||
"&section=" . $section .
|
"&section=" . $section .
|
||||||
"&open_filter=" . $open_filter .
|
"&open_filter=" . $open_filter .
|
||||||
@ -435,13 +443,13 @@ if ($delete) {
|
|||||||
__('Successfully deleted'),
|
__('Successfully deleted'),
|
||||||
__('Could not be deleted'));
|
__('Could not be deleted'));
|
||||||
}
|
}
|
||||||
require_once($config['homedir'].'/operation/events/events_list.php');
|
require_once($config['homedir'] . '/operation/events/events_list.php');
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
switch ($section) {
|
switch ($section) {
|
||||||
case 'list':
|
case 'list':
|
||||||
case 'history':
|
case 'history':
|
||||||
require_once($config['homedir'].'/operation/events/events_list.php');
|
require_once($config['homedir'] . '/operation/events/events_list.php');
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -473,16 +481,16 @@ $(document).ready( function() {
|
|||||||
$("input[name='validate_ids[]']").change (function() {
|
$("input[name='validate_ids[]']").change (function() {
|
||||||
var canDeleted = 1;
|
var canDeleted = 1;
|
||||||
$("input[name='validate_ids[]']").each(function() {
|
$("input[name='validate_ids[]']").each(function() {
|
||||||
if($(this).attr('checked') == 'checked') {
|
if ($(this).attr('checked') == 'checked') {
|
||||||
var classs = $(this).attr('class');
|
var classs = $(this).attr('class');
|
||||||
classs = classs.split(' ');
|
classs = classs.split(' ');
|
||||||
if(classs[0] != 'candeleted') {
|
if (classs[0] != 'candeleted') {
|
||||||
canDeleted = 0;
|
canDeleted = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
if(canDeleted == 0) {
|
if (canDeleted == 0) {
|
||||||
$('#button-delete_button').attr('disabled','disabled');
|
$('#button-delete_button').attr('disabled','disabled');
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
@ -520,12 +528,13 @@ $(document).ready( function() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
jQuery.post ("<?php echo ui_get_full_url("ajax.php", false, false, false); ?>",
|
jQuery.post ("<?php echo ui_get_full_url("ajax.php", false, false, false); ?>",
|
||||||
{"page" : "operation/events/events",
|
{
|
||||||
"validate_event" : 1,
|
"page" : "operation/events/events",
|
||||||
"id" : id,
|
"validate_event" : 1,
|
||||||
"comment" : comment,
|
"id" : id,
|
||||||
"new_status" : select_validate,
|
"comment" : comment,
|
||||||
"similars" : similars
|
"new_status" : select_validate,
|
||||||
|
"similars" : similars
|
||||||
},
|
},
|
||||||
function (data, status) {
|
function (data, status) {
|
||||||
if (data == "ok") {
|
if (data == "ok") {
|
||||||
@ -533,29 +542,35 @@ $(document).ready( function() {
|
|||||||
// Refresh interface elements, don't reload (awfull)
|
// Refresh interface elements, don't reload (awfull)
|
||||||
// Validate
|
// Validate
|
||||||
if (select_validate == 1) {
|
if (select_validate == 1) {
|
||||||
$("#status_img_"+id).attr ("src", "images/spinner.gif");
|
$("#status_img_"+id)
|
||||||
|
.attr ("src", "images/spinner.gif");
|
||||||
// Change status description
|
// Change status description
|
||||||
$("#status_row_"+id).html(<?php echo "'" . __('Event validated') . "'"; ?>);
|
$("#status_row_"+id)
|
||||||
|
.html(<?php echo "'" . __('Event validated') . "'"; ?>);
|
||||||
|
|
||||||
// Get event comment
|
// Get event comment
|
||||||
jQuery.post ("<?php echo ui_get_full_url("ajax.php", false, false, false); ?>",
|
jQuery.post ("<?php echo ui_get_full_url("ajax.php", false, false, false); ?>",
|
||||||
{"page" : "operation/events/events",
|
{
|
||||||
"get_comment" : 1,
|
"page" : "operation/events/events",
|
||||||
"id" : id
|
"get_comment" : 1,
|
||||||
|
"id" : id
|
||||||
},
|
},
|
||||||
function (data, status) {
|
function (data, status) {
|
||||||
$("#comment_row_"+id).html(data);
|
$("#comment_row_"+id).html(data);
|
||||||
});
|
}
|
||||||
|
);
|
||||||
|
|
||||||
// Get event comment in header
|
// Get event comment in header
|
||||||
jQuery.post ("<?php echo ui_get_full_url("ajax.php", false, false, false); ?>",
|
jQuery.post ("<?php echo ui_get_full_url("ajax.php", false, false, false); ?>",
|
||||||
{"page" : "operation/events/events",
|
{
|
||||||
"get_comment_header" : 1,
|
"page" : "operation/events/events",
|
||||||
"id" : id
|
"get_comment_header" : 1,
|
||||||
|
"id" : id
|
||||||
},
|
},
|
||||||
function (data, status) {
|
function (data, status) {
|
||||||
$("#comment_header_"+id).html(data);
|
$("#comment_header_"+id).html(data);
|
||||||
});
|
}
|
||||||
|
);
|
||||||
|
|
||||||
// Change state image
|
// Change state image
|
||||||
$("#validate-"+id).css("display", "none");
|
$("#validate-"+id).css("display", "none");
|
||||||
@ -597,23 +612,27 @@ $(document).ready( function() {
|
|||||||
|
|
||||||
// Get event comment
|
// Get event comment
|
||||||
jQuery.post ("<?php echo ui_get_full_url("ajax.php", false, false, false); ?>",
|
jQuery.post ("<?php echo ui_get_full_url("ajax.php", false, false, false); ?>",
|
||||||
{"page" : "operation/events/events",
|
{
|
||||||
"get_comment" : 1,
|
"page" : "operation/events/events",
|
||||||
"id" : id
|
"get_comment" : 1,
|
||||||
|
"id" : id
|
||||||
},
|
},
|
||||||
function (data, status) {
|
function (data, status) {
|
||||||
$("#comment_row_"+id).html(data);
|
$("#comment_row_"+id).html(data);
|
||||||
});
|
}
|
||||||
|
);
|
||||||
|
|
||||||
// Get event comment in header
|
// Get event comment in header
|
||||||
jQuery.post ("<?php echo ui_get_full_url("ajax.php", false, false, false); ?>",
|
jQuery.post ("<?php echo ui_get_full_url("ajax.php", false, false, false); ?>",
|
||||||
{"page" : "operation/events/events",
|
{
|
||||||
"get_comment_header" : 1,
|
"page" : "operation/events/events",
|
||||||
"id" : id
|
"get_comment_header" : 1,
|
||||||
|
"id" : id
|
||||||
},
|
},
|
||||||
function (data, status) {
|
function (data, status) {
|
||||||
$("#comment_header_"+id).html(data);
|
$("#comment_header_"+id).html(data);
|
||||||
});
|
}
|
||||||
|
);
|
||||||
|
|
||||||
// Remove delete link (if event is not grouped and there is more than one event)
|
// Remove delete link (if event is not grouped and there is more than one event)
|
||||||
if ($("#group_rep").val() == 1) {
|
if ($("#group_rep").val() == 1) {
|
||||||
@ -733,124 +752,124 @@ $(document).ready( function() {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
function toggleCommentForm(id_event) {
|
function toggleCommentForm(id_event) {
|
||||||
display = $('.event_form_' + id_event).css('display');
|
display = $('.event_form_' + id_event).css('display');
|
||||||
|
|
||||||
$('#select_validate_' + id_event).change (function() {
|
$('#select_validate_' + id_event).change (function() {
|
||||||
$option = $('#select_validate_' + id_event).val();
|
$option = $('#select_validate_' + id_event).val();
|
||||||
});
|
});
|
||||||
|
|
||||||
if (display != 'none') {
|
if (display != 'none') {
|
||||||
$('.event_form_' + id_event).css('display', 'none');
|
$('.event_form_' + id_event).css('display', 'none');
|
||||||
// Hide All showed rows
|
// Hide All showed rows
|
||||||
$('.event_form').css('display', 'none');
|
$('.event_form').css('display', 'none');
|
||||||
$(".select_validate").find('option:first').attr('selected', 'selected').parent('select');
|
$(".select_validate").find('option:first').attr('selected', 'selected').parent('select');
|
||||||
}
|
|
||||||
else {
|
|
||||||
$('.event_form_' + id_event).css('display', '');
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
$('.event_form_' + id_event).css('display', '');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function validate_event_advanced(id, new_status) {
|
function validate_event_advanced(id, new_status) {
|
||||||
$tr = $('#validate-'+id).parents ("tr");
|
$tr = $('#validate-'+id).parents ("tr");
|
||||||
|
|
||||||
var grouped = $('#group_rep').val();
|
var grouped = $('#group_rep').val();
|
||||||
|
|
||||||
var similar_ids;
|
var similar_ids;
|
||||||
similar_ids = $('#hidden-similar_ids_'+id).val();
|
similar_ids = $('#hidden-similar_ids_'+id).val();
|
||||||
meta = $('#hidden-meta').val();
|
meta = $('#hidden-meta').val();
|
||||||
var history = $('#hidden-history').val();
|
var history = $('#hidden-history').val();
|
||||||
|
|
||||||
$("#status_img_"+id).attr ("src", "images/spinner.gif");
|
$("#status_img_"+id).attr ("src", "images/spinner.gif");
|
||||||
|
|
||||||
jQuery.post ("<?php echo ui_get_full_url("ajax.php", false, false, false); ?>",
|
jQuery.post ("<?php echo ui_get_full_url("ajax.php", false, false, false); ?>",
|
||||||
{"page" : "include/ajax/events",
|
{"page" : "include/ajax/events",
|
||||||
"change_status" : 1,
|
"change_status" : 1,
|
||||||
"event_ids" : similar_ids,
|
"event_ids" : similar_ids,
|
||||||
"new_status" : new_status,
|
"new_status" : new_status,
|
||||||
"meta" : meta,
|
"meta" : meta,
|
||||||
"history" : history
|
"history" : history
|
||||||
},
|
},
|
||||||
function (data, status) {
|
function (data, status) {
|
||||||
if (data == "status_ok") {
|
if (data == "status_ok") {
|
||||||
// Refresh interface elements, don't reload (awful)
|
// Refresh interface elements, don't reload (awful)
|
||||||
// Validate
|
// Validate
|
||||||
if (new_status == 1) {
|
if (new_status == 1) {
|
||||||
// Change status description
|
// Change status description
|
||||||
$("#status_row_"+id).html(<?php echo "'" . __('Event validated') . "'"; ?>);
|
$("#status_row_"+id).html(<?php echo "'" . __('Event validated') . "'"; ?>);
|
||||||
|
|
||||||
// Change state image
|
// Change state image
|
||||||
$("#validate-"+id).css("display", "none");
|
$("#validate-"+id).css("display", "none");
|
||||||
$("#status_img_"+id).attr ("src", "images/tick.png");
|
$("#status_img_"+id).attr ("src", "images/tick.png");
|
||||||
$("#status_img_"+id).attr ("title", <?php echo "'" . __('Event validated') . "'"; ?>);
|
$("#status_img_"+id).attr ("title", <?php echo "'" . __('Event validated') . "'"; ?>);
|
||||||
$("#status_img_"+id).attr ("alt", <?php echo "'" . __('Event validated') . "'"; ?>);
|
$("#status_img_"+id).attr ("alt", <?php echo "'" . __('Event validated') . "'"; ?>);
|
||||||
} // In process
|
} // In process
|
||||||
else if (new_status == 2) {
|
else if (new_status == 2) {
|
||||||
// Change status description
|
// Change status description
|
||||||
$("#status_row_"+id).html(<?php echo "'" . __('Event in process') . "'"; ?>);
|
$("#status_row_"+id).html(<?php echo "'" . __('Event in process') . "'"; ?>);
|
||||||
|
|
||||||
// Remove delete link (if event is not grouped and there is more than one event)
|
// Remove delete link (if event is not grouped and there is more than one event)
|
||||||
if (grouped == 1) {
|
if (grouped == 1) {
|
||||||
if (parseInt($("#count_event_group_"+id).text()) <= 1) {
|
if (parseInt($("#count_event_group_"+id).text()) <= 1) {
|
||||||
$("#delete-"+id).replaceWith('<img alt="' + <?php echo "'" . __('Is not allowed delete events in process') . "'"; ?> + '" title="' + <?php echo "'" . __('Is not allowed delete events in process') . "'"; ?> + '" src="images/cross.disabled.png">');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else { // Remove delete link (if event is not grouped)
|
|
||||||
$("#delete-"+id).replaceWith('<img alt="' + <?php echo "'" . __('Is not allowed delete events in process') . "'"; ?> + '" title="' + <?php echo "'" . __('Is not allowed delete events in process') . "'"; ?> + '" src="images/cross.disabled.png">');
|
$("#delete-"+id).replaceWith('<img alt="' + <?php echo "'" . __('Is not allowed delete events in process') . "'"; ?> + '" title="' + <?php echo "'" . __('Is not allowed delete events in process') . "'"; ?> + '" src="images/cross.disabled.png">');
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
else { // Remove delete link (if event is not grouped)
|
||||||
|
$("#delete-"+id).replaceWith('<img alt="' + <?php echo "'" . __('Is not allowed delete events in process') . "'"; ?> + '" title="' + <?php echo "'" . __('Is not allowed delete events in process') . "'"; ?> + '" src="images/cross.disabled.png">');
|
||||||
|
}
|
||||||
|
|
||||||
// Change state image
|
// Change state image
|
||||||
$("#status_img_"+id).attr ("src", "images/hourglass.png");
|
$("#status_img_"+id).attr ("src", "images/hourglass.png");
|
||||||
$("#status_img_"+id).attr ("title", <?php echo "'" . __('Event in process') . "'"; ?>);
|
$("#status_img_"+id).attr ("title", <?php echo "'" . __('Event in process') . "'"; ?>);
|
||||||
$("#status_img_"+id).attr ("alt", <?php echo "'" . __('Event in process') . "'"; ?>);
|
$("#status_img_"+id).attr ("alt", <?php echo "'" . __('Event in process') . "'"; ?>);
|
||||||
|
|
||||||
// Remove row due to new state
|
// Remove row due to new state
|
||||||
if (($("#status").val() == 0)
|
if (($("#status").val() == 0)
|
||||||
|| ($("#status").val() == 1)) {
|
|| ($("#status").val() == 1)) {
|
||||||
|
|
||||||
$.each($tr, function(index, value) {
|
$.each($tr, function(index, value) {
|
||||||
row = value;
|
row = value;
|
||||||
|
|
||||||
if ($(row).attr('id') != '') {
|
if ($(row).attr('id') != '') {
|
||||||
|
|
||||||
row_id_name = $(row).attr('id').split('-').shift();
|
row_id_name = $(row).attr('id').split('-').shift();
|
||||||
row_id_number = $(row).attr('id').split('-').pop() - 1;
|
row_id_number = $(row).attr('id').split('-').pop() - 1;
|
||||||
row_id_number_next = parseInt($(row).attr('id').split('-').pop()) + 1;
|
row_id_number_next = parseInt($(row).attr('id').split('-').pop()) + 1;
|
||||||
previous_row_id = $(row).attr('id');
|
previous_row_id = $(row).attr('id');
|
||||||
current_row_id = row_id_name + "-" + row_id_number;
|
current_row_id = row_id_name + "-" + row_id_number;
|
||||||
selected_row_id = row_id_name + "-" + row_id_number + "-0";
|
selected_row_id = row_id_name + "-" + row_id_number + "-0";
|
||||||
next_row_id = row_id_name + '-' + row_id_number_next;
|
next_row_id = row_id_name + '-' + row_id_number_next;
|
||||||
|
|
||||||
$("#"+previous_row_id).css('display', 'none');
|
$("#"+previous_row_id).css('display', 'none');
|
||||||
$("#"+current_row_id).css('display', 'none');
|
$("#"+current_row_id).css('display', 'none');
|
||||||
$("#"+selected_row_id).css('display', 'none');
|
$("#"+selected_row_id).css('display', 'none');
|
||||||
$("#"+next_row_id).css('display', 'none');
|
$("#"+next_row_id).css('display', 'none');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
}
|
||||||
$("#result")
|
else {
|
||||||
.showMessage ("<?php echo __('Could not be validated')?>")
|
$("#result")
|
||||||
.addClass ("error");
|
.showMessage ("<?php echo __('Could not be validated')?>")
|
||||||
}
|
.addClass ("error");
|
||||||
},
|
}
|
||||||
"html"
|
},
|
||||||
);
|
"html"
|
||||||
}
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// Autoload event giving the id as POST/GET parameter
|
// Autoload event giving the id as POST/GET parameter
|
||||||
<?php
|
<?php
|
||||||
$load_event = get_parameter('load_event',0);
|
$load_event = get_parameter('load_event',0);
|
||||||
|
|
||||||
if ($load_event) {
|
if ($load_event) {
|
||||||
?>
|
?>
|
||||||
show_event_dialog(<?php echo $load_event; ?>, 1);
|
show_event_dialog(<?php echo $load_event; ?>, 1);
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
/* ]]> */
|
/* ]]> */
|
||||||
</script>
|
</script>
|
||||||
|
@ -413,12 +413,22 @@ $table->data = array();
|
|||||||
$data = array();
|
$data = array();
|
||||||
$data[0] = __('Group') . '<br>';
|
$data[0] = __('Group') . '<br>';
|
||||||
$data[0] .= html_print_select_groups($config["id_user"], "ER", true,
|
$data[0] .= html_print_select_groups($config["id_user"], "ER", true,
|
||||||
'id_group', $id_group, '', '', 0, true, false, false, 'w130');
|
'id_group', $id_group, '', '', 0, true, false, false, 'w130') . '<br>';
|
||||||
|
//**********************************************************************
|
||||||
|
// TODO
|
||||||
|
// This code is disabled for to enabled in Pandora 5.1
|
||||||
|
// but it needs a field in tevent_filter.
|
||||||
|
//
|
||||||
|
//$data[0] .= __('Group recursion') . ' ';
|
||||||
|
//$data[0] .= html_print_checkbox ("recursion", 1, $recursion, true, false);
|
||||||
|
//**********************************************************************
|
||||||
|
|
||||||
$data[1] = __('Event type') . '<br>';
|
$data[1] = __('Event type') . '<br>';
|
||||||
$types = get_event_types ();
|
$types = get_event_types ();
|
||||||
// Expand standard array to add not_normal (not exist in the array, used only for searches)
|
// Expand standard array to add not_normal (not exist in the array, used only for searches)
|
||||||
$types["not_normal"] = __("Not normal");
|
$types["not_normal"] = __("Not normal");
|
||||||
$data[1] .= html_print_select ($types, 'event_type', $event_type, '', __('All'), '', true);
|
$data[1] .= html_print_select ($types, 'event_type', $event_type, '', __('All'), '', true);
|
||||||
|
|
||||||
$data[2] = __('Severity') . '<br>';
|
$data[2] = __('Severity') . '<br>';
|
||||||
$data[2] .= html_print_select (get_priorities (), "severity", $severity, '', __('All'), '-1', true, false, false);
|
$data[2] .= html_print_select (get_priorities (), "severity", $severity, '', __('All'), '-1', true, false, false);
|
||||||
$table->data[] = $data;
|
$table->data[] = $data;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user