From 84154e9619538eb03094194de318d5969bbb8a87 Mon Sep 17 00:00:00 2001 From: zarzuelo Date: Mon, 7 Oct 2013 13:31:37 +0000 Subject: [PATCH] 2013-10-07 Sergio Martin * include/styles/pandora.css: Added a overflow hidden in left informative tab of pandoras interface to avoid ugly visual errors. * godmode/reporting/reporting_builder.list_items.php godmode/reporting/reporting_builder.item_editor.php: Change Avg strings by Rate strings in top N reports for incident #211 git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8865 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 10 ++++++++++ .../reporting/reporting_builder.item_editor.php | 14 ++++++-------- .../reporting/reporting_builder.list_items.php | 5 +++-- pandora_console/include/styles/pandora.css | 1 + 4 files changed, 20 insertions(+), 10 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 4a8e7747ef..3d6d08537d 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,13 @@ +2013-10-07 Sergio Martin + + * include/styles/pandora.css: Added a overflow hidden + in left informative tab of pandoras interface to avoid + ugly visual errors. + + * godmode/reporting/reporting_builder.list_items.php + godmode/reporting/reporting_builder.item_editor.php: Change Avg + strings by Rate strings in top N reports for incident #211 + 2013-10-07 Miguel de Dios * godmode/massive/massive_delete_alerts.php, diff --git a/pandora_console/godmode/reporting/reporting_builder.item_editor.php b/pandora_console/godmode/reporting/reporting_builder.item_editor.php index e97cdfbe62..7b904bd0b2 100644 --- a/pandora_console/godmode/reporting/reporting_builder.item_editor.php +++ b/pandora_console/godmode/reporting/reporting_builder.item_editor.php @@ -1197,6 +1197,11 @@ function print_General_list($width, $action, $idItem = null) { if (!isset($meta)) $meta = false; + $operation = array( + 'avg' => __('rate'), + 'max' => __('max'), + 'min' => __('min'), + 'sum' => __('sum')); include_once($config['homedir'] . '/include/functions_html.php'); ?> @@ -1248,7 +1253,7 @@ function print_General_list($width, $action, $idItem = null) { echo ' ' . printSmallFont($nameAgent) . $server_name_element . ' ' . printSmallFont($nameModule) . ' - ' . printSmallFont($item['operation']) . ' + ' . printSmallFont($operation[$item['operation']]) . ' ' . html_print_image("images/cross.png", true) . ' @@ -1292,13 +1297,6 @@ function print_General_list($width, $action, $idItem = null) { ?> - __('rate'), - 'max' => __('max'), - 'min' => __('min'), - 'sum' => __('sum')); - ?> diff --git a/pandora_console/godmode/reporting/reporting_builder.list_items.php b/pandora_console/godmode/reporting/reporting_builder.list_items.php index d2bcad85a6..8a267d3bea 100644 --- a/pandora_console/godmode/reporting/reporting_builder.list_items.php +++ b/pandora_console/godmode/reporting/reporting_builder.list_items.php @@ -237,7 +237,7 @@ if ($items) { $table->size[0] = '5px'; $table->size[1] = '15%'; $table->size[4] = '8%'; - $table->size[6] = '60px'; + $table->size[6] = '90px'; $table->size[7] = '30px'; $table->head[0] = '' . __('P.') . ''; @@ -383,8 +383,9 @@ foreach ($items as $item) { if (check_acl ($config['id_user'], $item['id_group'], "RM")) { $row[6] .= '' . html_print_image("images/wrench_orange.png", true, array("title" => __('Edit'))) . ''; - $row[6] .= '  '; + $row[6] .= ' '; $row[6] .= '' . html_print_image("images/cross.png", true, array("title" => __('Delete'))) .''; + $row[6] .= ' '; $row[6] .= html_print_checkbox_extended ('delete_multiple[]', $item['id_rc'], false, false, '', 'class="check_delete"', true); } $row[7] = ''; diff --git a/pandora_console/include/styles/pandora.css b/pandora_console/include/styles/pandora.css index de47d3d219..5c015685ef 100644 --- a/pandora_console/include/styles/pandora.css +++ b/pandora_console/include/styles/pandora.css @@ -1400,6 +1400,7 @@ div.title_line { -webkit-border-top-left-radius: 5px; border-top-left-radius: 5px; margin-left:0px; + overflow-y: hidden; } #menu_tab_left ul.mn li.nomn {