From c33a2cfaf6f03200c5ac017a2f0cef76c8098c50 Mon Sep 17 00:00:00 2001 From: Tatiana Llorente Date: Thu, 11 Apr 2019 10:26:26 +0200 Subject: [PATCH] Change arrow images to sort the table in custom reports - #3707 Former-commit-id: 62613d1c4e41fff93217ddb111c3b8c7ddc08ff4 --- .../godmode/reporting/reporting_builder.list_items.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/pandora_console/godmode/reporting/reporting_builder.list_items.php b/pandora_console/godmode/reporting/reporting_builder.list_items.php index 0c5910a677..9addb32f26 100755 --- a/pandora_console/godmode/reporting/reporting_builder.list_items.php +++ b/pandora_console/godmode/reporting/reporting_builder.list_items.php @@ -330,8 +330,12 @@ if ($items) { if (defined('METACONSOLE')) { $table->width = '100%'; $table->class = 'databox data'; + $arrow_up = 'images/sort_up.png'; + $arrow_down = 'images/sort_down.png'; } else { $table->class = 'info_table'; + $arrow_up = 'images/sort_up_black.png'; + $arrow_down = 'images/sort_down_black.png'; } $table->size = []; @@ -344,18 +348,18 @@ if ($items) { $table->head[0] = ''.__('P.').''; $table->head[1] = __('Type'); if (!$filterEnable) { - $table->head[1] .= ' '.html_print_image('images/sort_up.png', true, ['title' => __('Ascendent')]).''.''.html_print_image('images/sort_down.png', true, ['title' => __('Descent')]).''; + $table->head[1] .= ' '.html_print_image($arrow_up, true, ['title' => __('Ascendent')]).''.''.html_print_image($arrow_down, true, ['title' => __('Descent')]).''; } $table->head[2] = __('Agent'); if (!$filterEnable) { - $table->head[2] .= ' '.html_print_image('images/sort_up.png', true, ['title' => __('Ascendent')]).''.''.html_print_image('images/sort_down.png', true, ['title' => __('Descent')]).''; + $table->head[2] .= ' '.html_print_image($arrow_up, true, ['title' => __('Ascendent')]).''.''.html_print_image($arrow_down, true, ['title' => __('Descent')]).''; } $table->head[3] = __('Module'); if (!$filterEnable) { - $table->head[3] .= ' '.html_print_image('images/sort_up.png', true, ['title' => __('Ascendent')]).''.''.html_print_image('images/sort_down.png', true, ['title' => __('Descent')]).''; + $table->head[3] .= ' '.html_print_image($arrow_up, true, ['title' => __('Ascendent')]).''.''.html_print_image($arrow_down, true, ['title' => __('Descent')]).''; } $table->head[4] = __('Time lapse');