2013-08-30 Miguel de Dios <miguel.dedios@artica.es>
* godmode/groups/group_list.php: fixed pagination mismatch. Fixes: #2383 git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8716 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
1ebaeac2e5
commit
602ceb1941
|
@ -1,3 +1,9 @@
|
|||
2013-08-30 Miguel de Dios <miguel.dedios@artica.es>
|
||||
|
||||
* godmode/groups/group_list.php: fixed pagination mismatch.
|
||||
|
||||
Fixes: #2383
|
||||
|
||||
2013-08-29 Miguel de Dios <miguel.dedios@artica.es>
|
||||
|
||||
* include/functions_snmp_browser.php: fixed PHP warnings.
|
||||
|
|
|
@ -311,13 +311,14 @@ if (!empty($groups)) {
|
|||
if ($stop == 0) {
|
||||
$stop = $start + $config['block_size'] + 1;
|
||||
}
|
||||
|
||||
|
||||
// 1 for to add all group
|
||||
ui_pagination($count_visible_groups + 1, false, 0, $config['block_size']);
|
||||
$pagination_element = ui_pagination($count_visible_groups + 1,
|
||||
false, 0, $config['block_size'], true);
|
||||
|
||||
$groups = array_slice($groups, $start, ($stop - $start));
|
||||
$groups = array_merge(array($all_group), $groups);
|
||||
|
||||
|
||||
foreach ($groups as $id_group => $group) {
|
||||
if ($group['deep'] == 0) {
|
||||
$table->rowstyle[$iterator] = '';
|
||||
|
@ -421,9 +422,11 @@ if (!empty($groups)) {
|
|||
$iterator++;
|
||||
}
|
||||
|
||||
echo $pagination_element;
|
||||
|
||||
html_print_table ($table);
|
||||
|
||||
ui_pagination($count_visible_groups + 1, false, 0, $config['block_size'] - 1);
|
||||
echo $pagination_element;
|
||||
}
|
||||
else {
|
||||
echo "<div class='nf'>".__('There are no defined groups')."</div>";
|
||||
|
|
Loading…
Reference in New Issue