-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdetails.php
417 lines (314 loc) · 13.8 KB
/
details.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
<?php
include("includes/header.php");
include("includes/db.php");
include("includes/functions.php");
?>
<script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
<link href="https://www.jqueryscript.net/css/jquerysctipttop.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="css/albery.css" type="text/css">
<script src="main.js"></script>
<script src="https://kit.fontawesome.com/d7c3003f21.js" crossorigin="anonymous"></script>
<?php
if(isset($_GET['pro_id'])){
$product_id = $_GET['pro_id'];
$get_product = "select * from products where product_id='$product_id'";
$run_product = mysqli_query($con,$get_product);
$row_products = mysqli_fetch_array($run_product);
$p_cat_id = $row_products['p_cat_id'];
$pro_title = $row_products['product_title'];
$pro_price = $row_products['product_price'];
$pro_sale_price = $row_products['product_sale'];
$pro_desc = $row_products['product_desc'];
$pro_img1 = $row_products['product_img1'];
$pro_img2 = $row_products['product_img2'];
$pro_img3 = $row_products['product_img3'];
$pro_label = $row_products['product_label'];
}
?>
<!-- section -->
<div class="section padding_layout_1 product_detail">
<div class="container">
<div class="row">
<div class="col-md-9">
<div class="container1 pull-left">
<?php
$get_products = "select * from products where product_id='$product_id'";
$run_products = mysqli_query($con,$get_products);
while($row_products=mysqli_fetch_array($run_products)){
$pro_id = $row_products['product_id'];
$pro_title = $row_products['product_title'];
$pro_price = $row_products['product_price'];
$pro_desc = $row_products['product_desc'];
$pro_url = $row_products['product_url'];
$pro_cat = $row_products['product_cat'];
$pro_img1 = $row_products['product_img1'];
$pro_img2 = $row_products['product_img2'];
$pro_img3 = $row_products['product_img3'];
$pro_img4 = $row_products['product_img4'];
$pro_img5 = $row_products['product_img5'];
$pro_img6 = $row_products['product_img6'];
$manufacturer_id = $row_products['manufacturer_id'];
?>
<div class="albery-container">
<div class="albery-wrapper">
<div class="albery-item">
<img src="admin_area/product_images/<?php echo $pro_img1; ?>"width="768" height="455" alt="">
</div>
<div class="albery-item">
<img src="admin_area/product_images/<?php echo $pro_img2; ?>" width="768" height="455" alt="">
</div>
<div class="albery-item">
<img src="admin_area/product_images/<?php echo $pro_img3; ?>" width="768" height="455" alt="">
</div>
<div class="albery-item">
<img src="admin_area/product_images/<?php echo $pro_img4; ?>"width="768" height="455" alt="">
</div>
<div class="albery-item">
<img src="admin_area/product_images/<?php echo $pro_img5; ?>"width="768" height="455" alt="">
</div>
<div class="albery-item">
<img src="admin_area/product_images/<?php echo $pro_img6; ?>"width="768" height="455" alt="">
</div>
</div>
<div class="move-right">
<a href="#" id="rightArrow"></a>
</div>
<div class="move-left">
<a href="#" id="leftArrow"></a>
</div>
</div>
<div class="pagination-container">
<div class="pagination-wrapper">
<div class="pagination-item" data-item="1">
<img src="admin_area/product_images/<?php echo $pro_img1; ?>" alt="">
</div>
<div class="pagination-item" data-item="2">
<img src="admin_area/product_images/<?php echo $pro_img2; ?>" alt="">
</div>
<div class="pagination-item" data-item="3">
<img src="admin_area/product_images/<?php echo $pro_img3; ?>" alt="">
</div>
<div class="pagination-item" data-item="4">
<img src="admin_area/product_images/<?php echo $pro_img4; ?>" alt="">
</div>
<div class="pagination-item" data-item="5">
<img src="admin_area/product_images/<?php echo $pro_img5; ?>" alt="">
</div>
<div class="pagination-item" data-item="6">
<img src="admin_area/product_images/<?php echo $pro_img6; ?>" alt="">
</div>
</div>
</div>
</div>
<script src="js/albery.js"></script>
<script>
$(".albery-container").albery({
speed: 500,
imgWidth: 600,
});
</script>
<div class=" col-md-9 product_detail_side detail_style1">
<div class="product-heading">
<h2 class="product-detail-side"><?php echo $pro_title; ?> <h4><i class="fas fa-map-marker-alt"> <?php echo $pro_url; ?></i></h4></h2>
</div>
<div class="product-detail-side"> <span class="new-price">Sh.<?php echo $pro_price; ?></span> <span class="rating"> <i class="fa fa-star" aria-hidden="true"></i> <i class="fa fa-star" aria-hidden="true"></i> <i class="fa fa-star" aria-hidden="true"></i> <i class="fa fa-star" aria-hidden="true"></i> <i class="fa fa-star-o" aria-hidden="true"></i> </span> <span class="review">(5 reviews)</span> </div>
<div class="detail-contant">
<p> <?php echo $pro_desc; ?> <br></p>
<div class="detail-contant1">
<ul>
<h4 class="service-heading"><i class="fas fa-broom"> Committed to enhanced cleaning process.</i> </h4>
<h4 class="service-heading"><i class="fas fa-wifi"> Available to Customers Exclusively</i> </h4>
<h4 class="service-heading"><i class="fas fa-calendar-times"> Add your trip dates to get the cancellation details</i> </h4>
<h4 class="service-heading"><i class="fas fa-bookmark"> The host doesn’t allow pets or parties (rules)</i> </h4>
</ul>
</div>
</div>
<div class="share-post"> <a href="#" class="share-text">Share</a>
<ul class="social_icons">
<li><a href="#"><i class="fa fa-facebook" aria-hidden="true"></i></a></li>
<li><a href="#"><i class="fa fa-twitter" aria-hidden="true"></i></a></li>
<li><a href="#"><i class="fa fa-google-plus" aria-hidden="true"></i></a></li>
<li><a href="#"><i class="fa fa-instagram" aria-hidden="true"></i></a></li>
<li><a href="#"><i class="fa fa-linkedin" aria-hidden="true"></i></a></li>
</ul>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div class="full">
<div class="main_heading text_align_left" style="margin-top: 35px;">
<h3>Related Air-Bnb's in <?php echo $pro_url; ?> </h3>
</div>
</div>
</div>
</div>
<div class="row">
<?php
$get_products = "select * from products ORDER BY product_cat asc LIMIT 0,3" ;
$run_products = mysqli_query($con,$get_products);
while($row_products=mysqli_fetch_array($run_products)){
$pro_id = $row_products['product_id'];
$pro_title = $row_products['product_title'];
$pro_price = $row_products['product_price'];
$pro_img1 = $row_products['product_img1'];
$manufacturer_id = $row_products['manufacturer_id'];
echo "
<div class='col-md-4 col-sm-6 col-xs-12 margin_bottom_30_all'>
<div class='product_list'>
<a href='details.php?pro_id=$pro_id'>
<img class='img-responsive' src='admin_area/product_images/$pro_img1'>
</a>
<div class='sale-box'>
<span class='on_sale title_shop'>Sh. $pro_price</span>
</div>
<div class='text'>
<center>
<p class='btn btn-outline-warning'> $manufacturer_id </p>
</center>
<div class='center'>
<h4><a href='details.php?pro_id=$pro_id'> $pro_title </a></h4>
</div>
<p class='button'>
<a class='p-2 form-control px-3' href='details.php?pro_id=$pro_id'>
View Details
</a>
</p>
</div>
</div>
</div>
";
}
?>
</div>
</div>
<div class="col-md-3">
<div class="side_bar">
<div class="side_bar_blog">
<h4>OUR SERVICES</h4>
<div class="categary">
<ul>
<li><a href="services.php"><i class="fa fa-angle-right"></i> Hotel Reservations</a></li>
<li><a href="services.php"><i class="fa fa-angle-right"></i> Safari Tours</a></li>
<li><a href="services.php"><i class="fa fa-angle-right"></i> Conference Facilities</a></li>
<li><a href="services.php"><i class="fa fa-angle-right"></i> Corporate Incentices</a></li>
<li><a href="services.php"><i class="fa fa-angle-right"></i> Ticketing</a></li>
</ul>
</div>
</div>
<div class="side_bar_blog">
<h4>SAFARI PACKAGES</h4>
<div class="categary">
<ul>
<li><a href="accomodation.php"><i class="fa fa-angle-right"></i>A Trip to Diani</a></li>
<li><a href="accomodation.php"><i class="fa fa-angle-right"></i>Nanyuki daytrip</a></li>
<li><a href="accomodation.php"><i class="fa fa-angle-right"></i> Amboseli camping trip</a></li>
<li><a href="accomodation.php"><i class="fa fa-angle-right"></i>Masai Mara</a></li>
<li><a href="accomodation.php"><i class="fa fa-angle-right"></i>Naivasha day trip</a></li>
<li><a href="accomodation.php"><i class="fa fa-angle-right"></i>Oldarpoi mara camp</a></li>
<li><a href="accomodation.php"><i class="fa fa-angle-right"></i>Tsavo West</a></li>
</ul>
</div>
</div>
<div class="side_bar_blog">
<h4>OUR PARTNERS</h4>
<div class="tags">
<ul>
<li><a href="#">ASTA</a></li>
<li><a href="#">KATO</a></li>
<li><a href="#">EATN</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script src='js/hizoom.js'></script>
<script>
$('.hi1').hiZoom({
width: 300,
position: 'right'
});
$('.hi2').hiZoom({
width: 400,
position: 'right'
});
</script>
<style>
.sale-box,
.sale-box.two,
.sale-box.three {
position: absolute;
top: 0;
overflow: hidden;
height: 130px;
width: 143px;
text-align: center;
z-index: 0;
right: 0;
border-top-right-radius: 0.7em;
-o-border-top-right-radius: 0.7em;
-moz-border-top-right-radius: 0.7em;
-webkit-border-top-right-radius: 0.7em;
}
.detail-contant1 .service-heading{
font-family: 'Montserrat', sans-serif;
}
.product-detail-side .review{
font-family: 'Montserrat', sans-serif;
}
.sale-box span.on_sale {
font-size: 14px;
color: #444;
background: #ffd400;
text-transform: uppercase;
padding: 58px 35px 17px 40px;
width: 281px;
text-align: center;
display: block;
position: absolute;
left: -47px;
top: -41px;
-moz-transition: all 0.5s ease;
-webkit-transition: all 0.5s ease;
transition: all 0.5s ease;
-webkit-transform: rotate(-44deg);
-ms-transform: rotate(-44deg);
transform: rotate(40deg);
box-shadow: 3px -4px 13px 3px rgba(0, 0, 0, 0.75);
}
.sale-box.two.sale-box span.on_sale {
background: #fa6e6f;
}
.sale-box.three.sale-box span.on_sale {
background: #05aea7;
}
.stars{
margin-top: 10px;
margin-bottom: 10px;
}
.stars i{
color: #f1c40f;
font-size: 20px;
}
.px-3{
background: #04dbdd none repeat scroll;
color: #fff;
font-weight: bolder;
font-size: 16px;
text-transform: uppercase;
-webkit-transition: all 0.4s ease 0s;
transition: all 0.4s ease 0s;
width: 100%;
border-radius: 0px;
text-align: center; margin: auto;
}
.px-3:hover{
color: #000;
}
</style>
<?php
include("includes/footer.php");
?>
<?php } ?>