From 06ec036d9a1d3b76f98ffa012f915fd1603667b8 Mon Sep 17 00:00:00 2001 From: fredtempez Date: Tue, 13 Apr 2021 16:22:17 +0200 Subject: [PATCH] =?UTF-8?q?Form=20gestion=20des=20donn=C3=A9es=20nombre=20?= =?UTF-8?q?de=20lignes=20par=20page?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- module/form/form.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/module/form/form.php b/module/form/form.php index ca43f200..c6a360be 100755 --- a/module/form/form.php +++ b/module/form/form.php @@ -16,7 +16,7 @@ class form extends common { - const VERSION = '2.8'; + const VERSION = '2.9'; const REALNAME = 'Formulaire'; const DELETE = true; const UPDATE = '0.0'; @@ -47,6 +47,7 @@ class form extends common { const TYPE_DATETIME = 'date'; const TYPE_CHECKBOX = 'checkbox'; const TYPE_LABEL = 'label'; + const ITEMSPAGE = 10; public static $types = [ @@ -62,6 +63,7 @@ class form extends common { public static $listUsers = [ ]; + /** * Configuration */ @@ -139,7 +141,7 @@ class form extends common { $data = $this->getData(['module', $this->getUrl(0), 'data']); if($data) { // Pagination - $pagination = helper::pagination($data, $this->getUrl(),$this->getData(['config','itemsperPage'])); + $pagination = helper::pagination($data, $this->getUrl(),self::ITEMSPAGE); // Liste des pages self::$pagination = $pagination['pages']; // Inverse l'ordre du tableau