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

View File

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

View File

@ -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 '<table cellpadding="0" cellspacing="0" class="databox data mrgn_top_10px" border="0" width="100%">';
echo '<tr>';
echo '<th colspan=2 ></th>';

View File

@ -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 ]
);
}
}