add datatables everywhere

This commit is contained in:
osaajani 2020-04-07 03:02:33 +02:00
parent a426c699f9
commit 6f1c726284
33 changed files with 373 additions and 144 deletions

View file

@ -31,13 +31,10 @@ namespace controllers\publics;
/**
* Cette fonction retourne tous les users, sous forme d'un tableau permettant l'administration de ces users.
*
* @param mixed $page
*/
public function list($page = 0)
public function list()
{
$page = (int) $page;
$commands = $this->internal_command->list_for_user($_SESSION['user']['id'], 25, $page);
$commands = $this->internal_command->list_for_user($_SESSION['user']['id']);
$this->render('command/list', ['commands' => $commands]);
}