From 473590d3435444b8929b2894d1053ee47e1b9dc9 Mon Sep 17 00:00:00 2001 From: jsatoh Date: Fri, 2 Sep 2011 02:58:10 +0000 Subject: [PATCH] 2011-09-02 Junichi Satoh * godmode/massive/massive_add_action_alerts.php, godmode/massive/massive_delete_action_alerts.php: Added group recursion feature, it allows to search agents in child groups. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4888 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 6 ++++++ .../godmode/massive/massive_add_action_alerts.php | 14 +++++++++++++- .../massive/massive_delete_action_alerts.php | 14 +++++++++++++- 3 files changed, 32 insertions(+), 2 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index b93c7cae80..a34dbb4958 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,9 @@ +2011-09-02 Junichi Satoh + + * godmode/massive/massive_add_action_alerts.php, + godmode/massive/massive_delete_action_alerts.php: Added group recursion + feature, it allows to search agents in child groups. + 2011-09-01 Javier Lanz * include/functions_filemanager.php: Improved detecting mime types diff --git a/pandora_console/godmode/massive/massive_add_action_alerts.php b/pandora_console/godmode/massive/massive_add_action_alerts.php index 9172600a01..aa9e094093 100644 --- a/pandora_console/godmode/massive/massive_add_action_alerts.php +++ b/pandora_console/godmode/massive/massive_add_action_alerts.php @@ -62,6 +62,7 @@ $id_group = (int) get_parameter ('id_group'); $id_agents = get_parameter ('id_agents'); $id_alert_templates = (array) get_parameter ('id_alert_templates'); $id_alert_compounds = (array) get_parameter ('id_alert_compounds'); +$recursion = get_parameter ('recursion'); $add = (bool) get_parameter_post ('add'); @@ -141,12 +142,16 @@ $table->style[0] = 'font-weight: bold; vertical-align:top'; $table->style[2] = 'font-weight: bold'; $table->size = array (); $table->size[0] = '15%'; -$table->size[1] = '85%'; +$table->size[1] = '35%'; +$table->size[2] = '15%'; +$table->size[3] = '35%'; $table->data = array (); $table->data[0][0] = __('Group'); $table->data[0][1] = html_print_select_groups(false, "AR", true, 'id_group', $id_group, false, '', '', true); +$table->data[0][2] = __('Group recursion'); +$table->data[0][3] = html_print_checkbox ("recursion", 1, $recursion, true, false); $table->data[1][0] = __('Agents'); $table->data[1][0] .= '