-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbar-nav.php
107 lines (85 loc) · 3.44 KB
/
bar-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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
<?php
if (isset($_SESSION['login'])==false)
{
?>
<nav class="recher">
<aside id="searchbartop">
<input type="checkbox" id="searchbartopbtn" />
<label for="searchbartopbtn"><img title="Recherche" height="40" src="img/recherche.png"></label>
<form method="post" action="boutique.php" id="recherche bar-nav">
<div><input type="text" name="req" ></div>
<button type="submit" name="rech"><b>Recherche</b></button>
</form>
</aside>
</nav>
<nav class="menu">
<p class=""><a href="index.php">Accueil</a></p>
<p class=""><a href="boutique.php">Boutique</a></p>
<img height="100" src="img/mobile-shop-logo.png">
<p class=""><a href="connexion.php">Connexion</a></p>
<p class=""><a href="inscription.php">Inscription</a></p>
</nav>
<?php
}
elseif(isset($_SESSION['login'])==true)
{
if($_SESSION['login'] =="admin")
{
?>
<nav class="recher">
<aside id="admin">
<a href="admin.php"><img title="Page admin" height="44" src="img/admin.png"></a>
</aside>
<aside id="searchbartop">
<input type="checkbox" id="searchbartopbtn" />
<label for="searchbartopbtn"><img title="Recherche" height="42" src="img/recherche.png"></label>
<form method="post" action="boutique.php" id="recherche bar-nav">
<div><input type="text" name="req" ></div>
<button type="submit" name="rech"><b>Recherche</b></button>
</form>
</aside>
</nav>
<nav class="menu">
<p class=""><a href="index.php">Accueil</a></p>
<p class=""><a href="boutique.php">Boutique</a></p>
<img height="100" src="img/mobile-shop-logo.png">
<p class=""><a href="profil.php">Mon profil</a></p>
<p class=""><a href="index.php?deconnexion=true">Déconnexion</a></p>
</nav>
<?php
}
else
{
?>
<nav class="recher">
<aside id="panier">
<a href="pannier.php"><img title="Panier" height="40" src="img/panier.png"></a>
</aside>
<aside id="searchbartop">
<input type="checkbox" id="searchbartopbtn" />
<label for="searchbartopbtn"><img title="Recherche" height="40" src="img/recherche.png"></label>
<form method="post" action="boutique.php" id="recherche bar-nav">
<div><input type="text" name="req" ></div>
<button type="submit" name="rech"><b>Recherche</b></button>
</form>
</aside>
</nav>
<nav class="menu">
<p class="menu-item"><a href="index.php">Accueil</a></p>
<p class=""><a href="boutique.php">Boutique</a></p>
<img height="100" src="img/mobile-shop-logo.png">
<p class="menu-itemc"><a href="profil.php">Mon profil</a></p>
<p class="menu-itemc"><a href="index.php?deconnexion=true">Déconnexion</a></p>
</nav>
<?php
if(isset($_GET['deconnexion']))
{
if($_GET['deconnexion']==true)
{
session_unset();
header("location:index.php");
}
}
}
}
?>