-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtariff.php
More file actions
97 lines (92 loc) · 2.66 KB
/
tariff.php
File metadata and controls
97 lines (92 loc) · 2.66 KB
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
<?php
session_start();
?>
<html>
<head>
<title>Accomodation</title>
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/main.css" rel="stylesheet">
</head>
<body>
<?php
include "index1.php";
?>
<div id = "heading">
<h1>Tariff And Policies</h1>
</div>
<form action="tariff.php" method="post" class="container">
Search: <input type="text" name="term" placeholder="Enter hotel name.." size=50/>
<input type="submit" value="Submit" class="btn btn-success"/>
</form>
<?php
include "connection.php";
$term="";
if(isset($_POST['term'])){
$term = $_POST['term'];
}
if($term=="")
$qrysel="select * from tariff";
else
$qrysel="select * from tariff where hotel_id like (select hotel_id from hotel where hotel_name like '%".$term."%')";
$rs=mysqli_query($con,$qrysel);
if(!$rs)
{
echo "<font color=purple size=4>In correct mysql select Query.</font>";
die($qrysel);
}
echo "<center>";
echo "<table class=table>";
echo "<caption><font color='rgba(0,0,0,0.7)' size=4><b><i>Room Tariff</i></b></font></caption>";
echo "<tr><th>ROOM</th><th>HOTEL</th><th colspan=2>INR</th><th colspan=2>USD</th><th>TOTAL</th><th>AVAILABLE</th></tr>";
echo "<tr><th>TYPE</th><th>NAME</th><th>SINGLE</th><th>DOUBLE</th><th>SINGLE</th><th>DOUBLE</th><th>ROOMs</th><th>ROOMs</th></tr>";
while($v=mysqli_fetch_array($rs))
{
echo "<tr>";
echo "<td>".$v[0]."</td>";
$qry="select hotel_name from hotel where hotel_id=$v[6]";
$r=mysqli_query($con,$qry);
if (!$r) {
printf("Error: %s\n", mysqli_error($con));
exit();
}
$temp=mysqli_fetch_array($r);
echo "<td>".$temp[0]."</td>";
echo "<td>".$v[1]."</td>";
echo "<td>".$v[2]."</td>";
echo "<td>".$v[3]."</td>";
echo "<td>".$v[4]."</td>";
echo "<td>".$v[5]."</td>";
echo "<td>".$v[7]."</td>";
echo "</tr>";
}
echo "</table>";
?>
<br><br>
<center><table>
<tr>
<td>
<ul type=square>
<li>Policies: </li>
<ul>
<li>Check in 12 hours.
<li>Check out 12 hours.
<li>Early arrival is subject to availability,For guaranted early check in,reservation needs to be made starlings form previous night.
<li>Goverment taxes & levies extra as applicable
<li>Inr Rs.700 (usd*60) for extra person/bed.
</ul>
<br>
<li>Reservation Guarantee: </li>
<ul>
<li>All booking must be guaranteed at time of reservation bye money order or travel agency.
</ul>
<br>
<li>Reservation Cancellation: </li>
<ul>
<li>Reservation must be cancelled 24 hours prior to the <br>planned arrivaltime.
<li>One night room charge will be levied in case of non arrival.
</ul>
</ul>
</table>
<br />
</body>
</html>