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.
71 righe
3.2 KiB
71 righe
3.2 KiB
<? |
|
$configPath = substr(__DIR__,0,strpos(__DIR__,"/public_html"))."/config.php"; |
|
include_once($configPath); |
|
if (!empty($_SESSION["utente"]) && !empty($_GET["codice_lotto"])) { |
|
$gara = publicGara::init($_GET["codice"]); |
|
if (!empty($gara->info)) { |
|
$record = $gara->info; |
|
$round = $gara->round; |
|
if ($gara->setLotto($_GET["codice_lotto"])) { |
|
$lotto = $gara->lotto; |
|
$asta = $gara->getAsta(true); |
|
if (!empty($asta->info) && !$asta->getScadenza(true)) { |
|
include_once ($root."/layout/top.php"); |
|
$breadcrumb = array(); |
|
$breadcrumb["/".$radice."/"] = Modulo::getInfo($radice)["titolo"]; |
|
$breadcrumb["/".$radice."/dettaglio.php?codice={$record["codice"]}"] = __("Dettaglio"); |
|
$breadcrumb["/".$radice."/partecipa/partecipa.php?codice={$record["codice"]}&codice_lotto={$lotto["codice"]}"] = __("Pannello"); |
|
$breadcrumb["pannello.php?codice={$record["codice"]}&codice_lotto={$lotto["codice"]}"] = __("Asta"); |
|
$breadcrumb[] = __("Rilancia"); |
|
$partecipante = $gara->miaPartecipazione(); |
|
if (!empty($partecipante)) { |
|
$criteri = $gara->getCriteri(); |
|
ob_start(); |
|
foreach($criteri AS $criterio) { |
|
$bestOffer = $asta->getBestOffer($criterio["codice"]); |
|
$annotazione = ""; |
|
if ($criterio["economico"] == "S" && isset($bestOffer)) { |
|
$annotazione = __("Offerta migliore") . ": " . $bestOffer; |
|
if (count($criteri) === 1 && !empty($asta->info["rilancio_minimo"])) { |
|
$annotazione .= " - " . __("Rilancio minimo") . ": " . number_format($asta->info["rilancio_minimo"],2); |
|
} |
|
} |
|
$gara->printOfferCriterio($criterio["codice"],true,false,false,$annotazione); |
|
} |
|
$html = ob_get_clean(); |
|
if (!empty($html)) { ?> |
|
<div class="container"> |
|
<h3><?= __("Rilancia") ?></h3> |
|
<form id="edit-form" action="make-save.php" autocomplete="off" rel="validate" method="post" target="_self"> |
|
<input id="token" type="hidden" name="token" value="<?= tokenGen() ?>"> |
|
<input id="codice" type="hidden" name="codice" value="<?= $record["codice"] ?>"> |
|
<input id="codice" type="hidden" name="codice_lotto" value="<?= $lotto["codice"] ?>"> |
|
<?= $html ?> |
|
<button class="btn btn-lg btn-primary btn-block"><?= __("Rilancia") ?></button> |
|
</form> |
|
</div> |
|
<? |
|
} else { |
|
alertManager::printAlertBox(__('Impossibile continuare')); |
|
} |
|
} else { |
|
alertManager::printAlertBox(__('Impossibile continuare')); |
|
} |
|
include_once ($root."/layout/bottom.php"); |
|
} else { |
|
echo '<meta http-equiv="refresh" content="0;URL=/index.php">'; |
|
die(); |
|
} |
|
} else { |
|
echo '<meta http-equiv="refresh" content="0;URL=/index.php">'; |
|
die(); |
|
} |
|
} else { |
|
echo '<meta http-equiv="refresh" content="0;URL=/index.php">'; |
|
die(); |
|
} |
|
} else { |
|
echo '<meta http-equiv="refresh" content="0;URL=/index.php">'; |
|
die(); |
|
} |
|
?>
|
|
|