-
Notifications
You must be signed in to change notification settings - Fork 0
/
rooms.php
138 lines (101 loc) · 4.55 KB
/
rooms.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
<?php
session_start();
if (!isset($_SESSION['username'])) {
header('location:login.php');
}
$con = mysqli_connect('localhost:3307' , 'root' , 'root');
mysqli_select_db($con , 'tourist');
$xyz = $_GET['hotel_number'];
$s = "SELECT * FROM rooms where rooms.room_id = $xyz; ";
$result = mysqli_query($con , $s);
$resultCheck = mysqli_num_rows($result);
?>
<!DOCTYPE html>
<html>
<head>
<title>Our Rooms</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link href='https://fonts.googleapis.com/css?family=Cinzel Decorative' rel='stylesheet'>
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.2/css/all.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap">
<link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.5.0/css/bootstrap.min.css" rel="stylesheet">
<link href="https://cdnjs.cloudflare.com/ajax/libs/mdbootstrap/4.19.1/css/mdb.min.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="rooms.css">
</head>
<body>
<div class="container-fluid">
<div class="row">
<div class="card first mt-1">
<img src="images/left1.jpg" alt="photo" style="width:100%">
<div class="dropdown">
<a class="dropdown" data-toggle="dropdown">
<p style="font-weight: 900; font-family: 'Cinzel Decorative'; color: #000;">
<?php echo $_SESSION['username']; ?>
<i class="fas fa-angle-down ml-2"></i>
</p>
</a>
<div class="dropdown-menu">
<a class="dropdown-item" href="logout.php"> Logout </a>
</div>
</div>
</div>
<h1> Our Rooms </h1><br>
</div>
<div class="row ml-4">
<?php
if ($resultCheck > 0) {
while ( $row = mysqli_fetch_assoc($result)) {
?>
<div class="col-2 ml-5">
<div class="card card-image mt-4 detail" style="width: 25vw; height: 71vh;">
<?php echo '<div class="text-white text-center d-flex py-5 px-4"
style="background: url(data:image;base64,'.base64_encode($row['image']).'); background-repeat: no-repeat; background-size: cover;">' ?>
<div class="mt-5 pt-3">
<br><br>
<p class=""> </p>
</div>
</div>
<div class="card-body">
<h6 class="card-tittle black-text ml-3"><b> <?php echo $row['room_type']; ?> </b><br>
<b style="font-size: 10px;">4.0 <span class="fa fa-star checked"></span>
<span class="fa fa-star checked"></span>
<span class="fa fa-star checked"></span>
<span class="fa fa-star"></span>
<span class="fa fa-star"></span></b></h6>
<p class="card-text black-text mr-3"> <?php echo $row['description']; ?></p>
</div>
<div class="card-footer">
<a href="details.php">
<button type="submit" class="btn btn-md btn-block active py-3"> Select This Room <i class="fas fa-angle-double-right ml-2"></i></button>
</a>
</div>
</div>
</div>
<div class="col-1 ml-5 mt-5 pl-5">
<div class="sidebar">
<ul class="p-0 pt-4">
<li class="py-1 text-center"><b><i class="fas fa-wifi"></i><br>24*7</b></li>
<hr>
<li class="py-1 text-center"><b><i class="fas fa-spa"></i><br>spa</b></li>
<hr>
<li class="py-1 text-center"><b><i class="fas fa-dumbbell"></i><br>gym</b></li>
<hr>
<li class="py-1 text-center"><b><i class="fas fa-users"></i><br>popular</b></li>
<hr>
<li class="py-1 text-center"><b><i class="fas fa-smoking-ban"></i><br>ban</b></li>
</ul>
</div>
</div>
<?php
}
}
?>
</div>
</div>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.4/umd/popper.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.5.0/js/bootstrap.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mdbootstrap/4.19.1/js/mdb.min.js"></script>
</body>
</html>