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.
69 righe
3.0 KiB
69 righe
3.0 KiB
<? |
|
$configPath = substr(__DIR__,0,strpos(__DIR__,"/public_html"))."/config.php"; |
|
include_once($configPath); |
|
$error = true; |
|
$error_detail = ""; |
|
$id_modulo = "open"; |
|
$cmd_info = gara::getInfoModulo($id_modulo); |
|
$error = true; |
|
if (!empty($_SESSION["utente"]) && ($_SESSION["utente"]->permission($cmd_info["modulo_riferimento"],$_GET["codice"],$id_modulo) || !empty($_GET["valutazione"])) && !empty($_GET["codice_round"]) && !empty($_GET["partecipante"]) && !empty($_GET["richiesta"]) && !empty($_GET["codice_lotto"])) { |
|
$valutazione = (empty($_GET["valutazione"])) ? NULL : "commissione"; |
|
$codice_round = $_GET["codice_round"]; |
|
$gara = gara::init($_GET["codice"],$codice_round,$valutazione); |
|
if (!empty($gara) && $gara->setLotto($_GET["codice_lotto"])) { |
|
$record = $gara->info; |
|
$round = $gara->round; |
|
$lotto = $gara->lotto; |
|
$lock = $gara->checkLock($cmd_info["id"]); |
|
$partecipante = $gara->getPartecipante($_GET["partecipante"]); |
|
if (!empty($partecipante)) { |
|
$richieste = $gara->getRichieste(); |
|
foreach($richieste AS $tmp) { |
|
if ($tmp["codice"] == $_GET["richiesta"]) { |
|
$richiesta = $tmp; |
|
break; |
|
} |
|
} |
|
if (!empty($richiesta) && $richiesta["locked"] == "S") { |
|
$infoOE = oeManager::getOE($partecipante["codice_operatore"]); |
|
$aggiuntive = false; |
|
$busta = $gara->getBusta($partecipante["codice"],$_GET["richiesta"],$aggiuntive,true); |
|
if ($busta["open"] == "S") { |
|
$economica = false; |
|
if ($richiesta["busta"] == "economica") { |
|
$economica = true; |
|
} else { |
|
$criteri = $gara->getCriteriTecnici(); |
|
} |
|
if (!empty($criteri) || $economica) { |
|
?> |
|
<h2><a href="#" onclick="showCompany(<?= $infoOE["codice"] ?>)"><?= $infoOE["ragione_sociale"] ?></a></h2> |
|
<? |
|
$error = false; |
|
$offerta = $pdo->go("SELECT codice FROM b_offerte_gare WHERE codice_partecipante = :partecipante AND tipo = :busta ORDER BY codice DESC",[":partecipante"=>$partecipante["codice"],":busta"=>$richiesta["busta"]])->fetch(PDO::FETCH_ASSOC); |
|
if (!empty($offerta)) { |
|
$offerta = $offerta["codice"]; |
|
if ($economica) { |
|
$gara->printOfferEconomica(false,false,$offerta); |
|
} else { |
|
foreach($criteri AS $criterio) { |
|
if ($criterio["tipologia"] == "Q") { |
|
$gara->printFormCriterio($criterio["codice"],false,false,$offerta); |
|
} else if (!empty($criterio["auto"]) && $criterio["busta"] == "tecnica" && !$gara->commissario) { |
|
$gara->printOfferCriterio($criterio["codice"],false,false,$offerta); |
|
} |
|
} |
|
} |
|
} |
|
} |
|
} |
|
} |
|
} |
|
} |
|
} |
|
|
|
if ($error) { |
|
header('HTTP/1.0 403 Forbidden'); |
|
die(); |
|
} |
|
?>
|
|
|