restyling

This commit is contained in:
daniel 2023-02-24 13:43:34 +01:00
parent 967ac6dad3
commit 65ed10be1a
4 changed files with 29 additions and 22 deletions

View File

@ -525,14 +525,14 @@ class AgentsAlerts extends HTML
} }
// Prepare pagination. // Prepare pagination.
ui_pagination( $tablePagination = ui_pagination(
$nagents, $nagents,
false, false,
0, 0,
$filter['limit'], $filter['limit'],
false,
'offset',
true, true,
'offset',
false,
'', '',
'', '',
[ [
@ -702,21 +702,9 @@ class AgentsAlerts extends HTML
echo '</table>'; echo '</table>';
ui_pagination( html_print_action_buttons(
$nagents,
false,
0,
0,
false,
'offset',
true,
'pagination-bottom',
'', '',
[ ['right_content' => $tablePagination]
'count' => '',
'offset' => 'offset_param',
],
'alerts_agents'
); );
} }

View File

@ -10742,6 +10742,7 @@ tr.bring_next_field {
.dataTables_wrapper { .dataTables_wrapper {
overflow: auto; overflow: auto;
width: 100%; width: 100%;
margin-bottom: 25px;
} }
.dataTables_wrapper .dataTables_processing { .dataTables_wrapper .dataTables_processing {

View File

@ -207,9 +207,22 @@ if ($count == 1) {
} }
} }
ui_pagination($count);
if (empty($result_groups) === false) { if (empty($result_groups) === false) {
$pagination = ui_pagination(
$count,
false,
$offset,
0,
true,
'offset',
false
);
html_print_action_buttons(
'',
[ 'right_content' => $pagination ]
);
echo '<table cellpadding="0" cellspacing="0" class="databox data mrgn_top_10px" border="0" width="100%">'; echo '<table cellpadding="0" cellspacing="0" class="databox data mrgn_top_10px" border="0" width="100%">';
echo '<tr>'; echo '<tr>';
echo '<th colspan=2 ></th>'; echo '<th colspan=2 ></th>';

View File

@ -102,14 +102,19 @@ if ($autosearch === true) {
if ($result === false || empty($result) === true) { if ($result === false || empty($result) === true) {
$result = []; $result = [];
} else { } else {
ui_pagination( $pagination = ui_pagination(
count($selected_interfaces), count($selected_interfaces),
false, false,
$offset, $offset,
0, 0,
false, true,
'offset', 'offset',
true false
);
html_print_action_buttons(
'',
[ 'right_content' => $pagination ]
); );
} }
} }