gestione gare pubbliche
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 
 
 

106 righe
4.4 KiB

<?
$configPath = substr(__DIR__,0,strpos(__DIR__,"/public_html"))."/config.php";
include_once($configPath);
if (!empty($_SESSION["utente"]) && $_SESSION["utente"]->permission($radice)) {
$breadcrumb = [];
$breadcrumb["/impostazioni/index.php"] = __("Avanzate");
$breadcrumb[] = Modulo::getInfo($radice)["titolo"];
include_once ($beRoot."/layout/top.php");
?>
<div class="container-fluid pt-5">
<div class="row">
<div class="col-12">
<p class="d-block display-4">
<?= Modulo::header($radice) ?>
</p>
</div>
</div>
</div>
<div id="commands" class="mb-5">
<div class="commands container-fluid">
<div class="row">
<div class="col-12 text-right">
<a href="/backend/compilatore/edit.php?codice=0" class="m-1 btn btn-primary" title="<?= __('Aggiungi nuovo') ?>"><span class="fa fa-plus-circle"></span> <?= __('Aggiungi nuovo') ?></a>
<button onclick="showModalWithURL('/backend/compilatore/opzioni/index.php');" class="m-1 btn btn-info" title="<?= __('Opzioni') ?>"><span class="fa fa-check-square"></span> <?= __('Opzioni') ?></a>
<button onclick="showModalWithURL('/backend/compilatore/ricorsivi/index.php');" class="m-1 btn btn-warning" title="<?= __('Ricorsivi') ?>"><span class="fa fa-book"></span> <?= __('Ricorsivi') ?></a>
</div>
</div>
</div>
</div>
<?
$modelli = Compilatore::listModelli();
if (!empty($modelli)) {
?>
<div class="table-responsive">
<table class="table table-striped table-hover">
<thead>
<tr>
<th></th>
<th><?= __("Titolo") ?></th>
<th><?= __("Tipo") ?></th>
<th><?= __("Procedura") ?></th>
<th><?= __("Importo minimo") ?></th>
<th><?= __("Importo massimo") ?></th>
<th width="10"></th>
<th width="10"></th>
<th width="10"></th>
<th width="10"></th>
</tr>
</thead>
<tbody>
<?
foreach($modelli AS $modello) {
$stato = "bg-disabled";
$stato_label = __('disattivo');
if ($modello["attivo"]=="S") {
$stato = "bg-active";
$stato_label = __('attivo');
}
?>
<tr>
<td width="10">
<div id="flag_<?= $modello["codice"] ?>" class="mx-1 status_flag <?= $stato ?>"><span class="sr-only"><? $stato_label ?></span></div>
</td>
<td><?= $modello["titolo"] ?></td>
<td><?= $modello["tipo"] ?></td>
<td><?= $modello["procedura"] ?></td>
<td><?= number_format($modello["importo_minimo"],2,",",".") ?></td>
<td><?= number_format($modello["importo_massimo"],2,",",".") ?></td>
<td>
<a title='<?= __("modello") ?>' class='btn btn-block btn-sm btn-info' href='/backend/compilatore/paragrafi/index.php?codice=<?= $modello["codice"] ?>'>
<span class='fa fa-list'></span>
</a>
</td>
<td>
<a title='<?= __("modifica") ?>' class='btn btn-block btn-sm btn-primary' href='/backend/compilatore/edit.php?codice=<?= $modello["codice"] ?>'>
<span class='fa fa-edit'></span>
</a>
</td>
<td>
<button title='<?= __("Attiva/Disattiva") ?>' class='btn btn-block btn-sm btn-warning' onclick='disabilita(<?= $modello["codice"] ?>,"compilatore");'>
<span class='fa fa-sync'></span>
</button>
</td>
<td>
<button title='<?= __("elimina") ?>' class='btn btn-block btn-sm btn-danger' onclick='elimina(<?= $modello["codice"] ?>,"compilatore");'>
<span class='fa fa-times'></span>
</button>
</td>
</tr>
<?
}
?>
</tbody>
</table>
</div>
<?
} else {
alertManager::printWarningBox(__("Nessun risultato"));
}
include_once ($beRoot."/layout/bottom.php");
} else {
echo '<meta http-equiv="refresh" content="0;URL=/index.php">';
die();
}
?>