File manager - Edit - /home/verseaumee/ptitsanes/administrator/components/com_solidres/views/reservations/view.html.php
Back
<?php /** ------------------------------------------------------------------------ SOLIDRES - Accommodation booking extension for Joomla ------------------------------------------------------------------------ * @author Solidres Team <contact@solidres.com> * @website https://www.solidres.com * @copyright Copyright (C) 2013 - 2019 Solidres. All Rights Reserved. * @license GNU General Public License version 3, or later ------------------------------------------------------------------------ */ defined('_JEXEC') or die; /** * Reservation view class * * @package Solidres * @subpackage Reservation * @since 0.1.0 */ class SolidresViewReservations extends JViewLegacy { protected $state; protected $items; protected $pagination; protected $reservationStatusList; protected $reservationPaymentStatusList; public function display($tpl = null) { $this->state = $this->get('State'); $this->items = $this->get('Items'); $this->pagination = $this->get('Pagination'); $this->filterForm = $this->get('FilterForm'); $this->activeFilters = $this->get('ActiveFilters'); $solidresConfig = JComponentHelper::getParams('com_solidres'); $this->dateFormat = $solidresConfig->get('date_format', 'd-m-Y'); if ($errors = $this->get('Errors')) { throw new Exception(implode("\n", $errors), 500); } JHtml::_('stylesheet', 'com_solidres/assets/main.min.css', array('version' => SRVersion::getHashVersion(), 'relative' => true)); if (SRPlugin::isEnabled('channelmanager')) { JLoader::register('plgSolidresChannelManager', SRPATH_LIBRARY . '/channelmanager/channelmanager.php'); } $this->addToolbar(); parent::display($tpl); } /** * Add the page title and toolbar. * * @since 1.6 */ protected function addToolbar() { $state = $this->get('State'); $canDo = SolidresHelper::getActions(); JToolBarHelper::title(JText::_('SR_MANAGE_RESERVATION'), 'generic.png'); if ($canDo->get('core.create')) { JToolBarHelper::addNew('reservationbase.add', 'JTOOLBAR_NEW'); } if ($canDo->get('core.edit')) { JToolBarHelper::custom('reservationbase.edit', 'eye', '', 'JTOOLBAR_VIEW', true); JToolBarHelper::custom('reservationbase.amend', 'edit', '', 'JTOOLBAR_AMEND', true); JToolBarHelper::custom('reservations.export', 'download', '', 'SR_RESERVATION_EXPORT', true); } if ($state->get('filter.state') == [-2] && $canDo->get('core.delete')) { JToolBarHelper::deleteList('', 'reservations.delete', 'JTOOLBAR_EMPTY_TRASH'); } else if ($canDo->get('core.edit.state')) { JToolBarHelper::trash('reservations.trash', 'JTOOLBAR_TRASH'); } if ($canDo->get('core.admin')) { JToolBarHelper::preferences('com_solidres'); } } }
| ver. 1.4 |
Github
|
.
| PHP 8.5.7 | Generation time: 0 |
proxy
|
phpinfo
|
Settings