Your IP : 216.73.216.240


Current Path : /home/juvelize/saulnois/tmp/install_695d2cf0b4957/html/backlist/
Upload File :
Current File : /home/juvelize/saulnois/tmp/install_695d2cf0b4957/html/backlist/modal.php

<?php
/*
* @package		Tech Fry Library
* @license		https://www.gnu.org/licenses/gpl-3.0.en.html
*/

defined('_JEXEC') or die;

use Joomla\CMS\HTML\HTMLHelper;
use Joomla\CMS\Language\Multilanguage;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Layout\LayoutHelper;
use Joomla\CMS\Router\Route;
use Joomla\CMS\Session\Session;

$wa = $this->getDocument()->getWebAssetManager();
$wa->useScript('core')
    ->useScript('multiselect')
    ->useScript('modal-content-select');

$multilang = Multilanguage::isEnabled();

$action = Route::_('index.php?option=' . $this->option . '&view=' . $this->view_name . '&layout=modal&tmpl=component&' . Session::getFormToken() . '=1');

echo '<form action="' . $action . '" method="post" name="adminForm" id="adminForm">';

    echo LayoutHelper::render('joomla.searchtools.default', array('view' => $this));

    if (empty($this->items))
    {
        echo $this->get_no_results_msg();
    }
    else
    {
        $this->ths = array(array('JGLOBAL_TITLE', 'a.title'));

        echo '<table class="table table-striped table-hover">';
            
            echo '<thead>';
                echo '<th class="w-1 text-center">' . HTMLHelper::_('searchtools.sort', 'JSTATUS', 'a.published', $this->listDirn, $this->listOrder) . '</th>';
                echo '<th style="min-width:100px">' . HTMLHelper::_('searchtools.sort', 'JGLOBAL_TITLE', 'a.title', $this->listDirn, $this->listOrder) . '</th>';
                echo '<th class="w-3 d-none d-lg-table-cell">' . HTMLHelper::_('searchtools.sort', 'JGRID_HEADING_ID', 'a.id', $this->listDirn, $this->listOrder) . '</th>';
            echo '</thead>';
            
            echo '<tbody>';
            foreach ($this->items as $i => $item)
            {
                if (isset($item->language) && $item->language && $multilang)
                {
                    $tag = strlen($item->language);
                    if ($tag == 5)
                    {
                        $lang = substr($item->language, 0, 2);
                    }
                    elseif ($tag == 6)
                    {
                        $lang = substr($item->language, 0, 3);
                    }
                    else 
                    {
                        $lang = '';
                    }
                }
                elseif (!$multilang)
                {
                    $lang = '';
                }

                echo '<tr>';
                    echo '<td>' . $this->get_binary($item->published) . '</td>';

                    echo '<th>';
                    $link = 'index.php?option=' . $this->option . '&view=' . $this->form_view . '&id=' . $item->id;
                    $attribs = 'data-content-select'
                    . ' data-id="' . $item->id . '"'
                    . ' data-title="' . $this->escape($item->title) . '"'
                    . ' data-uri="' . $link . '"'
                    . ' data-language="' . $this->escape($lang) . '"';

                    echo '<a class="select-link" href="javascript:void(0)" ' . $attribs . '>' . $this->escape($item->title) . '</a>';

                    echo '</th>';

                    echo '<td>' . (int) $item->id . '</td>';
                echo '</tr>';
            }

            echo '</tbody>';

        echo '</table>';
        }

        echo $this->pagination->getListFooter();

        echo '<input type="hidden" name="task" value="">';
        echo '<input type="hidden" name="boxchecked" value="0">';
        echo '<input type="hidden" name="forcedLanguage" value="' . $this->input->get('forcedLanguage', '', 'CMD') . '">';
        echo HTMLHelper::_('form.token');

echo '</form>';
?>