Solved issue with pagination

This commit is contained in:
Jose Gonzalez 2020-04-06 17:27:50 +02:00
parent 5db6ba6c5d
commit 3d01b918c9

View File

@ -84,20 +84,6 @@ class ModuleTemplates extends HTML
*/ */
private $pen; private $pen;
/**
* Group for adding modules
*
* @var string
*/
private $ncGroup;
/**
* Filter for adding modules
*
* @var string
*/
private $ncFilter;
/** /**
* List of valid PENs * List of valid PENs
* *
@ -156,10 +142,8 @@ class ModuleTemplates extends HTML
$this->setNetworkProfile(); $this->setNetworkProfile();
} }
$this->offset = get_parameter('offset', 0); $this->offset = (int) get_parameter('offset', 0);
$this->ajaxController = $ajax_controller; $this->ajaxController = $ajax_controller;
$this->ncGroup = get_parameter('add-modules-group', '0');
$this->ncFilter = get_parameter('add-modules-filter', '');
// Get all of PENs valid for autocomplete. // Get all of PENs valid for autocomplete.
$getPENs = db_get_all_rows_sql('SELECT pen,manufacturer FROM tpen'); $getPENs = db_get_all_rows_sql('SELECT pen,manufacturer FROM tpen');
$outputPENs = []; $outputPENs = [];
@ -811,7 +795,7 @@ class ModuleTemplates extends HTML
] ]
); );
ui_pagination($countModuleTemplates, false, $this->offset); ui_pagination($countModuleTemplates, $this->baseUrl, $this->offset);
// Create the table with Module Block list. // Create the table with Module Block list.
$table = new StdClasS(); $table = new StdClasS();
$table->class = 'databox data'; $table->class = 'databox data';