From f14d3244904f4b85832d1e26dfc6398d7b12a696 Mon Sep 17 00:00:00 2001 From: Jose Gonzalez Date: Wed, 8 Feb 2023 12:43:08 +0100 Subject: [PATCH] Minor fixes and improves --- .../godmode/agentes/modificar_agente.php | 25 ++++- pandora_console/include/functions_html.php | 2 +- pandora_console/include/functions_ui.php | 91 +++++++++++++------ pandora_console/include/styles/pandora.css | 8 +- pandora_console/include/styles/tables.css | 4 +- .../operation/agentes/estado_agente.php | 23 ++--- .../agentes/estado_generalagente.php | 28 +----- 7 files changed, 109 insertions(+), 72 deletions(-) diff --git a/pandora_console/godmode/agentes/modificar_agente.php b/pandora_console/godmode/agentes/modificar_agente.php index 2d0004f70d..26b131d9ad 100644 --- a/pandora_console/godmode/agentes/modificar_agente.php +++ b/pandora_console/godmode/agentes/modificar_agente.php @@ -956,6 +956,25 @@ if ($agents !== false) { html_print_table($tableAgents); + $tablePagination = ui_pagination( + $total_agents, + ui_get_url_refresh( + [ + 'group_id' => $group_id, + 'search' => $search, + 'sort_field' => $sortField, + 'sort' => $sort, + 'status' => $status, + ] + ), + 0, + 0, + true, + 'offset', + false, + 'dataTables_paginate paging_simple_numbers' + ); + /* ui_pagination( $total_agents, @@ -964,6 +983,7 @@ if ($agents !== false) { ); */ } else { + $tablePagination = ''; ui_print_info_message(['no_close' => true, 'message' => __('There are no defined agents') ]); } @@ -980,8 +1000,9 @@ if ((bool) check_acl($config['id_user'], 0, 'AW') === true) { true ), [ - 'type' => 'data_table', - 'class' => 'fixed_action_buttons', + 'type' => 'data_table', + 'class' => 'fixed_action_buttons', + 'right_content' => $tablePagination, ] ); echo ''; diff --git a/pandora_console/include/functions_html.php b/pandora_console/include/functions_html.php index c857caeb34..9b74e6e424 100644 --- a/pandora_console/include/functions_html.php +++ b/pandora_console/include/functions_html.php @@ -3504,7 +3504,7 @@ function html_print_button($label='OK', $name='', $disabled=false, $script='', $ } if ($imageButton === false) { - $content = $label; + $content = ''.$label.''; $content .= $iconDiv; } else { $content = $iconDiv; diff --git a/pandora_console/include/functions_ui.php b/pandora_console/include/functions_ui.php index a65d3e4514..9fef947846 100755 --- a/pandora_console/include/functions_ui.php +++ b/pandora_console/include/functions_ui.php @@ -2187,7 +2187,7 @@ function ui_pagination( // Visualize only $block_limit blocks. if ($count <= $pagination) { if ($print_total_items) { - $output = "