YaWK
24.1
Yet another WebKit
booking.php
Go to the documentation of this file.
1
<script
type
=
"text/javascript"
src=
"system/plugins/booking/js/booking.js"
></script>
2
<script
type
=
"text/javascript"
src=
"system/engines/jquery/jquery.validate.min.js"
></script>
3
<script
type
=
"text/javascript"
src=
"system/engines/jquery/messages_de.min.js"
></script>
4
5
<script
type
=
"text/css"
>
6
input.field {
7
color: #B94A48;
8
background-color: #F2DEDE;
9
border-color: #B94A48;
10
}
11
</script>
12
<?php
13
include
'classes/booking.php'
;
14
// generate new booking item
15
$booking
=
new
YAWK\PLUGINS\BOOKING\booking
();
16
// if form is sent
17
if
(isset($_POST[
'sent'
]) && $_POST[
'sent'
] ===
'1'
){
18
// execute create method
19
$booking
=
$booking
->create(
$db
);
20
// thank you page...
21
echo
"<div style='text-align: center; margin-top: 20%; margin-bottom: 600px;'><h1>Thank you <small>for your booking...</small></h1>
22
<p>We will get in contact with you soon! <br>
23
<br><a href=\"index.html\">Back to Home Page</a></p></div>"
;
24
25
}
26
else
{
27
// draw title + form -- FRONTEND --
28
echo
"<h1><i class=\"fa fa-envelope-o\"></i> Contact <small>feel free to place your booking...</small></h1><hr>"
;
29
echo
$booking
=
$booking
->getFrontendForm();
30
}
31
?>
YAWK\PLUGINS\BOOKING\booking
Booking Plugin is perfect if you want to let your customers submit appointments from frontend....
Definition:
booking.php:23
$db
$db
Definition:
dismiss-notifications.php:4
type
type
Definition:
menu-new.php:35
$booking
$booking
Definition:
booking.php:8
yawk.io
system
plugins
booking
booking.php
Generated on Tue Jan 16 2024 21:59:01 for YaWK by
doxygen 1.9.1