-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathroom_details.php
113 lines (104 loc) · 3.83 KB
/
room_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
<!DOCTYPE html>
<html>
<head>
<title>La Velle</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js"></script>
<link href="css/style.css"rel="stylesheet"/>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link href="https://fonts.googleapis.com/css?family=Abril+Fatface" rel="stylesheet">
</head>
<body style="margin-top:50px;">
<?php
include('Menu Bar.php')
?><br><br><br>
<div class="container-fluid"style="margin-top:2%;">
<div class="continer">
<div class="row">
<div class="col-sm-2"></div>
<div class="col-sm-7">
<div id="myCarousel" class="carousel slide" data-ride="carousel">
<!-- Indicators -->
<ol class="carousel-indicators">
<li data-target="#myCarousel" data-slide-to="0" class="active"></li>
<li data-target="#myCarousel" data-slide-to="1"></li>
<li data-target="#myCarousel" data-slide-to="2"></li>
<li data-target="#myCarousel" data-slide-to="3"></li>
<li data-target="#myCarousel" data-slide-to="4"></li>
<li data-target="#myCarousel" data-slide-to="5"></li>
</ol>
<!-- Wrapper for slides -->
<div class="carousel-inner">
<div class="item active">
<img src="image/Haircut/img1.jpg"class="thumbnail" alt="img1">
</div>
<div class="item">
<img src="image/Haircut/img2.jpg"class="thumbnail" alt="im2">
</div>
<div class="item">
<img src="image/Haircut/img3.jpg"class="thumbnail" alt="im3">
</div>
<div class="item">
<img src="image/Haircut/img4.jpg"class="thumbnail" alt="img4">
</div>
<div class="item">
<img src="image/Haircut/img5.jpg"class="thumbnail" alt="img5">
</div>
</div>
<!-- Left and right controls -->
<a class="left carousel-control" href="#myCarousel" data-slide="prev">
<span class="glyphicon glyphicon-chevron-left"></span>
<span class="sr-only">Previous</span>
</a>
<a class="right carousel-control" href="#myCarousel" data-slide="next">
<span class="glyphicon glyphicon-chevron-right"></span>
<span class="sr-only">Next</span>
</a>
</div>
<?php
include('connection.php');
$room_id=$_GET['room_id'];
$sql=mysqli_query($con,"select * from rooms where room_id='$room_id' ");
$res=mysqli_fetch_assoc($sql);
?>
<h2 class="Ac_Room_Text"><?php echo $res['type']; ?></h2>
<h3 class="Ac_Room_Text"><?php echo $res['price']; ?></h3>
<p class="text-justify">
<?php echo $res['details']; ?>
</p>
<div class="row">
<h2>Amenities & Facilities</h2>
<img src="image/icon/wifi.png"class="img-responsive">
<a href="Login.php" class="btn btn-danger">Reserve Now</a><br><br>
</div>
</div>
<div class="col-sm-3">
<div class="panel panel-primary">
<div class="panel-heading">
<h4 align="center">Service Type</h4>
</div><br>
<div class="panel-body-right text-center">
<!--Fatch Mysql Database Select Query Room Details -->
<?php
include('connection.php');
$sql1=mysqli_query($con,"select * from rooms");
while($result1= mysqli_fetch_assoc($sql1))
{
?>
<a href="room_details.php?room_id=<?php echo $result1['room_id']; ?>"><?php echo $result1['type']; ?></a><hr>
<?php } ?>
<!--Fatch Mysql Database Select Query Room Details -->
</div>
</div>
</div>
</div>
</div>
</div>
<?php
include('footer.php')
?>
</body>
</html>