-
Notifications
You must be signed in to change notification settings - Fork 8
/
medicine.html
461 lines (430 loc) · 20.5 KB
/
medicine.html
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
456
457
458
459
460
461
<!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.0">
<title>Medicine PataPharm</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<link rel="stylesheet" href="./css/medicine.css">
<script src="https://kit.fontawesome.com/4e03be8471.js" crossorigin="anonymous"></script>
</head>
<body>
<!-- navbar start -->
<div class="container">
<nav class="navbar navbar-expand-sm navbar-light mt-3 main1">
<a class="navbar-brand"><img src="./images/logo.png" alt="logo" class="logo">PataPharm</a>
<input type="search" class="form-control w-25" placeholder="search for medicine">
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#toggleMobileMenu" aria-expanded="false" aria-label="toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="toggleMobileMenu">
<ul class="navbar-nav ms-auto me-5 text-start ">
<li><a class="nav-link text-dark" href="#">About us</a></li>
<li><a class="nav-link text-dark" href="#footer">Contacts</a></li>
</ul>
</div>
<span class="shopping">
<i class="fas fa-shopping-cart" ></i>
<p>Ksh <span id="price">0 </span></p>
</span>
</nav>
</div>
<!-- navbar end -->
<div align="left" class="container">
<h5>Close to you</h5>
</div>
<!-- list of medicines start -->
<div class="container">
<div class="row">
<div class=" col-sm-6" id="card-separate">
<div class="card d-flex flex-row">
<div class="medicine-img">
<img src="images/medicine/med 1.jpg" alt="" />
</div>
<div class="card-body" >
<!-- id result to fetch searched drug input -->
<h5 class="card-title"><span id="sea"></span> 100ml</h5>
<span class="card-text">Ksh 750</span>
<br/>
<!-- id result2 to fetch location input -->
<span class="card-title2">Transchem Pharmacy <span id="sea1"></span> Phase 1 </span>
<br/>
<!-- Button trigger modal -->
<button id="trans" type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#exampleModal">
Add to Cart
</button>
<!-- Modal -->
<div class="modal fade" id="exampleModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Cart Items</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<table class="table table-dark" id="myTable">
<tr id="product">
<th>Medicine Name</th>
<th>Medicine Price</th>
<th>Pharmacy</th>
<th>Total</th>
</tr>
</table>
<div class="text-end">
<h5 class="mx-3">Grand Total: Ksh<span id="grandTotal"></span></h5>
</div>
</div>
<div class="modal-footer">
<button id="oyole" type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#orderModal" data-bs-dismiss="modal">Order Now</button>
<button onclick="window.location.href='pharmacies.html'" type="button" class="btn btn-secondary" data-bs-dismiss="modal">Cancel</button>
</div>
</div>
</div>
</div>
<!-- Order Now Modal -->
<div class="modal fade" id="orderModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel"> User Details</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<form>
<div class="form-row">
<div class="col-md-4 mb-3 w-100">
<label for="validationServer01">First name</label>
<input id="firstName" type="text" class="form-control is-valid w-100" id="validationServer01" placeholder="First name" value="Mark" required>
<div class="valid-feedback">
Looks good!
</div>
</div>
<div class="col-md-4 mb-3 w-100">
<label for="validationServer02">Last name</label>
<input id="lastName" type="text" class="form-control is-valid w-100" id="validationServer02" placeholder="Last name" value="Otto" required>
<div class="valid-feedback">
Looks good!
</div>
</div>
<div class="col-md-4 mb-3 w-100">
<label for="validationServerUsername">Email Address</label>
<div class="input-group">
<input type="email" class="form-control is-invalid w-100" id="validationServerUsername" placeholder="email" aria-describedby="inputGroupPrepend3" required>
<div class="invalid-feedback">
Please enter your email Address.
</div>
</div>
</div>
</div>
<div class="form-row">
<!-- disable placeholder -->
<div class="form-group">
<label for="disabledTextInput">Location</label>
<input type="text" id="disabledTextInput" class="form-control w-100" placeholder="" disabled>
</div>
</div>
<div class="form-group">
<label for="exampleFormControlTextarea1">Message</label>
<textarea class="form-control" id="exampleFormControlTextarea1" rows="3"></textarea>
</div>
<br>
<div class="modal-footer">
<button id="confirm" type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#successModal" data-bs-dismiss="modal">Order Now</button>
</div>
</form>
</div>
</div>
</div>
</div>
<!------------------------------- SuccessModal ------------------------------------------------------------->
<div class="modal fade" id="successModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header alert alert-danger">
<h5 class="modal-title" id="exampleModalLabel"> Successful!</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" id="close" aria-label="Close"></button>
</div>
<div class="modal-body">
<div>
<form">
<p>Hi <span id="outputName"></span> (: </p>
<p>Your Order has successfully been placed!</p>
</form>
</div>
<div class="modal-footer">
<button type="button" onclick="window.location.href='pharmacies.html'" class="btn btn-secondary" data-bs-dismiss="modal">Cancel</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="card d-flex flex-row">
<div class="medicine-img">
<img src="images/medicine/med 2.webp" alt="" />
</div>
<div class="card-body" >
<!-- id result to fetch searched drug input -->
<h5 class="card-title"><span class="search"></span> 150ml</h5>
<span class="card-text">Ksh 1000</span>
<br/>
<!-- id result2 to fetch location input -->
<span class="card-title1" id="good">Goodlife Pharmacy <span class="search1"></span>near Quickmart </span>
<br/>
<button id="goodLife"type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#exampleModal">
Add to cart
</button>
</div>
</div>
</div>
</div>
</div>
<div class="container">
<div class="row">
<div class="col-sm-6" id="card-separate" >
<div class="card d-flex flex-row">
<div class="medicine-img">
<img src="images/medicine/med 3.webp" alt="" />
</div>
<div class="card-body" >
<!-- id result to fetch searched drug input -->
<h5 class="card-title"><span class="search"></span> 100ml</h5>
<span class="card-text">Ksh 800</span>
<br/>
<!-- id result2 to fetch location input -->
<span class="card-title3">Kam Pharmacy <span class="search1"></span>Phase1</span>
<br/>
<button id="kam" type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#exampleModal">
Add to Cart
</button>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="card d-flex flex-row">
<div class="medicine-img">
<img src="images/medicine/med 4.avif" alt="" />
</div>
<div class="card-body" >
<!-- id result to fetch searched drug input -->
<h5 class="card-title"><span class="search"></span> 75ml</h5>
<span class="card-text">Ksh 520</span>
<br/>
<!-- id result2 to fetch location input -->
<span class="card-title4">Lemuma Pharmacy <span class="search1"></span> Karibu Rd </span>
<br/>
<button id="lemu" type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#exampleModal">
Add to Cart
</button>
</div>
</div>
</div>
</div>
</div>
<div class="container">
<div class="row">
<div class="col-sm-6" id="card-separate">
<div class="card d-flex flex-row">
<div class="medicine-img">
<img src="images/medicine/med 5.jpg" alt="" />
</div>
<div class="card-body" >
<!-- id result to fetch searched drug input -->
<h5 class="card-title"><span class="search"></span> 100ml</h5>
<span class="card-text">Ksh 680</span>
<br/>
<!-- id result2 to fetch location input -->
<span class="card-title5">Harlton Pharmacy <span class="search1"></span> Phase 1 </span>
<br/>
<button id="harl" type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#exampleModal">
Add to Cart
</button>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="card d-flex flex-row">
<div class="medicine-img">
<img src="images/medicine/med 6.jpg" alt="" />
</div>
<div class="card-body" >
<!-- id result to fetch searched drug input -->
<h5 class="card-title"><span class="search"></span> 150ml</h5>
<span class="card-text">Ksh 750</span>
<br/>
<!-- id result2 to fetch location input -->
<span class="card-title6">Kavakava Pharmacy<span class="search1"></span>Police Station</span>
<br/>
<button id="kava" type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#exampleModal">
Add to Cart
</button>
</div>
</div>
</div>
</div>
</div>
<div align="left" class="container" id="other">
<h5>In other Areas</h5>
</div>
<div class="container">
<div class="row">
<div class="col-sm-6" id="card-separate">
<div class="card d-flex flex-row">
<div class="medicine-img">
<img src="images/medicine/med 7.jpg" alt="" />
</div>
<div class="card-body" >
<!-- id result to fetch searched drug input -->
<h5 class="card-title"><span class="search"></span> 100ml</h5>
<span class="card-text">Ksh 750</span>
<br/>
<!-- id result2 to fetch location input -->
<span class="card-title7">Malibu Pharmacy <span class="search1"></span> Phase 1 </span>
<br/>
<button id="malibu" type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#exampleModal">
Add to Cart
</button>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="card d-flex flex-row">
<div class="medicine-img">
<img src="images/medicine/med 8.jpg" alt="" />
</div>
<div class="card-body" >
<!-- id result to fetch searched drug input -->
<h5 class="card-title"><span class="search"></span> 100ml</h5>
<span class="card-text">Ksh 660</span>
<br/>
<!-- id result2 to fetch location input -->
<span class="card-title8">Thorntree Pharmacy <span class="search1"></span> Phase 1 </span>
<br/>
<button id="thorn" type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#exampleModal">
Add to Cart
</button>
</div>
</div>
</div>
</div>
</div>
<div class="container">
<div class="row">
<div class="col-sm-6" id="card-separate">
<div class="card d-flex flex-row">
<div class="medicine-img">
<img src="images/medicine/med 2.webp" alt="" />
</div>
<div class="card-body" >
<!-- id result to fetch searched drug input -->
<h5 class="card-title"><span class="search"></span> 100ml</h5>
<span class="card-text">Ksh 710</span>
<br/>
<!-- id result2 to fetch location input -->
<span class="card-title9">PentaPharm <span class="search1"></span>Phase 1 </span>
<br/>
<button id="penta" type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#exampleModal">
Add to Cart
</button>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="card d-flex flex-row">
<div class="medicine-img">
<img src="images/medicine/med 5.jpg" alt="" />
</div>
<div class="card-body" >
<!-- id result to fetch searched drug input -->
<h5 class="card-title"><span class="search"></span> 100ml</h5>
<span class="card-text">Ksh 755</span>
<br/>
<!-- id result2 to fetch location input -->
<span class="card-title10">Ripple Pharmacy <span class="search1"></span> Phase 1 </span>
<br/>
<button id="ripple" type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#exampleModal">
Add to Cart
</button>
</div>
</div>
</div>
</div>
</div>
<div class="container">
<div class="row">
<div class="col-sm-6" id="card-separate">
<div class="card d-flex flex-row">
<div class="medicine-img">
<img src="images/medicine/med 5.jpg" alt="" />
</div>
<div class="card-body" >
<!-- id result to fetch searched drug input -->
<h5 class="card-title"><span class="search"></span> 100ml</h5>
<span class="card-text">Ksh 710</span>
<br/>
<!-- id result2 to fetch location input -->
<span class="card-title11">Nila Pharmacy <span class="search1"></span> Phase 1 </span>
<br/>
<button id="nila" type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#exampleModal">
Add to Cart
</button>
</div>
</div>
</div>
<div class=" col-sm-6">
<div class="card d-flex flex-row">
<div class="medicine-img">
<img src="images/medicine/med 3.webp" alt="" />
</div>
<div class="card-body" >
<!-- id result to fetch searched drug input -->
<h5 class="card-title"><span class="search"></span> 100ml</h5>
<span class="card-text">Ksh 850</span>
<br/>
<!-- id result2 to fetch location input -->
<span class="card-title12">Neem Pharmacy <span class="search1"></span> Phase 1 </span>
<br/>
<button id="neem" type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#exampleModal">
Add to Cart
</button>
</div>
</div>
</div>
</div>
<!--footer start -->
<div class="container-fluid main2" id="footer">
<div class="row text-white">
<div class="col-md-4 mt-5">
<h4>About PataPharm</h4>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Incidunt tempore
eveniet at nemo eius quas et voluptas expedita fugiat? Atque beatae
numquam impedit, quis enim magni amet repellat asperiores dolorem esse!
</p>
</div>
<div class="col-md-4 mt-5">
<h4>Connect With Us</h4>
<p>0709 388 887 - PataPharm Service inquiries, complaints, ordered & not-delivered.</p>
<p>0709 388 888 - PataPharm Users Online Services.</p>
<p>0709 907 000 - PataPharm Headquarters customer care.</p>
</div>
<div class="col-md-4 mt-5">
<h4>Discover</h4>
<p>Order-Medicine <span class="ms-4">About us</span> <span class="ms-4">contact</span> <span class="ms-4">Our Fleet</span></p>
<p>How we work <span class="ms-4">Benefits</span> <span class="ms-4">FAQs</span> <span class="ms-4">Our Terms</span></p>
<p>Payments <span class="ms-4">Privacy</span> </p>
</div>
</div>
</div>
<!-- footer end -->
</div>
<!-- script -->
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.10.2/dist/umd/popper.min.js" integrity="sha384-7+zCNj/IqJ95wo16oMtfsKbZ9ccEh31eOz1HGyDuCQ6wgnyJNSYdrPa03rtR1zdB" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.min.js" integrity="sha384-QJHtvGhmr9XOIpI6YVutG+2QOK9T+ZnN4kzFN1RtK3zEFEIsxhlmWl5/YESvpZ13" crossorigin="anonymous"></script>
<script src="./js/medicine.js"></script>
<script src="./js/med.js"></script>
</body>
</html>