diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index f1f8d99065..5078323737 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,41 @@ +2010-07-15 Miguel de Dios + + * include/functions_html.php: added the function "print_select_groups" to + print the field select box for groups with tree style. + + * include/functions_db.php: in function "get_user_groups" added test to + false value in parameter $privilege for get all groups without ACL test. + Fixed in function "get_user_groups_tree" the call to "get_user_groups" with + the correct parameters. + + * operation/incidents/incident.php, operation/incidents/incident_detail.php, + operation/events/events.php, operation/agentes/status_monitor.php, + operation/agentes/estado_agente.php, + operation/agentes/alerts_status.functions.php, + operation/agentes/exportdata.php, operation/agentes/networkmap.php, + operation/messages/message.php, general/ui/agents_list.php, + godmode/groups/configure_group.php, godmode/groups/group_list.php, + godmode/agentes/massive_add_alerts.php, + godmode/agentes/massive_delete_agents.php, + godmode/agentes/massive_config.php, + godmode/agentes/massive_delete_action_alerts.php, + godmode/agentes/massive_delete_alerts.php, + godmode/agentes/modificar_agente.php, + godmode/agentes/massive_delete_modules.php, + godmode/agentes/massive_add_action_alerts.php, + godmode/agentes/planned_downtime.php, + godmode/agentes/manage_config_remote.php, godmode/agentes/agent_manager.php, + godmode/servers/manage_recontask_form.php, + godmode/alerts/configure_alert_compound.php, + godmode/alerts/alert_compounds.php, + godmode/alerts/configure_alert_template.php, + godmode/alerts/configure_alert_action.php, godmode/setup/gis_step_2.php, + godmode/users/configure_user.php, godmode/gis_maps/configure_gis_map.php, + godmode/reporting/graph_builder.main.php, + godmode/reporting/reporting_builder.main.php, + godmode/reporting/visual_console_builder.data.php: changed the fields select + box of group to tree style select box for groups. + 2010-07-15 Miguel de Dios * include/functions.php: added function "array_key_to_offset" to resolve diff --git a/pandora_console/general/ui/agents_list.php b/pandora_console/general/ui/agents_list.php index 58bea38625..fd52478922 100644 --- a/pandora_console/general/ui/agents_list.php +++ b/pandora_console/general/ui/agents_list.php @@ -66,7 +66,7 @@ if ($show_filter_form) { $data = array (); $data = array (); $data[] = __('Group'); - $data[] = print_select (get_user_groups (false, $access), + $data[] = print_select_groups(false, $access, true, 'id_group', '', '', '', '', true); if (! $odd) array_push ($table->data, $data); diff --git a/pandora_console/godmode/agentes/agent_manager.php b/pandora_console/godmode/agentes/agent_manager.php index a69c8abdc1..ff562e3b9b 100644 --- a/pandora_console/godmode/agentes/agent_manager.php +++ b/pandora_console/godmode/agentes/agent_manager.php @@ -137,8 +137,7 @@ $table->data[2][1] = print_input_text_extended ('id_parent', get_agent_name ($id $table->data[2][1] .= print_checkbox ("cascade_protection", 1, $cascade_protection, true).__('Cascade protection'). " " . print_help_icon("cascade_protection", true); $table->data[3][0] = __('Group'); -$groups = get_user_groups (false, "AR", false); -$table->data[3][1] = print_select ($groups, 'grupo', $grupo, '', '', 0, true); +$table->data[3][1] = print_select_groups(false, "AR", false, 'grupo', $grupo, '', '', 0, true); $table->data[4][0] = __('Interval'); diff --git a/pandora_console/godmode/agentes/manage_config_remote.php b/pandora_console/godmode/agentes/manage_config_remote.php index 345baa0fc7..5c9d62bcd1 100644 --- a/pandora_console/godmode/agentes/manage_config_remote.php +++ b/pandora_console/godmode/agentes/manage_config_remote.php @@ -104,7 +104,7 @@ if ((isset($_GET["operacion"])) AND ($update_group == -1) ) { $group_select = get_user_groups ($config['id_user']); $grouplist = implode (',', array_keys ($group_select)); - echo print_select ($group_select, 'id_group', $id_group, '', '', '', true); + echo print_select_groups($config['id_user'], "AR", true, 'id_group', $id_group, '', '', '', true); echo '  '; echo ''; echo '

'; diff --git a/pandora_console/godmode/agentes/massive_add_action_alerts.php b/pandora_console/godmode/agentes/massive_add_action_alerts.php index 1755fdec5b..389d351ecf 100644 --- a/pandora_console/godmode/agentes/massive_add_action_alerts.php +++ b/pandora_console/godmode/agentes/massive_add_action_alerts.php @@ -92,7 +92,7 @@ $table->size[1] = '85%'; $table->data = array (); $table->data[0][0] = __('Group'); -$table->data[0][1] = print_select ($groups, 'id_group', $id_group, +$table->data[0][1] = print_select_groups(false, "AR", true, 'id_group', $id_group, false, '', '', true); $table->data[1][0] = __('Agents'); diff --git a/pandora_console/godmode/agentes/massive_add_alerts.php b/pandora_console/godmode/agentes/massive_add_alerts.php index c13fa3aa07..60895e4122 100644 --- a/pandora_console/godmode/agentes/massive_add_alerts.php +++ b/pandora_console/godmode/agentes/massive_add_alerts.php @@ -101,7 +101,7 @@ $table->size[1] = '85%'; $table->data = array (); $table->data[0][0] = __('Group'); -$table->data[0][1] = print_select ($groups, 'id_group', $id_group, +$table->data[0][1] = print_select_groups(false, "AR", true, 'id_group', $id_group, '', 'Select', -1, true, false, true, '', false); $table->data[1][0] = __('Agent'); diff --git a/pandora_console/godmode/agentes/massive_config.php b/pandora_console/godmode/agentes/massive_config.php index 93edd4ae16..c18755d4ba 100644 --- a/pandora_console/godmode/agentes/massive_config.php +++ b/pandora_console/godmode/agentes/massive_config.php @@ -58,7 +58,7 @@ $table->size[3] = '35%'; /* Source selection */ $table->id = 'source_table'; $table->data[0][0] = __('Group'); -$table->data[0][1] = print_select ($groups, 'source_id_group', $source_id_group, +$table->data[0][1] = print_select_groups(false, "AR", true, 'source_id_group', $source_id_group, false, '', '', true); $table->data[0][2] = __('Agent'); $table->data[0][2] .= '