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.
 
 
 
 
 

114 righe
3.7 KiB

<?
if (isset($this) && is_a($this,"richiesteOE")) {
global $config;
global $root;
$richieste = $this->getRichieste("N");
$editURL = "/backend/common/richiesteOE/edit.php?codice=0&modulo={$this->modulo}&codice_elemento={$this->elemento}&sub={$this->sub}";
if (!$_SESSION["utente"]->readOnly && !$this->lock) {
?>
<div id="commands" class="mb-5">
<div class="commands container-fluid">
<div class="row">
<div class="col-12 text-right">
<button onClick="showModalWithURL('<?= $editURL ?>')" class="btn btn-success" title="<?= __('Aggiungi nuovo') ?>"><span class="fa fa-plus-circle"></span> <?= __('Aggiungi nuovo') ?></button>
</div>
</div>
</div>
</div>
<?
}
if (!empty($richieste)) {
?>
<div class="card">
<div class="card-body">
<table class="table table-striped table-hover" width="100%" id="table-richiesteOE">
<thead>
<tr>
<th width="10"></th>
<th width="120"></th>
<th width="190"></th>
<th><?= __("Oggetto") ?></th>
<th width="130"><?= __("Data richiesta") ?></th>
<th width="130"><?= __("Scadenza") ?></th>
<th width="130"><?= __("Apertura") ?></th>
<th><?= __("Destinatari") ?></th>
<th width="10"></th>
<th width="10"></th>
<th width="10"></th>
</tr>
</thead>
<tbody >
</tbody>
</table>
<script>
var tableRichieste = $("#table-richiesteOE").DataTable({
"processing": true,
"serverSide": true,
"language": {
"url": "/dictionary/datatables/<?= $_SESSION["language"] ?>.lang"
},
"ajax": {
"url": "/backend/common/richiesteOE/table-list.php",
"data": function (d) {
d.modulo = "<?= $this->modulo ?>",
d.codice_elemento = "<?= $this->elemento ?>",
d.sub = "<?= $this->sub ?>"
}
},
"order": [[4,"desc"]],
"lengthMenu": [[10, 25, 50, -1], [10, 25, 50, '<?= __("tutti") ?>']],
"columns": [
{ "orderable": false },
{ "orderable": false, "class": "text-center" },
{ "orderable": false, "class": "text-center" },
null,
null,
null,
null,
{ "orderable": false },
{ "orderable": false },
{ "orderable": false },
{ "orderable": false }
]
});
</script>
</div>
</div>
<?
} else {
alertManager::printWarningBox(__("Nessun risultato"));
}
?>
<script>
function confirmSubmitRichiesta(status) {
$("#stato-richiesta").val(status);
if (status != "N") {
if (status == "S") {
msg = "<?= __("Procedendo la richiesta sarà immediatamente disponibile per gli Operatori Economici selezionati") ?>";
}
Swal({
title: js_dict["sei-sicuro"],
text: msg,
type: "warning",
showCancelButton: true,
confirmButtonColor: '#3085d6',
cancelButtonColor: '#d33',
confirmButtonText: js_dict.conferma,
cancelButtonText: js_dict.annulla,
closeOnConfirm: true
}).then((result) => {
if (result.value) {
$("#submit-richiesta-form").submit();
}
});
} else {
$("#submit-richiesta-form").submit();
}
}
</script>
<?
}
?>