From bf5396b84f447db1e9a020eec499e9eed28f123c Mon Sep 17 00:00:00 2001 From: Baptiste Date: Wed, 15 Jun 2022 17:35:34 +0200 Subject: [PATCH] font menu admin --- admin/admin.css | 54 +++++++++++++++++++++++++++++++++++++ admin/enigma.php | 14 +++++++++- admin/gestion_des_acces.php | 48 ++++++++++++++++----------------- admin/index.php | 2 ++ admin/planning.php | 14 +++++++++- admin/script.php | 47 ++++++++++++++++---------------- admin/stats.php | 14 +++++++++- admin/vacances.php | 14 +++++++++- 8 files changed, 156 insertions(+), 51 deletions(-) create mode 100644 admin/admin.css diff --git a/admin/admin.css b/admin/admin.css new file mode 100644 index 0000000..e968e57 --- /dev/null +++ b/admin/admin.css @@ -0,0 +1,54 @@ +* { + margin: 0; + padding: 0; + --color1 : rgba(30, 30, 30, 1); + --color2 : rgba(255, 255, 255, 0.07); + color: white; +} + +body { + background-color: var(--color1); +} + +main { + margin: 50px; +} + +nav { + display: block; + width: 100vw; +} + +nav ul li { + list-style: none; + display: inline-block; + padding: 15px; + background-color: var(--color2); + border: 2px solid var(--color1); +} + +nav ul li a { + text-decoration: none; + color: white; + font-weight: bold; + transition: 3s ease; +} + +nav ul li:hover { + transform: scale(1.05); + transition: 0.3s ease; +} + + +nav ul li.green { + border-bottom: 1px solid green; +} +nav ul li.orange { + border-bottom: 1px solid orange; +} +nav ul li.red { + border-bottom: 1px solid red; +} +nav ul li.white { + border-bottom: 1px solid white; +} \ No newline at end of file diff --git a/admin/enigma.php b/admin/enigma.php index 86afd23..07115b3 100644 --- a/admin/enigma.php +++ b/admin/enigma.php @@ -4,4 +4,16 @@ include "script.php"; if($user['perm'] < 2) { header('Location: deco.php'); } -?> \ No newline at end of file +?> + + + + + + Admin / Enigma + + +
+
+ + \ No newline at end of file diff --git a/admin/gestion_des_acces.php b/admin/gestion_des_acces.php index 159fbb6..7dff395 100644 --- a/admin/gestion_des_acces.php +++ b/admin/gestion_des_acces.php @@ -37,29 +37,29 @@ if(isset($_POST['send'])) { Admin / Accès -
- - - - -
- ".$error.""; - } - ?> -

- query('SELECT id, pseudo, perm FROM admin'); - while($admin = $req->fetch()) { - ?> - || || - - - +
+
+ + + + +
+ ".$error.""; + } + ?> +

+ query('SELECT id, pseudo, perm FROM admin'); + while($admin = $req->fetch()) { + ?> + || || + +
\ No newline at end of file diff --git a/admin/index.php b/admin/index.php index e6760ce..3dc48d3 100644 --- a/admin/index.php +++ b/admin/index.php @@ -35,6 +35,7 @@ if(isset($_POST['login'])) { Admin / index +
".$error.""; } ?> +
\ No newline at end of file diff --git a/admin/planning.php b/admin/planning.php index bf9c89f..3e88607 100644 --- a/admin/planning.php +++ b/admin/planning.php @@ -5,4 +5,16 @@ if($user['perm'] < 1) { header('Location: deco.php'); } -?> \ No newline at end of file +?> + + + + + + Admin / Planning + + +
+
+ + \ No newline at end of file diff --git a/admin/script.php b/admin/script.php index 97a98d4..9f071de 100644 --- a/admin/script.php +++ b/admin/script.php @@ -12,39 +12,40 @@ if(isset($_SESSION['id'])) { $user_exist = 0; } +echo ''; if($user_exist != 1) { if($page != "index") { header('Location: index.php'); } } else { + $content = + '
  • Index
  • ' + .'
  • Stats
  • '; + switch ($user['perm']) { - case 0: - ?> - Index
    - Stats
    - Se déconnecter
    - - Index
    - Planning
    - Stats
    - Se déconnecter
    - Planning'; break; case 2: - ?> - Index
    - Gestion des accès
    - Enigma
    - Planning
    - Stats
    - Vacances
    - Se déconnecter
    - Planning' + .'
  • Gestion des accès
  • ' + .'
  • Enigma
  • ' + .'
  • Stats
  • ' + .'
  • Vacances
  • '; break; } + + $content = $content.'
  • Se déconnecter
  • '; } -?> \ No newline at end of file +?> + + \ No newline at end of file diff --git a/admin/stats.php b/admin/stats.php index 3e23ed7..a2199a9 100644 --- a/admin/stats.php +++ b/admin/stats.php @@ -1,3 +1,15 @@ \ No newline at end of file +?> + + + + + + Admin / Stats + + +
    +
    + + \ No newline at end of file diff --git a/admin/vacances.php b/admin/vacances.php index 86afd23..e3ab801 100644 --- a/admin/vacances.php +++ b/admin/vacances.php @@ -4,4 +4,16 @@ include "script.php"; if($user['perm'] < 2) { header('Location: deco.php'); } -?> \ No newline at end of file +?> + + + + + + Admin / Vacances + + +
    +
    + + \ No newline at end of file