-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader.php
More file actions
200 lines (192 loc) · 12.3 KB
/
header.php
File metadata and controls
200 lines (192 loc) · 12.3 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
<?php
session_start();
include('function.php');
$call = fetchCategory();
$wishlist = array();
if (isset($_SESSION["username"])) {
$showWishlist = showWishlist($_SESSION['id']);
if (!empty($showWishlist)) {
foreach ($showWishlist as $data) {
array_push($wishlist, $data['p_id']);
}
}
}
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title> Clickbase</title>
<link rel="stylesheet" type="text/css" href="assest/bootstrap-5.2.3-dist/css/bootstrap.min.css">
<link rel="icon" type="image/x-icon" href="assest/img/background.png">
<link rel="stylesheet" href="./assest/css/responsive.css">
<!-- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.6.0/css/all.min.css" integrity="sha512-Kc323vGBEqzTmouAECnVceyQqyqdsSiqLQISBL29aUW4U/M7pSPA/gEUZQqv1cwx4OnYxTxve5UMg5GT6L4JJg==" crossorigin="anonymous" referrerpolicy="no-referrer" /> -->
<link rel="stylesheet" href="./assest/fontawesome-free-6.7.1-web/css/all.css">
<!-- carousel -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.3.4/assets/owl.carousel.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.3.4/assets/owl.theme.default.css">
<link rel="stylesheet" type="text/css" href="https://common.olemiss.edu/_js/sweet-alert/sweet-alert.css">
<link href="https://unpkg.com/aos@2.3.1/dist/aos.css" rel="stylesheet">
<link rel="stylesheet" href="./assest/css/style.css">
</head>
<body>
<div class="main">
<!--============================================== First Section =============================================== -->
<section class="first">
<div class="container-fluid">
<div class="row p-2">
<div class="col-md-6" id="top">
<!-- dropdown button for Country ======== -->
<!-- <h6 data-aos="fade-right" data-aos-delay="200"><span><i class="fa-solid fa-phone fa-shake pl-4"></i></span>+03220-2222-5555</h6> -->
<ul class="top_social">
<li><i class="fa-brands fa-lg fa-square-facebook" style="color: #0040ad;"></i></li>
<li><i class="fa-brands fa-square-instagram fa-lg" style="color: #e60045;"></i></li>
<!-- <li><i class="fa-brands fa-instagram fa-lg" style="background:linear-gradient(180deg, rgba(111,0,191,1) 0%, rgba(111,0,191,1) 0%, rgba(111,0,191,1) 0%, rgba(196,63,190,1) 38%, rgba(255,105,0,1) 78%, rgba(255,225,0,1) 95%);"></i></li> -->
<li><i class="fa-brands fa-youtube fa-lg" style="color: #ff0000;"></i></li>
<li><i class="fa-brands fa-twitter fa-lg" style="color: #0561ff;"></i></li>
<!-- <li></li> -->
</ul>
</div>
</div>
</div>
</section>
<!--============================================== second Section =============================================== -->
<section class="second">
<div class="container-fluid">
<div class="row p-2 ">
<div class="col-md-12 d-flex">
<div class="col-md-2 d-flex brand">
<span><img src="./assest/img/Background.png" style="width: 40px; height:40px" alt=""></span>
<h3 class="brand_name">Clickbase</h3>
</div>
<div class="col-md-6" id="navbar" data-aos="fade-right" data-aos-delay="200">
<ul class="mt-2">
<a href="index.php"><li class="cool-link">Home</li></a>
<a href="all_products.php"><li class="cool-link">Product</li></a>
<!-- <a href="#">
<li class="cool-link">Offers</li>
</a> -->
<a href="user_contact_us.php"><li class="cool-link">Contact Us</li></a>
</ul>
</div>
<div class="col-md-4 top_right-menu">
<ul class="d-flex mt-2">
<!-- <a href="#"><li class="ms-4 me-5"><span><i class="fa-solid fa-user" style="color: #034b83; margin-right:5px;"></i></span>User</li></a> -->
<li style="padding: 0 47px 0 0;">
<div class="dropdown-center">
<?php
if (isset($_SESSION['username'])) {
?>
<button class="btn btn-sm mb3 dropdown-toggle" type="button" data-bs-toggle="dropdown" aria-expanded="false" style="background: #123444;color:white;">
<i class="fa-solid fa-user fa-sm" style="color: #ffffff; margin-right:5px;"></i>
Welcome <span class="username_color">
<?php
echo $_SESSION['username'];
?>
</span>
</button>
<ul id="user_drop" class="dropdown-menu">
<li><a class="dropdown-item" href="user_profile.php">Profile</a></li>
<li><a class="dropdown-item" href="logout.php">Log Out</a></li>
</ul>
<?php
} else {
?>
<button class="btn btn-sm mb3 dropdown-toggle" type="button" data-bs-toggle="dropdown" aria-expanded="false" style="background: #123444;color:white;">
<i class="fa-solid fa-user fa-sm" style="color: #ffffff; margin-right:5px;"></i>
Welcome <span class="username_color">
User
</span>
</button>
<ul id="user_drop" class="dropdown-menu">
<li><a class="dropdown-item" href="user_profile.php">Profile</a></li>
<li><a class="dropdown-item" href="login.php">Login</a></li>
</ul>
<?php
}
?>
</div>
</li>
<!-- <a href="#">
<li class="me-5"><span><i class="fa-solid fa-location-crosshairs fa-lg" style="color: #034b83; margin-right:5px;"></i></span>Track Order</li>
</a> -->
<a href="#" ata-bs-toggle="modal" data-bs-target="#helplineModal">
<li class="me-5"><span><i class="fa-solid fa-square-phone fa-lg" style="color: #034b83; margin-right:5px;"></i></span>Helpline</li>
</a>
</ul>
</div>
</div>
</div>
</div>
</section>
<!--============================================== Third Section =============================================== -->
<section class="third">
<div class="container-fluid">
<div class="row">
<div class="col-md-12 d-flex">
<div class="col-md-2 catagory_heading" data-aos="fade-right" data-aos-delay="200">
<h6 class="text-white text-center"><span><i class="fa-solid fa-list" style="color: #ffffff;margin-right: 10px;"></i></span>All Catagories</h6>
</div>
<div class="col-md-7 searchbar" data-aos="fade-right" data-aos-delay="200">
<div class="search_pack">
<form action="search.php" method="GET" id="search-form">
<input class="search" type="search" name="query" id="search-query" placeholder="Search" aria-label="Search" onkeyup="showSuggestions()">
<span>
<button type="submit">
<i class="fa-solid fa-magnifying-glass fa-xs" style="color: #ffffff;"></i>
</button>
</span>
</form>
<div id="suggestions-box" class="suggestions-box"></div>
</div>
</div>
<div class="col-md-3 cart_icon" data-aos="fade-left" data-aos-delay="200">
<ul class="d-flex">
<a href="show_wishlist.php" style="text-decoration:none;">
<?php
if (isset($_SESSION['username'])) {
?>
<li class="me-5"><span><i class="fa-regular fa-heart fa-lg" style="color: rgb(255, 42, 0);margin-right:10px;"></i></span>Wishlist (<span class="wishlist_ajax"><?php echo getUserWishlistCount(); ?></span>)
</li>
<?php
} else {
?>
<li class="me-5"><span><i class="fa-regular fa-heart fa-lg" style="color: rgb(255, 42, 0);margin-right:10px;"></i></span>Wishlist
</li>
<?php
}
?>
</a>
<a href="show_cart.php" style="text-decoration:none;">
<li class="d-flex cart_text">
<div class="cart_pack">
<i class="fa-solid fa-sm fa-cart-shopping cart" style="color: #ffffff;padding: 17px 8px;font-size: 14px;"></i>
<!-- count -->
<?php
if (isset($_SESSION['username'])) {
if (!empty(getUserCartCount())) {
?>
<div class="cart_count">
<p><?php echo getUserCartCount(); ?></p>
</div>
<?php
} else {
?>
<div class="cart_count d-none">
<p><?php echo getUserCartCount(); ?></p>
</div>
<?php
}
}
?>
</div>
My Cart
</li>
</a>
</ul>
</div>
</div>
</div>
</div>
</section>