File manager - Edit - /home/verseaumee/ptitsanes/administrator/components/com_solidres/views/reservationasset/tmpl/edit_extra.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; $user = JFactory::getUser(); $userId = $user->get('id'); $canCreate = $user->authorise('core.create', 'com_solidres'); $canEdit = $user->authorise('core.edit', 'com_solidres'); $canChange = $user->authorise('core.edit.state', 'com_solidres'); ?> <div class="room_type_assign"> <!--<p> <a href="<?php /*echo JRoute::_('index.php?option=com_solidres&view=extra&layout=edit')*/ ?>" class="btn" id="newExtra"><i class="icon-plus-2"></i> <?php /*echo JText::_('SR_NEW') */ ?></a> </p>--> <table class="table table-bordered table-condensed"> <thead> <tr> <th>Name</th> <th>Price</th> <th>State</th> </tr> </thead> <tbody> <?php $extras = $this->form->getValue('extras'); if (isset($extras)) { foreach ($extras as $i) { ?> <tr> <td> <?php if ($canCreate || $canEdit) : ?> <a href="<?php echo JRoute::_('index.php?option=com_solidres&task=extra.edit&id=' . (int) $i->id); ?>"> <?php echo $this->escape($i->name); ?> </a> <?php else : ?> <?php echo $this->escape($i->name); ?> <?php endif; ?> </td> <td> <?php echo $i->price ?> </td> <td> <?php echo ($i->state == 1) ? 'Yes' : 'No' ?> </td> </tr> <?php } } ?> </tbody> </table> </div>
| ver. 1.4 |
Github
|
.
| PHP 8.5.7 | Generation time: 0 |
proxy
|
phpinfo
|
Settings