-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
323 lines (320 loc) · 14.9 KB
/
index.php
File metadata and controls
323 lines (320 loc) · 14.9 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
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
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
<?php
session_start();
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>House Rental Management System</title>
<link rel="shortcut icon" href="img/icon.png" type="image/x-icon" />
<!-- bootstrap css CDN included -->
<link
rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css"
integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm"
crossorigin="anonymous"
/>
<!-- fonts CDN included -->
<link
href="https://fonts.googleapis.com/css2?family=Epilogue&family=Roboto&display=swap"
rel="stylesheet"
/>
<!-- custom CSS files included -->
<link rel="stylesheet" href="css/style.css" />
</head>
<body>
<!-- welcome section begins -->
<section class="welcome-section">
<header>
<!-- navbar section begins -->
<nav class="navbar navbar-expand-md">
<div class="container">
<a
href="index.html"
class="navbar-brand text-dark font-weight-bold"
>CustomCastle</a
>
<button
class="navbar-toggler"
type="button"
data-toggle="collapse"
data-target="#collapsenav"
>
<span>
<img
src="img/menuHamburger.svg"
width="35px"
height="35px"
alt="menu-hamberger-icon"
/>
</span>
</button>
<div
class="collapse navbar-collapse text-center"
id="collapsenav"
>
<ul class="navbar-nav ml-auto">
<li class="nav-item">
<a href="#home" class="nav-link text-dark"
>home</a
>
</li>
<li class="nav-item">
<a
href="#about_us"
class="nav-link text-dark"
>about us</a
>
</li>
<li class="nav-item">
<a
href="#contact_us"
class="nav-link text-dark"
>contact us</a
>
</li>
<?php
if(isset($_SESSION['name'])){
?>
<!-- <li class="nav-item">
<a
href="dashboard.php"
class="nav-link text-dark"
><?php echo $_SESSION['name']; ?>
</a
>
</li>
<li class="nav-item">
<a
href="logout.php"
class="nav-link text-dark"
>log out
</a
>
</li> -->
<div class="btn-group">
<button class="btn btn-sm" type="button">
<?php echo $_SESSION['name']; ?>
</button>
<button type="button" class="btn btn-sm btn-secondary dropdown-toggle dropdown-toggle-split" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<span class="sr-only">Toggle Dropdown</span>
</button>
<div class="dropdown-menu">
<a class="dropdown-item" href="dashboard.php">dashboard</a>
<a class="dropdown-item" href="logout.php">log out</a>
</div>
</div>
<?php
}else{
?>
<li class="nav-item">
<a
href="login.php"
class="nav-link text-dark"
>login</a
>
</li>
<li class="nav-item signup">
<a
href="register.php"
class="nav-link text-dark"
>register</a
>
</li>
<?php
}
?>
</ul>
</div>
</div>
</nav>
<!-- navbar ends -->
</header>
<!-- main content begins -->
<div class="main-content">
<div class="container">
<div class="row">
<div class="col-lg-6 col-md-6 col-sm-10 col-12">
<div class="main-text">
<p>
find your dream house <br />
<span>in an affordable price</span>
</p>
</div>
</div>
<div class="col-lg-6 col-md-6 col-sm-10 col-12">
<div class="search-form form-group">
<form action="viewresults.php" method="POST" target="_blank">
<input
type="text"
maxlength="6"
name="pcode"
placeholder="pin code"
class="form-control"
/>
<input
type="submit"
name="submit"
value="search"
id="search-btn"
class="form-control"
/>
</form>
</div>
</div>
</div>
</div>
</div>
<!-- main content header ends -->
</section>
<!-- welcome section ends -->
<!-- property type selection -->
<section class="property-selection" id="home">
<h1 class="section-heading">we offer</h1>
<div class="property-type-selection">
<div class="apartment">
<img
class="img-fluid"
src="img/apartment.jpg"
alt="apartment"
/>
<p class="property-title">apartment</p>
</div>
<div class="house">
<img
class="img-fluid"
src="img/house.jpg"
alt="independent-house"
/>
<p class="property-title">house</p>
</div>
<div class="hostel">
<img class="img-fluid" src="img/hostel.jpg" alt="hostel" />
<p class="property-title">hostle</p>
</div>
<div class="office">
<img class="img-fluid" src="img/office.jpg" alt="office" />
<p class="property-title">office</p>
</div>
<div class="shop">
<img class="img-fluid" src="img/shop.jpg" alt="shop" />
<p class="property-title">shop</p>
</div>
</div>
</section>
<!-- our vision section starts -->
<section class="our-vision">
<h1 class="section-heading">our vision</h1>
<div class="easy-access">
<img
class="easy-access-img"
src="img/easy-access.png"
alt="demo"
/>
<h3 class="easy-access-heading">easy access</h3>
<p class="easy-access-text">
Custom Castle gives you access to hundreds of houses at
almost every location across the country, making it easy for
you to relocate to your destination without being physically
present.
</p>
</div>
<div class="cheap-price">
<img class="cheap-price-img" src="img/best-price.png" alt="" />
<h3 class="cheap-price-heading">Best price</h3>
<p class="cheap-price-text">
A number of landlords and owners from countrywide locations
are taking part in publishing their property online with us
for rent, making the customer to compare prices and choose
the desired house of their choice, making it really
"affordable" for them.
</p>
</div>
<div class="sustainable-platform">
<img
class="sustainable-platform-img"
src="img/sustainable-platform.svg"
alt=""
/>
<h3 class="sustainable-platform-heading">
sustainable platform
</h3>
<p class="sustainable-platform-text">
Custom Castle provides a platform for both owners as well as
tenants to fulfill their needs of property rental service
easily. it saves time and effort of both owners and tenants
for physically searching and advertising for rental
services.
</p>
</div>
</section>
<!-- about us starts -->
<section class="about-us" id="about_us">
<h1 class="section-heading">about us</h1>
<p class="about-us-text">
CustomCastle offers you a query free platform to search for a
best home as well as someone who takes care of your home like
their own. In this era , where it's a major challenge to find a
better shelter, we offer you the easiest solution that will make
you find the best one. Hope we will make you find your dream
house with affordable cost.
</p>
</section>
<!-- contact us starts -->
<section class="contact-us" id="contact_us">
<h1 class="section-heading">contact us</h1>
<div class="contact-us-form">
<form action="contact.php" method="POST">
<div class="contact-name">
<label>name:</label>
<input type="text" name="u_name" required />
</div>
<div class="contact-email">
<label>email:</label>
<input type="email" name="u_email" required />
</div>
<div class="contact-text">
<label>your message:</label>
<textarea name="u_message" required></textarea>
</div>
<div class="send-message-btn">
<input type="submit" value="send" name="submit" />
</div>
</form>
</div>
</section>
<!-- footer section starts -->
<section class="footer">
<h1 class="footer-heading">custom castle</h1>
<p class="github-repo">
<img
class="github-icon"
src="img/github-ico.png"
alt="github-icon"
/>
<a href="https://github.com/predator2v0/hrms" target="_blank"
>github repository</a
>
</p>
<p class="copyright">©2021 all rights reserved.</p>
</section>
<!-- scripts -->
<!-- bootstrap js CDN included -->
<script
src="https://code.jquery.com/jquery-3.2.1.slim.min.js"
integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN"
crossorigin="anonymous"
></script>
<script
src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js"
integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q"
crossorigin="anonymous"
></script>
<script
src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"
integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl"
crossorigin="anonymous"
></script>
</body>
</html>