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.
 
 
 
 
 

88 righe
3.0 KiB

<?
if (!empty($print)) {
$elenchi = static::getList();
if (!empty($elenchi)) {
?>
<div class="card mb-2">
<div class="card-header">
<div class="form-group">
<label for="tipologia"><?= __("Tipologia") ?></label>
<select name="status" id="filtroTipologia" onChange="table.draw();" class="form-control">
<option value=""><?= __("Tutti") ?></option>
<?
foreach(static::getTipologie(true) AS $stat => $stato) {
?>
<option value="<?= $stat ?>">
<?= __($stato) ?>
</option>
<?
}
?>
</select>
</div>
</div>
<div class="card-body">
<div class="table-responsive">
<h2 id="table-title"></h2>
<table class="table table-striped table-hover" id="tab-data" width="100%">
<thead>
<tr>
<th width="10"></th>
<th width="150"></th>
<th width="10"><?= __("ID") ?></th>
<th width="10"></th>
<th width="200"><?= __("Tipologia") ?></th>
<th><?= __("Oggetto") ?></th>
<th><?= __("Nuove istanze") ?></th>
<th><?= __("Aggiornamenti") ?></th>
<th><?= __("Ammessi") ?></th>
<th><?= __("Respinti") ?></th>
<th><?= __("Integrazioni") ?></th>
<th><?= __("Totale") ?></th>
<th width="5"></th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
</div>
</div>
<script>
var table = $("#tab-data").DataTable({
"processing": true,
"serverSide": true,
"language": {
"url": "/dictionary/datatables/<?= $_SESSION["language"] ?>.lang"
},
"ajax": {
"url": "table.php",
"data": function (d) {
d.tipologia = $('#filtroTipologia').val();
}
},
"order": [[2,'desc']],
"lengthMenu": [[10, 25, 50, -1], [10, 25, 50, '<?= __("tutti") ?>']],
"columns": [
{ "orderable": false },
{ "orderable": false, "class":"text-center" },
{ "class":"text-center" },
{ "class":"text-center" },
{ "class":"text-center" },
null,
{ "orderable": false, "class":"text-center" },
{ "orderable": false, "class":"text-center" },
{ "orderable": false, "class":"text-center" },
{ "orderable": false, "class":"text-center" },
{ "orderable": false, "class":"text-center" },
{ "orderable": false, "class":"text-center" },
{ "orderable": false, "class":"text-center" }
]
});
</script>
<?
} else {
alertManager::printWarningBox(__("Nessun risultato"));
}
}
?>