-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtemplate.php
More file actions
202 lines (187 loc) · 8.66 KB
/
Copy pathtemplate.php
File metadata and controls
202 lines (187 loc) · 8.66 KB
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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
<?php
session_start();
if(!isset($_SESSION['MM_Username']))
{
header('Location:login_register/login_register.php');
$logStatus = "Login / Register";
$logStatusLink = 'login_register/login_register.php';
}
else
{
$username = $_SESSION['MM_Username'];
$profileLink = 'myaccount.php';
$logUser = "Welcome back!, $username";
$logStatus = "Logout";
$logStatusLink = 'logout.php';
}
?>
<?php
$conn = mysqli_connect("localhost", "root", "","shoedb");
$admin = "SELECT * FROM user_details WHERE username = '$username'";
$search_result = mysqli_query($conn, $admin) or die (mysqli_error($conn));
$row = mysqli_fetch_assoc($search_result);
$admin = $row['adminRights'];
if($admin == 'T')
{
$adminStatus = "ADMINISTRATOR";
$adminStatusLink = 'admin.php';
}
else {
$adminStatus = "";
$adminStatusLink = "";
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>
Sole Mate Shoes
</title>
<link href="images/logos/main/logo.ico" rel="shortcut icon">
<link rel="stylesheet" type="text/css" href="css/navigation/navbar.css">
<link rel="stylesheet" type="text/css" href="css/navigation/meanmenu.css">
<link rel="stylesheet" type="text/css" href="css/footer/footer.css">
<link href="https://fonts.googleapis.com/css?family=Raleway" rel="stylesheet">
</head>
<body>
<header>
<div id="login-btn">
<a href="#"></a>
<a href="<?php echo $profileLink ?>"><?php echo $logUser ?></a>
<a href="<?php echo $logStatusLink?>"><?php echo $logStatus ?></a>
<form action="search_action.php" method="post" class="searchbar cf">
<input type="text" name="search" placeholder="Search here...">
<button type="submit">Search</button>
</form>
</div>
<div id="main-logo">
<a href="index.php">
<img alt="image" class="logo" src="images/logos/main/logo.png">
</a>
</div>
<div id="navlogo">
<a href="myaccount.php"><img alt="image" class="navlogo" src="images/logos/navbar/myaccountlogo.png">
</a>
<a href="cart/cart.php"><img alt="image" class="navlogo" src="images/logos/navbar/shoppingcartlogo.png">
</a>
<a href="search.php"><img alt="image" class="navlogo" src="images/logos/navbar/searchlogo.png">
</a>
</div>
<div id="white"></div>
<nav>
<ul class="main-nav">
<li>
<a href="index.php" class="no-home">Home</a>
</li>
<li>
<a href="products.php?gender=M">MENS</a>
<ul>
<li><a href="products.php?gender=M&category=formal">Formal</a>
<ul>
<li><a href="products.php?gender=M&category=formal&subCat=derby">Derby</a></li>
<li><a href="products.php?gender=M&category=formal&subCat=loafers">Loafers</a></li>
<li><a href="products.php?gender=M&category=formal&subCat=boots">Boots</a></li>
</ul>
</li>
<li>
<a href="products.php?gender=M&category=casual">Casual</a>
<ul>
<li><a href="products.php?gender=M&category=casual&subCat=sneakers">Sneakers</a></li>
<li><a href="products.php?gender=M&category=casual&subCat=sandals">Sandals</a></li>
</ul>
</li>
<li>
<a href="products.php?gender=M&category=sports">Sports</a>
<ul>
<li><a href="products.php?gender=M&category=sports&subCat=running">Running</a></li>
<li><a href="products.php?gender=M&category=sports&subCat=training">Training</a></li>
<li><a href="products.php?gender=M&category=sports&subCat=cycling">Cycling</a></li>
</ul>
</li>
</ul>
</li>
<li>
<a href="products.php?gender=F">WOMENS</a>
<ul>
<li><a href="products.php?gender=F&category=formal"> Formal </a>
<ul>
<li><a href="products.php?gender=F&category=formal&subCat=heels">Heels</a></li>
<li><a href="products.php?gender=F&category=formal&subCat=pumps">Pumps</a></li>
<li><a href="products.php?gender=F&category=formal&subCat=wedges">Wedges</a></li>
</ul>
</li>
<li>
<a href="products.php?gender=F&category=casual"> Casual </a>
<ul>
<li><a href="products.php?gender=F&category=casual&subCat=sneakers">Sneakers</a></li>
<li><a href="products.php?gender=F&category=casual&subCat=sandals">Sandals</a></li>
<li><a href="products.php?gender=F&category=casual&subCat=palms">Palms</a></li>
</ul>
</li>
<li>
<a href="products.php?gender=F&category=sports"> Sports </a>
<ul>
<li><a href="products.php?gender=F&category=sports&subCat=running">Running</a></li>
<li><a href="products.php?gender=F&category=sports&subCat=training">Training</a></li>
<li><a href="products.php?gender=F&category=sports&subCat=cycling">Cycling</a></li>
</ul>
</li>
</ul>
</li>
<li>
<a href="products.php?gender=Y">YOUTH</a>
<ul>
<li><a href="products.php?gender=Y&category=boys"> Boys </a></li>
<li><a href="products.php?gender=Y&category=girls"> Girls </a></li>
</ul>
<li>
<li>
<a href="products.php?promoStatus=T">PROMOTIONS</a>
<ul>
<li><a href="products.php?newarrival=T">NEW ARRIVALS</a></li>
</ul>
</li>
<li><a href="about.php">ABOUT US</a></li>
<li><a href="contact.php">CONTACT US</a></li>
<li><a href="cart/cart.php" id="cartnone"> <img src="images/logos/main/cart.png" alt="image" class="cartbox"></a></li>
</ul>
<div id="line"></div>
</nav>
</header>
<footer>
<div id="footerlinks">
<a href="index.php">HOME</a>
<a href="contact.php">CONTACT US</a>
<a href="<?php echo $adminStatusLink ?>"><?php echo $adminStatus ?></a>
<a href="termsofuse.php">TERMS OF USE</a>
<a href="privacypolicy.php">PRIVACY POLICY</a>
</div>
<div id="socialmediafooter">
<a href="https://www.facebook.com/Sole-Mate-Shoes-1126601674057658/?ref=br_rs">
<img alt="image" class="footerimage" src="images/socialmedia/footer/facebookfooter.png">
</a>
<a href="https://www.youtube.com"><img alt="image" class="footerimage" src="images/socialmedia/footer/youtubefooter.png">
</a>
<a href="https://www.twitter.com"><img alt="image" class="footerimage" src="images/socialmedia/footer/twitterfooter.png">
</a>
<a href="https://www.instagram.com"><img alt="image" class="footerimage" src="images/socialmedia/footer/instagramfooter.png">
</a>
</div>
<p>
© 2016 Sole Mate Inc. All rights reserved. All Visual, Audio and Textual Content on this site (including all names, images, characteristics, trademarks and logos) are protected by Copyright, Trademarks and other Intellectual Property Rights owned by Sole Mate Incor its subsidaries, licensors, licenses, suppliers and accoutns. By using this site, you agree to the Terms and Conditions of Use.
<br>
<br> © Copyright Wee Jun Hong 165302F
</p>
</footer>
<script src="js/navigation/jquery-1.11.1.min.js">
</script>
<script src="js/navigation/jquery.meanmenu.js">
</script>
<script>
jQuery(document).ready(function() {
jQuery('header nav').meanmenu();
});
</script>
</body>
</html>