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.
23 righe
902 B
23 righe
902 B
<? |
|
$return = false; |
|
if (!empty($this->elemento)) { |
|
$contratto = $this->db->go("SELECT b_contratti.codice, b_contratti.oggetto, b_contratti.codice_pec |
|
FROM b_contratti |
|
WHERE b_contratti.codice = :codice",[":codice"=>$this->elemento]); |
|
if ($contratto->rowCount() > 0) { |
|
$contratto = $contratto->fetch(PDO::FETCH_ASSOC); |
|
$this->oggetto = $contratto["oggetto"]; |
|
$this->codice_pec = $contratto["codice_pec"]; |
|
if ($checkAdmin) { |
|
if ($_SESSION["utente"]->permission("contratti",$contratto["codice"],"richieste")) { |
|
$contratto = stipula::init($contratto["codice"]); |
|
if (!empty($contratto)) { |
|
$return = true; |
|
$this->lock = $contratto->checkLock("richieste"); |
|
$this->partecipanti = $contratto->getOOEE(); |
|
} |
|
} |
|
} |
|
} |
|
} |
|
?>
|
|
|