11.1.00 pagination manquante dans form liste des données

This commit is contained in:
Fred Tempez 2021-10-06 18:13:25 +02:00
parent d47f6e291c
commit c34eb7d84a
2 changed files with 2 additions and 1 deletions

View File

@ -157,7 +157,7 @@ class form extends common {
// Pagination
$pagination = helper::pagination($data, $this->getUrl(),self::ITEMSPAGE);
// Liste des pages
self::$pagination = $pagination['pages'];
self::$pages = $pagination['pages'];
// Inverse l'ordre du tableau
$dataIds = array_reverse(array_keys($data));
$data = array_reverse($data);

View File

@ -25,6 +25,7 @@
</div>
<?php if($module::$data): ?>
<?php echo template::table([11, 1], $module::$data, ['Données', '']); ?>
<?php echo $module::$pages; ?>
<?php else: ?>
<?php echo template::speech('Aucune donnée'); ?>
<?php endif; ?>