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.
 
 
 
 
 

87 righe
3.1 KiB

<?
$configPath = substr(__DIR__,0,strpos(__DIR__,"/public_html"))."/config.php";
include_once($configPath);
if (empty($_SESSION["utente"]) || ! $_SESSION["utente"]->permission($radice)) {
header('Location: /');
die();
} else {
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">
<i class="fa fa-university mr-4"></i><?= __("Enti") ?>
</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 class="btn btn-warning" target="_blank" href="/backend/enti/export.php" role="button" title="<?= __('Esporta CSV') ?>"><i class="fa fa-file-csv mr-3"></i><?= __('Esporta CSV') ?></a>
<a class="btn btn-primary" href="/backend/enti/edit.php?codice=0" role="button" title="<?= __('Aggiungi nuovo') ?>"><i class="fa fa-plus-circle mr-3"></i><?= __('Aggiungi nuovo') ?></a>
<? if (isset($_SESSION["ente"])) : ?>
<button class="btn btn-warning" onClick="showModalWithURL('/backend/enti/settings.php?gruppo=enti'); return false">
<span class="fa fa-cogs"></span> <?= __("Impostazioni") ?>
</button>
<? endif; ?>
</div>
</div>
</div>
</div>
<div class="card">
<div class="card-body">
<?
$aziende = $pdo->go("SELECT count(codice) FROM b_enti ");
if ($aziende->rowCount() > 0) {
?>
<table class="table table-striped table-hover table-condensed" id="tab-data" width="100%">
<thead>
<tr>
<th width="10"></th>
<th width="10">#</th>
<th width="110"><?= __("Codice Fiscale") ?></th>
<th><?= __("Denominazione") ?></th>
<th><?= __("Dominio") ?></th>
<th><?= __("PEC") ?></th>
<th width="10"></th>
</tr>
</thead>
<tbody>
</tbody>
</table>
<script>
var entiTable = $("#tab-data").DataTable({
"processing": true,
"serverSide": true,
"language": {
"url": "/dictionary/datatables/<?= $_SESSION["language"] ?>.lang"
},
"ajax": "table.php",
"order": [[1,'DESC'],[3,'ASC']],
"lengthMenu": [[10, 25, 50, -1], [10, 25, 50, '<?= __("tutti") ?>']],
"pageLength": 25,
"columns": [
{ "orderable": false },
null,
null,
null,
null,
{ "orderable": false },
{ "orderable": false }
]
});
</script>
<?
} else {
alertManager::printWarningBox(__("Nessun risultato"));
}
?>
</div>
</div>
<?
include_once "{$beRoot}/layout/bottom.php";
}
?>