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.
 
 
 
 
 

69 righe
2.9 KiB

<?
if (isset($_SESSION["utente"]) && (!empty($_SESSION["utente"]->oe) || $_SESSION["utente"]->permission("albo"))) {
if (!empty($_SESSION["utente"]->oe)) { $oe = $_SESSION["utente"]->oe; }
if (!empty($oe["codice"])) {
$total = Communicator::listMessageOE($_SESSION["utente"]->oe["codice"],false,["nonletto"=>true],[],0,1);
?>
<div class="container-fluid">
<?
if (count($total) > 0) {
?>
<button onClick="swal({title:'<?= __("Sei sicuro?") ?>',type:'question', showCancelButton: true,confirmButtonColor: '#3085d6',cancelButtonColor: '#d33',confirmButtonText: js_dict.conferma,cancelButtonText: js_dict.annulla,closeOnConfirm: true}).then((result) => { if (result.value) { $.ajax({url:'/comunicazioni/allRead.php',dataType: 'script', success: function(result) { result; }, error: function() { swal(js_dict['error-retry']);}}) }});" class="btn btn-primary float-right">
<?= __("Segna tutti come letti") ?>
</button>
<?
}
?>
<h1><?= __("Comunicazioni") ?></h1>
<?
$comunicazioni = Communicator::listMessageOE($oe["codice"],false,[],[],0,1);
if (!empty($comunicazioni)) {
?>
<div class="card card-body">
<div class="table-responsive">
<table class="table table-striped table-hover tab-data" width="100%" id="table-msg">
<thead>
<tr>
<th><?= __("Oggetto") ?></th>
<th width="150"><?= __("Sezione") ?></th>
<th width="150"><?= __("Timestamp") ?></th>
</tr>
</thead>
<tbody>
</tbody>
</table>
<script>
var tableComunicazioni = $("#table-msg").DataTable({
"processing": true,
"serverSide": true,
"language": {
"url": "/dictionary/datatables/<?= $_SESSION["language"] ?>.lang"
},
"ajax": {
"url": "/comunicazioni/table-list.php",
"data": function (d) {
d.codice_operatore = "<?= $oe["codice"] ?>"
}
},
"order": [2,"desc"],
"lengthMenu": [[10, 25, 50, -1], [10, 25, 50, '<?= __("tutti") ?>']],
"columns": [
null,
{ "orderable": false },
null
]
});
</script>
</div>
</div>
<?
} else {
alertManager::printWarningBox(__("Nessun risultato"));
}
?>
</div>
<?
}
}
?>