forked from FatihaHarram/tiha-website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nav.php
52 lines (40 loc) · 1.68 KB
/
nav.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<?php
include_once('lib/php/fonction.php');
include_once('meta_header.php');
?>
<div class="topbar">
<div class="fill">
<div id="nav" >
<a href="#" class="header__icon"> <img src="img/navicon.png"></a>
<ul class="nav">
<li><a class="a_index" href="index.php#acceuil">ACCUEIL</a></li>
<li><a class="a_pres" href="index.php#presentation">PRESENTATION</a></li>
<li><a class="a_cv" href="index.php#cv">CURRICULUM VITAE</a></li>
<li><a class="a_cv" href="projet.php">PROJETS</a></li>
<li><a class="" href="contact.php">CONTACT</a></li>
<li><a class="" href="livredor.php"><or>LIVRE D'OR</or></a></li>
<?php
if(isset($_SESSION['id'])){
echo '
<b><li><a id="deconnecter" href="deconnection.php"><input class="deconnecter" type="submit" value="SE DECONNECTER" ></a></li></b>';
if($_SESSION['admin'] == 1){
echo '<li><a class="aNav" href="Admin.php">ADMIN</a></li>';
}
elseif ($_SESSION['client'] == 1 OR $_SESSION['user'] == 1) {
echo '<li><a class="aNav" href="vip.php">ESPACE CLIENT</a></li>';
}
}
else{
?>
<li><a id="espace_client" class="clientIcon" href="espaceclient.php"> <img data-popup="connection" src="img/clientwhite.png"><a/><li/>
<li><a id="espace_client" class="adminIcon" href="adminCONNECT.php"> <img data-popup="ADMIN" src="img/admin.png"><a/><li/>
<?php
}
?>
<!--<li><a class="aNav" href="inscription.php">INSCRIPTION<a/></li>
<li><a class="aNav" href="connection.php">CONNECTION<a/></li>
<li><a class="aNav" href="coments.php">COMMENTAIRES<a/></li>-->
</ul>
</div> <!--id nav -->
</div> <!--fill -->
</div> <!--topbar -->