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.
102 righe
3.8 KiB
102 righe
3.8 KiB
<? |
|
$configPath = substr(__DIR__,0,strpos(__DIR__,"/public_html"))."/config.php"; |
|
include_once($configPath); |
|
$id_modulo = "contratti.documentale"; |
|
$cmd_info = Modulo::getInfo($id_modulo); |
|
|
|
if (!empty($_SESSION["utente"]) && $_SESSION["utente"]->permission($id_modulo) && $_SESSION["utente"]->gerarchia <= 10) { |
|
|
|
$breadcrumb = array(); |
|
$breadcrumb = [ |
|
"/$radice" => Modulo::getInfo($radice)["titolo"], |
|
"" => $cmd_info["titolo"] |
|
]; |
|
|
|
include_once ($beRoot."/layout/top.php"); |
|
|
|
?> |
|
<div class="container-fluid pt-5 pb-3"> |
|
<div class="row"> |
|
<div class="col-12"> |
|
<h2> |
|
<?= Modulo::header($id_modulo) ?> |
|
</h2> |
|
</div> |
|
</div> |
|
</div> |
|
<div id="commands" class="mb-5"> |
|
<div class="commands container-fluid"> |
|
<div class="row justify-content-end align-items-end"> |
|
<div class="text-right"> |
|
<? if (!$_SESSION["utente"]->readOnly) { ?> |
|
<button type="button" onclick="showModalWithURL('/backend/contratti/admin-documentale/ruoli/managerRuoli.php?soggetto=10')" class="btn btn-success mr-2" title="<?= __('Gestione ruoli') ?>"><span><?= __('Gestione Ruoli') ?></span></button> |
|
<button type="button" onclick="showModalWithURL('/backend/contratti/admin-documentale/ruoli/managerRuoli.php?soggetto=15')" class="btn btn-success mr-2" title="<?= __('Gestione Tipologie Attrezzature') ?>"><span><?= __('Gestione Tipologie Attrezzature') ?></span></button> |
|
<a href="/backend/<?= $radice ?>/admin-documentale/edit.php?codice=0" class="btn btn-success" title="<?= __('Aggiungi nuovo') ?>"><span class="fa fa-plus-circle"></span> <?= __('Aggiungi nuovo') ?></a> |
|
<? } ?> |
|
</div> |
|
</div> |
|
</div> |
|
</div> |
|
<? |
|
if ( $risultati = ContrattoDocumentale::getAllDocumentali()) { |
|
?> |
|
<div class="card mb-2"> |
|
<div class="card-body"> |
|
<div class="table-responsive"> |
|
<h2 id="table-title"></h2> |
|
<table class="table table-striped table-hover" id="tab-data" width="100%"> |
|
<thead> |
|
<tr> |
|
<th width="10"></th> |
|
<th class="w-50"><?= __("Titolo") ?></th> |
|
<th><?= __("Ambito Validità") ?></th> |
|
<th><?= __("Soggetto") ?></th> |
|
<th><?= __("Data Ultima Modifica") ?></th> |
|
<th width="5"></th> |
|
<th width="5"></th> |
|
<th width="5"></th> |
|
</tr> |
|
</thead> |
|
<tbody> |
|
</tbody> |
|
</table> |
|
</div> |
|
</div> |
|
</div> |
|
<script> |
|
var table = $("#tab-data").DataTable({ |
|
"processing": true, |
|
"serverSide": true, |
|
"language": { |
|
"url": "/dictionary/datatables/<?= $_SESSION["language"] ?>.lang" |
|
}, |
|
"ajax": { |
|
"url": "table.php", |
|
"data": function (d) { |
|
} |
|
}, |
|
"order": [[4,'desc']], |
|
"lengthMenu": [[10, 25, 50, -1], [10, 25, 50, '<?= __("tutti") ?>']], |
|
"columns": [ |
|
{ "orderable": false }, |
|
{ "orderable": true , "class": "text-break text-wrap"}, |
|
{ "orderable": true }, |
|
{ "orderable": true }, |
|
{ "orderable": true }, |
|
{ "orderable": false }, |
|
{ "orderable": false }, |
|
{ "orderable": false } |
|
] |
|
}); |
|
</script> |
|
<? |
|
} else { |
|
alertManager::printWarningBox(__("Nessun risultato")); |
|
} |
|
include_once ($beRoot."/layout/bottom.php"); |
|
|
|
}else{ |
|
echo '<meta http-equiv="refresh" content="0;URL=/index.php">'; |
|
die(); |
|
} |
|
?>
|