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.
 
 
 
 
 

100 righe
3.4 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">
<?= Modulo::header($radice) ?>
</p>
</div>
</div>
</div>
<?
if (isset($_SESSION["ente"])) {
?>
<div class="text-right mb-2">
<button class="btn btn-warning" onClick="showModalWithURL('massive/panel.php')">
<span class="fa fa-cloud-upload-alt"></span> <?= __("Importazione massiva") ?>
</button>
</div>
<?
}
?>
<div class="card">
<div class="card-body">
<?
$bind = [];
$sql = "SELECT b_operatori_economici.codice FROM b_operatori_economici ";
if (isset($_SESSION["ente"])) {
$sql .= " JOIN r_enti_operatori ON b_operatori_economici.codice = r_enti_operatori.codice_operatore WHERE cod_ente = :ente";
$bind[":ente"] = $_SESSION["ente"]->codice;
}
$oe = $pdo->go($sql, $bind);
if ($oe->rowCount() > 0) {
?>
<div class="table-responsive">
<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 width="110"><?= __("Partita IVA") ?></th>
<th><?= __("Denominazione") ?></th>
<th><?= __("Tipologia") ?></th>
<th><?= __("E-mail") ?></th>
<th><?= __("PEC") ?></th>
<th width="150"><?= __("Ultimo aggiornamento") ?></th>
<? if ($_SESSION["utente"]->gerarchia === 1 || $_SESSION["utente"]->hasSuperPowers()) { ?><th width="10"></th><? } ?>
<th width="10"></th>
<th width="10"></th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
<script>
var table = $("#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": 50,
"columns": [
{ "orderable": false },
null,
null,
null,
null,
null,
null,
null,
null,
<? if ($_SESSION["utente"]->gerarchia === 1 || $_SESSION["utente"]->hasSuperPowers()) { ?>{ "orderable": false },<? } ?>{ "orderable": false },
{ "orderable": false }
]
});
</script>
<?
} else {
alertManager::printWarningBox(__("Nessun risultato"));
}
?>
</div>
</div>
<?
include_once "{$beRoot}/layout/bottom.php";
}
?>