-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathmenu.php
37 lines (35 loc) · 1.03 KB
/
menu.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
<?php
if(isset($_SESSION['logged_in']) AND $_SESSION['logged_in'] == 1)
{
$loginProfile = "My Profile: ". $_SESSION['Username'];
$logo = "glyphicon glyphicon-user";
if($_SESSION['Category']!= 1)
{
$link = "Login/profile.php";
}
else {
$link = "profileView.php";
}
}
else
{
$loginProfile = "Login";
$link = "index.php";
$logo = "glyphicon glyphicon-log-in";
}
?>
<!DOCTYPE html>
<header id="header">
<h1><a href="index.php">AgroCulture</a></h1>
<nav id="nav">
<ul>
<li><a href="index.php"><span class="glyphicon glyphicon-home"></span> Home</a></li>
<li><a href="myCart.php"><span class="glyphicon glyphicon-shopping-cart"> MyCart</a></li>
<li><a href="<?= $link; ?>"><span class="<?php echo $logo; ?>"></span><?php echo" ". $loginProfile; ?></a></li>
<li><a href="market.php"><span class="glyphicon glyphicon-grain"> Digital-Market</a></li>
<li><a href="blogView.php"><span class="glyphicon glyphicon-comment"> BLOG</a></li>
</ul>
</nav>
</header>
</body>
</html>