Your IP : 216.73.216.224


Current Path : /var/www/html/administrator/components/com_osmembership/view/downloadids/tmpl/
Upload File :
Current File : /var/www/html/administrator/components/com_osmembership/view/downloadids/tmpl/default.php

<?php
/**
 * @package        Joomla
 * @subpackage     Membership Pro
 * @author         Tuan Pham Ngoc
 * @copyright      Copyright (C) 2012 - 2026 Ossolution Team
 * @license        GNU/GPL, see LICENSE.php
 */

defined('_JEXEC') or die;

use Joomla\CMS\Factory;
use Joomla\CMS\HTML\HTMLHelper;
use Joomla\CMS\Language\Text;

Factory::getApplication()->getDocument()->getWebAssetManager()
	->useScript('table.columns')
	->useScript('multiselect');

$config = OSMembershipHelper::getConfig();
?>
<form action="<?php echo $this->getFormAction(); ?>" method="post" name="adminForm" id="adminForm">
    <div id="filter-bar" class="btn-toolbar">
        <div class="filter-search btn-group pull-left">
            <label for="filter_search" class="element-invisible"><?php echo Text::_('OSM_FILTER_SEARCH_DOWNLOAD_IDS_DESC');?></label>
            <input type="text" name="filter_search" inputmode="search" id="filter_search" placeholder="<?php echo Text::_('JSEARCH_FILTER'); ?>" value="<?php echo $this->escape($this->state->filter_search); ?>" class="hasTooltip form-control" title="<?php echo HTMLHelper::tooltipText('OSM_SEARCH_DOWNLOAD_IDS_DESC'); ?>" />
        </div>
        <div class="btn-group pull-left">
            <button type="submit" class="btn hasTooltip" title="<?php echo HTMLHelper::tooltipText('JSEARCH_FILTER_SUBMIT'); ?>"><span class="icon-search"></span></button>
            <button type="button" class="btn hasTooltip" title="<?php echo HTMLHelper::tooltipText('JSEARCH_FILTER_CLEAR'); ?>" onclick="document.getElementById('filter_search').value='';this.form.submit();"><span class="icon-remove"></span></button>
        </div>
        <div class="filter-select pull-right">
            <?php echo $this->lists['filter_state']; ?>
        </div>
    </div>
    <div class="clearfix"></div>
    <table class="adminlist table table-striped">
        <thead>
        <tr>
            <th width="20">
                <?php echo HTMLHelper::_('grid.checkall'); ?>
            </th>
            <th class="title">
	            <?php echo $this->gridSort('OSM_DOWNLOAD_ID', 'tbl.download_id'); ?>
            </th>
            <th class="title">
	            <?php echo $this->gridSort('OSM_DOMAIN', 'tbl.domain'); ?>
            </th>
            <th class="title" nowrap="nowrap">
	            <?php echo $this->gridSort('OSM_CREATED_DATE', 'tbl.created_date'); ?>
            </th>
            <th class="title" nowrap="nowrap">
	            <?php echo $this->gridSort('OSM_USERNAME', 'u.username'); ?>
            </th>
            <th class="title" nowrap="nowrap">
	            <?php echo $this->gridSort('Published', 'tbl.published'); ?>
            </th>
            <th width="3%" class="title" nowrap="nowrap">
	            <?php echo $this->gridSort('OSM_ID', 'tbl.id'); ?>
            </th>
        </tr>
        </thead>
        <tfoot>
        <tr>
            <td colspan="7">
                <?php echo $this->pagination->getListFooter(); ?>
            </td>
        </tr>
        </tfoot>
        <tbody>
        <?php
		$k = 0;
        for ($i = 0, $n = count($this->items); $i < $n; $i++)
		{
			$row       = $this->items[$i];
			$checked   = HTMLHelper::_('grid.id', $i, $row->id);
			$published = HTMLHelper::_('jgrid.published', $row->published, $i, 'downloadid.');
			?>
            <tr class="<?php echo "row$k"; ?>">
                <td>
                    <?php echo $checked; ?>
                </td>
                <td>
                    <?php echo $row->download_id ?>
                </td>
                <td>
                    <?php echo $row->domain ; ?>
                </td>
                <td>
                    <?php echo HTMLHelper::_('date', $row->created_date, $config->date_format); ?>
                </td>
                <td>
                    <?php echo $row->username ; ?>
                </td>
                <td class="center">
                    <?php echo $published; ?>
                </td>
                <td class="center">
                    <?php echo $row->id; ?>
                </td>
            </tr>
            <?php
			$k = 1 - $k;
		}
		?>
        </tbody>
    </table>
	<?php $this->renderFormHiddenVariables(); ?>
</form>