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.
135 righe
4.9 KiB
135 righe
4.9 KiB
<? |
|
$configPath = substr(__DIR__,0,strpos(__DIR__,"/public_html"))."/config.php"; |
|
include_once($configPath); |
|
|
|
$modulo = modulo::getInfo($radice); |
|
|
|
$breadcrumb = []; |
|
$breadcrumb[] = $modulo["titolo"]; |
|
|
|
include_once($root."/layout/top.php"); |
|
?> |
|
<div class="container-fluid"> |
|
<h1><?= __("concorsi di progettazione") ?></h1> |
|
<? |
|
$list = publicConcorso::getList($_SESSION["ente"]->codice); |
|
if (!empty($list)) { |
|
$enti = $_SESSION["ente"]->entiBeneficiari(); |
|
$stati = publicConcorso::getStati(); |
|
$col = ""; |
|
?> |
|
<div class="card card-body my-2"> |
|
<div class="col-12 my-2 text-right"> |
|
<? |
|
if (!empty($_SESSION["utente"]->oe)) { |
|
?> |
|
<a href="/concorsi/oeArea/index.php" class="btn btn-info"> |
|
<?= __("Area personale") ?> |
|
</a> |
|
<? |
|
} |
|
?> |
|
</div> |
|
<div class="row justify-content-between mb-2"> |
|
<? |
|
if (count($enti) > 1) { |
|
$col = "col-lg-6"; |
|
?> |
|
<?php if ($_SESSION["ente"]->printUfficio) : ?> |
|
<div class="col-12 <?= $col ?>"> |
|
<label><?= __("Ente beneficiario") ?></label> |
|
<select id="filtroBeneficiario" onChange="table.draw();"> |
|
<option value=""><?= __("Tutti") ?></option> |
|
<? foreach($enti AS $ente) {?> |
|
<option value="<?= $ente["codice"] ?>"><?= $ente["denominazione"] ?></option> |
|
<? } ?> |
|
</select> |
|
</div> |
|
<?php endif ?> |
|
<? } ?> |
|
<div class="col-12 <?= $col ?>"> |
|
<label><?= __("Stato") ?></label> |
|
<select name="status" id="filtroStatus" onChange="table.draw();"> |
|
<option value=""><?= __("Tutti") ?></option> |
|
<? |
|
foreach($stati AS $stat => $stato) { |
|
if ($stat >= 20) { |
|
?> |
|
<option style="border-left: 5px solid <?= $stato["color"] ?>" value="<?= $stat ?>"> |
|
<?= __($stato["titolo"]) ?> |
|
</option> |
|
<? |
|
} |
|
} |
|
?> |
|
</select> |
|
</div> |
|
</div> |
|
</div> |
|
<div class="card card-body p-1"> |
|
<div class="table-responsive"> |
|
<table class="table table-striped table-hover" id="tab-data" width="100%"> |
|
<thead> |
|
<tr> |
|
<th width="10"></th> |
|
<th width="10"></th> |
|
<th width="10"><?= __("ID") ?></th> |
|
<th width="10"><?= __("CIG") ?></th> |
|
<th><?= __("Oggetto") ?></th> |
|
<th width="100"><?= __("Pubblicazione") ?></th> |
|
<th width="100"><?= __("Scadenza") ?></th> |
|
<? if (count($enti) > 1) { ?><th><?= __("Beneficiario") ?><? } ?> |
|
<th width="10"></th> |
|
</tr> |
|
</thead> |
|
<tbody> |
|
</tbody> |
|
</table> |
|
</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.stato = $('#filtroStatus').val(); |
|
d.procedura = $('#filtroProcedura').val(); |
|
d.tipologia = $('#filtroTipologia').val(); |
|
<? if (count($enti) > 1 && $_SESSION["ente"]->printUfficio) { ?>d.ente = $('#filtroBeneficiario').val();<? } ?> |
|
} |
|
}, |
|
"order": [[2,'desc']], |
|
"lengthMenu": [[10, 25, 50, -1], [10, 25, 50, '<?= __("tutti") ?>']], |
|
"columns": [ |
|
{ "orderable": false }, |
|
{ "orderable": false }, |
|
null, |
|
{ "orderable": false }, |
|
{ "class": "text-left" }, |
|
{ "class": "text-center" }, |
|
null, |
|
<? if (count($enti) > 1) { ?>{ "class": "text-center", "orderable": false },<? } ?> |
|
{ "orderable": false }, |
|
] |
|
}); |
|
</script> |
|
<? |
|
} else { |
|
?> |
|
<div class="row"> |
|
<div class="offset-lg-3 col-lg-6 col-12"> |
|
<? alertManager::printWarningBox(__("Nessun risultato")); ?> |
|
</div> |
|
</div> |
|
<? |
|
} |
|
?> |
|
</div> |
|
<? |
|
include_once($root."/layout/bottom.php"); |
|
?>
|