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.
19 righe
1.0 KiB
19 righe
1.0 KiB
<? |
|
if (isset($this) && is_a($this,"anac") && !empty($cig)) { |
|
$codice_gestore = $this->info["codice_gestore"]; |
|
$codice_ente = $this->info["codice_ente"]; |
|
$sql = "SELECT * FROM b_contratti WHERE b_contratti.cig = :cig AND (b_contratti.codice_gestore = :gestore OR b_contratti.codice_ente = :ente)"; |
|
$codici = $this->db->go($sql,[":cig"=>$cig,":gestore"=>$codice_gestore,":ente"=>$codice_ente]); |
|
if ($codici->rowCount() > 0) { |
|
while($contratto = $codici->fetch(PDO::FETCH_ASSOC)) { |
|
$xml190 = []; |
|
if (!empty($contratto["data_inizio"])) { $xml190["190data_inizio"] = mysql2date($contratto["data_inizio"]); } |
|
if (!empty($contratto["data_fine"])) { $xml190["190data_fine"] = mysql2date($contratto["data_fine"]); } |
|
if (!empty($xml190)) { $data["190"][] = ["source"=>"stipula","data"=>$xml190]; } |
|
|
|
// scheda inizio |
|
if (!empty($contratto["data_stipula"])) { $data["inizio"] = [["source"=>"stipula","data"=>["DATA_STIPULA"=>mysql2date($contratto["data_stipula"])]]]; } |
|
} |
|
} |
|
} |
|
?>
|