diff --git a/assets/style.css b/assets/style.css index ba05efd..9900012 100644 --- a/assets/style.css +++ b/assets/style.css @@ -6,3 +6,20 @@ height: var(--navbar-height); display: block; } + +ul .deroule { + display: none; + position: absolute; + background: #f8f9fa !important; + list-style-type: none; + padding: 20px; + z-index: 42; +} + +li:hover ul.deroule { + display:block; +} + +a.nav-link:hover { + background-color: #d8d9da; +} diff --git a/dispatcher.php b/dispatcher.php index 964c2fa..0e12d25 100644 --- a/dispatcher.php +++ b/dispatcher.php @@ -51,6 +51,7 @@ $ROUTES["^mon-equipe/?$"] = ["server_files/controllers/mon_equipe.php"]; $ROUTES["^mon-tournoi/?$"] = ["server_files/controllers/mon_tournoi.php"]; $ROUTES["^poser-questions-2$"] = ["server_files/controllers/poser_questions.php"]; $ROUTES["^probleme/([1-4])/?$"] = ["server_files/controllers/probleme.php", "probleme"]; +$ROUTES["^profils-orphelins/?$"] = ["server_files/controllers/profils_orphelins.php"]; $ROUTES["^rejoindre-equipe/?$"] = ["server_files/controllers/rejoindre_equipe.php"]; $ROUTES["^repondre-questions-3$"] = ["server_files/controllers/repondre_questions.php"]; $ROUTES["^videos-solutions/?$"] = ["server_files/controllers/videos_solutions.php"]; diff --git a/server_files/classes/User.php b/server_files/classes/User.php index 2b50630..1cc6986 100644 --- a/server_files/classes/User.php +++ b/server_files/classes/User.php @@ -64,6 +64,21 @@ class User return $admins; } + + public static function getOrphanUsers() + { + global $DB, $YEAR; + $orphans = []; + $req = $DB->query("SELECT * FROM `users` WHERE `role` != 'ADMIN' AND `team_id` IS NULL AND `year` = $YEAR ORDER BY `role`, `inscription_date`;"); + + while (($data = $req->fetch()) !== false) { + $orphan = new User(); + $orphan->fill($data); + $orphans[] = $orphan; + } + + return $orphans; + } private function fill($data) { diff --git a/server_files/controllers/profils_orphelins.php b/server_files/controllers/profils_orphelins.php new file mode 100644 index 0000000..6578cc2 --- /dev/null +++ b/server_files/controllers/profils_orphelins.php @@ -0,0 +1,8 @@ + - - @@ -79,17 +71,18 @@ -
  • - Liste des problèmes +
  • -