-
Notifications
You must be signed in to change notification settings - Fork 2
/
entete.php
31 lines (27 loc) · 998 Bytes
/
entete.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<div id=header>
<nav>
<table cellspacing='0' cellpadding='5' style='padding:10px 50px;'>
<tr>
<td><a href="index.php#container">Accueil</a></td>
<td><a href="index.php#fruits">Fruits</a></td>
<td><a href="index.php#legumes">Légumes</a></td>
<td><a href="inscription.php">Inscritpion</a></td>
<td><a href="connect.php">Connexion</a></td>
<td><a href="panier.php">Panier</a></li>
<?php
if(isset($_SESSION["login"])){
echo"<td id=si_connecter>";
echo "<div>".$_SESSION["login"][1]." ".$_SESSION["login"][0]."</div><div><a href='logout.php'>deconnexion</a></div>" ;
echo"</td>";
}
?>
</tr>
</table>
<?php
if(isset($_SESSION["login"])&& $_SESSION["login"][1]=='Admin'){
echo "<a href='page_admin.php'class=bouton_produit style='border-radius:0px;border-bottom-right-radius:10px; position:fixed;'>page admin</a>";
}
?>
</nav>
<img id=image_entete src="images/entete.jpg" alt="" />
</div>