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.
56 righe
1.9 KiB
56 righe
1.9 KiB
<? |
|
if (isset($_SESSION["utente"])) { |
|
?> |
|
<div class="card"> |
|
<div class="card-body"> |
|
<? |
|
$bind = array(":utente"=>$_SESSION["utente"]->codice,":ente"=>$_SESSION["ente"]->codice); |
|
$sql = "SELECT b_commissioni.codice |
|
FROM b_commissioni |
|
JOIN r_commissione ON b_commissioni.codice = r_commissione.codice_commissione |
|
WHERE r_commissione.codice_utente = :utente AND b_commissioni.scadenza >= now() AND b_commissioni.codice_gestore = :ente "; |
|
$ris = $pdo->go($sql,$bind); |
|
if ($ris->rowCount() > 0) { |
|
?> |
|
<div class="table-responsive"> |
|
<table class="table table-striped table-hover table-condensed" id="commissioni" width="100%"> |
|
<thead> |
|
<tr> |
|
<th><?= __("Valutazione") ?></th> |
|
<th width="120"><?= __("Scadenza") ?></th> |
|
<th width="300"><?= __("Tipologia") ?></th> |
|
<th width="20"></th> |
|
</tr> |
|
</thead> |
|
<tbody> |
|
</tbody> |
|
</table> |
|
</div> |
|
<script> |
|
$("#commissioni").DataTable({ |
|
"processing": true, |
|
"serverSide": true, |
|
"language": { |
|
"url": "/dictionary/datatables/<?= $_SESSION["language"] ?>.lang" |
|
}, |
|
"ajax": "table.php", |
|
"order": [[1,'asc']], |
|
"lengthMenu": [[10, 25, 50, -1], [10, 25, 50, '<?= __("tutti") ?>']], |
|
"columns": [ |
|
null, |
|
null, |
|
null, |
|
{ "orderable": false } |
|
] |
|
}); |
|
</script> |
|
<? |
|
} else { |
|
alertManager::printWarningBox(__("Nessun risultato")); |
|
} |
|
?> |
|
</div> |
|
</div> |
|
<? |
|
} |
|
?>
|