diff --git a/pandora_console/include/class/AgentsAlerts.class.php b/pandora_console/include/class/AgentsAlerts.class.php index cd2833bc3a..b1b28342f5 100644 --- a/pandora_console/include/class/AgentsAlerts.class.php +++ b/pandora_console/include/class/AgentsAlerts.class.php @@ -525,14 +525,14 @@ class AgentsAlerts extends HTML } // Prepare pagination. - ui_pagination( + $tablePagination = ui_pagination( $nagents, false, 0, $filter['limit'], - false, - 'offset', true, + 'offset', + false, '', '', [ @@ -702,21 +702,9 @@ class AgentsAlerts extends HTML echo ''; - ui_pagination( - $nagents, - false, - 0, - 0, - false, - 'offset', - true, - 'pagination-bottom', + html_print_action_buttons( '', - [ - 'count' => '', - 'offset' => 'offset_param', - ], - 'alerts_agents' + ['right_content' => $tablePagination] ); } diff --git a/pandora_console/include/styles/pandora.css b/pandora_console/include/styles/pandora.css index 40ab68cace..5ab555ef88 100644 --- a/pandora_console/include/styles/pandora.css +++ b/pandora_console/include/styles/pandora.css @@ -10742,6 +10742,7 @@ tr.bring_next_field { .dataTables_wrapper { overflow: auto; width: 100%; + margin-bottom: 25px; } .dataTables_wrapper .dataTables_processing { diff --git a/pandora_console/operation/agentes/group_view.php b/pandora_console/operation/agentes/group_view.php index a7ab834665..33b87830f8 100644 --- a/pandora_console/operation/agentes/group_view.php +++ b/pandora_console/operation/agentes/group_view.php @@ -207,9 +207,22 @@ if ($count == 1) { } } -ui_pagination($count); - if (empty($result_groups) === false) { + $pagination = ui_pagination( + $count, + false, + $offset, + 0, + true, + 'offset', + false + ); + + html_print_action_buttons( + '', + [ 'right_content' => $pagination ] + ); + echo ''; echo ''; echo ''; diff --git a/pandora_console/operation/agentes/interface_view.php b/pandora_console/operation/agentes/interface_view.php index 96df6cc272..1da3934bc4 100644 --- a/pandora_console/operation/agentes/interface_view.php +++ b/pandora_console/operation/agentes/interface_view.php @@ -102,14 +102,19 @@ if ($autosearch === true) { if ($result === false || empty($result) === true) { $result = []; } else { - ui_pagination( + $pagination = ui_pagination( count($selected_interfaces), false, $offset, 0, - false, + true, 'offset', - true + false + ); + + html_print_action_buttons( + '', + [ 'right_content' => $pagination ] ); } }