-
Notifications
You must be signed in to change notification settings - Fork 0
/
footer.php
460 lines (429 loc) · 21.9 KB
/
footer.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
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
<!-- iqoniq Footer Start-->
<footer class="mg_footer1">
<div class="container">
<!-- Widget Text Start-->
<div class="col-md-3 col-sm-6">
<div class="widget widget_text">
<div class="logo">
<a href="#"><img src="images/visitlogo.png" alt="" style="height: 150px;" /></a>
</div>
<div class="text">
<p>This website provides complete information about tourism places with facilities, contact details in beautiful island Sri Lanka. Users can also book lodges/hotels in advance through online.</p>
</div>
</div>
</div>
<!-- Widget Text End-->
<!-- Widget Archives Start-->
<div class="col-md-3 col-sm-6">
<div class="widget widget_archives">
<h6 class="widget-title">Our Services</h6>
<ul>
<li><a href="#">Travel & Tourism Booking</a></li>
<li><a href="#">Online Booking Portal</a></li>
<li><a href="#">Hotel Booking Portal</a></li>
<li><a href="#">Gifts & Coupon</a></li>
<li><a href="#">24x7 Online Booking</a></li>
</ul>
</div>
</div>
<!-- Widget Archives End-->
<!-- Widget Flicker Start-->
<div class="col-md-3 col-sm-6">
<div class="widget widget_flicker">
<h6 class="widget-title">Photo gallery</h6>
<ul>
<li><a href="#"><img src="imggallery/1.png" alt="" style="height: 100px;width: 100px;"></a></li>
<li><a href="#"><img src="imggallery/2.png" alt="" style="height: 100px;width: 100px;"></a></li>
<li><a href="#"><img src="imggallery/3.png" alt="" style="height: 100px;width: 100px;"></a></li>
<li><a href="#"><img src="imggallery/4.png" alt="" style="height: 100px;width: 100px;"></a></li>
<li><a href="#"><img src="imggallery/5.png" alt="" style="height: 100px;width: 100px;"></a></li>
<li><a href="#"><img src="imggallery/6.png" alt="" style="height: 100px;width: 100px;"></a></li>
</ul>
</div>
</div>
<!-- Widget Flicker End-->
<!-- Widget Search Start-->
<div class="col-md-3 col-sm-6">
<div class="widget widget_search">
<h6 class="widget-title">Keep in touch</h6>
<div class="mg_contact">
<i class="fa fa-phone"></i><span> +94-123456789</span>
<hr>
</div>
<div class="mg_contact"><i class="fa fa-envelope-o"></i><span> [email protected]</span>
<hr>
</div>
<br>
<ul class="mg_social">
<li><a href="https://facebook.com/visitlanka"><i class="fa fa-facebook" target="_blank"></i></a></li>
<li><a href="https://twitter.com/visitlanka" target="_blank"><i class="fa fa-twitter"></i></a></li>
<li><a href="https://linkedin.com/visitlanka" target="_blank"><i class="fa fa-linkedin"></i></a></li>
</ul>
</div>
</div>
<!-- Widget Search End-->
</div>
</footer>
<!-- iqoniq Footer End-->
<!-- iqoniq Copyright Start-->
<div class="mg_copyright">
<p>Copyrights 2022. All rights reserved | Developed by : Mohamed Infas
<?php
if (!isset($_SESSION['staffid'])) {
if (!isset($_SESSION['customer_id'])) {
?>
<a class="mg_login_btn btn" style="margin-right:15px;" data-toggle="modal" data-target="#StaffLoginModal" href="#">Staff Login</a>
<?php
}
}
?>
</p>
</div>
<!-- iqoniq Copyright End-->
<!-- register Modal -->
<div class="modal fade" id="StaffLoginModal" tabindex="-1" role="dialog">
<div class="modal-dialog login1 login5 login5-1">
<div class="modal-content">
<div class="user-box">
<!--FORM FIELD START-->
<form method="post" action="" onsubmit="return validatestaffloginform()">
<h3>Staff Login Window</h3>
<hr>
<div class="mg_input_1">
<input type="text" name="stafflogin" id="stafflogin" placeholder="Login ID"><span id="errstafflogin" class="errmsg flash"></span>
<i class="fa fa-envelope-o"></i>
</div>
<div class="mg_input_1">
<input type="Password" name="staffpassword" id="staffpassword" placeholder="Password" class="form-control"><span id="errstaffpassword" class="errmsg flash"></span>
<i class="fa fa-lock"></i>
</div>
<div class="dialog-footer">
<button class="mg_btn1" name="btnstafflogin" id="btnstafflogin" type="submit">Click Here to Login</button>
</div>
</form>
<!--FORM FIELD END-->
</div>
</div>
</div>
</div>
<!-- register Modal end-->
<!-- register Modal -->
<div class="modal fade" id="reg-box" tabindex="-1" role="dialog">
<div class="modal-dialog login1 login5 login5-1">
<div class="modal-tab">
<ul class="nav nav-tabs" role="tablist">
<li role="presentation" class="active"><a href="#sign-In1" aria-controls="sign-In1" role="tab" data-toggle="tab">Sign In</a></li>
<li role="presentation"><a href="#sign-up2" aria-controls="sign-up2" role="tab" data-toggle="tab">Sign Up</a></li>
</ul>
<div class="tab-content">
<div role="tabpanel" class="tab-pane active" id="sign-In1">
<div class="modal-content">
<div class="user-box">
<!--FORM FIELD START-->
<form method="post" action="" onsubmit="return validateloginform()">
<div class="mg_input_1">
<input type="text" name="customeremailid" id="customeremailid" placeholder="Enter Email ID">
<span id="errcustomeremailid" class="errmsg flash"></span><i class="fa fa-envelope-o"></i>
</div>
<div class="mg_input_1">
<input type="Password" name="customerpassword" id="customerpassword" placeholder="Enter Password" class="form-control"><span id="errcustomerpassword" class="errmsg flash"></span>
<i class="fa fa-lock"></i>
</div>
<div class="dialog-footer">
<div class="input-container">
<label>
<span class="radio">
<input type="checkbox" name="foo" value="1" checked>
<span class="radio-value" aria-hidden="true"></span>
</span>
<span>Remember me</span>
</label>
<b><a href="" onclick="return false;" data-toggle="modal" data-target="#CustForgetPassMod"><i class="fa fa-arrow-right"></i> Did you forgot Password?</a></b>
</div>
<button type="submit" name="btncustomerlogin" id="btncustomerlogin" class="mg_btn1">Login</button>
</div>
</form>
<!--FORM FIELD END-->
</div>
</div>
</div>
<div role="tabpanel" class="tab-pane" id="sign-up2">
<div class="modal-content">
<div class="user-box">
<!--FORM FIELD START-->
<form method="post" action="" onsubmit="return validatecustregistration()">
<div class="mg_input_1">
<input type="text" name="cstname" id="cstname" placeholder="Name"><span id="errcustomername" class="errmsg flash"></span>
<i class="fa fa-envelope-o"></i>
</div>
<div class="mg_input_1">
<input type="text" name="cstemailid" id="cstemailid" placeholder="E-mail ID"><span id="errcustomerregemailid" class="errmsg flash"></span>
<i class="fa fa-envelope-o"></i>
</div>
<div class="mg_input_1">
<input type="text" name="cstcontactno" id="cstcontactno" placeholder="Contact Number"><span id="errcstcontactno" class="errmsg flash"></span>
<i class="fa fa-envelope-o"></i>
</div>
<div class="mg_input_1">
<input type="Password" class="form-control" name="cstpassword" id="cstpassword" placeholder="Password"><span id="errcustomerregpassword" class="errmsg flash"></span>
<i class="fa fa-lock"></i>
</div>
<div class="mg_input_1">
<input type="Password" class="form-control" name="cstcpassword" id="cstcpassword" placeholder="Confirm Password"><span id="errcstcpassword" class="errmsg flash"></span>
<i class="fa fa-lock"></i>
</div>
<div class="dialog-footer">
<button class="mg_btn1" type="submit" name="btnsubmit">Register</button>
</div>
</form>
<!--FORM FIELD END-->
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- register Modal end-->
<!-- register Modal -->
<div class="modal fade" id="search" tabindex="-1" role="dialog">
<div class="modal-dialog login1 login5 login5-1">
<div class="modal-tab">
<div class="mg_input_1">
<input placeholder="Search keyword" type="text">
<label class="search_icon"><input type="submit"></label>
</div>
</div>
</div>
</div>
<!-- register Modal end-->
<!-- Customer Forget Password Modal Starts -->
<div class="modal fade" id="CustForgetPassMod" tabindex="-1" role="dialog">
<div class="modal-dialog login1 login5 login5-1">
<div class="modal-content">
<div class="user-box">
<!--FORM FIELD START-->
<form method="post" action="">
<center>
<h3>Recover password</h3>
<br>
<hr>
<div class="mg_input_1">
<input type="text" name="custforgotpasslogin" id="custforgotpasslogin" placeholder="Login ID" required><span id="errstafflogin" class="errmsg flash"></span>
<i class="fa fa-envelope-o"></i>
</div>
<div class="dialog-footer">
<br>
<button class="mg_btn1" name="btnforgotpasslogin" id="btnstafflogin" type="submit">Click here to Recover password</button>
<br>
<br>
<br>
</div>
</form>
<!--FORM FIELD END-->
</div>
</div>
</div>
</div>
<!-- Customer Forget Password ends Starts -->
<!-- Gift Coupon Modal starts here -->
<!-- Load Records starts here -->
<div class="modal fade" id="modgiftcoupon" tabindex="-1" role="dialog">
<div class="modal-dialog login1 login5 login5-1">
<div class="modal-content">
<div class="user-box">
<!--FORM FIELD START-->
<h5>Gift Coupon Detail</h5>
<hr>
<div class="mg_input_1">
<p>
<table id="datatable" class="table table-striped table-bordered">
<tbody>
<?php
$sqlgiftcoupon = "SELECT * FROM giftcoupon where customer_id='$_SESSION[customer_id]' AND expirydate>='$dt' AND status='Active'";
$qsqlgiftcoupon = mysqli_query($con, $sqlgiftcoupon);
while ($rsgiftcoupon = mysqli_fetch_array($qsqlgiftcoupon)) {
echo "<tr>
<th>Coupon code</th>
<td><b>" . $rsgiftcoupon['couponcode'] . "</b></td>
</tr>
<tr>
<th>Coupon Detail</th>
<td>
<b>Expires - </b> " . date("d-M-Y", strtotime($rsgiftcoupon['expirydate'])) . "<br>
<b>Discount - </b> " . $rsgiftcoupon['discount_percentage'] . "%<br>
<b>Max limit - </b> Rs. " . $rsgiftcoupon['max_limit'] . "
</td>
</tr>
<tr>
<th>Reason</th><td>$rsgiftcoupon[reason]</td>
</tr>
<tr>
<th>Coupon Status</th>";
if ($rsgiftcoupon['status'] == 'Active') {
echo "<td>Unused</td>";
} else {
echo "<td>Redeemed</td>";
}
echo "<td>
</tr>
<tr><th colspan='2' style='color: green;'><center>Redeem this coupon before it Expires...</center></th></tr>";
}
?>
</tbody>
</table>
</p>
</div>
<!--FORM FIELD END-->
</div>
</div>
</div>
</div>
<!-- Load detailed Records ends here -->
<!-- Gift Coupon Modal ends here -->
</div>
<!-- iqoniq Wrapper End-->
<!-- jQuery -->
<script src="js/jquery.js"></script>
<!-- bootstrap -->
<script src="js/bootstrap.js"></script>
<!-- Slick Slider -->
<script src="js/slick.min.js"></script>
<!-- Masonry -->
<script src="js/masonry.min.js"></script>
<!-- Date Time Picker -->
<script src="js/scripts.js"></script>
<script src="js/jquery.datetimepicker.full.js"></script>
<!--Dl Menu Script-->
<script src="js/dl-menu/modernizr.custom.js"></script>
<script src="js/dl-menu/jquery.dlmenu.js"></script>
<!--Custom Script-->
<script src="js/custom.js"></script>
<script src="js/jquery.dataTables.min.js"></script>
<script>
$(document).ready(function() {
$('#datatable').DataTable();
});
</script>
<script>
function validateloginform() {
var alphaExp = /^[a-zA-Z]+$/; //Variable to validate only alphabets
var alphaspaceExp = /^[a-zA-Z\s]+$/; //Variable to validate only alphabets with space
var alphanumericExp = /^[a-zA-Z0-9]+$/; //Variable to validate only alphanumerics
var numericExpression = /^[0-9]+$/; //Variable to validate only numbers
var emailpattern = /^\w+@[a-zA-Z_]+?\.[a-zA-Z]{2,3}$/; //For email id
var i = 0;
$(".errmsg").empty();
if (!document.getElementById("customeremailid").value.match(emailpattern)) {
document.getElementById("errcustomeremailid").innerHTML = " <i class='fa fa-times-circle' aria-hidden='true'></i> Enter valid email id.....";
i = 1;
}
if (document.getElementById("customeremailid").value == "") {
document.getElementById("errcustomeremailid").innerHTML = " <i class='fa fa-times-circle' aria-hidden='true'></i> Email_id should not be empty...";
i = 1;
}
if (document.getElementById("customerpassword").value.length < 8) {
document.getElementById("errcustomerpassword").innerHTML = " <i class='fa fa-times-circle' aria-hidden='true'></i> Password should contain more than 8 characters...";
i = 1;
}
if (document.getElementById("customerpassword").value == "") {
document.getElementById("errcustomerpassword").innerHTML = " <i class='fa fa-times-circle' aria-hidden='true'></i>Password should not be empty...";
i = 1;
}
if (i == 0) {
return true;
} else {
return false;
}
}
</script>
<script>
function validatestaffloginform() {
var alphaExp = /^[a-zA-Z]+$/; //Variable to validate only alphabets
var alphaspaceExp = /^[a-zA-Z\s]+$/; //Variable to validate only alphabets with space
var alphanumericExp = /^[a-zA-Z0-9]+$/; //Variable to validate only alphanumerics
var numericExpression = /^[0-9]+$/; //Variable to validate only numbers
var emailpattern = /^\w+@[a-zA-Z_]+?\.[a-zA-Z]{2,3}$/; //For email id
var i = 0;
$(".errmsg").empty();
if (!document.getElementById("stafflogin").value.match(emailpattern)) {
document.getElementById("errstafflogin").innerHTML = " <i class='fa fa-times-circle' aria-hidden='true'></i> Enter valid login ID.....";
i = 1;
}
if (document.getElementById("stafflogin").value == "") {
document.getElementById("errstafflogin").innerHTML = " <i class='fa fa-times-circle' aria-hidden='true'></i> Staff login ID should not be empty...";
i = 1;
}
if (document.getElementById("staffpassword").value.length < 8) {
document.getElementById("errstaffpassword").innerHTML = " <i class='fa fa-times-circle' aria-hidden='true'></i> Password should contain more than 8 characters...";
i = 1;
}
if (document.getElementById("staffpassword").value == "") {
document.getElementById("errstaffpassword").innerHTML = " <i class='fa fa-times-circle' aria-hidden='true'></i>Staff Password should not be empty...";
i = 1;
}
if (i == 0) {
return true;
} else {
return false;
}
}
</script>
<script>
function validatecustregistration() {
var alphaExp = /^[a-zA-Z]+$/; //Variable to validate only alphabets
var alphaspaceExp = /^[a-zA-Z\s]+$/; //Variable to validate only alphabets with space
var alphanumericExp = /^[a-zA-Z0-9]+$/; //Variable to validate only alphanumerics
var numericExpression = /^[0-9]+$/; //Variable to validate only numbers
var emailpattern = /^\w+@[a-zA-Z_]+?\.[a-zA-Z]{2,3}$/; //For email id
var i = 0;
$(".errmsg").empty();
if (!document.getElementById("cstname").value.match(alphaspaceExp)) {
document.getElementById("errcustomername").innerHTML = " <i class='fa fa-times-circle' aria-hidden='true'></i> Customer Name is not valid.....";
i = 1;
}
if (document.getElementById("cstname").value == "") {
document.getElementById("errcustomername").innerHTML = " <i class='fa fa-times-circle' aria-hidden='true'></i> Customer name should not be empty...";
i = 1;
}
if (!document.getElementById("cstemailid").value.match(emailpattern)) {
document.getElementById("errcustomerregemailid").innerHTML = " <i class='fa fa-times-circle' aria-hidden='true'></i> Customer Email ID is not valid.....";
i = 1;
}
if (document.getElementById("cstemailid").value == "") {
document.getElementById("errcustomerregemailid").innerHTML = " <i class='fa fa-times-circle' aria-hidden='true'></i> Email ID should not be empty..";
i = 1;
}
if (document.getElementById("cstcontactno").value.length != 10) {
document.getElementById("errcstcontactno").innerHTML = " <i class='fa fa-times-circle' aria-hidden='true'></i>Contact number should contain 10 digits..";
i = 1;
}
if (document.getElementById("cstcontactno").value == "") {
document.getElementById("errcstcontactno").innerHTML = " <i class='fa fa-times-circle' aria-hidden='true'></i> Contact number should not be empty...";
i = 1;
}
if (document.getElementById("cstpassword").value.length < 8) {
document.getElementById("errcustomerregpassword").innerHTML = " <i class='fa fa-times-circle' aria-hidden='true'></i> Password should contain more than 8 characters...";
i = 1;
}
if (document.getElementById("cstpassword").value == "") {
document.getElementById("errcustomerregpassword").innerHTML = " <i class='fa fa-times-circle' aria-hidden='true'></i>Password should not be empty...";
i = 1;
}
if (document.getElementById("cstcpassword").value != document.getElementById("cstpassword").value) {
document.getElementById("errcstcpassword").innerHTML = " <i class='fa fa-times-circle' aria-hidden='true'></i> Password and confirm password not matching...";
i = 1;
}
if (document.getElementById("cstcpassword").value == "") {
document.getElementById("errcstcpassword").innerHTML = " <i class='fa fa-times-circle' aria-hidden='true'></i>Confirm Password should not be empty...";
i = 1;
}
if (i == 0) {
return true;
} else {
return false;
}
}
</script>
</body>
</html>