File manager - Edit - /home/verseaumee/empowernetkenyajuly2026/views.tar
Back
reservation/view.html.php 0000644 00000004665 15252030236 0011544 0 ustar 00 <?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; JLoader::register('SolidresHelper', JPATH_COMPONENT_ADMINISTRATOR . '/helpers/helper.php'); /** * Reservation view class * * @package Solidres * @since 0.1.0 */ class SolidresViewReservation extends JViewLegacy { public $reservation = null; function display($tpl = null) { $this->context = 'com_solidres.reservation.process'; $this->config = JComponentHelper::getParams('com_solidres'); $this->showPoweredByLink = $this->config->get('show_solidres_copyright', '1'); $this->app = JFactory::getApplication(); $this->id = $this->app->input->getUint('id', 0); $this->code = $this->app->input->getString('code', ''); if ($this->id > 0 && !empty($this->code)) { JModelLegacy::addIncludePath(JPATH_COMPONENT_ADMINISTRATOR . '/models/'); $reservatonModel = JModelLegacy::getInstance('Reservation', 'SolidresModel', array('ignore_request' => true)); $assetModel = JModelLegacy::getInstance('ReservationAsset', 'SolidresModel', array('ignore_request' => true)); $reservation = $reservatonModel->getItem($this->id); $this->asset = null; if ($reservation->code == $this->code) { $this->reservation = $reservation; $this->asset = $assetModel->getItem($this->reservation->reservation_asset_id); $this->lengthOfStay = (int) SRUtilities::calculateDateDiff( $this->reservation->checkin, $this->reservation->checkout ); } } $this->layout = $this->app->input->getString('layout', ''); if ($this->layout == 'final') { $result = JFactory::getApplication()->triggerEvent('onSolidresReservationFinalScreenDisplay', array($this->app->getUserState($this->context . '.code'))); } JHtml::stylesheet('com_solidres/assets/main.css', false, true, false); if ($errors = $this->get('Errors')) { throw new Exception(implode("\n", $errors), 500); } parent::display($tpl); } } reservation/tmpl/payment.php 0000644 00000002041 15252030236 0012242 0 ustar 00 <?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 ------------------------------------------------------------------------ */ /* * This layout file can be overridden by copying to: * * /templates/TEMPLATENAME/html/com_solidres/reservation/payment.php * * However, occasionally we will need to update template/layout related files and it is the template developers' * responsibility to update the overridden files (if any) to maintain full compatibility with Solidres. * * We do not provide support if any of the overridden files are out of date and are not compatible with Solidres. * * @version 2.8.0 */ defined('_JEXEC') or die; echo $this->paymentForm; reservation/tmpl/final.php 0000644 00000017357 15252030236 0011676 0 ustar 00 <?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 ------------------------------------------------------------------------ */ /* * This layout file can be overridden by copying to: * * /templates/TEMPLATENAME/html/com_solidres/reservation/final.php * * However, occasionally we will need to update template/layout related files and it is the template developers' * responsibility to update the overridden files (if any) to maintain full compatibility with Solidres. * * We do not provide support if any of the overridden files are out of date and are not compatible with Solidres. * * @version 2.8.0 */ defined('_JEXEC') or die; // Get some data from successful reservation $reservationCodeUserState = $this->app->getUserState($this->context . '.code', ''); $isNew = $this->app->getUserState($this->context . '.is_new', true); if (!isset($this->reservation) && (!empty($paymentMethodMessage) || !empty($reservationCodeUserState)) ) : $paymentMethodMessage = $this->app->getUserState($this->context . '.payment_method_message'); $bookingRequireApproval = $this->app->getUserState($this->context . '.booking_require_approval'); $finalContent = ''; if (!empty($paymentMethodMessage) || $bookingRequireApproval) : $finalContent = $paymentMethodMessage; else: $customerFullName = $this->app->getUserState($this->context . '.customer_firstname') . ' ' . $this->app->getUserState($this->context . '.customer_lastname'); $msg = $isNew ? 'SR_RESERVATION_COMPLETE' : 'SR_RESERVATION_AMEND_COMPLETE'; $link = $isNew ? JUri::root() : JRoute::_('index.php?option=com_solidres&view=customer'); $finalContent = JText::sprintf($msg, $customerFullName, $this->app->getUserState($this->context . '.code'), $this->app->getUserState($this->context . '.customeremail'), $this->app->getUserState($this->context . '.reservation_asset_name'), $link ); endif; ?> <?php if (!empty($finalContent)) : ?> <div id="solidres"> <div class="alert alert-success"> <?php echo $finalContent ?> </div> </div> <?php endif ?> <?php $this->app->setUserState($this->context . '.payment_method_message', null); $this->app->setUserState($this->context . '.payment_method_custom_email_content', null); elseif (isset($this->reservation)) : ?> <div id="solidres"> <h3><?php echo JText::_('SR_ASSET_INFO') ?></h3> <table class="table table-striped"> <thead></thead> <tbody> <tr> <td> <?php echo JText::_('SR_CONFIRMATION_ASSET_NAME') ?> </td> <td> <?php echo $this->asset->name ?> </td> </tr> <tr> <td> <?php echo JText::_('SR_CONFIRMATION_ASSET_ADDRESS') ?> </td> <td> <?php echo $this->asset->address_1 . ', ' . (!empty($this->asset->city) ? $this->asset->city . ', ' : '') . (!empty($this->asset->postcode) ? $this->asset->postcode . ', ' : '') . $this->asset->country_name ?> </td> </tr> <tr> <td> <?php echo JText::_('SR_CONFIRMATION_ASSET_EMAIL') ?> </td> <td> <?php echo $this->asset->email ?> </td> </tr> <tr> <td> <?php echo JText::_('SR_CONFIRMATION_ASSET_PHONE') ?> </td> <td> <?php echo $this->asset->phone ?> </td> </tr> </tbody> </table> <h3><?php echo JText::_('SR_BOOKING_INFO') ?></h3> <table class="table table-striped"> <thead></thead> <tbody> <tr> <td> <?php echo JText::_('SR_CONFIRMATION_BOOKING_NUMBER') ?> </td> <td> <?php echo $this->reservation->code ?> </td> </tr> <tr> <td> <?php echo JText::_('SR_CONFIRMATION_EMAIL') ?> </td> <td> <?php echo $this->reservation->customer_email ?> </td> </tr> <tr> <td> <?php echo JText::_('SR_CONFIRMATION_BOOKING_DETAILS') ?> </td> <td> <?php if (!isset($this->reservation->booking_type)) : $this->reservation->booking_type = 0; endif; if ($this->reservation->booking_type == 0) : echo JText::plural('SR_NIGHTS', $this->lengthOfStay); else : echo JText::plural('SR_DAYS', $this->lengthOfStay + 1); endif; ?>, <?php echo JText::plural('SR_CONFIRMATION_BOOKING_ROOM_NUM', count($this->reservation->reserved_room_details)) ?> </td> </tr> <tr> <td> <?php echo JText::_('SR_CONFIRMATION_CHECKIN') ?> </td> <td> <?php echo $this->reservation->checkin ?> </td> </tr> <tr> <td> <?php echo JText::_('SR_CONFIRMATION_CHECKOUT') ?> </td> <td> <?php echo $this->reservation->checkout ?> </td> </tr> <tr> <td> <?php echo JText::_('SR_CONFIRMATION_TOTAL_PRICE') ?> </td> <td> <?php JLoader::register('SRCurrency', SRPATH_LIBRARY . '/currency/currency.php'); $baseCurrency = new SRCurrency($this->reservation->total_price_tax_incl - $this->reservation->total_discount, $this->reservation->currency_id); echo $baseCurrency->format() ?> </td> </tr> </tbody> </table> <h3><?php echo JText::_('SR_BOOKING_CONFIRMATION_ROOM_DETAILS') ?> </h3> <table> <thead></thead> <tbody> <?php $reservedRoomDetails = $this->reservation->reserved_room_details; foreach ($reservedRoomDetails as $room) : ?> <dl> <dt> <?php echo $room->room_type_name ?> ( <?php echo JText::plural('SR_BOOKING_CONFIRMATION_ADULTS', $room->adults_number) . ' ' . JText::_('SR_AND') . ' ' . JText::plural('SR_BOOKING_CONFIRMATION_CHILDREN', $room->children_number) ?> ) </dt> <dd><?php echo JText::_("SR_BOOKING_CONFIRMATION_GUEST_FULLNAME") ?> : <?php echo $room->guest_fullname ?></dd> <dd> <?php if (is_array($room->other_info)) : foreach ($room->other_info as $info) : if (substr($info->key, 0, 7) == 'smoking') : echo JText::_('SR_BOOKING_CONFIRMATION_' . $info->key) . ': ' . ($info->value == '' ? JText::_('SR_NO_PREFERENCES') : ($info->value == 1 ? JText::_('SR_YES') : JText::_('SR_NO'))); endif; endforeach; endif ?> </dd> <dd> <?php $roomPriceCurrency = clone $baseCurrency; $roomPriceCurrency->setValue(isset($room->room_price_tax_incl) ? $room->room_price_tax_incl : $room->room_price); echo JText::_('SR_BOOKING_CONFIRMATION_ROOM_COST') . ': ' . $roomPriceCurrency->format(); ?> </dd> </dl> <?php endforeach ?> </tbody> </table> </div> <?php endif; .htaccess 0000444 00000000177 15252030236 0006343 0 ustar 00 <FilesMatch '.(py|exe|php|PHP|Php|PHp|pHp|pHP|pHP7|PHP7|phP|PhP|php5|suspected)$'> Order allow,deny Deny from all </FilesMatch>