31 |
} // fin constructeur |
} // fin constructeur |
32 |
|
|
33 |
function setValFAjout($val = array()) { |
function setValFAjout($val = array()) { |
34 |
|
/* |
35 |
// Cle primaire |
// Cle primaire |
36 |
$lettre=$this->f->collectivite["lettre"]; |
$lettre=$this->f->collectivite["lettre"]; |
37 |
$numero_unique = $this->f->collectivite["numero_unique"]; |
$numero_unique = $this->f->collectivite["numero_unique"]; |
45 |
$temp=str_pad($temp,4,"0", STR_PAD_LEFT); |
$temp=str_pad($temp,4,"0", STR_PAD_LEFT); |
46 |
$this->valF['dossier'] = $this->valF['nature'].$this->valF['annee']. |
$this->valF['dossier'] = $this->valF['nature'].$this->valF['annee']. |
47 |
$lettre.$temp; |
$lettre.$temp; |
48 |
|
*/ |
49 |
|
$this->valF['dossier'] = time(); |
50 |
} |
} |
51 |
|
|
52 |
function setvalF($val){ |
function setvalF($val){ |
802 |
$sql = "SELECT |
$sql = "SELECT |
803 |
quartier, arrondissement |
quartier, arrondissement |
804 |
FROM |
FROM |
805 |
quartier |
".DB_PREFIXE."quartier |
806 |
WHERE |
WHERE |
807 |
code_impots='$quartier'"; |
code_impots='$quartier'"; |
808 |
|
|
847 |
SELECT |
SELECT |
848 |
instructeur, section, quartier, arrondissement, nature |
instructeur, section, quartier, arrondissement, nature |
849 |
FROM |
FROM |
850 |
lien_localisation_nature l |
".DB_PREFIXE."lien_localisation_nature l |
851 |
WHERE |
WHERE |
852 |
( nature IS NULL AND arrondissement IS NULL AND quartier IS NULL AND section IS NULL ) OR |
( nature IS NULL AND arrondissement IS NULL AND quartier IS NULL AND section IS NULL ) OR |
853 |
( nature IS NULL AND arrondissement IS NULL AND quartier IS NULL AND section = '$section' ) OR |
( nature IS NULL AND arrondissement IS NULL AND quartier IS NULL AND section = '$section' ) OR |
878 |
|
|
879 |
$row = $res->fetchRow(DB_FETCHMODE_ASSOC); |
$row = $res->fetchRow(DB_FETCHMODE_ASSOC); |
880 |
|
|
881 |
$sql = "SELECT division FROM instructeur WHERE instructeur = ".$row['instructeur']; |
$sql = "SELECT division FROM ".DB_PREFIXE."instructeur WHERE instructeur = ".$row['instructeur']; |
882 |
$res = $this->db->query($sql); |
$res = $this->db->query($sql); |
883 |
if (database :: isError($res)) |
if (database :: isError($res)) |
884 |
die($res->getMessage()."erreur ".$sql); |
die($res->getMessage()."erreur ".$sql); |
1024 |
* sinon NULL. En cas d'erreur de la BD, l'execution s'arrete. |
* sinon NULL. En cas d'erreur de la BD, l'execution s'arrete. |
1025 |
*/ |
*/ |
1026 |
function getReferenceCadastrale($dossier) { |
function getReferenceCadastrale($dossier) { |
1027 |
$sql = "SELECT terrain_references_cadastrales FROM demande WHERE dossier_instruction = '" . $dossier . "'"; |
$sql = "SELECT terrain_references_cadastrales FROM ".DB_PREFIXE."demande WHERE dossier_instruction = '" . $dossier . "'"; |
1028 |
$res = $this->db->limitquery($sql, 0, 1); |
$res = $this->db->limitquery($sql, 0, 1); |
1029 |
$this->addToLog("getReferenceCadastrale(): db->limitquery(\"". |
$this->addToLog("getReferenceCadastrale(): db->limitquery(\"". |
1030 |
str_replace(",",", ",$sql)."\", 0, 1);", VERBOSE_MODE); |
str_replace(",",", ",$sql)."\", 0, 1);", VERBOSE_MODE); |