-
Notifications
You must be signed in to change notification settings - Fork 1
/
restaurant-details.php
72 lines (70 loc) · 1.96 KB
/
restaurant-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
<?php
$menu = "restaurant";
$page_title = "Restaurant Details";
include("header.php");
$restaurantId = (isset($_GET['restaurant']) ? $_GET['restaurant']: $_GET['p']);
$db = new Db();
$restaurantObg = new RsGlobal($db->con,'restaurant');
$restaurant = $restaurantObg->Get($restaurantId);
$name = "";
$description = "";
$address = "";
$thumbnail = "";
$facility = [];
$phone = "";
$division = "";
$gmap = "";
$nearby_travel_place = [];
while ($row = $restaurant->fetch_assoc()) {
$name = $row['name'];
$description = $row['description'];
$address = $row['address'];
$gmap = $row['gmap'];
$thumbnail = $row['thumbnail'];
$phone = $row['phone'];
$division = $row['division'];
}
?>
<section class="banner-w3layouts-bottom py-lg-5 py-3">
<div class="container py-lg-4 py-3">
<div class="row">
<!--left-->
<div class="col-lg-8 left-blog-info text-left">
<div class="blog-grid-top">
<div class="b-grid-top">
<div class="blog_info_left_grid">
<a href="single.html">
<img src="<?php echo $thumbnail; ?>" class="img-fluid" alt="">
</a>
</div>
</div>
<h3>
<a href=""><?php echo $name; ?></a>
</h3>
<div class="details_contents">
<p><?php echo $description; ?></p>
</div>
<div class="google_map">
<iframe src="<?php echo $gmap; ?>" width="600" height="450" frameborder="0" style="border:0;" allowfullscreen="" aria-hidden="false" tabindex="0"></iframe>
</div>
</div>
</div>
<!--right-->
<aside class="col-lg-4 right-blog-con text-right rs_sidebar">
<div class="right-blog-info text-left">
<div class="rs_sidebar_box">
<h4 class="title">Address</h4>
<p><?php echo $address; ?></p>
<h4 class="title">Phone</h4>
<p><?php echo $phone; ?></p>
<h4 class="title">Division</h4>
<p><?php echo $division; ?></p>
</div>
</div>
</aside>
</div>
</div>
</section>
<?php
include("footer.php");
?>