-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathheader.php
270 lines (250 loc) · 13.5 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
<!-- This are required for ajax-jqry to work -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
<!--This is ajax-jqry method to update page without refresh-->
<!--used for email subscription-->
<!--for search box-->
<style>
#output li a {
/*border: 0px solid #ddd;*/
/* Add a border to all links */
margin-top: -8vh;
/* Prevent double borders */
/* Grey background color */
padding-left: 24%;
margin-left: 30vw;
padding-top: 0px;
/* Add some padding */
text-decoration: none;
/* Remove default text underline */
font-size: 16px;
/* Increase the font-size */
color: black;
/* Add a black text color */
display: block;
/* Make it into a block element to fill the whole list */
background-color: #FBFDD8;
/*border-top: 1px solid #864B08;*/
}
</style>
<script type="text/javascript">
$(document).ready(function() {
$("#submit").click(function(e) {
e.preventDefault();
var email = $("#email").val();
$.ajax({
type: "POST",
url: "backend/email_subscribe.php",
dataType: "json",
data: {
email: email
},
success: function(data) {
$("#status").html(data);
}
});
});
});
function searchq() {
var searchTxt = $("input[name='search']").val();
var ctg = $('#category').val();
if (searchTxt == '') {
$("#output").html('');
} else {
$.post("backend/cur.php", {
searchVal: searchTxt,
category: ctg
}, function(output) {
$("#output").html(output);
});
}
}
</script>
<?php
//take contents here from data to show products
//create connection and fetch data of product from sql
//require_once "loginfo.php";
////Connection
//$conn = new mysqli($servername , $username , $password);
//if(!$conn) {
//die("[-] Connection error with MySql");
//}
////first use database
//$sql = "USE $product_database";
//if(!mysqli_query($conn , $sql)){
//die("[-] Error while using product database !!");
//}
//$sql = "select * from $category_table";
//$res = mysqli_query($conn , $sql);
//if(!$res) {
//die("[-] Error while querying the category info");
//}
?>
<header>
<!-- Header Start -->
<div class="header-area">
<div class="main-header ">
<div class="header-top d-none d-lg-block">
<div class="container">
<div class="col-xl-12">
<div class="row d-flex justify-content-between align-items-center">
<!-- <div class="header-info-left">
<ul>
<li><i class="far fa-clock"></i> Mon - SAT: 6.00 am - 10.00 pm</li>
<li>Sun: Closed</li>
</ul>
</div>
<div class="header-info-right">
<ul class="header-social">
<li><a href="#"><i class="fab fa-facebook-f"></i></a></li>
<li><a href="#"><i class="fab fa-twitter"></i></a></li>
<li><a href="#"><i class="fab fa-linkedin-in"></i></a></li>
<li> <a href="#"><i class="fab fa-google-plus-g"></i></a></li>
</ul>
</div> -->
</div>
</div>
</div>
</div>
<div class="header-bottom header-stick" style="background-color: white;">
<div class="container">
<div class="row align-items-center" style="flex-wrap: nowrap;">
<!-- Logo -->
<div class=" col-xl-3 col-lg-3 col-6">
<div class=" logo ">
<a href="/"><img src="assets/img/logo/logo.png " alt=" " style="padding-top: 20px; padding-right: 0px;"></a>
</div>
</div>
<div class="col-xl-6 col-lg-6 d-none d-lg-block">
<div class="menu-wrapper d-flex align-items-center justify-content-end ">
<!-- Main-menu -->
<div class="main-menu">
<nav>
<ul class="tagline" style="white-space: nowrap; right: 100px;bottom: -30px;position: absolute;">
<li><a style="font-size: 18px;">EXPORTS</a></li>
<li>|</li>
<li><a style="font-size: 18px;">DISTRIBUTION</a></li>
<li>|</li>
<li><a style="font-size: 18px;">ONLINE</a></li>
</ul>
</nav>
</div>
</div>
</div>
<div class=" col-xl-3 col-lg-3 col-4" style="flex-wrap: nowrap; ">
<div class="menu-wrapper d-flex align-items-center justify-content-end ">
<!-- Main-menu -->
<!--<div class="main-menu d-none d-lg-block "> -->
<nav>
<ul>
<li>
<div class="input-group" id="input" style="position:absolute;top:30%;left:30%;">
<form action="search-page" method="POST">
<input type="text" name="search" class="form-control" placeholder="Search here.." onkeyup="searchq();" autocomplete="off" required>
<button class="btn btn-secondary" type="submit" name="submit">
<i class="fa fa-search">
</i>
</button>
</form>
</div>
<!--
search results will be displayed here
-->
<ul id="output">
</ul>
</li>
</ul>
</nav>
<!--</div> -->
</div>
</div>
</div>
<div class="row align-items-center">
<!-- <div class="col-xl-12 col-lg-12 "> -->
<div class="menu-wrapper d-flex align-items-center justify-content-end ">
<!-- Main-menu -->
<div class="main-menu d-none d-lg-block ">
<nav>
<ul id="navigation" style="padding-left: 200px; padding-top: 15px;">
<li><a href="#">APPLIANCES</a>
<ul class="submenu" style="width: 280px;">
<li><a href="# ">Mixer Grinder</a></li>
<li><a href="# ">Food Processor and Grinder</a></li>
<li><a href="# ">Juicer Mixer Grinder</a></li>
<li><a href="# ">Food Processor and Grinder</a></li>
<li><a href="# ">Wet Grinder</a></li>
<li><a href="# ">Centrifugal Juicer</a></li>
<li><a href="# ">Juicer Mixer Grinder</a></li>
<li><a href="# ">Portable Hand Blender</a></li>
<li><a href="# ">Roti Maker / Roaster</a></li>
<li><a href="# ">Electric Fan</a></li>
<li><a href="# ">Gas Stove</a></li>
</ul>
</li>
<li><a href="# ">COOKWARE</a>
<ul class="submenu" style="width: 250px;">
<li><a href="# ">Non-Stick Cookware</a></li>
<li><a href="# ">Hard Anodized Cookware</a></li>
<li><a href="# ">Stainless Steel Cookware</a></li>
<li><a href="# ">Aluminium Cookware</a></li>
<li><a href="# ">Cooper ware</a></li>
<li><a href="# ">Brass ware</a></li>
<li><a href="# ">Pressure Cooker</a></li>
</ul>
</li>
<li><a href="# ">BRANDS</a>
<ul class="submenu">
<li><a href="https://veronica.co.in/">Veronica</a></li>
<li><a href="https://blackstone.co.in/">Blackstone</a></li>
</ul>
</li>
<li><a href="about">ABOUT US</a></li>
<li>
<a href="#">SOCIAL</a>
<ul class="submenu" style="width: 120px;">
<li><a href="https://twitter.com/Milestone_BVL">Twitter</a></li>
<li><a href="https://www.facebook.com/Milestone.BVLP">Facebook</a></li>
<li><a href="https://wa.me/917718050963">Whatsapp</a></li>
<li><a href="https://www.instagram.com/milestone_business/">Instagram</a></li>
<li><a href="https://www.youtube.com/channel/UCzBNzCPfUbPPcyFixJAmCLA">Youtube</a></li>
<li><a href="https://milestonebvl.blogspot.com/">Blogpost</a></li>
<li><a href="https://pin.it/6OJHa56">Pinterest</a></li>
</ul>
</li>
<li><a href="contact">CONTACT US</a></li>
</ul>
</nav>
</div>
<!-- <div class="col-xl-4 col-lg-4 "> -->
<!-- <div class="main-menu d-none d-lg-block "> -->
<!-- <nav> -->
<ul>
<li>
<div id="google_translate_element" style="position:absolute;right:13.5%;top:10%" class="d-none d-md-block"></div>
<script type="text/javascript">
function googleTranslateElementInit() {
new google.translate.TranslateElement({
pageLanguage: 'en',
layout: google.translate.TranslateElement.InlineLayout.SIMPLE
}, 'google_translate_element');
}
</script>
<script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
</li>
</ul>
</nav>
<!-- </div> -->
</div>
</div>
</div>
<!-- Mobile Menu -->
<div class="col-12 header-stick">
<div class="mobile_menu d-block d-lg-none"></div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Header End -->
</header>