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.
 
 
 
 
 

86 righe
3.8 KiB

<?
$error = true;
$configPath = substr(__DIR__,0,strpos(__DIR__,"/public_html"))."/config.php";
include_once($configPath);
if (isset($_SESSION["utente"]) && $_SESSION["utente"]->gerarchia < 100 && isset($_SESSION["ente"]) && !empty($_SESSION["ente"]->moduli[$_GET["modulo"]])) {
$oe = oeManager::getOE($_GET["codice"]);
$modulo = $_SESSION["ente"]->moduli[$_GET["modulo"]];
if (!empty($oe)) {
if ($_SESSION["utente"]->isSupporto() || $_SESSION["utente"]->fromHere() || $_SESSION["utente"]->gerarchia === "1") {
$path = $beRoot . $modulo["id"] . DIRECTORY_SEPARATOR . "_historyOE.php";
if (file_exists($path)) {
$codice_oe = $oe["codice"];
$__listHistory = true;
$results = include($path);
if (!empty($results["totale"])) {
$error = false;
if (!empty($results["schede"])) {
$first = true;
?>
<div class="card bg-light mb-3">
<div class="card-body">
<ul class="nav nav-pills" id="tab-profilo-oe" role="tablist">
<? foreach($results["schede"] AS $idScheda => $scheda) { ?>
<li class="nav-item">
<a class="nav-link <?= ($first) ? "active" : "" ?>" id="<?= $idScheda ?>-tab" data-toggle="tab" href="#<?= $idScheda ?>" role="tab" aria-controls="<?= $idScheda ?>" aria-selected="true">
<?= __($scheda["label"]) ?>
</a>
</li>
<?
$first = false;
} ?>
</ul>
</div>
</div>
<div class="card">
<div class="card-body p-0">
<div class="tab-content">
<?
reset($results["schede"]);
$first = true;
foreach($results["schede"] AS $idScheda => $scheda) { ?>
<div class="tab-pane <?= ($first) ? "active" : "" ?>" id="<?= $idScheda ?>" role="tabpanel" aria-labelledby="<?= $idScheda ?>-tab">
<table class="table table-striped table-hover">
<tbody>
<? foreach($scheda["data"] AS $row) { ?>
<tr>
<td>
<? if (!empty($row["url"])) { ?>
<a href="<?= $row["url"] ?>" title="<?= __("Vedi iniziativa") ?>">
<? } ?>
<?= $row["oggetto"] ?>
<? if (!empty($row["url"])) { ?>
</a>
<? } ?>
</td>
<td width="200" class="text-center <?= $row["color"] ?>">
<? if (!empty($row["icon"])) { ?>
<span class="<?= $row["icon"] ?>"></span>
<? } ?>
<?= $row["stato"] ?>
</td>
<td width="200" class="text-right">
<?= mysql2date($row["timestamp"]) ?>
</td>
</tr>
<? } ?>
</tbody>
</table>
</div>
<? $first = false;
} ?>
</div>
</div>
</div>
<?
}
}
}
}
}
}
if ($error) {
header('HTTP/1.0 403 Forbidden');
die();
}
?>