-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
212 lines (172 loc) · 8.06 KB
/
index.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
<?php
session_start();
error_reporting(0);
include('includes/dbconnection.php');
?>
<!DOCTYPE html>
<html lang="zxx" class="no-js">
<head>
<title>Paying Guest Accomodation System</title>
<link href="https://fonts.googleapis.com/css?family=Poppins:100,200,400,300,500,600,700" rel="stylesheet">
<!--
CSS
============================================= -->
<link rel="stylesheet" href="css/linearicons.css">=
<link rel="stylesheet" href="css/font-awesome.min.css">
<link rel="stylesheet" href="css/nice-select.css">
<link rel="stylesheet" href="css/ion.rangeSlider.css" />
<link rel="stylesheet" href="css/ion.rangeSlider.skinFlat.css" />
<link rel="stylesheet" href="css/bootstrap.css">
<link rel="stylesheet" href="css/owl.carousel.css">
<link rel="stylesheet" href="css/main.css">
</head>
<body>
<!-- Start Header Area -->
<?php include_once('includes/header.php');?>
<!-- End Header Area -->
<!-- start banner Area -->
<section class="home-banner-area relative" id="home">
<div class="overlay overlay-bg"></div>
<div class="container">
<div class="row fullscreen align-items-end justify-content-center">
<div class="banner-content col-lg-12 col-md-12">
<h1>Paying Guest Accomodation System</h1>
<div class="search-field">
<form class="search-form" method="post" action="search-result.php">
<div class="row">
<div class="col-lg-12 d-flex align-items-center justify-content-center toggle-wrap">
<div class="row">
<div class="col">
<h4 class="search-title">Search Properties PG</h4>
</div>
</div>
</div>
<div class="col-lg-3 col-md-6 col-xs-6">
<select name="location" id="location" class="form-control" required>
<option value="">Choose State</option>
<?php $query=mysqli_query($con,"select * from tblstate");
while($row=mysqli_fetch_array($query))
{
?>
<option value="<?php echo $row['StateName'];?>"><?php echo $row['StateName'];?></option>
<?php } ?>
</select>
</div>
<!-- <div class="col-lg-3 col-md-6 col-xs-6">-->
<!---->
<!-- <select name="norooms" id="norooms" class="form-control" required>-->
<!-- <option value="">Number of Rooms</option>-->
<!-- --><?php //$query=mysqli_query($con,"select distinct norooms from tblpg;");
// while($row=mysqli_fetch_array($query))
// {
// ?>
<!-- <option value="--><?php //echo $row['norooms'];?><!--">--><?php //echo $row['norooms'];?><!--</option>-->
<!---->
<!-- --><?php //} ?>
<!-- </select>-->
<!-- </div>-->
<div class="col-lg-3 col-md-6 col-xs-6">
<input type="text" name="pgname" class="app-select form-control" required>
</div>
<!-- <div class="col-lg-3 col-md-6 col-xs-6">-->
<!---->
<!-- <select name="type" id="type" class="form-control" required>-->
<!-- <option value="">Type of Rooms</option>-->
<!-- --><?php //$query=mysqli_query($con,"select distinct type from tblpg where type!=\"\";");
// while($row=mysqli_fetch_array($query))
// {
// ?>
<!-- <option value="--><?php //echo $row['type'];?><!--">--><?php //echo $row['type'];?><!--</option>-->
<!---->
<!-- --><?php //} ?>
<!-- </select>-->
<!-- <div class="col-lg-3 col-md-6 col-xs-6">-->
<!-- <input type="text" name="pgname" class="app-select form-control" required>-->
<!-- </div>-->
</div>
<div class="col-lg-3 col-md-6 col-xs-6">
<button class="primary-btn">Search Properties<span class="lnr lnr-arrow-right"></span></button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</section>
<!-- End banner Area -->
<!-- Start property Area -->
<section class="property-area section-gap relative" id="property">
<div class="container">
<div class="row d-flex justify-content-center">
<div class="col-md-10 header-text">
<h1>PG Accomodation in Various States or Cities</h1>
<p>
Who are in extremely love with eco friendly system.
</p>
</div>
</div>
<div class="row">
<?php
$ret=mysqli_query($con,"select * from tblpg order by rand() limit 6");
$cnt=1;
while ($row=mysqli_fetch_array($ret)) {
?>
<div class="col-lg-4">
<div class="single-property">
<div class="images">
<img class="img-fluid mx-auto d-block" src="owner/roomimages/<?php echo $row['Image'];?>" width="400" height="180" alt="">
<span>For PG</span>
</div>
<div class="desc">
<div class="top d-flex justify-content-between">
<h4><a href="pg-details.php?pid=<?php echo $row['ID'];?>">PG Name: <?php echo $row['PGTitle'];?></a></h4>
</div>
<div class="middle">
<div class="d-flex justify-content-start">
<p>AC: <span class="gr"><?php echo $row['AC'];?></span></p>
<p>Balcony: <span class="rd"><?php echo $row['Balcony'];?></span></p>
<p>Laundry: <span class="rd"><?php echo $row['Furnished'];?></span></p>
</div>
<div class="d-flex justify-content-start">
<p>Parking: <span class="gr"><?php echo $row['Parking'];?></span></p>
<p>Price: <span class="rd"><?php echo $row['RPmonth'];?> P/M</span></p>
<p>Type: <span class="rd"><?php echo $row['Type'];?></span></p>
</div>
</div>
<div class="bottom d-flex justify-content-start">
<p><span class="lnr lnr-heart"></span> <?php echo $row['StateName'];?></p>
<p><span class="lnr lnr-bubble"></span> <?php echo $row['CityName'];?></p>
</div>
</div>
</div>
</div>
<?php } ?>
</div>
</section>
<!-- Start About Area -->
<!-- End About Area -->
<!-- Start city Area -->
<!-- End city Area -->
<!-- Start testomial Area -->
<!-- End testomial Area -->
<!-- Start blog Area -->
<!-- End blog Area -->
<!-- start footer Area -->
<?php include_once('includes/footer.php');?>
<!-- End footer Area -->
<script src="js/vendor/jquery-2.2.4.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.11.0/umd/popper.min.js" integrity="sha384-b/U6ypiBEHpOf/4+1nzFpr53nxSS+GLCkfwBdFNTxtclqqenISfwAzpKaMNFNmj4"
crossorigin="anonymous"></script>
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBhOdIF3Y9382fqJYt5I_sswSrEw5eihAA"></script>
<script src="js/vendor/bootstrap.min.js"></script>
<script src="js/jquery.ajaxchimp.min.js"></script>
<script src="js/jquery.nice-select.min.js"></script>
<script src="js/jquery.sticky.js"></script>
<script src="js/ion.rangeSlider.js"></script>
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
<script src="js/jquery.magnific-popup.min.js"></script>
<script src="js/owl.carousel.min.js"></script>
<script src="js/main.js"></script>
</body>
</html>