-
Notifications
You must be signed in to change notification settings - Fork 14
/
header.php
380 lines (254 loc) · 11 KB
/
header.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
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
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
<?php
session_start()
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Canteen Shopping Systems</title>
<!-- Google font -->
<link href="https://fonts.googleapis.com/css?family=Montserrat:400,500,700" rel="stylesheet">
<!-- Bootstrap -->
<link type="text/css" rel="stylesheet" href="css/bootstrap.min.css"/>
<!-- Slick -->
<link type="text/css" rel="stylesheet" href="css/slick.css"/>
<link type="text/css" rel="stylesheet" href="css/slick-theme.css"/>
<!-- nouislider -->
<link type="text/css" rel="stylesheet" href="css/nouislider.min.css"/>
<!-- Font Awesome Icon -->
<link rel="stylesheet" href="css/font-awesome.min.css">
<!-- Custom stlylesheet -->
<link type="text/css" rel="stylesheet" href="css/style.css"/>
<link type="text/css" rel="stylesheet" href="css/accountbtn.css"/>
<style>
#navigation {
}
#header {
background: #780206;
background: -webkit-linear-gradient(to right, #061161, #780206);
background: linear-gradient(to right, #061161, #780206); /
background-image: url("nsbm-2020.jpg");
background-image: url("nsbm-2020.jpg");
}
#top-header {
background: #870000;
background: -webkit-linear-gradient(to right, #190A05, #870000);
background: linear-gradient(to right, #190A05, #870000);
}
#footer {
background: #7474BF;
background: -webkit-linear-gradient(to right, #348AC7, #7474BF);
background: linear-gradient(to right, #348AC7, #7474BF);
background-image: url("nsbm-2020.jpg");
color: #1E1F29;
}
#bottom-footer {
background: #7474BF;
background: -webkit-linear-gradient(to right, #348AC7, #7474BF);
background: linear-gradient(to right, #348AC7, #7474BF);
}
.footer-links li a {
color: #1E1F29;
}
.mainn-raised {
margin: -7px 0px 0px;
border-radius: 6px;
box-shadow: 0 16px 24px 2px rgba(0, 0, 0, 0.14), 0 6px 30px 5px rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(0, 0, 0, 0.2);
}
.developerb a{
text-align: right;
margin-right: 200px;
border-style: solid;
background-color:#9A2C2C;
border-radius: 50px;
}
.sky img{
height: 20%;
width: 20%;
position: 20%;
padding-bottom: -30%;
}
.glyphicon{
display: inline-block;
font: normal normal normal 14px/1 FontAwesome;
font-size: inherit;
text-rendering: auto;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
background-image: url("nsbm-2020.jpg");
}
.glyphicon-chevron-left:before{
content:"\f053"
}
.glyphicon-chevron-right:before{
content:"\f054"
}
</style>
</head>
<body>
<!-- HEADER -->
<header>
<!-- TOP HEADER -->
<div id="top-header">
<div class="container">
<ul class="header-links pull-left">
<li><a href="#"><i class="fa fa-phone"></i> +(94)712978152</a></li>
<li><a href="#"><i class="fa fa-envelope-o"></i> skysiva@students.nsbm.lk</a></li>
<li><a href="https://www.google.com/maps/dir//nsbm+l/data=!4m6!4m5!1m1!4e2!1m2!1m1!1s0x3ae25a48d2a0302d:0xddb466719c0595db?sa=X&ved=2ahUKEwiIvJeOzdrmAhWa7XMBHRQRDEcQ9RcwD3oECAwQDg"><i class="fa fa-map-marker"></i>nsbm</a></li>
<li><a href="https://www.facebook.com/nsbm.lk/"><i class="fa fa-facebook"></i>facebook</a></li>
</ul>
<ul class="header-links pull-right">
<li><a href="#"><i class=" fa fa-graduation-cap"></i> English</a></li>
<li><?php
include "db.php";
if(isset($_SESSION["uid"])){
$sql = "SELECT first_name FROM user_info WHERE user_id='$_SESSION[uid]'";
$query = mysqli_query($con,$sql);
$row=mysqli_fetch_array($query);
echo '
<div class="dropdownn">
<a href="#" class="dropdownn" data-toggle="modal" data-target="#myModal" ><i class="fa fa-user-o"></i> HI '.$row["first_name"].'</a>
<div class="dropdownn-content">
<a href="" data-toggle="modal" data-target="#profile"><i class="fa fa-user-circle" aria-hidden="true" ></i>My Profile</a>
<a href="logout.php" ><i class="fa fa-sign-in" aria-hidden="true"></i>Log out</a>
</div>
</div>';
}else{
echo '
<div class="dropdownn">
<a href="#" class="dropdownn" data-toggle="modal" data-target="#myModal" ><i class="fa fa-user-o"></i> My Account</a>
<div class="dropdownn-content">
<a href="" data-toggle="modal" data-target="#Modal_login"><i class="fa fa-sign-in" aria-hidden="true" ></i>Login</a>
<a href="" data-toggle="modal" data-target="#Modal_register"><i class="fa fa-user-plus" aria-hidden="true"></i>Register</a>
</div>
</div>';
}
?>
</li>
</ul>
</div>
</div>
<!-- /TOP HEADER -->
<!-- MAIN HEADER -->
<div id="header">
<!-- container -->
<div class="container">
<!-- row -->
<div class="row">
<!-- LOGO -->
<div class="col-md-3">
<div class="header-logo">
<a href="http://www.nsbm.ac.lk/" class="logo">
<font style="font-style:normal; font-size: 33px; color:#ffff;font-family: serif">
Online canteen shop.
</font>
<a href="http://www.nsbm.ac.lk/">
</a>
<div class="sky">
<img src="NSBM_Green_University_seal.png" alt="Italian Trulli" sizes="30 ">
</div>
</div>
</div>
<!-- /LOGO -->
<!-- SEARCH BAR -->
<div class="col-md-6">
<div class="header-search">
<form>
<select class="input-select">
<option value="0">All Categories</option>
<option value="1">Indian food</option>
<option value="1">Sinhala food </option>
<option value="1">Italy food </option>
<option value="1">cloths </option>
</select>
<input class="input" id="search" type="text" placeholder="Search here">
<button type="submit" id="search_btn" class="search-btn">Search</button>
</form>
</div>
</div>
<!-- /SEARCH BAR -->
<!-- ACCOUNT -->
<div class="col-md-3 clearfix">
<div class="header-ctn">
<!-- Wishlist -->
<div>
<a href="http://localhost/online-shopping-system-advanced-master/online-shopping-system-advanced-master/admin/manage_users.php">
<i class="fa fa-automobile"></i>
<span>Developer</span>
</a>
</div>
<!-- /Wishlist -->
<!-- Cart -->
<div class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" aria-expanded="true">
<i class="fa fa-shopping-cart"></i>
<span>Your Cart</span>
<div class="badge qty">0</div>
</a>
<div class="cart-dropdown" >
<div class="cart-list" id="cart_product">
</div>
<div class="cart-btns">
<a href="cart.php" style="width:100%;"><i class="fa fa-edit"></i> Apply cart/beay </a>
</div>
</div>
</div>
<!-- Menu Toogle -->
<div class="menu-toggle">
<a href="#">
<i class="fa fa-bars"></i>
<span>Menu</span>
</a>
</div>
<!-- /Menu Toogle -->
</div>
</div>
<!-- /ACCOUNT -->
</div>
<!-- row -->
</div>
<!-- container -->
</div>
<!-- /MAIN HEADER -->
</header>
<!-- /HEADER -->
<nav id='navigation'>
<!-- container -->
<div class="container" id="get_category_home">
</div>
<!-- responsive-nav -->
<!-- /container -->
</nav>
<!-- NAVIGATION -->
<div class="modal fade" id="Modal_login" role="dialog">
<div class="modal-dialog">
<!-- Modal content-->
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
</div>
<div class="modal-body">
<?php
include "login_form.php";
?>
</div>
</div>
</div>
</div>
<div class="modal fade" id="Modal_register" role="dialog">
<div class="modal-dialog" style="">
<!-- Modal content-->
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
</div>
<div class="modal-body">
<?php
include "register_form.php";
?>
</div>
</div>
</div>
</div>