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.
 
 
 
 
 

132 righe
4.6 KiB

<?
$configPath = substr(__DIR__,0,strpos(__DIR__,"/public_html"))."/config.php";
include_once($configPath);
if (isset($_SESSION["utente"]) && !empty($_SESSION["utente"]->oe)) {
$modulo = modulo::getInfo($radice);
$breadcrumb = [];
$breadcrumb[] = $modulo['titolo'];
include_once($root."/layout/top.php");
?>
<div class="container-fluid">
<h1><?= __( $modulo['titolo']) ?></h1>
<?
$bandi = PublicProdotto::getBandiMercato();
if (!empty($bandi)) {
$prodotti = PublicProdotto::getProdotti();
?>
<div id="commands" class="mb-5">
<div class="commands container-fluid">
<div class="row">
<div class="col-12 text-right">
<a href="/<?= $radice ?>/edit.php?codice=0" class="btn btn-success" title="<?= __('aggiungi nuovo') ?>">
<span class="fa fa-plus-circle"></span> <?= __('aggiungi nuovo') ?>
</a>
<? if (!empty($risultato) && $risultato->rowCount() > 0) { ?>
<button data-bs-toggle="modal" id="show-filter" data-bs-target="#modal-filter" class="btn btn-warning">
<span class="fa fa-filter"></span>
<?= __("filtra"); ?>
</button>
<button id="remove-filter-link" class="btn btn-danger" style="display:none" onClick="$('#remove-filter').trigger('click')">
<span class="fa fa-times"></span>
</button>
<? } ?>
</div>
</div>
</div>
</div>
<? if(!empty($prodotti)){ ?>
<div class="container-fluid">
<div class="row">
<div class="card col-12">
<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 width="10">#</th>
<th width="10%"><?= __("ID Venditore") ?></th>
<th><?= __("Denominazione") ?></th>
<th><?= __("Marca") ?></th>
<th width="10%"><?= __("Prezzo") ?></th>
<th width="10"></th>
<th width="10"></th>
<th width="10"></th>
<th width="10"></th>
<th width="10"></th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
</div>
</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": [[2,'ASC']],
"lengthMenu": [[10, 25, 50, -1], [10, 25, 50, '<?= __("tutti") ?>']],
"columns": [
{ "orderable": false },
{ "orderable": false },
null,
null,
null,
{ "sClass": "text-end" },
{ "orderable": false },
{ "orderable": false },
{ "orderable": false },
{ "orderable": false },
{ "orderable": false }
]
});
</script>
<? }else{ ?>
<h3 class="alert alert-warning text-center">
<span class="fa fa-exclamation-triangle fa-2x"></span><br>
<?= __("Nessun risultato"); ?>
</h3>
<? } ?>
<?
} else {
?>
<div class="row">
<div class="col-12">
<? alertManager::printWarningBox(__("Nessun Qualifica del Mercato Elettronica Attiva")); ?>
</div>
</div>
<?
}
?>
</div>
<?
include_once($root."/layout/bottom.php");
}else{
header('HTTP/1.0 403 Forbidden');
die();
}
?>