From f812d85397c7d52ddb6fb24bd0df2d7e42d6f68e Mon Sep 17 00:00:00 2001 From: Baptiste Date: Wed, 15 Jun 2022 21:19:49 +0200 Subject: [PATCH] font menu --- admin/admin.css | 2 +- admin/index.php | 12 ++++++++++++ admin/script.php | 18 +++++++++--------- 3 files changed, 22 insertions(+), 10 deletions(-) diff --git a/admin/admin.css b/admin/admin.css index 962b0cf..0da4ba3 100644 --- a/admin/admin.css +++ b/admin/admin.css @@ -27,7 +27,7 @@ nav ul li { border: 2px solid var(--color1); } -nav ul li a { +nav ul a { text-decoration: none; color: white; font-weight: bold; diff --git a/admin/index.php b/admin/index.php index 11a21ed..c9ab73f 100644 --- a/admin/index.php +++ b/admin/index.php @@ -39,6 +39,18 @@ if(isset($_POST['login'])) {
Accès : "; + switch ($user['perm']) { + case 0: + echo "GDA"; + break; + case 1: + echo "Bureau"; + break; + case 2: + echo "Admin"; + break; + } } else { ?>
diff --git a/admin/script.php b/admin/script.php index 9f071de..8e75895 100644 --- a/admin/script.php +++ b/admin/script.php @@ -20,24 +20,24 @@ if($user_exist != 1) { } } else { $content = - '
  • Index
  • ' - .'
  • Stats
  • '; + '
  • Index
  • ' + .'
  • Stats
  • '; switch ($user['perm']) { case 1: - $content = $content.'
  • Planning
  • '; + $content = $content.'
  • Planning
  • '; break; case 2: $content = $content - .'
  • Planning
  • ' - .'
  • Gestion des accès
  • ' - .'
  • Enigma
  • ' - .'
  • Stats
  • ' - .'
  • Vacances
  • '; + .'
  • Planning
  • ' + .'
  • Gestion des accès
  • ' + .'
  • Enigma
  • ' + .'
  • Stats
  • ' + .'
  • Vacances
  • '; break; } - $content = $content.'
  • Se déconnecter
  • '; + $content = $content.'
  • Se déconnecter
  • '; } ?>