PluginProbe ʕ •ᴥ•ʔ
VikAppointments Services Booking Calendar / 1.2.20
VikAppointments Services Booking Calendar v1.2.20
1.2.21 1.2.20 trunk 1.2.17 1.2.18 1.2.19
vikappointments / site / views / employeeslist / tmpl / default.php
vikappointments / site / views / employeeslist / tmpl Last commit date
default.php 1 month ago default.xml 1 month ago default_contact.php 1 month ago default_employee.php 1 month ago default_employee_search.php 1 month ago default_toolbar.php 1 month ago index.html 1 month ago
default.php
100 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 JHtml::fetch('vaphtml.assets.fancybox');
15 JHtml::fetch('vaphtml.assets.select2');
16 JHtml::fetch('vaphtml.assets.fontawesome');
17
18 $employees = $this->employees;
19 $sel_emp = $this->selEmployee;
20
21 ?>
22
23 <!-- employees toolbar -->
24
25 <?php
26 // Register some vars within a property of this class
27 // to make it available also for the sublayout.
28 $this->displayData = array();
29
30 // get toolbar template, used for filters
31 echo $this->loadTemplate('toolbar');
32 ?>
33
34 <!-- employees list -->
35
36 <div class="vapempallblocks">
37
38 <?php
39 foreach ($employees as $e)
40 {
41 // Register some vars within a property of this class
42 // to make it available also for the sublayout.
43 $this->employee = $e;
44
45 if ($this->ajaxSearch)
46 {
47 // AJAX search enabled, use a minified layout to include
48 // also the availability table
49 $tmpl = 'employee_search';
50 }
51 else
52 {
53 // otherwise use the default layout
54 $tmpl = 'employee';
55 }
56
57 // get employee template, used to display profile information
58 echo $this->loadTemplate($tmpl);
59 }
60 ?>
61
62 </div>
63
64 <form action="<?php echo JRoute::rewrite('index.php?option=com_vikappointments&view=employeeslist' . ($this->itemid ? '&Itemid=' . $this->itemid : '')); ?>" method="post">
65 <?php echo JHtml::fetch('form.token'); ?>
66 <div class="vap-list-pagination"><?php echo $this->navbut; ?></div>
67 <input type="hidden" name="option" value="com_vikappointments" />
68 <input type="hidden" name="view" value="employeeslist" />
69 </form>
70
71 <!-- employees contact form -->
72
73 <?php
74 // Register some vars within a property of this class
75 // to make it available also for the sublayout.
76 $this->displayData = array();
77
78 // get quick contact template
79 echo $this->loadTemplate('contact');
80 ?>
81
82 <script>
83
84 jQuery(function($) {
85 <?php
86 if ($this->selEmployee)
87 {
88 ?>
89 jQuery('html,body').animate({
90 scrollTop: (jQuery('#vapempblock<?php echo $this->selEmployee; ?>').offset().top - 5),
91 }, {
92 duration: 'normal',
93 });
94 <?php
95 }
96 ?>
97 });
98
99 </script>
100