-
Notifications
You must be signed in to change notification settings - Fork 2
/
header.php
196 lines (194 loc) · 11.6 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
<?php
if (!isset($_SESSION)) {
session_start();
}
?>
<header>
<div class="header-area">
<div class="header-left-sidebar">
<div class="logo">
<a href="index.php"><img src="user/assets/img/logo/logo-new.png" alt="" style="width: 167px;height: 42px;"></a>
</div>
<div class=" main-menu menu-hover">
<nav>
<ul>
<li><a href="category-view.php?cate_id=1&&manu_id=0">LAPTOP</a>
<ul class="single-dropdown">
<li><a href="category-view.php?cate_id=1&&manu_id=1">Apple</a></li>
<li><a href="category-view.php?cate_id=1&&manu_id=4">Dell</a></li>
<li><a href="category-view.php?cate_id=1&&manu_id=5">Asus</a></li>
</ul>
</li>
<li><a href="category-view.php?cate_id=2&&manu_id=0">SMART WATCH</a>
<ul class="single-dropdown">
<li><a href="category-view.php?cate_id=2&&manu_id=1">Apple</a></li>
<li><a href="category-view.php?cate_id=2&&manu_id=2">Samsung</a></li>
<li><a href="category-view.php?cate_id=2&&manu_id=3">Xiaomi</a></li>
</ul>
</li>
<li><a href="category-view.php?cate_id=3&&manu_id=0">MOBILE</a>
<ul class="single-dropdown">
<li><a href="category-view.php?cate_id=3&&manu_id=1">Apple</a></li>
<li><a href="category-view.php?cate_id=3&&manu_id=2">Samsung</a></li>
<li><a href="category-view.php?cate_id=3&&manu_id=3">Xiaomi</a></li>
</ul>
</li>
<li><a href="category-view.php?cate_id=4&&manu_id=0">TABLET</a>
<ul class="single-dropdown">
<li><a href="category-view.php?cate_id=4&&manu_id=1">Apple</a></li>
<li><a href="category-view.php?cate_id=4&&manu_id=2">Samsung</a></li>
</ul>
</li>
</ul>
</nav>
</div>
</div>
<div class="header-right-sidebar">
<div class="header-search-cart-login">
<div class="logo">
<a href="index.php">
<img src="user/assets/img/logo/logo.png" alt="">
</a>
</div>
<div class="header-search">
<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="get">
<input placeholder="Tìm kiểm sản phẩm" type="text" name="name">
<button>
<i class="ti-search"></i>
</button>
</form>
</div>
<div class="header-login">
<?php if (!isset($_SESSION['user'])) { ?>
<ul>
<li><a href="login.php">Đăng nhập</a></li>
<li><a href="register.php">Đăng ký</a></li>
</ul>
<?php } else { ?>
<ul>
<li><a href="profile.php">Xin Chào, <?php echo $_SESSION['user']['name'] ?></a></li>
<li><a href="logout.php">Đăng xuất</a></li>
</ul>
<?php } ?>
</div>
<?php if (isset($_SESSION['user'])) { ?>
<div class="header-cart cart-res">
<a class="icon-cart" href="#">
<i class="ti-shopping-cart"></i>
</a>
<ul class="cart-dropdown">
<li class="cart-btn-wrapper">
<a class="cart-btn btn-hover" href="showcart.php">giỏ hàng</a>
<a class="cart-btn btn-hover" href="checkout.php">thanh toán</a>
<a class="cart-btn btn-hover" href="purchase_history.php">liệt kê đơn hàng</a>
</li>
</ul>
</div>
<?php } ?>
</div>
<div class="mobile-menu-area clearfix d-md-block col-md-12 col-lg-12 col-12 d-lg-none d-xl-none">
<div class="mobile-menu">
<nav id="mobile-menu-active">
<ul class="menu-overflow">
<li><a href="#">HOME</a>
<ul>
<li><a href="index.html">Fashion</a></li>
<li><a href="index-fashion-2.html">Fashion style 2</a></li>
<li><a href="index-fruits.html">Fruits</a></li>
<li><a href="index-book.html">book</a></li>
<li><a href="index-electronics.html">electronics</a></li>
<li><a href="index-electronics-2.html">electronics style 2</a></li>
<li><a href="index-food.html">food & drink</a></li>
<li><a href="index-furniture.html">furniture</a></li>
<li><a href="index-handicraft.html">handicraft</a></li>
<li><a href="index-smart-watch.html">smart watch</a></li>
<li><a href="index-sports.html">sports</a></li>
</ul>
</li>
<li><a href="#">pages</a>
<ul>
<li><a href="about-us.html">about us</a></li>
<li><a href="menu-list.html">menu list</a></li>
<li><a href="login.html">login</a></li>
<li><a href="register.html">register</a></li>
<li><a href="cart.html">cart page</a></li>
<li><a href="checkout.html">checkout</a></li>
<li><a href="wishlist.html">wishlist</a></li>
<li><a href="contact.html">contact</a></li>
</ul>
</li>
<li><a href="#">shop</a>
<ul>
<li><a href="shop-grid-2-col.html"> grid 2 column</a></li>
<li><a href="shop-grid-3-col.html"> grid 3 column</a></li>
<li><a href="shop.html">grid 4 column</a></li>
<li><a href="shop-grid-box.html">grid box style</a></li>
<li><a href="shop-list-1-col.html"> list 1 column</a></li>
<li><a href="shop-list-2-col.html">list 2 column</a></li>
<li><a href="shop-list-box.html">list box style</a></li>
<li><a href="product-details.html">tab style 1</a></li>
<li><a href="product-details-2.html">tab style 2</a></li>
<li><a href="product-details-3.html"> tab style 3</a></li>
<li><a href="product-details-4.html">sticky style</a></li>
<li><a href="product-details-5.html">sticky style 2</a></li>
<li><a href="product-details-6.html">gallery style</a></li>
<li><a href="product-details-7.html">gallery style 2</a></li>
<li><a href="product-details-8.html">fixed image style</a></li>
<li><a href="product-details-9.html">fixed image style 2</a></li>
</ul>
</li>
<li><a href="#">BLOG</a>
<ul>
<li><a href="blog.html">blog 3 colunm</a></li>
<li><a href="blog-2-col.html">blog 2 colunm</a></li>
<li><a href="blog-sidebar.html">blog sidebar</a></li>
<li><a href="blog-details.html">blog details</a></li>
<li><a href="blog-details-sidebar.html">blog details 2</a></li>
</ul>
</li>
<li><a href="contact.html"> Contact </a></li>
</ul>
</nav>
</div>
</div>
<div class="slider-area ">
<div class="slider-active owl-carousel">
<div class="single-slider single-slider-hm1 bg-img height-100vh" style="background-image: url(assets/img/slider/Slider2.jpg);background-size:60% 60%;background-repeat : no-repeat;background-position:10px;">
<div class="slider-content slider-animation slider-content-style-1 slider-animated-1">
<h1 style="color:yellow" class="animated">Fashion</h1>
<p style="color: yellow " class="animated">Find your favorite device model. </p>
</div>
<div class="position-slider-img">
<div class="slider-img-1">
<img src="user/assets/img/slider/ " alt="">
</div>
<div class="slider-img-2">
<img class="tilter" src="user/assets/img/slider/Slider3.jpg" alt="">
</div>
<div class="slider-img-3">
<img src="user/assets/img/slider/8.png" alt="">
</div>
</div>
</div>
<div class="single-slider single-slider-hm1 bg-img height-100vh" style="background-image: url(assets/img/slider/Slider1.jpg);background-size:40% 50%;background-repeat : no-repeat;background-position:300px;">
<div class="slider-content slider-animation slider-content-style-1 slider-animated-2">
<h1 class="animated">Young</h1>
<p class="animated">Explore in your own style. </p>
</div>
<div class="position-slider-img">
<div class="slider-img-1">
<img src="user/assets/img/slider/ " alt="">
</div>
<div class="slider-img-4 slider-mrg">
<img class="tilter" src="user/assets/img/slider/Slider4.jpg" alt="" style="background-color:yellow">
</div>
<div class="slider-img-3">
<img src="user/assets/img/slider/8.png" alt="">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</header>