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.
 
 
 
 
 

96 righe
3.6 KiB

<?
$configPath = substr(__DIR__,0,strpos(__DIR__,"/public_html"))."/config.php";
include_once($configPath);
if (!empty($_SESSION["utente"]) && $_SESSION["utente"]->permission($radice)) {
$breadcrumb = [];
$breadcrumb["/impostazioni/index.php"] = __("Avanzate");
$breadcrumb[""] = __("Modelli");
include_once ($beRoot."/layout/top.php");
?>
<div class="container-fluid pt-5">
<div class="row">
<div class="col-12">
<p class="d-block display-4">
<?= Modulo::header($radice) ?>
</p>
</div>
</div>
</div>
<? if (!isset($_SESSION["ente"])) { ?>
<div id="commands" class="mb-5">
<div class="commands container-fluid">
<div class="row">
<div class="col-12 text-right">
<a href="/backend/editor/edit.php?codice=0" class="btn btn-success" title="<?= __('Aggiungi nuovo') ?>"><i class="fa fa-plus-circle mr-3"></i><?= __('Aggiungi nuovo') ?></a><br>
</div>
</div>
</div>
</div>
<? } ?>
<div class="container-fluid">
<div class="row">
<div class="col-12">
<div class="card">
<div class="card-body">
<?
$bind = array();
$sql = "SELECT * FROM b_modelli WHERE soft_delete = 'N' ";
$risultato = $pdo->go($sql,$bind);
if ($risultato->rowCount() > 0) {
?>
<div class="table-responsive">
<table class="table table-striped table-hover table-condensed" id="tab-data" width="100%">
<thead>
<tr>
<th width="10"></th>
<? if (isset($_SESSION["ente"])) { ?>
<th width="10"></th>
<? } ?>
<th width="100">ID</th>
<th><?= __("Titolo") ?></th>
<th width="10"></th>
<? if (isset($_SESSION["ente"])) { ?>
<th width="10"></th>
<? } ?>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
<script>
$("#tab-data").DataTable({
"processing": true,
"serverSide": true,
"language": {
"url": "/dictionary/datatables/<?= $_SESSION["language"] ?>.lang"
},
"ajax": "table.php",
"order": [[2,'ASC']],
"lengthMenu": [[10, 25, 50, -1], [10, 25, 50, '<?= __("tutti") ?>']],
"columns": [
{ "orderable": false },
<? if (isset($_SESSION["ente"])) { ?>{ "orderable": false },<? } ?>{ "orderable": false },
{ "orderable": false },
{ "orderable": false },
<? if (isset($_SESSION["ente"])) { ?>{ "orderable": false }<? } ?>
]
});
</script>
<?
} else {
alertManager::printWarningBox(__("Nessun risultato"));
}
?>
</div>
</div>
</div>
</div>
</div>
<?
include_once ($beRoot."/layout/bottom.php");
} else {
echo '<meta http-equiv="refresh" content="0;URL=/index.php">';
die();
}
?>