YaWK  24.1
Yet another WebKit
booking-stats.php
Go to the documentation of this file.
1 <?php
2 // if no database is set
3 if (!isset($db) || (empty($db)))
4 { // create new db obj
5  $db = new \YAWK\db();
6 }
7 // check if language is set
8 if (!isset($language) || (!isset($lang)))
9 { // inject (add) language tags to core $lang array
10  $lang = \YAWK\language::inject(@$lang, "../system/plugins/booking/language/");
11 }
12 include '../system/plugins/booking/classes/booking.php';
14 
15 // TEMPLATE WRAPPER - HEADER & breadcrumbs
16 echo "
17  <!-- Content Wrapper. Contains page content -->
18  <div class=\"content-wrapper\" id=\"content-FX\">
19  <!-- Content Header (Page header) -->
20  <section class=\"content-header\">";
21 /* draw Title on top */
22 echo \YAWK\backend::getTitle("$lang[BOOKING] $lang[STATS]", "$lang[NUMBERS] &amp $lang[FACTS]");
23 echo"<ol class=\"breadcrumb\">
24  <li><a href=\"index.php\" title=\"$lang[DASHBOARD]\"><i class=\"fa fa-dashboard\"></i> $lang[DASHBOARD]</a></li>
25  <li><a href=\"index.php?page=plugins\" title=\"$lang[PLUGINS]\"> $lang[PLUGINS]</a></li>
26  <li><a href=\"index.php?plugin=booking\" title=\"$lang[BOOKING]\"> $lang[BOOKING]</a></li>
27  <li class=\"active\"><a href=\"index.php?plugin=booking&pluginpage=booking-stats\" title=\"$lang[STATS]\"> $lang[STATS]</a></li>
28  </ol>
29  </section>
30  <!-- Main content -->
31  <section class=\"content\">";
32 /* page content start here */
33 ?>
34 <!-- backward btn -->
35 <a class="btn btn-default" href="index.php?plugin=booking" style="float:right;">
36 <i class="glyphicon glyphicon-backward"></i> &nbsp;<?php print $lang['BACK']; ?></a>
37 <br><br>
38 <?php
39 $booking->getStats($db, $lang);
40 ?>
$booking
print $lang['BACK']
Booking Plugin is perfect if you want to let your customers submit appointments from frontend....
Definition: booking.php:23
static inject(array $lang, string $pathToFile)
allow plugins to inject language tags to $lang array
Definition: language.php:439
function a
Definition: browser.js:14
function i(e, t)
Definition: plyr.js:1
<!-- backend language -->< h3 >< i class="fa fa-language"></i > & nbsp