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.
 
 
 
 
 

86 righe
3.8 KiB

<?
$configPath = substr(__DIR__,0,strpos(__DIR__,"public_html/"))."config.php";
include_once($configPath);
$id_modulo = "partecipanti";
if (!empty($_SESSION["utente"]) && $_SESSION["utente"]->permission($radice,$_GET["codice_simog"],$id_modulo)) {
if (!empty($_GET["codice_simog"])) {
$anac = anac::init($_GET["codice_simog"]);
if (!empty($anac)) {
$lotto = $anac->getLotti($_GET["codice_lotto"])[0] ?? false;
if (!empty($lotto)) {
$lock = $anac->checkLock($id_modulo);
$breadcrumb = array();
$breadcrumb["/".$radice."/"] = Modulo::getInfo($radice)["titolo"];
$breadcrumb = $anac->getBreadcrumb($breadcrumb);
$breadcrumb["/".$radice."/panel.php?codice=" . $anac->info["codice"]] = __("Pannello");
if ($anac->info["smart_cig"] == "N") {
$breadcrumb["/".$radice."/lotti/panel.php?codice_simog=" . $anac->info["codice"]."&codice_lotto={$lotto["codice"]}"] = __("Lotto");
}
$breadcrumb[""] = __("Partecipanti");
include($root."/backend/layout/top.php");
if (!$lock) {
?>
<div id="commands" class="mb-5">
<div class="commands container-fluid">
<div class="row">
<div class="col-12 text-right">
<button class="btn btn-success" onClick="showModalWithURL('edit.php?codice_simog=<?= $anac->info["codice"] ?>&codice_lotto=<?= $lotto["codice"] ?>'); return false;"><span class="fa fa-plus-circle"></span> <?= __("Aggiungi nuovo") ?></button>
<button class="btn btn-warning" onClick="showModalWithURL('massive/panel.php?codice_simog=<?= $anac->info["codice"] ?>&codice_lotto=<?= $lotto["codice"] ?>'); return false;"><span class="fa fa-table"></span> <?= __("Caricamento massivo") ?></button>
</div>
</div>
</div>
</div>
<?
}
if (!empty($anac->getPartecipantiLotto($lotto["codice"]))) { ?>
<div class="card card-body p-0">
<div class="table-responsive m-0">
<table class="table m-0 table-striped table-hover" id="tab-data" width="100%">
<thead>
<tr>
<th width="10">#</th>
<th width="10"></th>
<th width="10"><?= __("Codice Fiscale") ?></th>
<th><?= __("Ragione Sociale") ?></th>
<th></th>
<th width="10"></th>
<th width="10"></th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
</div>
<script>
var tabPartecipanti = $("#tab-data").DataTable({
"processing": true,
"serverSide": true,
"sort": false,
"info": false,
"filter": false,
"paginate": false,
"language": {
"url": "/dictionary/datatables/<?= $_SESSION["language"] ?>.lang"
},
"ajax": "table.php?codice=<?= $anac->info["codice"] ?>&codice_lotto=<?= $lotto["codice"] ?>"
});
</script>
<? } else {
alertManager::printWarningBox(__("Nessun risultato"));
}
include_once($root."/backend/layout/bottom.php");
}
} else {
echo '<meta http-equiv="refresh" content="0;URL=/backend/anac/index.php">';
die();
}
} else {
echo '<meta http-equiv="refresh" content="0;URL=/backend/anac/index.php">';
die();
}
} else {
echo '<meta http-equiv="refresh" content="0;URL=/backend/anac/index.php">';
die();
}
?>