closure.php
4 years ago
default.php
4 years ago
default_customer.php
20 hours ago
default_details.php
3 months ago
default_fields.php
4 years ago
default_options.php
4 years ago
default_payment.php
4 years ago
index.html
4 years ago
list.php
4 years ago
closure.php
40 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 | $closure = $this->order; |
| 15 | |
| 16 | $config = VAPFactory::getConfig(); |
| 17 | |
| 18 | ?> |
| 19 | |
| 20 | <div class="puchinfo-closure" style="padding:10px;"> |
| 21 | |
| 22 | <h3><?php echo JText::translate('VAPSTATUSCLOSURE') . ' #' . $closure->id; ?></h3> |
| 23 | |
| 24 | <p> |
| 25 | <?php |
| 26 | /** |
| 27 | * e.g. "The employee John Smith is closed on YYYY-MM-DD from HH:mm to HH:mm |
| 28 | */ |
| 29 | echo JText::sprintf( |
| 30 | 'VAPCLOSUREINFOMESSAGE', |
| 31 | $closure->nickname, |
| 32 | JHtml::fetch('date', $closure->checkin_ts, JText::translate('DATE_FORMAT_LC1')), |
| 33 | JHtml::fetch('date', $closure->checkin_ts, $config->get('timeformat')), |
| 34 | JHtml::fetch('date', VikAppointments::getCheckout($closure->checkin_ts, $closure->duration), $config->get('timeformat')) |
| 35 | ); |
| 36 | ?> |
| 37 | </p> |
| 38 | |
| 39 | </div> |
| 40 |