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.3 KiB
69 righe
2.3 KiB
<? |
|
if (isset($this) && is_a($this,"pubblicitaLegale")) { |
|
global $config; |
|
global $root; |
|
$pubblicazioni = $this->getPubblicazioni(); |
|
$editURL = "/backend/common/pubblicitaLegale/edit.php?codice=0&modulo={$this->modulo}&codice_elemento={$this->elemento}&sub={$this->sub}"; |
|
?> |
|
<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($pubblicazioni)) { |
|
?> |
|
<div class="card"> |
|
<div class="card-body"> |
|
<table class="table table-striped table-hover" width="100%" id="table-pubblicitaLegale"> |
|
<thead> |
|
<tr> |
|
<th><?= __("Oggetto") ?></th> |
|
<th width="130"><?= __("Data") ?></th> |
|
<th width="10"></th> |
|
<th width="10"></th> |
|
</tr> |
|
</thead> |
|
<tbody > |
|
|
|
</tbody> |
|
</table> |
|
<script> |
|
var tablePubblicazioni = $("#table-pubblicitaLegale").DataTable({ |
|
"processing": true, |
|
"serverSide": true, |
|
"language": { |
|
"url": "/dictionary/datatables/<?= $_SESSION["language"] ?>.lang" |
|
}, |
|
"ajax": { |
|
"url": "/backend/common/pubblicitaLegale/table-list.php", |
|
"data": function (d) { |
|
d.modulo = "<?= $this->modulo ?>", |
|
d.codice_elemento = "<?= $this->elemento ?>", |
|
d.sub = "<?= $this->sub ?>" |
|
} |
|
}, |
|
"order": [[1,"desc"]], |
|
"lengthMenu": [[10, 25, 50, -1], [10, 25, 50, '<?= __("tutti") ?>']], |
|
"columns": [ |
|
{ "orderable": false }, |
|
null, |
|
{ "orderable": false }, |
|
{ "orderable": false } |
|
] |
|
}); |
|
|
|
</script> |
|
</div> |
|
</div> |
|
|
|
<? |
|
} else { |
|
alertManager::printWarningBox(__("Nessun risultato")); |
|
} |
|
} |
|
?>
|