-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinfo.php
216 lines (191 loc) · 7.12 KB
/
info.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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
<?php
include_once('database.php');
if(isset($_POST['goa'])) {
$que="SELECT * FROM `information` WHERE pname='Goaa'";
$result = mysqli_query($db, $que);
}
if(isset($_POST['kerala'])) {
$que="SELECT * FROM `information` WHERE pname='Keralaaaa '";
$result = mysqli_query($db, $que);
}
if(isset($_POST['pune'])) {
$que="SELECT * FROM `information` WHERE pname='pune'";
$result = mysqli_query($db, $que);
}
if(isset($_POST['ratnagiri'])) {
$que="SELECT * FROM `information` WHERE pname='ratnagiri'";
$result = mysqli_query($db, $que);
}
// if(isset($_POST['agra'])) {
// $que="SELECT * FROM `information` WHERE pname='Taj Mahal'";
// $result = mysqli_query($db, $que);
// }
if(isset($_POST['india_gate'])) {
$que="SELECT * FROM `information` WHERE pname='India Gate'";
$result = mysqli_query($db, $que);
}
// if(isset($_POST['hampi'])) {
// $que="SELECT * FROM `information` WHERE pname='Hampi'";
// $result = mysqli_query($db, $que);
// }
// if(isset($_POST['rajasthan'])) {
// $que="SELECT * FROM `information` WHERE pname='Rajasthan'";
// $result = mysqli_query($db, $que);
// }
// if(isset($_POST['manali'])) {
// $que="SELECT * FROM `information` WHERE pname='Manali'";
// $result = mysqli_query($db, $que);
// }
// if(isset($_POST['srinagar'])) {
// $que="SELECT * FROM `information` WHERE pname='Srinagar'";
// $result = mysqli_query($db, $que);
// }
// if(isset($_POST['amritsar'])) {
// $que="SELECT * FROM `information` WHERE pname='Amritsar'";
// $result = mysqli_query($db, $que);
// }
// if(isset($_POST['jogfalls'])) {
// $que="SELECT * FROM `information` WHERE pname='Jog Falls'";
// $result = mysqli_query($db, $que);
// }
// if(isset($_POST['search_p'])) {
// $search = $_POST['search_p'];
// $que="SELECT * FROM `information` WHERE pname='$search'";
// $result = mysqli_query($db, $que);
// }
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="css/style1.css">
<title>Information</title>
</head>
<body>
<section class="header">
<a href="mainPage.html" class="logo">Khetri Tours.</a>
<nav class="navbar">
<a href="mainPage.html">home</a>
<a href="about.php">about</a>
<a href="package.php">package</a>
<!-- <a href="book.php">book</a> -->
<a href="gallery.html">Gallery</a>
<a href="feedback.html">Feedback</a>
<a href="cabs.php">cabs</a>
<a href="index.html">Logout</a>
<!-- <a href="loginform.php">login</a> -->
</nav>
<div id="menu-btn" class="fas fa-bars"></div>
</section>
<!-- <div class="main">
<ul>
<ul class="list">
<li class="logo"><a href="mainPage.html"><img src="earth-globe.png" alt="Logo" style="width:36px;height:36px"></a></li>
<div class="search">
<form method="POST" action="info.php">
<input type="text" name="search_p" placeholder="Search.." size="50">
<input type="image" name="submit_p" src="search_icon.png" alt="Search image" style="width:22;height:22; margin-left: 35px;">
</form>
</div>
</ul>
<ul class="list2">
<li><a href="mainPage.html">Home</a></li>
<li><a id="long" href="destination.html">Destination</a></li>
<li><a href="gallery.html">Gallery</a></li>
<li><a href="feedback.html">Feedback</a></li>
<li><a href="index.html">Logout</a></li>
</ul>
</ul>
</div> -->
<section class="packages">
<div class="heading-title">
<h1>Place Information</h1>
</div>
<div class="box-container">
<div class="box">
<?php
while($rows = mysqli_fetch_assoc($result))
{
?>
<div class="">
<img src="<?php echo $rows['pi_main']; ?>" alt="Taj Mahal Image" style="width:auto; height: auto;">
</div>
<div class="content">
<h1><?php echo $rows['pname']; ?><h1>
<p style="text-align: justify;"><?php echo $rows['pdescription']; ?></p>
<p style="color:red; top: -10px;" >Package: <?php echo $rows['package']; ?> Rs</p>
<a href="booking.html" class="btn">Book Tour</a>
</div>
<div class="image-container" style="border: 1px solid black">
<div class="box">
<div class="imgBox">
<img src="<?php echo $rows['pi1']; ?>" style="width: auto;height: 270px;">
</div>
</div>
<div class="box">
<div class="imgBox">
<img src="<?php echo $rows['pi2']; ?>" alt="Taj Mahal Image" style="width: auto;height: 270px;">
</div>
</div>
<div class="box">
<div class="imgBox">
<img src="<?php echo $rows['pi3']; ?>" alt="Taj Mahal Image" style="width: auto;height: 270px;">
</div>
<?php
}
?>
</div>
</div>
</div>
</section>
<section class="home-packages">
<h1 class="heading-title"> Hotel. </h1>
<div class="box-container">
<div class="box">
<div class="image">
<img src="images/Ganpatipule_Temple.jpg" alt="">
</div>
<div class="content">
<h3>Reserve a hotel.</h3>
<a href="hotel_reservation.php" class="btn">Reservation hotel.</a>
</div>
</div>
</div>
<div class="load-more"> <a href="hotel_reservation.php" class="btn">load more</a> </div>
</section>
</body>
</html>
<section class="footer">
<div class="box-container">
<div class="box">
<h3>quick links</h3>
<a href="home.php"> <i class="fas fa-angle-right"></i> home</a>
<a href="about.php"> <i class="fas fa-angle-right"></i> about</a>
<a href="package.php"> <i class="fas fa-angle-right"></i> package</a>
<a href="logout.php"> <i class="fas fa-angle-right"></i> Logout</a>
<!-- <a href="bookingform.html"> <i class="fas fa-angle-right"></i> book</a> -->
</div>
<div class="box">
<h3>extra links</h3>
<a href="#"> <i class="fas fa-angle-right"></i> ask questions</a>
<a href="#"> <i class="fas fa-angle-right"></i> about us</a>
<a href="#"> <i class="fas fa-angle-right"></i> privacy policy</a>
<a href="#"> <i class="fas fa-angle-right"></i> terms of use</a>
</div>
<div class="box">
<h3>contact info</h3>
<a href="#"> <i class="fas fa-phone"></i> +91 7823827959 </a>
<a href="#"> <i class="fas fa-envelope"></i> [email protected] </a>
<a href="#"> <i class="fas fa-map"></i> Ratnagiri, Maharashtra, India - 415612 </a>
</div>
<div class="box">
<h3>follow us</h3>
<a href="#"> <i class="fab fa-facebook-f"></i> facebook </a>
<!-- <a href="#"> <i class="fab fa-twitter"></i> twitter </a> -->
<a href="#"> <i class="fab fa-instagram"></i> instagram </a>
<a href="#"> <i class="fab fa-linkedin"></i> linkedin </a>
</div>
</div>
<!-- <div class="credit"> created by <span>mr. web designer</span> | all rights reserved! </div> -->
</section>