PluginProbe ʕ •ᴥ•ʔ
VikAppointments Services Booking Calendar / 1.2.21
VikAppointments Services Booking Calendar v1.2.21
1.2.21 1.2.20 trunk 1.2.17 1.2.18 1.2.19
vikappointments / admin / views / calendar / tmpl / default_reservations.php
vikappointments / admin / views / calendar / tmpl Last commit date
default.php 6 days ago default_calendar.php 6 days ago default_filters.php 6 days ago default_reservations.php 6 days ago default_timeline.php 6 days ago index.html 6 days ago
default_reservations.php
47 lines
1 <?php
2 /**
3 * @package VikAppointments
4 * @subpackage core
5 * @author E4J s.r.l.
6 * @copyright Copyright (C) 2021 E4J s.r.l. All Rights Reserved.
7 * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
8 * @link https://vikwp.com
9 */
10
11 // No direct access
12 defined('ABSPATH') or die('No script kiddies please!');
13
14 $vik = VAPApplication::getInstance();
15
16 ?>
17
18 <div class="vapreservationslistdiv">
19
20 </div>
21
22 <script>
23
24 function getReservationsOnDay(date) {
25 // prepare request data
26 let data = {
27 date: date,
28 id_emp: <?php echo (int) $this->filters['id_emp']; ?>,
29 id_ser: <?php echo (int) $this->filters['id_ser']; ?>,
30 };
31
32 jQuery('.vapreservationslistdiv').html('');
33
34 UIAjax.do(
35 '<?php echo $vik->ajaxUrl('index.php?option=com_vikappointments&task=calendar.appointmentsajax'); ?>',
36 data,
37 (resp) => {
38 jQuery('.vapreservationslistdiv').html(resp);
39 },
40 (err) => {
41 alert(err.responseText || Joomla.JText._('VAPCONNECTIONLOSTERROR'));
42 }
43 );
44 }
45
46 </script>
47