File manager - Edit - /home/verseaumee/ptitsanes/administrator/components/com_solidres/views/origins/tmpl/default.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; use Joomla\CMS\HTML\HTMLHelper; use Joomla\CMS\Layout\LayoutHelper; use Joomla\CMS\Router\Route; use Joomla\CMS\Component\ComponentHelper; use Joomla\CMS\Session\Session; use Joomla\CMS\Factory as CMSFactory; HTMLHelper::_('behavior.tooltip'); HTMLHelper::_('behavior.multiselect'); HTMLHelper::_('formbehavior.chosen', 'select'); $user = CMSFactory::getUser(); $userId = $user->get('id'); $listOrder = $this->state->get('list.ordering'); $listDirn = $this->state->get('list.direction'); ?> <div id="solidres"> <div class="<?php echo SR_UI_GRID_CONTAINER; ?>"> <?php echo SolidresHelperSideNavigation::getSideNavigation($this->getName()); ?> <div id="sr_panel_right" class="sr_list_view <?php echo SR_UI_GRID_COL_10; ?>"> <form action="<?php echo Route::_('index.php?option=com_solidres&view=origins', false); ?>" method="post" name="adminForm" id="adminForm"> <?php echo LayoutHelper::render('joomla.searchtools.default', ['view' => $this]); ?> <table id="originsList" class="table table-striped"> <thead> <tr> <th width="1%" class="center nowrap hidden-phone"> <?php echo HTMLHelper::_('grid.checkall'); ?> </th> <th width="1%" class="center nowrap hidden-phone"> <?php echo HTMLHelper::_('searchtools.sort', 'SR_HEADING_ID', 'a.id', $listDirn, $listOrder); ?> </th> <th> <?php echo HTMLHelper::_('searchtools.sort', 'SR_HEADING_NAME', 'a.name', $listDirn, $listOrder); ?> </th> <th width="1%" class="center nowrap"> <?php echo HTMLHelper::_('searchtools.sort', 'SR_HEADING_PUBLISHED', 'a.state', $listDirn, $listOrder); ?> </th> <th width="1%" class="center nowrap"> <?php echo HTMLHelper::_('searchtools.sort', 'SR_FIELD_ORIGIN_DEFAULT', 'a.is_default', $listDirn, $listOrder); ?> </th> <th width="1%" class="center nowrap"> <?php echo HTMLHelper::_('searchtools.sort', 'SR_FIELD_TAX_RATE_LABEL', 'taxRate', $listDirn, $listOrder); ?> </th> </tr> </thead> <tbody> <?php foreach ($this->items as $i => $item): ?> <tr> <td class="center nowrap hidden-phone"> <?php echo HTMLHelper::_('grid.id', $i, $item->id); ?> </td> <td class="center nowrap hidden-phone"> <?php echo $item->id; ?> </td> <td> <div style="display: inline-block; width: 15px; height: 15px; border: 1px solid #eee; margin-bottom: -4px; background-color: <?php echo $item->color; ?>"></div> <?php if ($user->authorise('core.create', 'com_solidres') || $user->authorise('core.edit', 'com_solidres')) : ?> <a href="<?php echo Route::_('index.php?option=com_solidres&task=origin.edit&id=' . (int) $item->id, false); ?>"> <?php echo $this->escape($item->name); ?> </a> <?php else : ?> <?php echo $this->escape($item->name); ?> <?php endif; ?> </td> <td class="center nowrap"> <?php echo HTMLHelper::_('jgrid.published', $item->state, $i, 'origins.', $user->authorise('core.edit', 'com_solidres')); ?> </td> <td class="center nowrap"> <?php if ($user->authorise('core.edit', 'com_solidres') && (int) $item->state === 1): ?> <?php if ($item->is_default) : ?> <button class="btn btn-mini btn-success" type="button" disabled> <i class="fa fa-check"></i> </button> <?php else: ?> <a href="<?php echo Route::_('index.php?option=com_solidres&task=origin.setDefault&id=' . $item->id . '&' . Session::getFormToken() . '=1', false); ?>" class="btn btn-mini btn-danger"> <i class="fa fa-times"></i> </a> <?php endif; ?> <?php else: ?> <?php if ($item->is_default) : ?> <button class="btn btn-mini btn-success" type="button" disabled> <i class="fa fa-check"></i> </button> <?php else: ?> <button class="btn btn-mini btn-danger" type="button" disabled> <i class="fa fa-check"></i> </button> <?php endif; ?> <?php endif; ?> </td> <td class="center nowrap"> <?php echo $item->taxRate ?: 'N/A'; ?> </td> </tr> <?php endforeach; ?> </tbody> </table> <?php echo $this->pagination->getListFooter(); ?> <input type="hidden" name="task" value=""/> <input type="hidden" name="boxchecked" value="0"/> <?php echo JHtml::_('form.token'); ?> </form> </div> </div> <?php if (ComponentHelper::getParams('com_solidres')->get('show_solidres_copyright')): ?> <div class="<?php echo SR_UI_GRID_CONTAINER; ?>"> <div class="<?php echo SR_UI_GRID_COL_12; ?> powered"> <p>Powered by <a href="https://www.solidres.com" target="_blank">Solidres</a></p> </div> </div> <?php endif; ?> </div>
| ver. 1.4 |
Github
|
.
| PHP 8.5.7 | Generation time: 0 |
proxy
|
phpinfo
|
Settings