1 |
<?php |
<?php |
2 |
$reqmo['libelle']="dossier"; |
$reqmo['libelle']="dossier"; |
3 |
$reqmo['sql']="select dossier, |
$reqmo['sql']="SELECT dossier, |
4 |
[dossier.nature as nature], |
[dossier_autorisation_type_detaille.code as nature], |
5 |
[etat], |
[dossier.etat as etat], |
6 |
[types], |
[types], |
7 |
[objet_dossier], |
[objet_dossier], |
8 |
[instructeur], |
[instructeur], |
57 |
[hauteur], |
[hauteur], |
58 |
[piece_nombre], |
[piece_nombre], |
59 |
[amenagement] |
[amenagement] |
60 |
from ".DB_PREFIXE."dossier left join ".DB_PREFIXE."travaux on travaux.travaux = dossier.travaux |
FROM ".DB_PREFIXE."dossier left join ".DB_PREFIXE."travaux on travaux.travaux = dossier.travaux |
61 |
where dossier.nature = '[selection]' and logement_nombre >= [logement_nombre_superieur] |
INNER JOIN ".DB_PREFIXE."dossier_autorisation |
62 |
|
ON dossier.dossier_autorisation=dossier_autorisation.dossier_autorisation |
63 |
|
INNER JOIN ".DB_PREFIXE."dossier_autorisation_type_detaille |
64 |
|
ON dossier_autorisation.dossier_autorisation_type_detaille |
65 |
|
= dossier_autorisation_type_detaille.dossier_autorisation_type_detaille |
66 |
|
WHERE dossier_autorisation_type_detaille.code = '[selection]' |
67 |
|
and logement_nombre >= [logement_nombre_superieur] |
68 |
order by [tri]"; |
order by [tri]"; |
69 |
|
|
70 |
$reqmo['selection']= array('PC','PA'); |
$reqmo['selection']= array('PCI','PCA','PA'); |
71 |
$reqmo['logement_nombre_superieur']= array('0','1','2','3','4','5','10','20'); |
$reqmo['logement_nombre_superieur']= array('0','1','2','3','4','5','10','20'); |
72 |
$reqmo['tri']= array('dossier','etat','demandeur_nom'); |
$reqmo['tri']= array('dossier','etat','demandeur_nom'); |
73 |
// |
// |