From 59834088bf7925f69d9c9cd28d6c9a6ce95c4864 Mon Sep 17 00:00:00 2001 From: "alejandro.campos@artica.es" Date: Tue, 1 Jun 2021 18:04:01 +0200 Subject: [PATCH] created agents inventory report item --- .../reporting_builder.item_editor.php | 35 +++++++++++++++++++ .../godmode/reporting/reporting_builder.php | 2 ++ .../include/functions_reporting.php | 14 +++++++- .../include/functions_reporting_html.php | 4 --- 4 files changed, 50 insertions(+), 5 deletions(-) diff --git a/pandora_console/godmode/reporting/reporting_builder.item_editor.php b/pandora_console/godmode/reporting/reporting_builder.item_editor.php index 099d398691..271b440fdf 100755 --- a/pandora_console/godmode/reporting/reporting_builder.item_editor.php +++ b/pandora_console/godmode/reporting/reporting_builder.item_editor.php @@ -744,6 +744,7 @@ switch ($action) { $es = json_decode($item['external_source'], true); $date = $es['date']; + $selected_agent_server_filter = $es['agent_server_filter']; $selected_agent_group_filter = $es['agent_group_filter']; $selected_agents_inventory_display_options = $es['agents_inventory_display_options']; $selected_agent_os_filter = $es['agent_os_filter']; @@ -3078,6 +3079,38 @@ $class = 'databox filters'; + $server) { + $server_fields[$key] = $server['server_name']; + } + + $server_filter_markup = ' + + '.__('Server').''.html_print_select( + $server_fields, + 'agent_server_filter', + $selected_agent_server_filter, + '', + false, + '', + true, + false, + false, + '', + false, + 'min-width: 180px' + ).''; + + if (is_metaconsole()) { + echo $server_filter_markup; + } + ?> + colspan['permissions']['cell'] = 3; $table->cellstyle['permissions']['cell'] = 'text-align: center;'; @@ -5925,8 +5923,6 @@ function reporting_html_permissions($table, $item, $pdf=0) } } - // hd("lllllp", true); - // hd($pdf, true); if ($pdf === 0) { $table->colspan['permissions']['cell'] = 3; $table->cellstyle['permissions']['cell'] = 'text-align: center;';