| Server IP : 54.36.91.62 / Your IP : 216.73.217.112 Web Server : Apache System : Linux webm013.cluster127.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64 User : coopiak ( 151928) PHP Version : 8.3.23 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/coopiak/amisdesseniors-fr/administrator/components/com_djcatalog2/views/fields/tmpl/ |
Upload File : |
<?php
/**
* @package DJ-Catalog2
* @copyright Copyright (C) DJ-Extensions.com, All rights reserved.
* @license http://www.gnu.org/licenses GNU/GPL
* @author url: http://dj-extensions.com
* @author email contact@dj-extensions.com
*/
// no direct access
defined('_JEXEC') or die();
use Joomla\CMS\Router\Route;
use Joomla\CMS\Layout\LayoutHelper;
use Joomla\CMS\Factory;
use Joomla\CMS\Uri\Uri;
use Joomla\CMS\Session\Session;
use Joomla\CMS\Language\Text;
//Joomla\CMS\HTML\HTMLHelper::_('bootstrap.tooltip');
Factory::getDocument()->addScript(Uri::base(true).'/components/com_djcatalog2/assets/js/jselect-modal.js');
$user = Factory::getUser();
$userId = $user->get('id');
$listOrder = $this->state->get('list.ordering');
$listDirn = $this->state->get('list.direction');
$saveOrder = ($listOrder == 'a.ordering' && !empty($this->items));
$function = Factory::getApplication()->input->getCmd('function', 'jSelectDJCatalog2Field');
$onclick = $this->escape($function);
$app = Factory::getApplication();
?>
<form action="<?php echo Route::_('index.php?option=com_djcatalog2&view=fields&language=' . $app->input->get('language') . '&layout=modal&function=' . $function . '&' . Session::getFormToken() . '=1&tmpl=component');?>" method="post" name="adminForm" id="adminForm">
<div id="j-main-container">
<div id="filter-bar" class="btn btn-toolbar">
<div class="filter-search btn-group pull-left">
<label class="element-invisible" for="filter_search"><?php echo Text::_('JSEARCH_FILTER_LABEL'); ?></label>
<input type="text" name="filter_search" id="filter_search" value="<?php echo $this->escape($this->state->get('filter.search')); ?>" />
</div>
<div class="btn-group pull-left">
<button type="submit" class="btn btn-primary"><?php echo Text::_('JSEARCH_FILTER_SUBMIT'); ?></button>
<button type="button" class="btn btn-primary" onclick="document.getElementById('filter_search').value='';this.form.submit();"><?php echo Text::_('JSEARCH_FILTER_CLEAR'); ?></button>
</div>
<div class="btn-group pull-right hidden-phone">
<label for="limit" class="element-invisible"><?php echo Text::_('JFIELD_PLG_SEARCH_SEARCHLIMIT_DESC');?></label>
<?php echo $this->pagination->getLimitBox(); ?>
</div>
<div class="btn-group pull-right">
<select name="filter_published" class="input form-control" onchange="this.form.submit()">
<option value=""><?php echo Text::_('JOPTION_SELECT_PUBLISHED');?></option>
<?php echo Joomla\CMS\HTML\HTMLHelper::_('select.options', array(Joomla\CMS\HTML\HTMLHelper::_('select.option', '1', 'JPUBLISHED'),Joomla\CMS\HTML\HTMLHelper::_('select.option', '0', 'JUNPUBLISHED')), 'value', 'text', $this->state->get('filter.published'), true);?>
</select>
<?php
$fieldgroup_fo = new stdClass();
$fieldgroup_fo->id = '';
$fieldgroup_fo->name = '- '.Text::_('COM_DJCATALOG2_SELECT_FIELDGROUP').' -';
$fieldgroup_fo->published = null;
$fieldgroups = count($this->fieldgroups) ? array_merge(array($fieldgroup_fo),$this->fieldgroups) : array($fieldgroup_fo);
echo Joomla\CMS\HTML\HTMLHelper::_('select.genericlist', $fieldgroups, 'filter_fieldgroup', 'class="input form-control" onchange="this.form.submit()"', 'id', 'name', $this->state->get('filter.fieldgroup'));
?>
</div>
</div>
<div class="clearfix"> </div>
<table class="table table-striped">
<thead>
<tr>
<th width="1%" class="hidden-phone">
<input type="checkbox" name="checkall-toggle" value="" title="<?php echo Text::_('JGLOBAL_CHECK_ALL'); ?>" onclick="Joomla.checkAll(this)" />
</th>
<th>
<?php echo Joomla\CMS\HTML\HTMLHelper::_('searchtools.sort', 'COM_DJCATALOG2_NAME', 'a.name', $listDirn, $listOrder); ?>
</th>
<th width="10%">
<?php echo Joomla\CMS\HTML\HTMLHelper::_('searchtools.sort', 'COM_DJCATALOG2_LANGUAGE', 'language', $listDirn, $listOrder); ?>
</th>
<th width="15%" class="title">
<?php echo Joomla\CMS\HTML\HTMLHelper::_('searchtools.sort', 'COM_DJCATALOG2_FIELDGROUP', 'group_name', $listDirn, $listOrder ); ?>
</th>
<th width="15%" class="title">
<?php echo Joomla\CMS\HTML\HTMLHelper::_('searchtools.sort', 'COM_DJCATALOG2_FIELD_TYPE', 'a.type', $listDirn, $listOrder ); ?>
</th>
<th width="5%">
<?php echo Joomla\CMS\HTML\HTMLHelper::_('searchtools.sort', 'JPUBLISHED', 'a.published', $listDirn, $listOrder); ?>
</th>
<th width="10%">
<?php echo Joomla\CMS\HTML\HTMLHelper::_('searchtools.sort', 'JGRID_HEADING_ORDERING', 'a.ordering', $listDirn, $listOrder); ?>
<?php if ($saveOrder) :?>
<?php echo Joomla\CMS\HTML\HTMLHelper::_('grid.order', $this->items, 'filesave.png', 'fields.saveorder'); ?>
<?php endif; ?>
</th>
<th width="1%" class="nowrap">
<?php echo Joomla\CMS\HTML\HTMLHelper::_('searchtools.sort', 'JGRID_HEADING_ID', 'a.id', $listDirn, $listOrder); ?>
</th>
</tr>
</thead>
<tfoot>
<tr>
<td colspan="7">
<?php echo $this->pagination->getListFooter(); ?>
</td>
</tr>
</tfoot>
<tbody>
<?php foreach ($this->items as $i => $item) :
$item->max_ordering = 0; //??
$ordering = ($listOrder == 'a.ordering');
?>
<tr class="row<?php echo $i % 2; ?>">
<td class="center">
<?php echo Joomla\CMS\HTML\HTMLHelper::_('grid.id', $i, $item->id); ?>
</td>
<td>
<?php $attribs = 'data-function="' . $this->escape($onclick) . '"'
. ' data-id="' . $item->id . '"'
. ' data-title="' . $this->escape($item->name) . '"';
?>
<a class="select-link" href="javascript:void(0)" <?php echo $attribs; ?>><?php echo $this->escape($item->name); ?></a>
<p class="smallsub small"><?php echo Text::sprintf('JGLOBAL_LIST_ALIAS', $this->escape($item->alias));?></p>
</td>
<td align="center">
<?php echo LayoutHelper::render('joomla.content.language', $item); ?>
</td>
<td class="center">
<?php echo $item->group_name ? $item->group_name : ''; ?>
</td>
<td class="center">
<?php echo Text::_('COM_DJCATALOG2_FIELD_TYPE_'.strtoupper($item->type)); ?>
</td>
<td class="center">
<?php echo Joomla\CMS\HTML\HTMLHelper::_('jgrid.published', $item->published, $i, 'fields.', true, 'cb' ); ?>
</td>
<td class="order">
<div class="input-prepend">
<?php $disabled = ''; ?>
<?php if ($saveOrder && $listDirn == 'asc') :?>
<span class="add-on"><?php echo $this->pagination->orderUpIcon($i, ($item->group_id == @$this->items[$i-1]->group_id), 'fields.orderup', 'JLIB_HTML_MOVE_UP', $ordering); ?></span><span class="add-on"><?php echo $this->pagination->orderDownIcon($i, $this->pagination->total, ($item->group_id == @$this->items[$i+1]->group_id), 'fields.orderdown', 'JLIB_HTML_MOVE_DOWN', $ordering); ?></span>
<?php else: $disabled = 'disabled="disabled"'; echo "<span class=\"add-on tip\" title=\"".Text::_('JDISABLED')."\"><i class=\"icon-ban-circle\"></i></span>"; ?>
<?php endif; ?>
<input type="text" name="order[]" size="5" value="<?php echo $item->ordering;?>" <?php echo $disabled ?> class="text-area-order width-20" />
</div>
</td>
<td class="center">
<?php echo (int) $item->id; ?>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<div>
<input type="hidden" name="task" value="" />
<input type="hidden" name="boxchecked" value="0" />
<input type="hidden" name="filter_order" value="<?php echo $listOrder; ?>" />
<input type="hidden" name="filter_order_Dir" value="<?php echo $listDirn; ?>" />
<input type="hidden" name="forcedLanguage" value="<?php echo $app->input->get('forcedLanguage', '', 'CMD'); ?>" />
<?php echo Joomla\CMS\HTML\HTMLHelper::_('form.token'); ?>
</div>
</div>
</form>