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.
53 righe
2.3 KiB
53 righe
2.3 KiB
<? |
|
$return = false; |
|
if (!empty($this->elemento)) { |
|
$lotto = $this->db->go("SELECT b_gare_lotti.codice, b_gare_lotti.codice_gara, |
|
b_gare.oggetto, b_gare.codice_pec, b_gare_lotti.numero |
|
FROM b_gare_lotti JOIN b_gare ON b_gare_lotti.codice_gara = b_gare.codice |
|
WHERE b_gare_lotti.codice = :codice",[":codice"=>$this->sub]); |
|
if ($lotto->rowCount() > 0) { |
|
$lotto = $lotto->fetch(PDO::FETCH_ASSOC); |
|
$this->oggetto = $lotto["oggetto"] . " - " . __("Lotto") ." " . $lotto["numero"]; |
|
$this->codice_pec = $lotto["codice_pec"]; |
|
if ($checkAdmin) { |
|
if ($_SESSION["utente"]->permission("gare",$lotto["codice_gara"],"richieste")) { |
|
$gara = gara::init($lotto["codice_gara"]); |
|
if (!empty($gara)) { |
|
if ($gara->setLotto($this->sub)) { |
|
$return = true; |
|
$tmp = $gara->getPartecipanti(); |
|
$this->lock = ($gara->checkLock("richieste") || empty($tmp)); |
|
$partecipanti = []; |
|
if (!empty($tmp)) { |
|
foreach($tmp AS $par) { |
|
if (!empty($par["codice_operatore"])) { |
|
$partecipanti[] = $par; |
|
} |
|
} |
|
} |
|
$this->partecipanti = $partecipanti; |
|
if (!empty($operazione)) { |
|
if ($operazione == "SAVE") { |
|
$operazione = "INSERT"; |
|
$codice = ""; |
|
if (!empty($_POST["codice"])) { |
|
$operazione = "UPDATE"; |
|
$codice = " #" . $_POST["codice"]; |
|
} |
|
$gara->addToLog($operazione,__("Integrazione").$codice); |
|
} else if ($operazione == "OPEN") { |
|
$codice = " #" . $_GET["codice"] . " - " . __("Richiesta") . " #" . $_GET["codice_richiesta"]; |
|
$gara->addToLog($operazione,__("Integrazione").$codice); |
|
} else if ($operazione == "OBJECT") { |
|
$return = $gara; |
|
} |
|
} |
|
} |
|
} |
|
} else if (!empty($_SESSION["utente"]->oe) && $operazione == "OBJECT") { |
|
$return = publicGara::init($lotto["codice_gara"]); |
|
} |
|
} |
|
} |
|
} |
|
?>
|
|
|