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.
58 righe
2.9 KiB
58 righe
2.9 KiB
<? |
|
$error = true; |
|
$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->confirmDeadline(true) && $asta->info["richiedi_firma"] == "S") { |
|
$partecipante = $gara->miaPartecipazione(); |
|
$ultimoRilancio = $asta->ultimoRilancio(); |
|
if (!empty($partecipante) && !empty($ultimoRilancio)) { |
|
$error = false; |
|
?> |
|
<div class="action-div" id="upload-form"> |
|
<form id="submit-form" action="submit-save.php" rel="validate" method="post" target="_self"> |
|
<input type="hidden" name="token" value="<?= tokenGen() ?>"> |
|
<input type="hidden" name="codice" value="<?= $record["codice"] ?>"> |
|
<input type="hidden" name="codice_lotto" value="<?= $lotto["codice"] ?>"> |
|
<input type="hidden" name="codice_round" value="<?= $round["codice"] ?>"> |
|
<div class="card my-2"> |
|
<div class="card-body"> |
|
<div class="col text-center mb-3"> |
|
<span class="fa fa-file fa-3x"></span><br> |
|
<span class="h3"><?= mysql2completedate($ultimoRilancio["timestamp"]) ?></span> |
|
<a target="_blank" class="btn btn-primary btn-block" href="download-offer.php?codice=<?= $ultimoRilancio["codice"] ?>&codice_gara=<?= $gara->info["codice"] ?>&codice_lotto=<?= $gara->lotto["codice"] ?>&codice_round=<?= $gara->round["codice"] ?>&token=<?= tokenGen() ?>"> |
|
<span class="fa fa-download"></span> <?= __("Download documento di rilancio") ?> |
|
</a> |
|
<small>SHA256: <?= $ultimoRilancio["sha256"] ?></small> |
|
</div> |
|
<? |
|
filesManager::insertUploadForm('$("#file-filechunk").val(file.name);$("#confirm-button").slideDown();','rilancio-asta',["allowedTypes"=>[".pdf",".p7m"],"maxNumberOfFiles"=>1]) |
|
?> |
|
<input type="hidden" rel="S;1;0;A" title="<?= __("file") ?>" name="filechunk" value="" id="file-filechunk"> |
|
</div> |
|
</div> |
|
<button type="submit" class="btn btn-success btn-block" id="confirm-button" style="display:none"> |
|
<span class="fa fa-upload"></span> <?= __("Carica") ?> |
|
</button> |
|
</form> |
|
</div> |
|
<? |
|
} else { |
|
alertManager::printAlertBox(__('Impossibile continuare')); |
|
} |
|
} |
|
} |
|
} |
|
} |
|
if ($error) { |
|
header('HTTP/1.0 403 Forbidden'); |
|
die(); |
|
} |
|
?>
|
|
|