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); |