-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
258 lines (238 loc) · 14.5 KB
/
index.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="../style/bootstrap.min.css">
<link rel="stylesheet" href="../style/mdb.min.css">
<link rel="stylesheet" href="../style/custom/user-dashboard.css">
<script src="../javascript/jquery.min.js"></script>
<script src="../javascript/bootstrap.min.js"></script>
<script src="../javascript/mdb.min.js"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" />
<title>User Dashboard</title>
</head>
<body onload="callMethodOnLoad()">
<section class="header">
<div class="head-contents">
<div class="row">
<div class="col-md-12">
<nav class="navbar navbar-expand-lg navbar-dark custom-navbar">
<a class="navbar-brand" href="">
<img src="../images/logo/logo.png" alt="" id="logo">
</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav"
aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav ml-auto" id="user-navbar">
<li class="nav-item">
<a class="nav-link btn btn-md btn-default-outline" href="pages/login.php"
style="color: rgba(0,0,0,0.7) !important">Sign-Out
<span><i class="fa fa-sign-in" aria-hidden="true"></i></span></a>
</li>
<li class="nav-item">
<a class="nav-link btn btn-md btn-default-outline" href="pages/register.php"
style="color: rgba(0,0,0,0.7) !important">Profile <span><i
class="fa fa-user-plus" aria-hidden="true"></i></span></a>
</li>
<li class="nav-item">
<a class="nav-link btn btn-md btn-default-outline" href="../index.php"
style="color: rgba(0,0,0,0.7) !important">Home <span><i class="fa fa-home"
aria-hidden="true"></i></span></a>
</li>
</ul>
</div>
</nav>
</div>
</div>
<div class="col-md-4">
</div>
</div>
</div>
</section>
<section id="house-list" class="mt-5">
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="action-buttons" style="display: flex">
<button class="btn btn-sm btn-block btn-outline-success mb-3" style="width: 20%"
onclick="showAddHouseCard()">Add New <span><i class="fa fa-plus"
aria-hidden="true"></i></span></button>
<button class="btn btn-sm btn-block btn-outline-warning mb-3" style="width: 20%"
onclick="hideAddHouseCard()" id="addHouseCardBtn" style="display: none">
<span>Close</span>
</button>
</div>
<!-- house form input -->
<div class="row">
<div class="col-md-5">
<div class="card" id="add_house_card" style="display: none">
<div class="card-header">
<h4 id="addHouseBoxHeading"></h4>
<div class="alert alert-warning" id="emptyFieldErrorBox" style="display: none">
<h3 id="emptyFieldErrorMsg"></h3>
</div>
</div>
<div class="card-body">
<form action="">
<div class="form-row">
<label for="">House Address</label>
<input type="text" class="form-control" id="house_address"
placeholder="Enter House Address;e.g. ka-22/2/A,Kalachandpur"
onchange="setHouseAddress(event.target.value)">
</div>
<div class="form-row mt-3">
<label for="">Location</label>
<input type="text" class="form-control" id="house_location"
placeholder="e.g. Baridhara"
onchange="setHouseLocation(event.target.value)">
</div>
<div class="form-row mt-3">
<label for="">Bedroom</label>
<input type="number" class="form-control" id="bed_room" placeholder="e.g. 2"
onchange="setHouseBedroom(event.target.value)">
</div>
<div class="form-row mt-3">
<label for="">Bath Room</label>
<input type="number" class="form-control" id="bath_room"
placeholder="e.g. 3" onchange="setHouseBathroom(event.target.value)">
</div>
<div class="form-row mt-3">
<label for="">Amount(BDT)</label>
<input type="number" class="form-control" id="house_amount"
placeholder="e.g. 12,500" onchange="setHouseAmount(event.target.value)">
</div>
<div class="form-row mt-3">
<label for="">Type</label>
<select name="" id="house_type" class="form-control"
onchange="setHouseType(event.target.value)">
<option value="">Choose House Type</option>
<option value="Rent">Rent</option>
<option value="Sell">Sell</option>
</select>
</div>
<div class="form-row mt-3">
<label for="">Description</label>
<textarea class="form-control" name="" id="house_description" cols="30"
rows="5" onchange="setHouseDescription(event.target.value)"></textarea>
</div>
</form>
</div>
<div class="card-footer">
<div class="action-button" style="display:flex">
<button class="btn btn-sm btn-block btn-outline-success" onclick="save()">
<span>Save</span>
</button>
<span id="actionType"></span>
</div>
</div>
</div>
</div>
<div class="col-md-7"></div>
</div>
</div>
</div>
<!-- house list -->
<div class="row mt-5">
<div class="col-md-12">
<!-- to show list of houses -->
<div id="houseList"></div>
</div>
</div>
</div>
</section>
<!-- modal -->
<div class="modal fade" id="houseImageModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"
aria-hidden="true">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">House images</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<!-- house-image-form -->
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="house-images">
<!--Carousel Wrapper-->
<div id="carousel-example-1z" class="carousel slide carousel-fade"
data-ride="carousel">
<!--Indicators-->
<ol class="carousel-indicators">
<li data-target="#carousel-example-1z" data-slide-to="0" class="active">
</li>
<li data-target="#carousel-example-1z" data-slide-to="1"></li>
<li data-target="#carousel-example-1z" data-slide-to="2"></li>
</ol>
<!--/.Indicators-->
<!--Slides-->
<div class="carousel-inner" role="listbox">
<!--First slide-->
<div class="carousel-item active">
<img class="d-block w-100"
src="https://mdbootstrap.com/img/Photos/Slides/img%20(130).jpg"
alt="First slide">
</div>
<!--/First slide-->
<!--Second slide-->
<div class="carousel-item">
<img class="d-block w-100"
src="https://mdbootstrap.com/img/Photos/Slides/img%20(129).jpg"
alt="Second slide">
</div>
<!--/Second slide-->
<!--Third slide-->
<div class="carousel-item">
<img class="d-block w-100"
src="https://mdbootstrap.com/img/Photos/Slides/img%20(70).jpg"
alt="Third slide">
</div>
<!--/Third slide-->
</div>
<!--/.Slides-->
<!--Controls-->
<a class="carousel-control-prev" href="#carousel-example-1z" role="button"
data-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="carousel-control-next" href="#carousel-example-1z" role="button"
data-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
<!--/.Controls-->
</div>
<!--/.Carousel Wrapper-->
<button class="btn btn-sm btn-outline-success">Add new image</button>
<div class="house-image-upload">
<div class="form-row">
<label for="">House Image</label>
<input type="file" class="form-control" id="house_image">
</div>
<div class="form-row">
<button class="btn btn-sm btn-outline-success"
onclick="uploadImage()">Save</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary">Save</button>
</div>
</div>
</div>
</div>
<script src="../javascript/Custom/user-dashboard.js"></script>
</body>
</html>