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 / orderinfo / tmpl / list.php
vikappointments / admin / views / orderinfo / tmpl Last commit date
closure.php 3 days ago default.php 3 days ago default_customer.php 3 days ago default_details.php 3 days ago default_fields.php 3 days ago default_options.php 3 days ago default_payment.php 3 days ago index.html 3 days ago list.php 3 days ago
list.php
117 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 $config = VAPFactory::getConfig();
15
16 $vik = VAPApplication::getInstance();
17
18 // get current URI
19 $current_uri = base64_encode(JUri::getInstance());
20
21 if (empty($this->rows))
22 {
23 echo $vik->alert(JText::translate('JGLOBAL_NO_MATCHING_RESULTS'));
24 }
25 else
26 {
27 ?>
28 <table cellpadding="4" cellspacing="0" border="0" width="100%" class="<?php echo $vik->getAdminTableClass(); ?>">
29
30 <?php echo $vik->openTableHead(); ?>
31 <tr>
32
33 <th class="<?php echo $vik->getAdminThClass('left'); ?>" width="20%" style="text-align: left;">
34 <?php echo JText::translate('VAPMANAGERESERVATION1'); ?>
35 </th>
36
37 <th class="<?php echo $vik->getAdminThClass('left'); ?>" width="20%" style="text-align: left;">
38 <?php echo JText::translate('VAPMANAGERESERVATION26'); ?>
39 </th>
40
41 <th class="<?php echo $vik->getAdminThClass('left'); ?>" width="15%" style="text-align: left;">
42 <?php echo JText::translate('VAPMANAGERESERVATION4'); ?>
43 </th>
44
45 <th class="<?php echo $vik->getAdminThClass('left'); ?>" width="15%" style="text-align: left;">
46 <?php echo JText::translate('VAPMANAGERESERVATION3'); ?>
47 </th>
48 <th class="<?php echo $vik->getAdminThClass('left'); ?>" width="15%" style="text-align: left;">
49 <?php echo JText::translate('VAPMANAGERESERVATION38'); ?>
50 </th>
51
52 <th class="<?php echo $vik->getAdminThClass('left'); ?>" width="10%" style="text-align: left;">
53 <?php echo JText::translate('VAPMANAGERESERVATION12'); ?>
54 </th>
55
56 </tr>
57 <?php echo $vik->closeTableHead(); ?>
58
59 <?php
60 foreach ($this->rows as $order)
61 {
62 foreach ($order->appointments as $i => $app)
63 {
64 ?>
65 <tr class="row<?php echo ($i % 2); ?>">
66
67 <td>
68 <a href="index.php?option=com_vikappointments&view=orderinfo&cid[]=<?php echo $app->id;?>&tmpl=component&back=<?php echo $current_uri; ?>">
69 <?php echo $app->id . ' - ' . $order->sid; ?>
70 </a>
71 </td>
72
73 <td>
74 <?php echo $app->checkin->lc3; ?>
75 </td>
76
77 <td>
78 <?php echo $app->service->name; ?>
79 </td>
80
81 <td>
82 <?php echo $app->employee->name; ?>
83 </td>
84
85 <td>
86 <?php echo $order->purchaser_nominative; ?>
87 </td>
88
89 <td>
90 <?php echo JHtml::fetch('vaphtml.status.display', $app->status); ?>
91 </td>
92
93 </tr>
94 <?php
95 }
96 }
97 ?>
98
99 </table>
100 <?php
101 }
102 ?>
103
104 <script>
105
106 /**
107 * Check whether the parent window provides the function
108 * to update the footer buttons (edit, delete) of the modal.
109 *
110 * @since 1.6.6
111 */
112 if (window.parent.vapUpdateModalButtons) {
113 window.parent.vapUpdateModalButtons(false);
114 }
115
116 </script>
117