Files
pkg_circolari/administrator/tmpl/firmetipi/default.php
2025-07-22 15:41:16 +02:00

48 lines
1.8 KiB
PHP

<?php
\defined('_JEXEC') or die;
use Joomla\CMS\HTML\HTMLHelper;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Router\Route;
use Joomla\CMS\Layout\LayoutHelper;
use Joomla\CMS\Factory;
$user = Factory::getApplication()->getIdentity();
$listOrder = $this->state->get('list.ordering');
$listDirn = $this->state->get('list.direction');
?>
<form action="<?php echo Route::_('index.php?option=com_circolari&view=firmetipi'); ?>" method="post" name="adminForm" id="adminForm">
<div class="row">
<div class="col-12">
<table class="table table-striped">
<thead>
<tr>
<th width="1%">#</th>
<th><?php echo Text::_('Nome'); ?></th>
<th><?php echo Text::_('Descrizione'); ?></th>
<th width="1%"><?php echo Text::_('ID'); ?></th>
</tr>
</thead>
<tbody>
<?php foreach ($this->items as $i => $item) : ?>
<tr>
<td><?php echo $i + 1; ?></td>
<td>
<a href="<?php echo Route::_('index.php?option=com_circolari&task=firmatipo.edit&id=' . (int) $item->id); ?>">
<?php echo htmlspecialchars($item->nome, ENT_QUOTES, 'UTF-8'); ?>
</a>
</td>
<td><?php echo htmlspecialchars($item->descrizione, ENT_QUOTES, 'UTF-8'); ?></td>
<td><?php echo (int) $item->id; ?></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
</div>
<input type="hidden" name="task" value="" />
</form>