-
Notifications
You must be signed in to change notification settings - Fork 0
/
room.php
147 lines (97 loc) · 4.1 KB
/
room.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
<?php
include_once 'admin/include/class.user.php';
$user=new User();
?>
<!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">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<title>Hotel Booking</title>
<!-- Bootstrap -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="http://www.w3schools.com/lib/w3.css">
<style>
.well {
background: rgba(0, 0, 0, 0.7);
border: none;
height: 200px;
}
body {
background-image: url('images/home_bg.jpg');
background-repeat: no-repeat;
background-attachment: fixed;
}
h4 {
color: #ffbb2b;
}
h6
{
color: navajowhite;
font-family: monospace;
}
</style>
</head>
<body>
<div class="container">
<img class="img-responsive" src="images/home_banner.jpg" style="width:100%; height:180px;">
<nav class="navbar navbar-inverse">
<div class="container-fluid">
<ul class="nav navbar-nav">
<li><a href="index.php">Home</a></li>
<li class="active"><a href="room.php">Room & Facilities</a></li>
<li><a href="reservation.php">Online Reservation</a></li>
<li><a href="review.php">Review</a></li>
<li><a href="admin.php">Admin</a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li><a href="http://www.facebook.com"><img src="images/facebook.png"></a></li>
<li><a href="http://www.twitter.com"><img src="images/twitter.png"></a></li>
</ul>
</div>
</nav>
<?php
$sql="SELECT * FROM room_category";
$result = mysqli_query($user->db, $sql);
if($result)
{
if(mysqli_num_rows($result) > 0)
{
// ********************************************** Show Room Category***********************
while($row = mysqli_fetch_array($result))
{
echo "
<div class='row'>
<div class='col-md-3'></div>
<div class='col-md-6 well'>
<h4>".$row['roomname']."</h4><hr>
<h6>No of Beds: ".$row['no_bed']." ".$row['bedtype']." bed.</h6>
<h6>Facilities: ".$row['facility']."</h6>
<h6>Price: ".$row['price']." tk/night.</h6>
</div>
<div class='col-md-3'>
<a href='./booknow.php?roomname=".$row['roomname']."'><button class='btn btn-primary button'>Book Now</button> </a>
</div>
</div>
"; //echo end
}
}
else
{
echo "NO Data Exist";
}
}
else
{
echo "Cannot connect to server".$result;
}
?>
</div>
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="js/bootstrap.min.js"></script>
</body>
</html>