forked from ZwiiCMS-Team/ZwiiCMS
Form gestion des données nombre de lignes par page
This commit is contained in:
parent
a08367a992
commit
06ec036d9a
@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
class form extends common {
|
class form extends common {
|
||||||
|
|
||||||
const VERSION = '2.8';
|
const VERSION = '2.9';
|
||||||
const REALNAME = 'Formulaire';
|
const REALNAME = 'Formulaire';
|
||||||
const DELETE = true;
|
const DELETE = true;
|
||||||
const UPDATE = '0.0';
|
const UPDATE = '0.0';
|
||||||
@ -47,6 +47,7 @@ class form extends common {
|
|||||||
const TYPE_DATETIME = 'date';
|
const TYPE_DATETIME = 'date';
|
||||||
const TYPE_CHECKBOX = 'checkbox';
|
const TYPE_CHECKBOX = 'checkbox';
|
||||||
const TYPE_LABEL = 'label';
|
const TYPE_LABEL = 'label';
|
||||||
|
const ITEMSPAGE = 10;
|
||||||
|
|
||||||
|
|
||||||
public static $types = [
|
public static $types = [
|
||||||
@ -62,6 +63,7 @@ class form extends common {
|
|||||||
public static $listUsers = [
|
public static $listUsers = [
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Configuration
|
* Configuration
|
||||||
*/
|
*/
|
||||||
@ -139,7 +141,7 @@ class form extends common {
|
|||||||
$data = $this->getData(['module', $this->getUrl(0), 'data']);
|
$data = $this->getData(['module', $this->getUrl(0), 'data']);
|
||||||
if($data) {
|
if($data) {
|
||||||
// Pagination
|
// Pagination
|
||||||
$pagination = helper::pagination($data, $this->getUrl(),$this->getData(['config','itemsperPage']));
|
$pagination = helper::pagination($data, $this->getUrl(),self::ITEMSPAGE);
|
||||||
// Liste des pages
|
// Liste des pages
|
||||||
self::$pagination = $pagination['pages'];
|
self::$pagination = $pagination['pages'];
|
||||||
// Inverse l'ordre du tableau
|
// Inverse l'ordre du tableau
|
||||||
|
Loading…
Reference in New Issue
Block a user