| Server IP : 54.36.91.62 / Your IP : 216.73.217.117 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/helpers/layouts/ |
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
*/
defined('_JEXEC') or die();
use Joomla\CMS\Component\ComponentHelper;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Factory;
$cParams = ComponentHelper::getParams('com_djcatalog2');
?>
<div style="clear: both"></div>
<div id="<?php echo $wrapper_id ?>" class="djc_uploader <?php echo $wrapper_class?>">
<table class="adminlist table table-condensed table-bordered djc_uploader_table jlist-table">
<thead>
<tr>
<th class="djc_uploader_ordering" width="1%">
<?php echo Text::_('COM_DJCATALOG2_FILE_ORDER_LABEL'); ?>
</th>
<th class="djc_uploader_img">
<?php echo Text::_('COM_DJCATALOG2_IMAGE');?>
</th>
<th class="djc_uploader_caption">
<?php echo Text::_('COM_DJCATALOG2_FILE_CAPTION_LABEL'); ?>
</th>
<th class="djc_uploader_exclude">
<span class="hasTip" title="<?php echo Text::_('COM_DJCATALOG2_IMAGE_EXCLUDE');?>" rel="<?php echo Text::_('COM_DJCATALOG2_IMAGE_EXCLUDE_DESC'); ?>"><?php echo Text::_('COM_DJCATALOG2_IMAGE_EXCLUDE');?></span>
</th>
<th class="djc_uploader_delete">
</th>
</tr>
</thead>
<tfoot>
<tr id="djc_uploader_simple_<?php echo $suffix; ?>" class="djc_uploader_item_simple" style="display: none;">
<td colspan="5">
<input type="file" name="<?php echo $prefix; ?>_file_upload[]" class="form-control file-input" />
</td>
</tr>
<tr>
<td colspan="5">
<?php if ($multiple_upload) {
if($cParams->get('fb') && Factory::getApplication()->isClient('administrator')) { ?>
<?php echo Joomla\CMS\HTML\HTMLHelper::_('uitab.startTabSet', 'imageupload-myTab', array('recall' => true, 'active' => 'image-uploaderTab')); ?>
<?php echo Joomla\CMS\HTML\HTMLHelper::_('uitab.addTab', 'imageupload-myTab', 'image-uploaderTab', Text::_('COM_DJCATALOG2_TAB_UPLOADER')); ?>
<?php echo DJCatalog2UploadHelper::getUploader($uploader_id, $settings); ?>
<?php echo Joomla\CMS\HTML\HTMLHelper::_('uitab.endTab'); ?>
<?php echo Joomla\CMS\HTML\HTMLHelper::_('uitab.addTab', 'imageupload-myTab', 'image-filebrowserTab', Text::_('COM_DJCATALOG2_TAB_FILEBROWSER')); ?>
<div id="filebrowser" class="djc_filebrowser"></div>
<?php echo Joomla\CMS\HTML\HTMLHelper::_('uitab.endTab'); ?>
<?php echo Joomla\CMS\HTML\HTMLHelper::_('uitab.endTabSet'); ?>
<?php } else { ?>
<?php echo DJCatalog2UploadHelper::getUploader($uploader_id, $settings); ?>
<?php } ?>
<?php } else {?>
<button id="add_<?php echo $suffix; ?>_button" class="btn btn-primary button" onclick="DJCatalog2UPAddUploader('<?php echo $suffix; ?>', '<?php echo $wrapper_id?>'); return false;"><?php echo Text::_('COM_DJCATALOG2_ADD_IMG_LINK'); ?></button>
<?php } ?>
</td>
</tr>
</tfoot>
<tbody id="<?php echo $wrapper_id; ?>_items" class="djc_uploader_items" data-limit="<?php echo (int)$limit;?>">
<?php if(count($files)) { ?>
<?php foreach($files as $file) {
?>
<tr class="djc_uploader_item">
<td class="center ordering_handle">
<span class="sortable-handler" style="cursor: move;">
<i class="icon-move"></i>
</span>
</td>
<td class="center">
<a target="_blank" href="<?php echo DJCATIMGURLPATH.'/'.$file->fullpath;?>">
<img src="<?php echo DJCATIMGURLPATH.'/'.self::addSuffix($file->fullpath, '_s'); ?>" alt="<?php echo htmlspecialchars($file->fullname); ?>" />
</a>
<input type="hidden" name="<?php echo $prefix?>_file_id[]" value="<?php echo (int)$file->id; ?>" />
<input type="hidden" name="<?php echo $prefix?>_file_name[]" value="<?php echo $file->fullname; ?>" />
</td>
<td>
<input type="text" name="<?php echo $prefix ?>_caption[]" value="<?php echo htmlspecialchars($file->caption); ?>" class="djc_uploader_caption input form-control input-medium" />
</td>
<td class="center">
<input type="checkbox" <?php if ((int)$file->exclude) echo 'checked="checked"; '?> onchange="DJCatalog2UPExcludeCheckbox(this);" />
<input type="hidden" name="<?php echo $prefix?>_exclude[]" value="<?php echo (int)$file->exclude; ?>" class="djc_hiddencheckbox" />
</td>
<td class="center">
<button class="button btn djc_uploader_remove_btn"><?php echo Text::_('COM_DJCATALOG2_DELETE_BTN')?></button>
</td>
</tr>
<?php }?>
<?php }?>
</tbody>
</table>
</div>