forked from vergnet/site-accueil-insa
font menu
This commit is contained in:
parent
7013a85a10
commit
f812d85397
3 changed files with 22 additions and 10 deletions
|
@ -27,7 +27,7 @@ nav ul li {
|
||||||
border: 2px solid var(--color1);
|
border: 2px solid var(--color1);
|
||||||
}
|
}
|
||||||
|
|
||||||
nav ul li a {
|
nav ul a {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
color: white;
|
color: white;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
|
|
|
@ -39,6 +39,18 @@ if(isset($_POST['login'])) {
|
||||||
<?php
|
<?php
|
||||||
if(isset($_SESSION['id'])) {
|
if(isset($_SESSION['id'])) {
|
||||||
echo "Connecté sous l'identifiant : ".$user['pseudo'];
|
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 {
|
} else {
|
||||||
?>
|
?>
|
||||||
<form method="POST">
|
<form method="POST">
|
||||||
|
|
|
@ -20,24 +20,24 @@ if($user_exist != 1) {
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$content =
|
$content =
|
||||||
'<li class="green"><a href="index.php">Index</a></li>'
|
'<a href="index.php"><li class="green">Index</li></a>'
|
||||||
.'<li class="green"><a href="stats.php">Stats</a></li>';
|
.'<a href="stats.php"><li class="green">Stats</li></a>';
|
||||||
|
|
||||||
switch ($user['perm']) {
|
switch ($user['perm']) {
|
||||||
case 1:
|
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;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
$content = $content
|
$content = $content
|
||||||
.'<li class="orange"><a href="planning.php">Planning</a></li>'
|
.'<a href="planning.php"><li class="orange">Planning</li></a>'
|
||||||
.'<li class="red"><a href="gestion_des_acces.php">Gestion des accès</a></li>'
|
.'<a href="gestion_des_acces.php"><li class="red">Gestion des accès</li></a>'
|
||||||
.'<li class="red"><a href="enigma.php">Enigma</a></li>'
|
.'<a href="enigma.php"><li class="red">Enigma</li></a>'
|
||||||
.'<li class="red"><a href="stats.php">Stats</a></li>'
|
.'<a href="stats.php"><li class="red">Stats</li></a>'
|
||||||
.'<li class="red"><a href="vacances.php">Vacances</a></li>';
|
.'<a href="vacances.php"><li class="red">Vacances</li></a>';
|
||||||
break;
|
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>';
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue