110 if (
$res =
$db->query(
"SELECT id FROM {plugin_booking}
111 WHERE email = '".$email.
"' AND success = '1'")) {
112 while ($row = mysqli_fetch_array(
$res)){
127 public function getStats(
$db,
$lang)
134 $confirmed_outstanding_sum = 0;
135 $i_date_waiting_sum = 0;
137 $i_date_outdated = 0;
139 if (
$res =
$db->query(
"SELECT success, income, grade, ban, confirmed, outdated FROM {plugin_booking}")) {
140 while ($row = mysqli_fetch_assoc(
$res)) {
141 $this->success = $row[
'success'];
142 $this->income = $row[
'income'];
143 $this->grade = $row[
'grade'];
144 $this->ban = $row[
'ban'];
145 $this->confirmed = $row[
'confirmed'];
146 $this->outdated = $row[
'outdated'];
153 if ($this->confirmed ===
'0' && $this->success !==
'1' && $this->outdated !==
'1'){
155 $i_date_waiting_sum++;
158 if ($this->confirmed ===
'1' && $this->success !==
'1' && $this->outdated !==
'1'){
163 if ($this->outdated ===
'1'){
167 if ($this->success ===
'1'){
173 if (isset($this->grade)) {
174 if (isset($i_date_success) && (!empty($i_date_success)))
176 $avgGrade = $grade_sum / $i_date_success;
182 $avgGrade = substr(
"$avgGrade", 0, 3);
183 }
else { $avgGrade = 0; }
186 echo
"<ul class='list-group'>
187 <li class='list-group-item'><h4><i class='fa fa-money'></i> $lang[BOOKING_STATS_OUTSTANDING] <b class='text-green'>€ ".$confirmed_outstanding_sum.
",-</b></li></h4>
188 <li class='list-group-item'><h4><i class='fa fa-money'></i> $lang[BOOKING_STATS_CONFIRMED] <b class='text-orange'>€ ".
$outstanding_sum.
",- </b></li></h4>
189 <li class='list-group-item'><h4><i class='fa fa-money'></i> $lang[BOOKING_STATS_EARNED] <b class='text-green'>€ ".$income_sum.
",- </b></li></h4>
190 <li class='list-group-item'><h4><i class='fa fa-calendar'></i> $lang[OVERALL] <b>".$i_dates.
"</b> $lang[BOOKING_INQUIRES] <b class='text-green'>".$success_sum.
"</b> $lang[BOOKINGS] $lang[SUCCESSFUL]. <b class='text-orange'>".$i_date_waiting_sum.
"</b> $lang[NOT_CONFIRMED], <b class='text-green'>".$i_date_fix_sum.
"</b> $lang[CONFIRMED]. <b>".$i_date_outdated.
"</b> $lang[OUTDATED].</li></h4>
191 <li class='list-group-item'><h4><i class='fa fa-calendar'></i> $lang[BOOKING_AVG_VOTING] <b>".$avgGrade.
"</b></li></h4>
207 if (
$res =
$db->query(
"SELECT ban FROM {plugin_booking}
208 WHERE id = '".$id.
"'"))
209 if ($row = mysqli_fetch_row(
$res))
215 if (!
$res =
$db->query(
"UPDATE {plugin_booking}
216 SET ban = '" .
$ban .
"'
217 WHERE email = '".$email.
"'"))
219 print \YAWK\alert::draw(
"danger",
"Error",
"Ban status could not be toggled.",
"",2000);
230 function toggleOutdated(
$db,
$id)
232 if (
$res =
$db->query(
"SELECT outdated FROM {plugin_booking}
233 WHERE id = '".$id.
"'"))
234 if ($row = mysqli_fetch_row(
$res))
236 $this->outdated = $row[0];
238 if ($this->outdated ===
'0') { $this->outdated = 1; }
else { $this->outdated = 0; }
240 if (!
$res =
$db->query(
"UPDATE {plugin_booking}
241 SET outdated = '" . $this->outdated .
"'
242 WHERE id = '".$id.
"'"))
244 print \YAWK\alert::draw(
"danger",
"Error",
"Outdated status could not be toggled.",
"",2000);
263 if (
$res =
$db->query(
"UPDATE {plugin_booking} SET invited = '1' WHERE email='".$email.
"'"))
266 $from = $admin_email;
269 $subject =
"VIP Club Invitation";
270 $msg =
"Hello $name!\n
271 Your Access to our VIP Club is now activated!
272 Please visit the following URL in your Browser:
274 ".$host.
"/welcome.html
276 There you can register with your Emailadress $to.
282 echo \YAWK\alert::draw(
"success",
"Success",
"Invitation Email sent to $to",
"index.php?plugin=booking",
"1800");
285 echo \YAWK\alert::draw(
"danger",
"Error",
"Could not invite user! Status cannot be changed. No email sent.",
"",
"3800");
310 <form class=\"form\" id=\"form\" method=\"post\" action=\"booking.html\">
312 <div class=\"col-md-4\">";
315 if ($config->bookingContactName !==
"false")
317 if ($config->bookingContactName ===
"required")
318 { $requiredMarkup =
"*"; }
319 else { $requiredMarkup =
""; }
322 <label for=\"name\">Name".$requiredMarkup.
"</label>
323 <input type=\"text\" name=\"name\" id=\"name\" class=\"form-control\" placeholder=\"Your name\">
328 if ($config->bookingEmail !==
"false")
330 if ($config->bookingEmail ===
"required")
331 { $requiredMarkup =
"*"; }
332 else { $requiredMarkup =
""; }
335 <label for=\"email\">Email".$requiredMarkup.
"</label>
336 <input type=\"text\" name=\"email\" id=\"email\" class=\"form-control\" placeholder=\"[email protected]\">
341 if ($config->bookingPhone !==
"false")
343 if ($config->bookingPhone ===
"required")
344 { $requiredMarkup =
"*"; }
345 else { $requiredMarkup =
""; }
348 <label for=\"phone\">Phone".$requiredMarkup.
"</label>
349 <input type=\"text\" name=\"phone\" id=\"phone\" class=\"form-control\" placeholder=\"+00 1234 / 1234567\">
355 <div class=\"col-md-8\">
357 <div class=\"col-md-6\">
361 if ($config->bookingEventDatetime !==
"false")
363 if ($config->bookingEventDatetime ===
"required")
364 { $requiredMarkup =
"*"; }
365 else { $requiredMarkup =
""; }
368 <label for=\"eventDateTime\">Event Date + Time".$requiredMarkup.
"</label>
369 <input type=\"text\" name=\"eventDateTime\" id=\"eventDateTime\" class=\"form-control\" placeholder=\"select Date\">
374 <div class=\"col-md-6\">
378 if ($config->bookingBand !==
"false")
380 if ($config->bookingBand ===
"required")
381 { $requiredMarkup =
"*"; }
382 else { $requiredMarkup =
""; }
385 <label for=\"band\">Band".$requiredMarkup.
"</label>
386 <select name=\"band\" id=\"band\" class=\"form-control\">
387 <option value=\"\">bitte auswählen</option>
388 <option value=\"Duo: Stephan Heiner & Börns Funkyfingers\">Duo: Stephan Heiner & Börns Funkyfingers</option>
389 <option value=\"Trio: BSB (Börns, Stephan, Bertl)\">Trio: BSB (Börns, Stephan, Bertl)</option>
390 <option value=\"Tommy Lee & Glacestrizzis\">Tommy Lee & Glacestrizzis</option>
391 <option value=\"WiR & Jetzt\">WiR & Jetzt</option>
397 if ($config->bookingLocationType !==
"false")
399 if ($config->bookingLocationType ===
"required")
400 { $requiredMarkup =
"*"; }
401 else { $requiredMarkup =
""; }
404 <label for=\"locationType\">Art der Veranstaltung".$requiredMarkup.
"</label>
405 <select name=\"locationType\" id=\"locationType\" class=\"form-control\">
406 <option value=\"\">bitte auswählen</option>
407 <option value=\"Hochzeit\">Hochzeit</option>
408 <option value=\"Geburtstagsparty\">Geburtstagsparty</option>
409 <option value=\"Private Veranstaltung\">Private Veranstaltung</option>
410 <option value=\"Firmen Event\">Firmen Event</option>
411 <option value=\"Weihnachtsfeier\">Weihnachtsfeier</option>
412 <option value=\"Großveranstaltung\">Großveranstaltung</option>
413 <option value=\"Andere\">Andere</option>
419 if ($config->bookingLocation !==
"false")
421 if ($config->bookingLocation ===
"required")
422 { $requiredMarkup =
"*"; }
423 else { $requiredMarkup =
""; }
426 <label for=\"location\">Location".$requiredMarkup.
"</label>
427 <select name=\"location\" id=\"location\" class=\"form-control\">
428 <option value=\"\">bitte auswählen</option>
429 <option value=\"Indoor\">Indoor</option>
430 <option value=\"Outdoor\">Outdoor</option>
436 if ($config->bookingCrowdAmount !==
"false")
438 if ($config->bookingCrowdAmount ===
"required")
439 { $requiredMarkup =
"*"; }
440 else { $requiredMarkup =
""; }
443 <label for=\"crowdAmount\">Größe".$requiredMarkup.
"</label>
444 <select name=\"crowdAmount\" id=\"crowdAmount\" class=\"form-control\">
445 <option value=\"\">bitte auswählen</option>
446 <option value=\"0 - 50\">0 - 50 Personen</option>
447 <option value=\"50 - 100\">50 - 100 Personen</option>
448 <option value=\"100 - 200\">100 - 200 Personen</option>
449 <option value=\"300 - 500\">300 - 500 Personen</option>
450 <option value=\"500 - 1000\">500 - 1000 Personen</option>
451 <option value=\"> 1000\">> 1000 Personen</option>
460 if ($config->bookingMessage !==
"false")
462 if ($config->bookingMessage ===
"required")
463 { $requiredMarkup =
"*"; }
464 else { $requiredMarkup =
""; }
467 <label for=\"message\">Message".$requiredMarkup.
"</label>
468 <textarea name=\"mesage\" id=\"message\" class=\"form-control\" rows=\"8\"></textarea>
472 $html .=
"<label for=\"mailCopy\">Send a copy of this message to myself.
473 <input type=\"checkbox\" name=\"mailCopy\" value=\"1\" checked aria-checked=\"true\" id=\"mailCopy\"></label>
474 <button type=\"submit\" class=\"btn btn-success pull-right\" style=\"margin-top:1%;\" contenteditable=\"false\"><i class=\"fa fa-envelope-o\"></i> Send Message</button>
475 <input type=\"hidden\" name=\"sent\" value=\"1\">";
499 $sql =
"SELECT * FROM {plugin_booking} WHERE $field = '".$value.
"' ORDER by $field DESC";
503 $sql =
"SELECT * FROM {plugin_booking} ORDER by date_created DESC $i";
508 $sql =
"SELECT * FROM {plugin_booking} ORDER by date_created DESC $i";
513 print \YAWK\alert::draw(
"warning",
"Could not get booking table data...",
"Seems like there is a problem with the database.",
"",3800);
519 while ($row = mysqli_fetch_assoc(
$res)) {
520 $this->
id = $row[
'id'];
521 $this->uid = $row[
'uid'];
522 $this->
gid = $row[
'gid'];
523 $this->date_created = $row[
'date_created'];
524 $this->date_wish = $row[
'date_wish'];
525 $this->date_alternative = $row[
'date_alternative'];
526 $this->confirmed = $row[
'confirmed'];
527 $this->
name = $row[
'name'];
528 $this->email = $row[
'email'];
529 $this->phone = $row[
'phone'];
530 $this->text = $row[
'text'];
531 $this->success = $row[
'success'];
532 $this->grade = $row[
'grade'];
533 $this->visits = $row[
'visits'];
534 $this->comment = $row[
'comment'];
535 $this->ip = $row[
'ip'];
536 $this->useragent = $row[
'useragent'];
537 $this->ban = $row[
'ban'];
538 $this->outdated = $row[
'outdated'];
539 $this->cut = $row[
'cut'];
540 $this->invited = $row[
'invited'];
548 $year_created = $splitDate_created[
'year'];
549 $day_created = $splitDate_created[
'day'];
550 $month_created = $splitDate_created[
'month'];
551 $time_created = $splitDate_created[
'time'];
553 $year_wish = $splitDate_wish[
'year'];
554 $day_wish = $splitDate_wish[
'day'];
555 $month_wish = $splitDate_wish[
'month'];
556 $time_wish = $splitDate_wish[
'time'];
558 $year_alt = $splitDate_alternative[
'year'];
559 $day_alt = $splitDate_alternative[
'day'];
560 $month_alt = $splitDate_alternative[
'month'];
561 $time_alt = $splitDate_alternative[
'time'];
563 $prettydate_created =
"$day_created.$month_created $year, $time_created";
564 $prettydate_wish =
"$day_wish.$month_wish $time_wish";
565 $prettydate_alternative =
"$day_alt.$month_alt $time_alt";
568 if ($prettydate_alternative ===
"0.00. 00:00"){
569 $prettydate_alternative =
'';
572 if ($this->confirmed ===
'1') {
574 $pubtext =
"<i class=\"fa fa-check\"> 2 confirmed</i>";
578 $pubtext =
"<i class=\"fa fa-times\"> 1 not confirmed</i>";
580 if ($this->success ===
'1'){
582 $pubtext =
"<i class=\"fa fa-check-circle-o\" title='erledigt'> 3 successful</i>";
584 if ($this->ban ===
'1'){
586 $pubtext =
"<i class=\"fa fa-warning\" title='careful'> 4 careful!</i>";
588 if ($this->outdated ===
'1'){
590 $pubtext =
"<i title='Outdated'> 5 outdated</i>";
591 $msgstyle =
"style=\"color:#707070;\"";
592 }
else { $msgstyle =
""; }
594 if ($this->visits >
'0') {
595 $color =
"text-info";
596 $visitHtml =
"<span class=\"label label-success\">$this->visits</span>";
598 $color =
"text-muted";
599 $visitHtml =
"<span class=\"label label-danger\">$this->visits</span>";
602 <td class=\"text-center\">
603 <a title=\"toggle status\" href=\"index.php?plugin=booking&pluginpage=booking-toggle&toggle=1&id=" . $this->
id .
"\">
604 <span class=\"label label-$pub\">$pubtext</span></a></td>
605 <td><small>$prettydate_created</small></td>
606 <td><a href=\"index.php?plugin=booking&pluginpage=booking-edit&id=" . $this->
id .
"\"><div class=\"$color\">$this->name</a><p class=\"small\">
607 <a href=\"index.php?plugin=booking&pluginpage=booking&email=$this->email\" target=\"_blank\">$this->email</a><br>
608 <a href=\"index.php?plugin=booking&pluginpage=booking&phone=$this->phone\" target=\"_blank\">$this->phone</a></p>
610 <td class=\"text-center\">$prettydate_wish<p style=\"color:#707070;\">$prettydate_alternative</p></td>
611 <td ".$msgstyle.
">$this->text</td>
612 <td class=\"text-center\">".self::countVisits(
$db, $this->email).
"</td>
613 <td class=\"text-center\"><a href=\"index.php?plugin=booking&pluginpage=booking&ip=$this->ip\" target=\"_blank\">$this->ip</a></td>
614 <td class=\"text-center\">
615 <a class=\"fa fa-hourglass-end\" title=\"".
$lang[
'OUTDATED'].
"\" href=\"index.php?plugin=booking&pluginpage=booking-toggle&outdated=1&id=".$this->
id.
"\"></a>
616 <a class=\"fa fa-ban\" title=\"".$lang[
'BAN'].
"\" href=\"index.php?plugin=booking&pluginpage=booking-toggle&ban=1&id=".$this->
id.
"\"></a>
617 <a class=\"fa fa-edit\" title=\"" . $lang[
'EDIT'] .
"\" href=\"index.php?plugin=booking&pluginpage=booking-edit&id=" . $this->
id .
"\"></a>
618 <a class=\"fa fa-trash-o\" role=\"dialog\" data-confirm=\"Den Termin «" . $this->
name .
" @ " . $this->date_wish .
"» wirklich löschen?\"
619 title=\"" .
$lang[
'DELETE'] .
"\" href=\"index.php?plugin=booking&pluginpage=booking&id=" . $this->
id .
"&delete=1\">
636 if (!
$res =
$db->query(
"UPDATE {plugin_booking} SET
637 income = '".$this->income.
"',
638 grade = '".$this->grade.
"',
639 comment = '".$this->comment.
"',
640 date_wish = '".$this->date_wish.
"',
641 date_alternative = '".$this->date_alternative.
"',
642 comment = '".$this->comment.
"',
644 WHERE id = '".$this->id.
"' "))
646 print \YAWK\alert::draw(
"danger",
"Error",
"Unable to save booking details.",
"",3800);
662 if (!
$res =
$db->query(
"UPDATE {plugin_booking}
664 success = '".$success.
"'
665 WHERE id = '" .
$id .
"'"))
667 print \YAWK\alert::draw(
"danger",
"Error",
"Booking status could not be toggled.",
"",3800);
678 function loadProperties(
$db,
$id)
680 $res =
$db->query(
"SELECT * FROM {plugin_booking} WHERE id = '" .
$id .
"'");
681 if ($row = mysqli_fetch_assoc(
$res)) {
682 $this->
id = $row[
'id'];
683 $this->uid = $row[
'uid'];
684 $this->
gid = $row[
'gid'];
685 $this->date_created = $row[
'date_created'];
686 $this->date_wish = $row[
'date_wish'];
687 $this->date_alternative = $row[
'date_alternative'];
688 $this->confirmed = $row[
'confirmed'];
689 $this->todo = $row[
'todo'];
690 $this->
name = $row[
'name'];
691 $this->email = $row[
'email'];
692 $this->phone = $row[
'phone'];
693 $this->text = $row[
'text'];
694 $this->success = $row[
'success'];
695 $this->income = $row[
'income'];
696 $this->grade = $row[
'grade'];
697 $this->visits = $row[
'visits'];
698 $this->comment = $row[
'comment'];
699 $this->ip = $row[
'ip'];
700 $this->useragent = $row[
'useragent'];
701 $this->ban = $row[
'ban'];
702 $this->outdated = $row[
'outdated'];
703 $this->referer = $row[
'referer'];
704 $this->cut = $row[
'cut'];
705 $this->invited = $row[
'invited'];
714 static function getMaxId(
$db)
717 $res =
$db->query(
"SELECT MAX(id) FROM {plugin_booking}");
718 if ($row = mysqli_fetch_array(
$res)) {
734 function getProperty(
$db,
$id, $property)
736 $res =
$db->query(
"SELECT " . $property .
" FROM {plugin_booking}
737 WHERE id = '" .
$id .
"'");
738 if ($row = mysqli_fetch_row(
$res)) {
756 if (!
$res =
$db->query(
"DELETE FROM {plugin_booking} WHERE id = '" .
$id .
"'")) {
769 if (!isset($_POST[
'todo'])){
773 if (isset($_SESSION[
'username']) && (isset($_SESSION[
'uid']) && (isset($_SESSION[
'gid'])))){
774 $this->
name = $_SESSION[
'username'];
775 $this->uid = $_SESSION[
'uid'];
776 $this->
gid = $_SESSION[
'gid'];
777 $this->email =
$db->quote($_POST[
'email']);
778 $this->phone =
$db->quote($_POST[
'phone']);
779 $this->todo =
$db->quote($_POST[
'todo']);
780 if (isset($_POST[
'datewish-month'])){
781 $this->datewish_month =
$db->quote($_POST[
'datewish-month']);
785 $this->datewish_month =
'';
787 if (isset($_POST[
'datewish-day'])){
788 $this->datewish_day =
$db->quote($_POST[
'datewish-day']);
792 $this->datewish_day =
'';
794 if (isset($_POST[
'datewish-time'])){
795 $this->datewish_time =
$db->quote($_POST[
'datewish-time']);
799 $this->datewish_time =
'';
801 if (isset($_POST[
'alternative-month'])){
802 $this->alternative_month =
$db->quote($_POST[
'alternative-month']);
806 $this->alternative_month =
'';
808 if (isset($_POST[
'alternative-day'])){
809 $this->alternative_day =
$db->quote($_POST[
'alternative-day']);
813 $this->alternative_day =
'';
815 if (isset($_POST[
'alternative-time'])){
816 $this->alternative_time =
$db->quote($_POST[
'alternative-time']);
820 $this->alternative_time =
'';
822 $this->message =
$db->quote($_POST[
'message']);
826 $this->
name =
$db->quote($_POST[
'name']);
827 $this->email =
$db->quote($_POST[
'email']);
828 $this->phone =
$db->quote($_POST[
'phone']);
829 $this->todo =
$db->quote($_POST[
'todo']);
830 if (isset($_POST[
'datewish-month'])){
831 $this->datewish_month =
$db->quote($_POST[
'datewish-month']);
835 $this->datewish_month =
'';
837 if (isset($_POST[
'datewish-day'])){
838 $this->datewish_day =
$db->quote($_POST[
'datewish-day']);
842 $this->datewish_day =
'';
844 if (isset($_POST[
'datewish-time'])){
845 $this->datewish_time =
$db->quote($_POST[
'datewish-time']);
849 $this->datewish_time =
'';
851 if (isset($_POST[
'alternative-month'])){
852 $this->alternative_month =
$db->quote($_POST[
'alternative-month']);
856 $this->alternative_month =
'';
858 if (isset($_POST[
'alternative-day'])){
859 $this->alternative_day =
$db->quote($_POST[
'alternative-day']);
863 $this->alternative_day =
'';
865 if (isset($_POST[
'alternative-time'])){
866 $this->alternative_time =
$db->quote($_POST[
'alternative-time']);
870 $this->alternative_time =
'';
872 $this->message =
$db->quote($_POST[
'message']);
876 $res_blog =
$db->query(
"SELECT MAX(id) FROM {plugin_booking}");
877 $row = mysqli_fetch_row($res_blog);
878 if (!isset($row[0])){
881 $this->
id = $row[0] + 1;
884 $this->
name = htmlentities($this->
name);
885 $this->email = htmlentities($this->email);
886 $this->phone = htmlentities($this->phone);
887 $this->message = htmlentities($this->message);
889 $this->
name = strip_tags($this->
name);
890 $this->email = strip_tags($this->email);
891 $this->phone = strip_tags($this->phone);
892 $this->message = strip_tags($this->message);
895 $this->email = trim($this->email);
896 $this->phone = trim($this->phone);
897 $this->message = trim($this->message);
900 $this->message = nl2br($this->message);
906 $this->date_wish =
"$year-$this->datewish_month-$this->datewish_day $this->datewish_time:00";
907 $this->date_alternative =
"$year-$this->alternative_month-$this->alternative_day $this->alternative_time:00";
909 $this->date_created =
date(
"Y-m-d G:i:s");
912 $this->ip = $_SERVER[
'REMOTE_ADDR'];
913 $this->useragent = $_SERVER[
'HTTP_USER_AGENT'];
914 $this->referer = $_SERVER[
'HTTP_REFERER'];
917 $res =
$db->query(
"INSERT INTO {plugin_booking}
918 (id, uid, gid, date_created, date_wish, date_alternative, name, email, phone, text, ip, useragent, referer)
919 VALUES('" . $this->
id .
"',
920 '" . $this->uid .
"',
921 '" . $this->
gid .
"',
922 '" . $this->date_created .
"',
923 '" . $this->date_wish .
"',
924 '" . $this->date_alternative .
"',
925 '" . $this->
name .
"',
926 '" . $this->email .
"',
927 '" . $this->phone .
"',
928 '" . $this->message .
"',
930 '" . $this->useragent .
"',
931 '" . $this->referer .
"')");
934 $email_message =
"Danke ".$this->name.
"! Du hast mir am ".$this->date_created.
" einen Terminvorschlag geschickt!\n
935 Ich werde mich so bald als moeglich bei Dir melden!\n\r
936 Wunschtermin: ".$this->date_wish.
"\n
937 Alternative : ".$this->date_alternative.
"\n
938 Email : ".$this->email.
"\n
939 Telefon : ".$this->phone.
"\n
940 Nachricht : ".$this->message.
"\n";
944 if (isset($_POST[
'mailCopy']) && ($_POST[
'mailCopy'] ==
'1')){
946 $sent_admin =
\YAWK\email::sendEmail(
"$this->email",
"$adminEmail",
"",
"Danke fuer Deinen Terminvorschlag!",
"$email_message");
947 $sent_user =
\YAWK\email::sendEmail(
"$adminEmail",
"$this->email",
"",
"Danke fuer Deinen Terminvorschlag!",
"$email_message");
951 $sent =
\YAWK\email::sendEmail(
"$this->email",
"$adminEmail",
"",
"Du hast einen neuen Terminvorschlag!",
"$email_message");
956 if (
$res && $sent_admin && $sent_user || $sent) {
957 \YAWK\alert::draw(
"success",
"Erfolg",
"Vielen Dank f�r Deinen Terminvorschlag! Ich werde mich so bald als möglich bei Dir melden!",
"",4200);
959 \YAWK\alert::draw(
"warning",
"Fehler",
"Es tut mir leid, der Terminvorschlag konnte nicht abgeschickt werden! Bitte versuche es später nochmal. Danke!",
"",4200);
Booking Plugin is perfect if you want to let your customers submit appointments from frontend....
getFrontendForm($config, $lang)
draw (output) html of the frontend form. This is displayed to the user. He will use to place a bookin...
static draw($type, $title, $text, $redirect, $delay)
static sendEmail($email_from, $email_to, $email_cc, $email_subject, $email_message)
send an email
static getSetting($db, $property)
Get and return value for property from settings database.
static splitDateShort($date)
split a date to month, day, year and time this is the same as splitDate() but keep the months short