59 lines
2.4 KiB
PHP
59 lines
2.4 KiB
PHP
<?php
|
|
\defined('_JEXEC') or die;
|
|
|
|
use Joomla\CMS\HTML\HTMLHelper;
|
|
use Joomla\CMS\Router\Route;
|
|
use Joomla\CMS\Layout\LayoutHelper;
|
|
use Joomla\CMS\Session\Session;
|
|
|
|
$listOrder = $this->state->get('list.ordering', 'f.data_firma');
|
|
$listDirn = $this->state->get('list.direction', 'DESC');
|
|
|
|
// Carica CSS base
|
|
HTMLHelper::_('bootstrap.tooltip');
|
|
HTMLHelper::_('behavior.multiselect');
|
|
HTMLHelper::_('formbehavior.chosen', 'select');
|
|
?>
|
|
<form action="<?php echo Route::_('index.php?option=com_circolari&view=reportfirme'); ?>" method="post" name="adminForm" id="adminForm">
|
|
<div id="j-main-container" class="j-main-container">
|
|
<?php echo LayoutHelper::render('joomla.searchtools.default', ['view' => $this]); ?>
|
|
|
|
<table class="table table-striped">
|
|
<thead>
|
|
<tr>
|
|
<th><?php echo HTMLHelper::_('grid.sort', 'ID', 'f.id', $listDirn, $listOrder); ?></th>
|
|
<th><?php echo HTMLHelper::_('grid.sort', 'Circolare', 'c.title', $listDirn, $listOrder); ?></th>
|
|
<th><?php echo HTMLHelper::_('grid.sort', 'Nome', 'u.name', $listDirn, $listOrder); ?></th>
|
|
<th>Username</th>
|
|
<th>Email</th>
|
|
<th><?php echo HTMLHelper::_('grid.sort', 'Scelta', 'scelta_label', $listDirn, $listOrder); ?></th>
|
|
<th><?php echo HTMLHelper::_('grid.sort', 'Data firma', 'f.data_firma', $listDirn, $listOrder); ?></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php if (empty($this->items)) : ?>
|
|
<tr><td colspan="7" class="text-center text-muted">Nessun risultato</td></tr>
|
|
<?php else : ?>
|
|
<?php foreach ($this->items as $i => $item) : ?>
|
|
<tr>
|
|
<td><?php echo (int) $item->id; ?></td>
|
|
<td><?php echo $this->escape($item->circolare_title); ?></td>
|
|
<td><?php echo $this->escape($item->user_name); ?></td>
|
|
<td><?php echo $this->escape($item->username); ?></td>
|
|
<td><?php echo $this->escape($item->email); ?></td>
|
|
<td><span class="badge bg-secondary"><?php echo $this->escape($item->scelta_label); ?></span></td>
|
|
<td><?php echo HTMLHelper::_('date', $item->data_firma, 'd/m/Y H:i'); ?></td>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
<?php endif; ?>
|
|
</tbody>
|
|
</table>
|
|
|
|
<?php echo $this->pagination->getListFooter(); ?>
|
|
|
|
<input type="hidden" name="task" value="">
|
|
<input type="hidden" name="boxchecked" value="0">
|
|
<?php echo HTMLHelper::_('form.token'); ?>
|
|
</div>
|
|
</form>
|