-
Notifications
You must be signed in to change notification settings - Fork 0
/
laptop.php
455 lines (421 loc) · 22 KB
/
laptop.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
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
<?php
//making connection with database
DEFINE('DB_USERNAME', 'root');
DEFINE('DB_PASSWORD', '');
DEFINE('DB_HOST', 'localhost:3306');
DEFINE('DB_DATABASE', 'db');
$mysqli = new mysqli(DB_HOST, DB_USERNAME, DB_PASSWORD, DB_DATABASE);
if(isset($_POST["submit"]))
{
//getting values from the html input types
$name = $_POST['name'];
$number = $_POST['number'];
$email = $_POST['email'];
$p_name = "LAPTOP ACCESSORIES | ".$_POST['p_name'];
//inserting values in data
$sql = "INSERT INTO enquirytable(p_name, name, email, number) VALUES ('$p_name','$name','$email','$number')";
if (mysqli_query($mysqli, $sql))
{
echo '<script>alert("Thanks for your Enquiry!")</script>';
}
else
{
echo "Error: " . $sql . mysqli_error($mysqli);
}
}?>
<html>
<head>
<title>LAPTOP ACCESSORIES | KaShop</title>
<link rel="stylesheet" type="text/css" href="stylee.css">
<link rel = "icon" type = "image/png" href = "images/icon.png"><!--TITLE ICON-->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css"><!--NAVBAR-->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"><!--SOCIAL ICONS-->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script><!--NAVBAR-->
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.min.js"></script><!--NAVBAR-->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js"></script><!--NAVBAR-->
<script>
function openForm(a) {
var a;
document.getElementById(""+a).style.display = "block";
}
function closeForm(b) {
var b;
document.getElementById(""+b).style.display = "none";
}
</script>
</head>
<body>
<!--NAVBAR-->
<div id="navbar">
<nav class="navbar navbar-expand-sm bg-dark navbar-dark fixed-top">
<a class="navbar-brand" href="home.html"><img src="images/logo.png" width="100px"></a>
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link" href="home.html">Home</a>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbardrop" data-toggle="dropdown">Shop</a>
<div class="dropdown-menu">
<a class="dropdown-item" href="ayurvedic.php">Ayurvedic</a>
<a class="dropdown-item" href="breakfast.php">Breakfast</a>
<a class="dropdown-item" href="fashion.php">Beauty & fashion</a>
<a class="dropdown-item" href="grains.php">Grains & Lentils</a>
<a class="dropdown-item" href="sports.php">Sports</a>
<a class="dropdown-item" href="fruits.php">Fruits & Vegetables</a>
<a class="dropdown-item" href="mobile.php">Mobile Accessories</a>
<a class="dropdown-item" href="laptop.php">Laptop Accessories</a>
</div>
</li>
<li class="nav-item">
<a class="nav-link" href="laptop.php#about">About</a>
</li>
<li class="nav-item">
<a class="nav-link" href="contact.php">Contact</a>
</li>
</ul>
</nav>
</div>
<!--ITEMS-->
<div class="products" id="products">
<br><br>
<h2><center>☆-----LAPTOP & ACCESSORIES-----☆</center></h2>
<section class="items" style="display: inline;">
<article class="items-section">
<div class="items-flip-card">
<div class="items-flip-card-inner">
<div class="items-flip-card-front">
<img src="laptop/AirCase laptop bag sleeve.jpg" alt="Avatar" class="items-image">
</div>
<div class="items-flip-card-back">
<div class="items-text"><p class="items-text-title">AirCase laptop bag sleeve</p>
<p class="about-text">
Lorem ipsum dolor sit amet consectetur adipisicing elit. Corrupti,
dolores.
</p>
<button class="enquiry-button" onclick="openForm('myForm')">ENQUIRY</button>
<div class="form-popup" id="myForm">
<form action="" method="post" class="form-container">
<h3>ENQUIRY</h3>
<h6 style="color:#000">Product:<input type="text" name="p_name" id="p_name" value="AirCase laptop bag sleeve" readonly></h6>
<input type="text" placeholder="Enter Your Name" name="name" id="name" required>
<input type="email" placeholder="Enter your Mail ID" id="email" name="email" pattern="[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,}$">
<input type="tel" placeholder="Enter Your Mobile Number" name="number" id="number" required>
<button type="submit" name="submit" id="submit" class="btn">Submit</button>
<button type="button" class="btn cancel" onclick="closeForm('myForm')">Close</button>
</form>
</div>
</div>
</div>
</div>
</div>
</article>
<article class="items-section">
<div class="items-flip-card">
<div class="items-flip-card-inner">
<div class="items-flip-card-front">
<img src="laptop/Dell Inspiron 15 3584 i3.jpg" alt="Avatar" class="items-image">
</div>
<div class="items-flip-card-back">
<div class="items-text"><p class="items-text-title">Dell Inspiron 15 3584 i3</p>
<p class="about-text">
Lorem ipsum dolor sit amet consectetur adipisicing elit. Corrupti,
dolores.
</p>
<button class="enquiry-button" onclick="openForm('myForm1')">ENQUIRY</button>
<div class="form-popup" id="myForm1">
<form action="" method="post" class="form-container">
<h3>ENQUIRY</h3>
<h6 style="color:#000">Product:<input type="text" name="p_name" id="p_name" value="Dell Inspiron 15 3584 i3" readonly></h6>
<input type="text" placeholder="Enter Your Name" name="name" id="name" required>
<input type="email" placeholder="Enter your Mail ID" id="email" name="email" pattern="[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,}$">
<input type="tel" placeholder="Enter Your Mobile Number" name="number" id="number" required>
<button type="submit" name="submit" id="submit" class="btn">Submit</button>
<button type="button" class="btn cancel" onclick="closeForm('myForm1')">Close</button>
</form>
</div>
</div>
</div>
</div>
</div>
</article>
<article class="items-section">
<div class="items-flip-card">
<div class="items-flip-card-inner">
<div class="items-flip-card-front">
<img src="laptop/HK-8100 wireless gaming keyboard with mouse.jpg" alt="Avatar" class="items-image">
</div>
<div class="items-flip-card-back">
<div class="items-text"><p class="items-text-title">HK-8100 wireless gaming keyboard with mouse</p>
<p class="about-text">
Lorem ipsum dolor sit amet consectetur adipisicing elit. Corrupti,
dolores.
</p>
<button class="enquiry-button" onclick="openForm('myForm2')">ENQUIRY</button>
<div class="form-popup" id="myForm2">
<form action="" method="post" class="form-container">
<h3>ENQUIRY</h3>
<h6 style="color:#000">Product:<input type="text" name="p_name" id="p_name" value="HK-8100 wireless gaming keyboard with mouse" readonly></h6>
<input type="text" placeholder="Enter Your Name" name="name" id="name" required>
<input type="email" placeholder="Enter your Mail ID" id="email" name="email" pattern="[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,}$">
<input type="tel" placeholder="Enter Your Mobile Number" name="number" id="number" required>
<button type="submit" name="submit" id="submit" class="btn">Submit</button>
<button type="button" class="btn cancel" onclick="closeForm('myForm2')">Close</button>
</form>
</div>
</div>
</div>
</div>
</div>
</article>
<article class="items-section">
<div class="items-flip-card">
<div class="items-flip-card-inner">
<div class="items-flip-card-front">
<img src="laptop/Logitch K230 Compacy wireless keyboard.jpg" alt="Avatar" class="items-image">
</div>
<div class="items-flip-card-back">
<div class="items-text"><p class="items-text-title">Logitch K230 Compacy wireless keyboard</p>
<p class="about-text">
Lorem ipsum dolor sit amet consectetur adipisicing elit. Corrupti,
dolores.
</p>
<button class="enquiry-button" onclick="openForm('myForm3')">ENQUIRY</button>
<div class="form-popup" id="myForm3">
<form action="" method="post" class="form-container">
<h3>ENQUIRY</h3>
<h6 style="color:#000">Product:<input type="text" name="p_name" id="p_name" value="Logitch K230 Compacy wireless keyboard" readonly></h6>
<input type="text" placeholder="Enter Your Name" name="name" id="name" required>
<input type="email" placeholder="Enter your Mail ID" id="email" name="email" pattern="[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,}$">
<input type="tel" placeholder="Enter Your Mobile Number" name="number" id="number" required>
<button type="submit" name="submit" id="submit" class="btn">Submit</button>
<button type="button" class="btn cancel" onclick="closeForm('myForm3')">Close</button>
</form>
</div>
</div>
</div>
</div>
</div>
</article>
<article class="items-section">
<div class="items-flip-card">
<div class="items-flip-card-inner">
<div class="items-flip-card-front">
<img src="laptop/Logitch M235 wireless mouse.jpg" alt="Avatar" class="items-image">
</div>
<div class="items-flip-card-back">
<div class="items-text"><p class="items-text-title">Logitch M235 wireless mouse</p>
<p class="about-text">
Lorem ipsum dolor sit amet consectetur adipisicing elit. Corrupti,
dolores.
</p>
<button class="enquiry-button" onclick="openForm('myForm4')">ENQUIRY</button>
<div class="form-popup" id="myForm4">
<form action="" method="post" class="form-container">
<h3>ENQUIRY</h3>
<h6 style="color:#000">Product:<input type="text" name="p_name" id="p_name" value="Logitch M235 wireless mouse" readonly></h6>
<input type="text" placeholder="Enter Your Name" name="name" id="name" required>
<input type="email" placeholder="Enter your Mail ID" id="email" name="email" pattern="[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,}$">
<input type="tel" placeholder="Enter Your Mobile Number" name="number" id="number" required>
<button type="submit" name="submit" id="submit" class="btn">Submit</button>
<button type="button" class="btn cancel" onclick="closeForm('myForm4')">Close</button>
</form>
</div>
</div>
</div>
</div>
</div>
</article>
<article class="items-section">
<div class="items-flip-card">
<div class="items-flip-card-inner">
<div class="items-flip-card-front">
<img src="laptop/MAXOAK Laptop Power Bank 185Wh.jpg" alt="Avatar" class="items-image">
</div>
<div class="items-flip-card-back">
<div class="items-text"><p class="items-text-title">MAXOAK Laptop Power Bank 185Wh</p>
<p class="about-text">
Lorem ipsum dolor sit amet consectetur adipisicing elit. Corrupti,
dolores.
</p>
<button class="enquiry-button" onclick="openForm('myForm5')">ENQUIRY</button>
<div class="form-popup" id="myForm5">
<form action="" method="post" class="form-container">
<h3>ENQUIRY</h3>
<h6 style="color:#000">Product:<input type="text" name="p_name" id="p_name" value="MAXOAK Laptop Power Bank 185Wh" readonly></h6>
<input type="text" placeholder="Enter Your Name" name="name" id="name" required>
<input type="email" placeholder="Enter your Mail ID" id="email" name="email" pattern="[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,}$">
<input type="tel" placeholder="Enter Your Mobile Number" name="number" id="number" required>
<button type="submit" name="submit" id="submit" class="btn">Submit</button>
<button type="button" class="btn cancel" onclick="closeForm('myForm5')">Close</button>
</form>
</div>
</div>
</div>
</div>
</div>
</article>
<article class="items-section">
<div class="items-flip-card">
<div class="items-flip-card-inner">
<div class="items-flip-card-front">
<img src="laptop/Office laptop bag.jpg" alt="Avatar" class="items-image">
</div>
<div class="items-flip-card-back">
<div class="items-text"><p class="items-text-title">Office laptop bag</p>
<p class="about-text">
Lorem ipsum dolor sit amet consectetur adipisicing elit. Corrupti,
dolores.
</p>
<button class="enquiry-button" onclick="openForm('myForm6')">ENQUIRY</button>
<div class="form-popup" id="myForm6">
<form action="" method="post" class="form-container">
<h3>ENQUIRY</h3>
<h6 style="color:#000">Product:<input type="text" name="p_name" id="p_name" value="Office laptop bag" readonly></h6>
<input type="text" placeholder="Enter Your Name" name="name" id="name" required>
<input type="email" placeholder="Enter your Mail ID" id="email" name="email" pattern="[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,}$">
<input type="tel" placeholder="Enter Your Mobile Number" name="number" id="number" required>
<button type="submit" name="submit" id="submit" class="btn">Submit</button>
<button type="button" class="btn cancel" onclick="closeForm('myForm6')">Close</button>
</form>
</div>
</div>
</div>
</div>
</div>
</article>
<article class="items-section">
<div class="items-flip-card">
<div class="items-flip-card-inner">
<div class="items-flip-card-front">
<img src="laptop/ScanDisk 32gb pendrive.jpg" alt="Avatar" class="items-image">
</div>
<div class="items-flip-card-back">
<div class="items-text"><p class="items-text-title">ScanDisk 32gb pendrive</p>
<p class="about-text">
Lorem ipsum dolor sit amet consectetur adipisicing elit. Corrupti,
dolores.
</p>
<button class="enquiry-button" onclick="openForm('myForm7')">ENQUIRY</button>
<div class="form-popup" id="myForm7">
<form action="" method="post" class="form-container">
<h3>ENQUIRY</h3>
<h6 style="color:#000">Product:<input type="text" name="p_name" id="p_name" value="ScanDisk 32gb pendrive" readonly></h6>
<input type="text" placeholder="Enter Your Name" name="name" id="name" required>
<input type="email" placeholder="Enter your Mail ID" id="email" name="email" pattern="[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,}$">
<input type="tel" placeholder="Enter Your Mobile Number" name="number" id="number" required>
<button type="submit" name="submit" id="submit" class="btn">Submit</button>
<button type="button" class="btn cancel" onclick="closeForm('myForm7')">Close</button>
</form>
</div>
</div>
</div>
</div>
</div>
</article>
<article class="items-section">
<div class="items-flip-card">
<div class="items-flip-card-inner">
<div class="items-flip-card-front">
<img src="laptop/Targus laptop charger.png" alt="Avatar" class="items-image">
</div>
<div class="items-flip-card-back">
<div class="items-text"><p class="items-text-title">Targus laptop charger</p>
<p class="about-text">
Lorem ipsum dolor sit amet consectetur adipisicing elit. Corrupti,
dolores.
</p>
<button class="enquiry-button" onclick="openForm('myForm8')">ENQUIRY</button>
<div class="form-popup" id="myForm8">
<form action="" method="post" class="form-container">
<h3>ENQUIRY</h3>
<h6 style="color:#000">Product:<input type="text" name="p_name" id="p_name" value="Targus laptop charger" readonly></h6>
<input type="text" placeholder="Enter Your Name" name="name" id="name" required>
<input type="email" placeholder="Enter your Mail ID" id="email" name="email" pattern="[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,}$">
<input type="tel" placeholder="Enter Your Mobile Number" name="number" id="number" required>
<button type="submit" name="submit" id="submit" class="btn">Submit</button>
<button type="button" class="btn cancel" onclick="closeForm('myForm8')">Close</button>
</form>
</div>
</div>
</div>
</div>
</div>
</article>
<article class="items-section">
<div class="items-flip-card">
<div class="items-flip-card-inner">
<div class="items-flip-card-front">
<img src="laptop/X8 super quite wireless gaming mouse.jpg" alt="Avatar" class="items-image">
</div>
<div class="items-flip-card-back">
<div class="items-text"><p class="items-text-title">X8 super quite wireless gaming mouse</p>
<p class="about-text">
Lorem ipsum dolor sit amet consectetur adipisicing elit. Corrupti,
dolores.
</p>
<button class="enquiry-button" onclick="openForm('myForm9')">ENQUIRY</button>
<div class="form-popup" id="myForm9">
<form action="" method="post" class="form-container">
<h3>ENQUIRY</h3>
<h6 style="color:#000">Product:<input type="text" name="p_name" id="p_name" value="X8 super quite wireless gaming mouse" readonly></h6>
<input type="text" placeholder="Enter Your Name" name="name" id="name" required>
<input type="email" placeholder="Enter your Mail ID" id="email" name="email" pattern="[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,}$">
<input type="tel" placeholder="Enter Your Mobile Number" name="number" id="number" required>
<button type="submit" name="submit" id="submit" class="btn">Submit</button>
<button type="button" class="btn cancel" onclick="closeForm('myForm9')">Close</button>
</form>
</div>
</div>
</div>
</div>
</div>
</article>
<div style="clear: both;"></div>
</section>
<br>
</div>
<!--ABOUT-->
<div class="about" id="about">
<br><br><h2><center>Find Us 🔎</center></h2>
<section class="about-section-center-clearfix" style="display: inline; ">
<article class="findUs-map">
<!--left column-->
<br>
<iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d29814.98035516466!2d70.3416405285634!3d20.917446907747347!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x3bfd32308996ab5b%3A0xf285471b09bfa777!2sVeraval%2C%20Gujarat!5e0!3m2!1sen!2sin!4v1593443116855!5m2!1sen!2sin" width="600" height="450" frameborder="0" style="border:0;" allowfullscreen="" aria-hidden="false" tabindex="0" ></iframe>
<br><br>
</article>
<!-- right column -->
<article class="findUs-img">
<!-- second column -->
<br>
<!-- section title -->
<div class="opening-container">
<div class="opening-text ">
<h3>O P E N H O U R S ⏳</h3>
<p>
<strong>Monday: Closed</strong><br>
<strong>Tuesday to Friday</strong><br>
7:00 AM - 9:00 PM<br>
<strong>Saturday & Sunday</strong><br>
11:00 AM - 10:00 PM
</p>
</div>
</div>
<!--end section title -->
</article>
<div style="clear: both;"></div>
</section>
<center>
<div class="findUs-social">
<a href="#" title="Facebook"><i class="fa fa-facebook-official" style="font-size:36px"></i></a>
<a href="#" title="Instagram"><i class="fa fa-instagram" style="font-size:36px"></i></a>
<a href="#" title="LinkedIn"><i class="fa fa-linkedin-square" style="font-size:36px"></i></a>
<a href="#" title="Google"><i class="fa fa-google" style="font-size:36px"></i></a>
<a href="#" title="GitHub"><i class="fa fa-github" style="font-size:36px"></i></a>
</div><br>
<h5 class="fontsettings">Copyright © <script>document.write(new Date().getFullYear())</script> | KaShop</h5><br><br>
</center>
</div>
</body>
</html>