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.
92 righe
4.2 KiB
92 righe
4.2 KiB
<? |
|
$configPath = substr(__DIR__,0,strpos(__DIR__,"/public_html"))."/config.php"; |
|
include_once($configPath); |
|
if (!empty($_SESSION["utente"]) && !empty($_GET["tipologia"]) && !empty($_GET["codice_lotto"])) { |
|
$gara = publicGara::init($_GET["codice_gara"]); |
|
if (!empty($gara) && $gara->partecipazioneAttiva()) { |
|
$record = $gara->info; |
|
$round = $gara->round; |
|
if ($gara->setLotto($_GET["codice_lotto"])) { |
|
$lotto = $gara->lotto; |
|
$breadcrumb = array(); |
|
$breadcrumb["/".$radice."/"] = Modulo::getInfo($radice)["titolo"]; |
|
$breadcrumb["/".$radice."/dettaglio.php?codice={$record["codice"]}"] = __("Dettaglio"); |
|
$breadcrumb["partecipa.php?codice={$record["codice"]}&codice_lotto={$lotto["codice"]}"] = __("Pannello"); |
|
$breadcrumb[] = __("Genera documento"); |
|
$generata = false; |
|
include_once ($root."/layout/top.php"); |
|
$richieste = $gara->getRichieste($_GET["tipologia"]); |
|
if (!empty($richieste)) { |
|
foreach($richieste AS $tmp) { |
|
if ($tmp["locked"] == "S") { $richiesta = $tmp; } |
|
} |
|
} |
|
if(!empty($richiesta)) { |
|
$partecipante = $gara->miaPartecipazione(); |
|
if (!empty($partecipante)) { |
|
$generata = (!empty($gara->checkFormFill($_GET["tipologia"]))) ? true : false; |
|
} |
|
if ($_GET["tipologia"] == "economica") { |
|
$criteri = $gara->getCriteriEconomici(); |
|
} else { |
|
$criteri = $gara->getCriteriTecnici(); |
|
} |
|
if (!empty($criteri)) { |
|
ob_start(); |
|
if ($_GET["tipologia"] != "economica") { |
|
foreach($criteri AS $criterio) { |
|
if ($criterio["tipologia"] == "Q") { |
|
$gara->printFormCriterio($criterio["codice"],true,false); |
|
} else if (!empty($criterio["auto"]) && $criterio["busta"] == $richiesta["busta"]) { |
|
$gara->printOfferCriterio($criterio["codice"],true,false); |
|
} |
|
} |
|
} else { |
|
$gara->printOfferEconomica(true,false,["partecipanti"=>$gara->listPartecipanti()]); |
|
} |
|
$html = ob_get_clean(); |
|
} |
|
if (!empty($html)) { ?> |
|
<div class="container"> |
|
<h3><?= $record["oggetto"] ?> - <?= $richiesta["titolo"] ?></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"] ?>"> |
|
<input id="codice" type="hidden" name="tipologia" value="<?= $richiesta["busta"] ?>"> |
|
<?= $html ?> |
|
<div class="card card-body mb-2 text-center"> |
|
<div class="row"> |
|
<div class="col-12 col-sm-4 offset-sm-4"> |
|
<span class="h3"><?= __("Password") ?></span> |
|
<div class="form-group"> |
|
<input class="form-control" name="salt" id="salt" type="password" title="<?= __("Password") ?>" rel="S;12;32;P"> |
|
</div> |
|
<div class="form-group"> |
|
<input class="form-control" id="repeat-salt" type="password" title="<?= __("ripeti") . " ". __("password") ?>" rel="S;12;32;P;salt;="> |
|
</div> |
|
</div> |
|
</div> |
|
</div> |
|
<button class="btn btn-lg btn-primary btn-block"><?= ($generata) ? __("Rigenera offerta") : __("Genera offerta") ?></button> |
|
</form> |
|
</div> |
|
<? |
|
} else { |
|
alertManager::printAlertBox(__('Impossibile continuare')); |
|
} |
|
} else { |
|
alertManager::printAlertBox(__('Impossibile continuare')); |
|
} |
|
} 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(); |
|
} |
|
?>
|
|
|