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) { ?>

)">

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(); } ?>