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.
 
 
 
 
 

84 righe
3.8 KiB

<?
if (isset($this) && is_a($this,"anac") && isset($suggerimenti) && isset($key) && !empty($suggerimenti[$key])) {
$moduli = self::moduliSuggerimenti();
$modals = [];
$total = 0;
$liste = self::listSchede();
if (!empty($liste[$key])) {
$keyFields = $this->version . "-" . $key;
$fields = self::getFieldsScheda($key);
$path = self::getVersionPath($this->version) . "/views/form-schede-inputs.php";
global $root;
$path = str_replace($root,"",$path);
if (!empty($fields)) {
?>
<div id="suggerimentiANACMultiplo" class="modal fade" tabindex="-1" aria-labelledby="suggerimentiANACLabelMultiplo" aria-hidden="true">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="alertsModalLabelMultiplo"><?= __("Suggerimenti") ?></h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
<div class="modal-body">
<?
$countSuggerimento = 0;
foreach($suggerimenti[$key] AS $suggerimento) {
if (!empty($suggerimento["data"])) {
$countSuggerimento++;
$keySuggerimento = base64_encode($keyFields . "-" . $suggerimento["source"] . $countSuggerimento);
$_SESSION[$keySuggerimento]["dataANAC"] = $suggerimento["data"];
$total++;
?>
<div class="card my-2">
<div class="card-header">
<strong><?= $moduli[$suggerimento["source"]]["titolo"] ?></strong>
</div>
<div class="card-body">
<table class="table table-condensed table-striped">
<thead>
<tr>
<th><?= __("Campo") ?></th>
<th><?= __("Suggerimento") ?></th>
</tr>
</thead>
<tbody>
<?
foreach($fields AS $idCampo => $infoCampo) {
if (isset($suggerimento["data"][$idCampo])) {
?>
<tr>
<td width="200"><strong><?= $infoCampo["label"] ?></strong></td>
<td class="text-center"><?= $suggerimento["data"][$idCampo] ?></td>
</tr>
<?
}
}
?>
</tbody>
</table>
</div>
<div class="card-footer text-right">
<button class="btn btn-sm btn-info" type="button" onclick="$(this).parent().parent().slideUp(); aggiungi('<?= $path ?>?fields=<?= base64_encode($keyFields) ?>&data=<?= $keySuggerimento ?>','#contenitoreSchede');">
<span class="fa fa-check"></span> <?= __("Aggiungi elemento") ?>
</button>
</div>
</div>
<?
}
}
?>
</div>
</div>
</div>
</div>
<script>
$("#totaleSuggerimentiMultipliANAC").html("<?= $total ?>");
$("#buttonAllSuggerimentiMultipliANAC").show();
</script>
<?
}
}
}
?>