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.
 
 
 
 
 

44 righe
1.7 KiB

<?
$configPath = substr(__DIR__,0,strpos(__DIR__,"/public_html"))."/config.php";
include_once($configPath);
$error = true;
if (isset($_SESSION["ente"]) && $_SESSION["ente"]->hasModulo("albi_commissione") && !empty($_GET["modulo"]) && !empty($_GET["elemento"])) {
$managerCommissione = new Commissione ($_GET["modulo"],$_GET["elemento"],"commissione");
if (!empty($managerCommissione)) {
$error = false;
$estrazioni = $managerCommissione->getEstrazioniCommissione();
if (!empty($estrazioni)) {
?>
<table class="table table-striped">
<thead>
<tr>
<td><?= __("Data esecuzione") ?></td>
<td><?= __("Numero componenti") ?></td>
<td width="200"></td>
</tr>
</thead>
<tbody>
<?
foreach($estrazioni AS $estrazione) {
?>
<tr>
<td class="text-center"><?= mysql2datetime($estrazione["timestamp"]) ?></td>
<td class="text-center"><?= $estrazione["componenti"] ?></td>
<td><button class="btn btn-sm btn-block btn-info" onclick="showModalWithURL('/backend/common/commissioni/albi/report.php?modulo=<?= $managerCommissione->modulo ?>&elemento=<?= $managerCommissione->elemento ?>&codice=<?= $estrazione["codice"] ?>');"><span class="fa fa-file"></span> <?= __("Report") ?></td>
</tr>
<?
}
?>
</tbody>
</table>
<?
} else {
alertManager::printWarningBox(__("Nessun albo disponibile"));
}
}
}
if ($error) {
header('HTTP/1.0 403 Forbidden');
die();
}
?>