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.
 
 
 
 
 

69 righe
2.4 KiB

<?
global $config;
global $root;
if (isset($this) && is_a($this,"registriManager")) {
$records = $this->getLog(0,1);
if (!empty($records)) {
?>
<div id="commands" class="mb-5">
<div class="commands container-fluid">
<div class="row">
<div class="col-12 text-right">
<a target="_blank" class="btn btn-warning" href="/backend/common/registri/export-csv.php?modulo=<?= $this->modulo ?>&codice_elemento=<?= $this->elemento ?>">
<span class="fa fa-file-csv"></span> <?= __("Esporta CSV") ?>
</a>
<a target="_blank" class="btn btn-danger" href="/backend/common/registri/export-pdf.php?modulo=<?= $this->modulo ?>&codice_elemento=<?= $this->elemento ?>">
<span class="fa fa-file-pdf"></span> <?= __("Esporta PDF") ?>
</a>
</div>
</div>
</div>
</div>
<div class="card">
<div class="card-body">
<table class="table table-condensed table-striped table-hover" width="100%" id="table-registro">
<thead>
<tr>
<th width="200"><?= __("Operazione") ?></th>
<th><?= __("Descrizione") ?></th>
<th width="200"><?= __("Utente") ?></th>
<th width="200"><?= __("Data e ora") ?></th>
</tr>
</thead>
<tbody >
</tbody>
</table>
<script>
var tableRegistri = $("#table-registro").DataTable({
"processing": true,
"serverSide": true,
"filter": false,
"sort": false,
"language": {
"url": "/dictionary/datatables/<?= $_SESSION["language"] ?>.lang"
},
"ajax": {
"url": "/backend/common/registri/table-list.php",
"data": function (d) {
d.modulo = "<?= $this->modulo ?>",
d.codice_elemento = "<?= $this->elemento ?>"
}
},
"lengthMenu": [[25, 50, -1], [25, 50, '<?= __("tutti") ?>']],
"columns": [
{ "orderable": false },
{ "orderable": false },
{ "orderable": false },
{ "orderable": false }
]
});
</script>
</div>
</div>
<?
} else {
alertManager::printWarningBox(__("Nessun risultato"));
}
}
?>