-
Notifications
You must be signed in to change notification settings - Fork 0
/
leftpanel.php
99 lines (93 loc) · 5.19 KB
/
leftpanel.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!--
Neaty HTML Template
http://www.templatemo.com/tm-501-neaty
-->
<!-- load stylesheets -->
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Open+Sans:300,400"> <!-- Google web font "Open Sans" -->
<link rel="stylesheet" href="../css/bootstrap.min.css"> <!-- Bootstrap style -->
<link rel="stylesheet" href="../css/magnific-popup.css"> <!-- Magnific pop up style, http://dimsemenov.com/plugins/magnific-popup/ -->
<link rel="stylesheet" href="../css/templatemo-style.css"> <!-- Templatemo style -->
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<div class="row">
<div class="tm-left-right-container">
<!-- Left column: logo and menu -->
<div class="tm-blue-bg tm-left-column">
<div class="tm-logo-div text-xs-center">
<a href="index.php"><img src="img/tm-neaty-logo.png" alt="Logo"></a>
<h1 class="tm-site-name">ShopKartz</h1>
</div>
<nav class="tm-main-nav">
<ul class="tm-main-nav-ul">
<?php
// session_start();
if(isset($_COOKIE['username']) && !empty($_COOKIE['username']))
{
echo '<li class="tm-nav-item">';
echo "Hi " . $_COOKIE['username'] . "!" ;
echo '</li>';
}
if(isset($_GET['category']))
{
echo '<li class="tm-nav-item">
<a href="#view_products" class="tm-nav-item-link">View product</a>
</li>';
}
else if(isset($_POST['cartvalue']) || isset($_POST['deleteproduct']))
{
echo '<li class="tm-nav-item">
<a href="#show_cart" class="tm-nav-item-link">Show cart</a>
</li>';
}
else
{
echo '<li class="tm-nav-item">
<a href="#welcome" class="tm-nav-item-link">Welcome</a>
</li>';
}
?>
<li class="tm-nav-item">
<a href="#about" class="tm-nav-item-link">About Us</a>
</li>
<li class="tm-nav-item">
<a href="#beautyproducts" class="tm-nav-item-link">Beauty Products</a>
</li>
<li class="tm-nav-item">
<a href="#foodservices" class="tm-nav-item-link">Food Services</a>
</li>
<li class="tm-nav-item">
<a href="#resortandspa" class="tm-nav-item-link">Resort and Spa</a>
</li>
<li class="tm-nav-item">
<a href="#gadgets" class="tm-nav-item-link">Gadgets</a>
</li>
<li class="tm-nav-item">
<a href="#contact" class="tm-nav-item-link">Contact Us</a>
</li>
<li class="tm-nav-item">
<a href="#maps" class="tm-nav-item-link">
<img src="img/x.jpg" alt="Gmaps" width="40px"/>
</a>
</li>
</ul>
</nav>
</div> <!-- Left column: logo and menu -->
<!-- Right column: content -->
</div>
</div> <!-- row -->
</div> <!-- container -->
</body>
</html>