-
Notifications
You must be signed in to change notification settings - Fork 1
/
save_with_stayzilla.php
executable file
·317 lines (286 loc) · 17.8 KB
/
save_with_stayzilla.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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<link rel="icon" href="../../favicon.ico">
<link rel="stylesheet" href="bootstrap/font-awesome-4.3.0/css/font-awesome.min.css"
<!-- Bootstrap core CSS -->
<link href="bootstrap/css/bootstrap.css" rel="stylesheet">
<link href="bootstrap/css/bootstrap-theme.css" rel="stylesheet">
<link href="bootstrap/css/custom-style.css" rel="stylesheet">
<script src="../../assets/js/ie-emulation-modes-warning.js"></script>
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<nav class="navbar navbar-default navbar-fixed-top" style="opacity: 0.8">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">
<img src="bootstrap/images/stayzilla_web.png" class="logo-stayzilla">
</a>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav navbar-right">
<li><a href="http://www.stayzilla.com/contactus">Contact Us</a></li>
<li><a href="http://www.stayzilla.com/aboutus">About Us</a></li>
<li><a href="save_with_stayzilla.php#devoloped_by">Devoloped By</a></li>
</ul>
</div>
</div>
</nav>
<!-- Main jumbotron for a primary marketing message or call to action -->
<div class="jumbotron">
<div class="container">
<h2 style="text-align: center;font-family: sans-serif;font-weight: normal">Why depend on friends/relatives when you can get benefits of Stayzilla !!!</h2>
<h3 style="text-align: center;font-family: sans-serif;font-weight: normal">Fill details below to know how</h3>
<div class="portlet-body form">
<div class="col-md-12" style="text-align: center">
<ul class="filter-list">
<li class="headingTo">
<input type="text" id="location" placeholder="Which city are you going?" class="searchQuery textBoxBig fadeIn">
<span class="locationIcon"><i class="sp_icon sp_map_marker"></i></span>
</li>
<li class="stayDetailsSec ">
<input type="text" placeholder="Where does you friend/relatives reside?" id="user_source" class="">
</li>
<li class="purposeVisit">
<input type="text" placeholder="Which place are you going for? " id="user_destination" class="">
</li>
<li class="pull-left">
<input type="button" value="Show my benefits" class="btn searchBtn" id="search_button">
</li>
<li class="loading-icon" style="display:none;">
<img src="http://www.stayzilla.com/images/loading.GIF" style="width: 40px"></li>
</ul>
<!-- END FORM-->
</div>
</div>
</div>
</div>
<div class="container" id="result" style="display:none;">
<div class="row">
<div class="col-md-12">
<div class="portlet box blue">
<div class="portlet-title">
<div class="caption" style="color:#f93f81;font-size: 25px;text-align: center;margin-bottom: 10px">
Here is your Deal!!
</div>
</div>
<div class="portlet-body">
<div class="table-responsive">
<table class="table table-condensed table-hover table-bordered">
<thead>
<tr>
<th style="text-align: center">Features</th>
<th style="text-align: center">If you go with your choice</th>
<th style="text-align: center">If you go with Stayzilla</th>
</tr>
</thead>
<tbody>
<tr>
<td class="center-align"><i class="fa fa-map-marker" style="border: 1px solid black;padding: 10px;border-radius: 23px;"></i></td>
<td class="align-vertical center-align">You need to travel <span id="user_distance">20Km</span></td>
<td class="align-vertical center-align">You need to travel <span id="stayzilla_distance">10Km</span></td>
</tr>
<tr>
<td class="center-align"><i class="fa fa-clock-o" style="border: 1px solid black;padding: 10px;border-radius: 23px;"></i></td>
<td class="align-vertical center-align">You will spend <span id="user_duration"></span> travelling (One way)</td>
<td class="align-vertical center-align">You will spend <span id="stayzilla_duration"></span> travelling (One way)</td>
</tr>
<tr>
<td class="center-align"><span><img src="bootstrap/images/cab-fare.png"></span></td>
<td class="align-vertical center-align"><i class="fa fa-inr"></i> <span id="user_cabfare"></span> you need to spend behind cab</td>
<td class="align-vertical center-align"><i class="fa fa-inr"></i> <span id="stayzilla_cabfare"></span> you need to spend behind cab</td>
</tr>
<tr>
<td class="center-align"><i class="fa fa-bed" style="border: 1px solid black;padding: 10px;border-radius: 23px;"></i></td>
<td class="align-vertical center-align">Depends on your relative or family member</td>
<td class="align-vertical center-align"><i class="fa fa-inr"></i> <span id="stayzilla_hotelFare"></span> you need to spend behind the hotel</td>
</tr>
<tr>
<td class="center-align"><i class="fa fa-ambulance" style="border: 1px solid black;padding: 10px;border-radius: 23px;"></i></td>
<td class="align-vertical center-align">Doesn't guarantee about the insurance</td>
<td class="align-vertical center-align">Insurance is provided (if applied)</td>
</tr>
<tr>
<td class="center-align"><i class="fa fa-eye" style="border: 1px solid black;padding: 10px;border-radius: 23px;"></i></td>
<td class="align-vertical center-align">Privacy can't be ensured</td>
<td class="align-vertical center-align">Privacy is ensured</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<div class="row" style="margin-bottom:20px;color:#FF4081;">
<div class="col-md-3" style="text-align: center">
<!--<input type="text" placeholder="Check out some interesting places near to your area?" style="width:100%;padding:10px">
--><h3 style="position:relative;top:-9px;font-size: 16px">Want more reason to chose us?</h3></div>
<div class="col-md-7"> <input type="button" value="Search Nearby Attractions" class="btn searchBtn" id="search_nearby_button" style="width:100%;background: #fff">
</div>
<div class="col-md-2" style="text-align: center"><h3 style="position:relative;top:-9px;font-size: 16px">to your hotel.</h3></div>
</div>
<div class="row" id="nearby-results"></div>
</div>
<div class="container" id="no-result" style="display:none;">
<div class="row">
<div class="caption" style="color:#f93f81;font-size: 25px;text-align: center;margin-bottom: 10px">
Sorry we are unable to find best options for you at this time. Please visit us again.
</div>
</div>
<div class="row">
</div>
</div>
<div class="container" style="margin-bottom:30px">
<div class="row">
<div class="caption" style="color:#f93f81;font-size: 25px;text-align: center;margin-bottom: 10px">
Benifits of Using Stayzilla
</div>
<div class="col-md-12">
<div class="col-md-3 col-xs-12 box-description">
<div class="icon-header-logo" style="margin-top:10px">
<i class="fa fa-inr" style=""></i>
</div>
<ul class="feature-list">
<li><i class="fa fa-check"></i><span>Very cost effective</span></li>
<li><i class="fa fa-check"></i><span>Don't depend on anyone</span></li>
</ul>
</div>
<div class="col-md-3 col-xs-12 box-description">
<div class="icon-header-logo" style="margin-top:10px">
<i class="fa fa-clock-o" style=""></i>
</div>
<ul class="feature-list">
<li><i class="fa fa-check"></i><span>Saves a lot of time</span></li>
<li><i class="fa fa-check"></i><span>Suggests various events and economic mode of transportation</span></li>
</ul>
</div>
<div class="col-md-3 col-xs-12 box-description">
<div class="icon-header-logo" style="margin-top:10px">
<i class="fa fa-ambulance" style=""></i>
</div>
<ul class="feature-list">
<li><i class="fa fa-check"></i><span>Covers your accidental damage </span></li>
<li><i class="fa fa-check"></i><span>Ensures your security</span></li>
</ul>
</div>
<div class="col-md-3 col-xs-12 box-description">
<div class="icon-header-logo" style="margin-top:10px">
<i class="fa fa-eye" style=""></i>
</div>
<ul class="feature-list">
<li><i class="fa fa-check"></i><span>Maintain your privacy</span></li>
<li><i class="fa fa-check"></i><span>Concierger service from booking to Check-Out</span></li>
</ul>
</div>
</div>
</div>
</div>
<br>
<div class="jumbotron" style="background: #7e4b62;position: relative;margin-top: -30px;">
<!-- Example row of columns -->
<div class="row" style="text-align: center">
<img src="bootstrap/images/Promo_page_2.png">
</div>
</div> <!-- /container -->
<div class="container">
<div class="row" id="devoloped_by">
<div class="col-md-12" style="text-align: center">
<img src="bootstrap/images/bhat.png" style="width:90px;height:75px"><br>
<h3>The Black Hat</h3>
</div>
<div class="col-lg-4" style="text-align: center">
<img class="img-circle" src="bootstrap/images/sandeep.png" alt="Sandeep image" style="width: 140px; height: 140px;">
<h2>Sandeep Manne</h2>
</div>
<div class="col-lg-4" style="text-align: center">
<img class="img-circle" src="bootstrap/images/swapnil.png" alt="Swapnil image" style="width: 140px; height: 140px;">
<h2>Swapnil Patil</h2>
</div>
<div class="col-lg-4" style="text-align: center">
<img class="img-circle" src="bootstrap/images/kiran.png" alt="Kiran image" style="width: 140px; height: 140px;">
<h2>Kiran Juikar</h2>
</div>
<div class="col-lg-4" style="text-align: center">
<img class="img-circle" src="bootstrap/images/abhilash.png" alt="Abhilash image" style="width: 140px; height: 140px;">
<h2>Abhilash Bhattacharya</h2>
</div>
<div class="col-lg-4" style="text-align: center">
<img class="img-circle" src="bootstrap/images/moin.png" alt="Generic placeholder image" style="width: 140px; height: 140px;">
<h2>Moinuddin Sheriff</h2>
</div>
<div class="col-lg-4" style="text-align: center">
<img class="img-circle" src="bootstrap/images/abhijith.png" alt="Abhijeeh image" style="width: 140px; height: 140px;">
<h2>Abhijeet Shekhar</h2>
</div>
</div>
</div>
<hr>
<div class="container">
<footer>
<p style="text-align: center">© Stayzilla 2015</p>
</footer>
</div>
<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="http://maps.googleapis.com/maps/api/js?sensor=false&libraries=places"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src="js/jquery.geocomplete.js"></script>
<script src="bootstrap/js/bootstrap.min.js"></script>
<script>
$("#location").geocomplete().bind("geocode:result", function (event, result) {
var places = result.formatted_address.split(",");
$("#user_destination").attr("placeholder", "Where you are going in " + places[0]);
$("#user_source").attr("placeholder", "Where you friend/relatives in " + places[0]);
});
$("#location").blur(function () {
});
$("#user_source").geocomplete();
$("#user_destination").geocomplete();
$("#search_nearby_button").click(function(){
window.open("https://www.google.com/maps/search/?q=Attractions%20loc:"+$("#user_destination").val(), '_blank');
})
$("#search_button").click(function(){
$("#result").hide();
$("#no-result").hide();
$(".loading-icon").show();
$.getJSON("caluclate_saving.php?usersource="+$("#user_source").val()+"&destination="+$("#user_destination").val(), function(data){
console.log(data);
$("#user_distance").html(data.user.distance);
$("#stayzilla_distance").html(data.stayzilla.distance);
if (parseFloat(data.user.distance) < parseFloat(data.stayzilla.distance)) {
$("#no-result").show();
} else {
$("#result").show();
}
$("#user_duration").html(data.user.duration);
$("#stayzilla_duration").html(data.stayzilla.duration);
$("#user_cabfare").html(data.user.cabFare);
$("#stayzilla_cabfare").html(data.stayzilla.cabFare);
$("#stayzilla_hotelFare").html(data.stayzilla.hotelFare);
$(".loading-icon").hide();
})
})
</script>
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
<!--<script src="../../assets/js/ie10-viewport-bug-workaround.js"></script>-->
</body>
</html>