stable version

This commit is contained in:
2025-08-26 11:16:08 +02:00
parent 39fb002d4c
commit 1814530c64
14 changed files with 370 additions and 218 deletions

View File

@ -1,4 +1,5 @@
<?php
/**
* @version CVS: 1.0.0
* @package Com_Circolari
@ -38,6 +39,8 @@ HTMLHelper::_('bootstrap.tooltip');
<?php echo $this->form->renderField('attachment'); ?>
<?php echo $this->form->renderField('image'); ?>
<?php echo $this->form->renderField('tipologia_firma_id'); ?>
<?php echo $this->form->renderField('firma_obbligatoria'); ?>
<?php echo $this->form->renderField('scadenza'); ?>
</fieldset>
</div>
</div>
@ -47,6 +50,6 @@ HTMLHelper::_('bootstrap.tooltip');
<?php echo $this->form->renderField('created_by'); ?>
<?php echo $this->form->renderField('modified_by'); ?>
<?php echo HTMLHelper::_('uitab.endTabSet'); ?>
<input type="hidden" name="task" value=""/>
<input type="hidden" name="task" value="" />
<?php echo HTMLHelper::_('form.token'); ?>
</form>
</form>

View File

@ -62,8 +62,8 @@ if (!empty($saveOrder)) {
<?php echo HTMLHelper::_('searchtools.sort', 'Titolo', 'a.title', $listDirn, $listOrder); ?>
</th>
<th><?php echo Text::_("COM_CIRCOLARI_FIELD_TIPOLOGIA_FIRMA_LABEL"); ?></th>
<th> <?php echo HTMLHelper::_('searchtools.sort', 'Firma Obbligatoria', 'a.firma_obbligatoria', $listDirn, $listOrder); ?>
</th>
<th> <?php echo HTMLHelper::_('searchtools.sort', 'Firma Obbligatoria', 'a.firma_obbligatoria', $listDirn, $listOrder); ?>
</th>
<th>Scadenza</th>
<?php if (isset($this->items[0]->ordering)): ?>
@ -107,7 +107,7 @@ if (!empty($saveOrder)) {
<?php echo htmlspecialchars($item->title, ENT_QUOTES, 'UTF-8'); ?>
</a>
</td>
<td><?php echo htmlspecialchars($item->tipologia_firma_id, ENT_QUOTES, "UTF-8"); ?></td>
<td><?php echo $item->tipologia_nome; ?></td>
<td><?php echo $item->firma_obbligatoria ? 'Sì' : 'No'; ?></td>
<td><?php echo $item->scadenza; ?></td>
<?php if (isset($this->items[0]->ordering)) : ?>

View File

@ -34,7 +34,9 @@ HTMLHelper::_('bootstrap.tooltip');
<fieldset class="adminform">
<legend><?php echo Text::_('COM_CIRCOLARI_FIELDSET_ETICHETTA'); ?></legend>
<?php echo $this->form->renderField('nome'); ?>
<?php echo $this->form->renderField('lingua'); ?>
<?php echo $this->form->renderField('descrizione'); ?>
<?php echo $this->form->renderField('bottoni_firma'); ?>
</fieldset>
</div>
</div>

View File

@ -1,47 +1,78 @@
<?php
\defined('_JEXEC') or die;
/**
* @package Com_Circolari
* @version CVS: 1.0.0
* @author Tommaso Cippitelli
*/
defined('_JEXEC') or die;
use Joomla\CMS\HTML\HTMLHelper;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Factory;
use Joomla\CMS\Router\Route;
use Joomla\CMS\Layout\LayoutHelper;
use Joomla\CMS\Factory;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Session\Session;
HTMLHelper::_('bootstrap.tooltip');
HTMLHelper::_('behavior.multiselect');
$wa = $this->document->getWebAssetManager();
$wa->useStyle('com_circolari.admin')
->useScript('com_circolari.admin');
$user = Factory::getApplication()->getIdentity();
$listOrder = $this->state->get('list.ordering');
$listDirn = $this->state->get('list.direction');
$user = Factory::getApplication()->getIdentity();
$listOrder = $this->state->get('list.ordering');
$listDirn = $this->state->get('list.direction');
$canChange = $user->authorise('core.edit.state', 'com_circolari');
?>
<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="" />
<div class="row">
<div class="col-md-12">
<div id="j-main-container" class="j-main-container">
<?php echo LayoutHelper::render('joomla.searchtools.default', array('view' => $this)); ?>
<div class="clearfix"></div>
<table class="table table-striped" id="firmetipiList">
<thead>
<tr>
<th class="w-1 text-center">
<input type="checkbox" name="checkall-toggle" class="form-check-input" title="<?php echo Text::_('JGLOBAL_CHECK_ALL'); ?>" onclick="Joomla.checkAll(this)" />
</th>
<th><?php echo HTMLHelper::_('searchtools.sort', 'Nome', 'a.nome', $listDirn, $listOrder); ?></th>
<th><?php echo HTMLHelper::_('searchtools.sort', 'Descrizione', 'a.descrizione', $listDirn, $listOrder); ?></th>
<th class="w-1 text-center"><?php echo HTMLHelper::_('searchtools.sort', 'JSTATUS', 'a.state', $listDirn, $listOrder); ?></th>
<th class="w-1 text-center"><?php echo HTMLHelper::_('searchtools.sort', 'ID', 'a.id', $listDirn, $listOrder); ?></th>
</tr>
</thead>
<tfoot>
<tr>
<td colspan="5"><?php echo $this->pagination->getListFooter(); ?></td>
</tr>
</tfoot>
<tbody>
<?php foreach ($this->items as $i => $item) : ?>
<tr class="row<?php echo $i % 2; ?>">
<td class="text-center"><?php echo HTMLHelper::_('grid.id', $i, $item->id); ?></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 class="text-center"><?php echo HTMLHelper::_('jgrid.published', $item->state, $i, 'firmetipi.', $canChange, 'cb'); ?></td>
<td class="text-center"><?php echo (int) $item->id; ?></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<input type="hidden" name="task" value="" />
<input type="hidden" name="boxchecked" value="0" />
<input type="hidden" name="list[fullorder]" value="<?php echo $listOrder . ' ' . $listDirn; ?>" />
<?php echo HTMLHelper::_('form.token'); ?>
</div>
</div>
</div>
</form>