font menu

This commit is contained in:
Baptiste 2022-06-15 21:19:49 +02:00
parent 7013a85a10
commit f812d85397
3 changed files with 22 additions and 10 deletions

View file

@ -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;

View file

@ -39,6 +39,18 @@ if(isset($_POST['login'])) {
<?php
if(isset($_SESSION['id'])) {
echo "Connecté sous l'identifiant : ".$user['pseudo'];
echo "<br><br>Accès : ";
switch ($user['perm']) {
case 0:
echo "<font color='green'>GDA</font>";
break;
case 1:
echo "<font color='orange'>Bureau</font>";
break;
case 2:
echo "<font color='red'>Admin</font>";
break;
}
} else {
?>
<form method="POST">

View file

@ -20,24 +20,24 @@ if($user_exist != 1) {
}
} else {
$content =
'<li class="green"><a href="index.php">Index</a></li>'
.'<li class="green"><a href="stats.php">Stats</a></li>';
'<a href="index.php"><li class="green">Index</li></a>'
.'<a href="stats.php"><li class="green">Stats</li></a>';
switch ($user['perm']) {
case 1:
$content = $content.'<li class="orange"><a href="planning.php">Planning</a></li>';
$content = $content.'<a href="planning.php"><li class="orange">Planning</li></a>';
break;
case 2:
$content = $content
.'<li class="orange"><a href="planning.php">Planning</a></li>'
.'<li class="red"><a href="gestion_des_acces.php">Gestion des accès</a></li>'
.'<li class="red"><a href="enigma.php">Enigma</a></li>'
.'<li class="red"><a href="stats.php">Stats</a></li>'
.'<li class="red"><a href="vacances.php">Vacances</a></li>';
.'<a href="planning.php"><li class="orange">Planning</li></a>'
.'<a href="gestion_des_acces.php"><li class="red">Gestion des accès</li></a>'
.'<a href="enigma.php"><li class="red">Enigma</li></a>'
.'<a href="stats.php"><li class="red">Stats</li></a>'
.'<a href="vacances.php"><li class="red">Vacances</li></a>';
break;
}
$content = $content.'<li class="white"><a href="deco.php">Se déconnecter</a></li>';
$content = $content.'<a href="deco.php"><li class="white">Se déconnecter</li></a>';
}
?>