1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2025-06-25 07:40:32 +02:00

Validation des paiements faites par les admins

This commit is contained in:
Yohann D'ANELLO
2020-01-14 17:16:27 +01:00
parent b86675ba98
commit 606ad5886f
4 changed files with 52 additions and 3 deletions

View File

@ -101,6 +101,22 @@ class User
return $admins;
}
public static function getAdmins()
{
global $DB, $YEAR;
$users = [];
$req = $DB->query("SELECT * FROM `users` WHERE (`role` = 'ADMIN') "
. "AND `year` = $YEAR ORDER BY `role`, `inscription_date`;");
while (($data = $req->fetch()) !== false) {
$orphan = new User();
$orphan->fill($data);
$users[] = $orphan;
}
return $users;
}
public static function getAllUsers()
{
global $DB, $YEAR;