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.
 
 
 
 
 

112 righe
3.8 KiB

<?
$error = true;
if (!isset($gara)) {
$configPath = substr(__DIR__,0,strpos(__DIR__,"/public_html"))."/config.php";
include_once($configPath);
$ajaxRequestMonitor = true;
if (!empty($_SESSION["utente"]) && !empty($_GET["codice"]) && !empty($_GET["codice_lotto"]) && !empty($_GET["codice_round"])) {
$gara = publicGara::init($_GET["codice"],$_GET["codice_round"]);
if ($gara->setLotto($_GET["codice_lotto"])) {
$tmpAsta = $gara->getAsta(true);
if (!empty($tmpAsta->info)) {
$asta = $tmpAsta;
$infoAsta = $asta->info;
}
}
}
}
if (!empty($asta)) {
$error = false;
$scadenza = $asta->getScadenza();
if ($scadenza > 0) {
$time = secondsToTime($scadenza) ?>
<div class="row mb-3">
<div class="col-12 col-lg-4">
<div class="card card-body bg-warning text-white text-center">
<small><?= __("Scadenza") ?></small>
<div class="d-flex">
<? if (!empty($time["giorni"])) { ?>
<div class="col text-center">
<span class="h1"><?= $time["giorni"] ?></span><br>
<small><?= __("Giorni") ?></small>
</div>
<? } ?>
<div class="col text-center">
<span class="h1"><?= $time["ore"] ?></span><br>
<small><?= __("Ore") ?></small>
</div>
<div class="col text-center">
<span class="h1"><?= $time["minuti"] ?></span><br>
<small><?= __("Minuti") ?></small>
</div>
<div class="col text-center">
<span class="h1"><?= $time["secondi"] ?></span><br>
<small><?= __("Secondi") ?></small>
</div>
</div>
</div>
</div>
<div class="col-12 col-lg-4">
<div class="card card-body bg-info text-white text-center">
<div>
<small><?= __("Tempo base") ?></small><br>
<span class="h1"><?= $infoAsta["tempo_base"] ?></span><br>
<small><?= __("Minuti") ?></small><br>
</div>
</div>
</div>
<div class="col-12 col-lg-4">
<div class="card card-body bg-primary text-white text-center">
<div>
<small><?= __("Rilancio minimo") ?></small><br>
<span class="h1"><?= number_format($infoAsta["rilancio_minimo"],2) ?></span><br>
<!-- <small><?= __("%") ?></small><br> -->
</div>
</div>
</div>
</div>
<?} else {
if (!empty($ajaxRequestMonitor)) { ?>
<script>
window.location.reload();
</script>
<? }
alertManager::printAlertBox(__("Scaduta"));
}
$graduatoria = $gara->getGraduatoria(TRUE);
if (!empty($graduatoria)) {
$posizione = 0;
foreach($graduatoria AS $partecipante) {
$class = "";
$glyph = "";
$posizione++;
if ($partecipante["aggiudicatario"] == "S") {
$class = "bg-success text-white";
$glyph = "<span class=\"fa fa-trophy\"></span>";
}
if ($infoAsta["visibilita"] == "S" || $partecipante["codice"] == $gara->miaPartecipazione()["codice"]) {
?>
<div class="card card-body <?= $class ?>">
<div class="row">
<div class="col-12 col-xl-2 text-center">
<?= $posizione ?>
<?= $glyph ?>
</div>
<div class="col-12 col-xl-8">
<?= $partecipante["ragione_sociale"] ?>
</div>
<div class="col-12 col-xl-2 text-center">
<?= $partecipante["totale"] ?>
</div>
</div>
</div>
<?
}
}
}
}
if ($error) {
header('HTTP/1.0 403 Forbidden');
die();
}
?>