gestione gare pubbliche
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.
 
 
 
 
 

39 righe
1.7 KiB

<?
$return = false;
if (!empty($this->elemento)) {
$round = $this->db->go("SELECT b_concorsi_round.*
FROM b_concorsi_round
WHERE b_concorsi_round.codice = :codice",[":codice"=>$this->elemento]);
if ($round->rowCount() > 0) {
$round = $round->fetch(PDO::FETCH_ASSOC);
if (!empty($_SESSION["utente"]->oe)) {
$oe = true;
$concorso = publicConcorso::init($round["codice_concorso"],$round["codice"]);
} else {
$oe = false;
$concorso = concorso::init($round["codice_concorso"],$round["codice"]);
}
if (!empty($concorso)) {
if (!$oe) {
$return = true;
$this->lock = $concorso->checkLock("dgue");
}
$time = time();
if (!empty($concorso->getRounds()[0]["pubblicazione"])) {
$time = strtotime($concorso->getRounds()[0]["pubblicazione"]);
}
if (empty($this->selectedCriteria())) {
$this->version = DGUE::findVersion($time);
}
$this->oggetto = $concorso->info["oggetto"] . " - " . __("Fase") . $concorso->round["oggetto"];
$this->descrizione = $concorso->info["oggetto"] . " - " . $concorso->round["descrizione"];
$ente = Ente::getInfoFromID($concorso->info["codice_ente"]);
$this->ente = ! empty($ente) ? $ente[0]["denominazione"] : null;
$this->codice_fiscale_ente = ! empty($ente) ? $ente[0]["cf"] : null;
$this->id_appalto = $concorso->getIdAppalto();
$this->inputsBreadcrumb = ["codice"=>$concorso->info["codice"],"codice_round"=>$concorso->round["codice"]];
if ($returnObject) { $return = $concorso; }
}
}
}
?>