-
Notifications
You must be signed in to change notification settings - Fork 18
/
header.php
277 lines (218 loc) · 9.9 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
<?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">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<title>Tech Shopping|Home</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 {
background: #fff;
/* fallback for old browsers */
/* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
}
#header {
background: #780206;
/* fallback for old browsers */
background: -webkit-linear-gradient(to right, #061161, #780206);
/* Chrome 10-25, Safari 5.1-6 */
background: linear-gradient(to right, #141415, #170e0e);
/* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
}
.footer-links li a {
color: #fff;
}
.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;
}
.glyphicon-chevron-left:before {
content: "\f053"
}
.glyphicon-chevron-right:before {
content: "\f054"
}
</style>
</head>
<body style="background: #fff;">
<!-- 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> +91-9964716807</a></li>
<li><a href="#"><i class="fa fa-envelope-o"></i>[email protected]</a></li>
<li><a href="#"><i class="fa fa-map-marker"></i>Mysore</a></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="#" class="logo">
<font style="font-style:normal; font-size: 33px;color: aliceblue;font-family: serif">
<img src="./img/Capture.png" style="width: 150px;">
</font>
</a>
</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>
</select>
<input class="input" id="search" type="text" placeholder="Search here">
<button type="submit" id="search_btn" class="search-btn" style="background: #00bcd4;
color: #fff;">Search</button>
</form>
</div>
</div>
<!-- /SEARCH BAR -->
<!-- ACCOUNT -->
<div class="col-md-3 clearfix">
<div class="header-ctn">
<!-- 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> edit cart</a>
</div>
</div>
</div>
<!-- /Cart -->
<ul class="header-links pull-right">
<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 '.$_SESSION["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="dropdown-toggle" ><i class="fa fa-user-o"></i> </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>
<style type="text/css">
.header-links li i {
color: #00bcd4;
margin-right: 15px;
}
</style>
<li><a href="chat/login.php"><i class="fa fa-comment" aria-hidden="true"></i></a></li>
<!-- 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 -->
<style type="text/css">
.main-nav>li>a {
padding: 20px 0px;
color: #00bcd4;
}
a {
color: #000;
}
</style>
<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>