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.
 
 
 
 
 

93 righe
3.4 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><?= __($modulo["titolo"]) ?></h1>
<?
$list = publicAlboCommissione::getList();
if (!empty($list)) {
$enti = $_SESSION["ente"]->entiBeneficiari();
if (count($enti) > 1) {
?>
<?php if ($_SESSION["ente"]->printUfficio) : ?>
<div class="col-12 col-lg-4 float-right form-group">
<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="clearfix"></div>
<div class="card card-body">
<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><?= __("Oggetto") ?></th>
<th width="100"><?= __("Pubblicazione") ?></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": "/albi_commissione/table.php",
"data": function (d) {
<? if (count($enti) > 1 && $_SESSION["ente"]->printUfficio) { ?>d.ente = $('#filtroBeneficiario').val();<? } ?>
<? if (!empty($tipologia)) { ?> d.tipologia = '<?= $tipologia ?>'; <? } ?>
}
},
"order": [[2,'desc']],
"lengthMenu": [[10, 25, 50, -1], [10, 25, 50, '<?= __("tutti") ?>']],
"columns": [
{ "orderable": false },
{ "orderable": false, "class": "text-center" },
{"class": "text-center"},
null,
{"class": "text-center"},
<? if (count($enti) > 1) { ?>{ "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");
?>