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], |
9 |
[concat(substring(date_demande,9,2),'/',substring(date_demande,6,2),'/',substring(date_demande,1,4)) as date_demande], |
[to_char(date_demande,'DD/MM/YYYY') as date_demande], |
10 |
[concat(substring(date_depot,9,2),'/',substring(date_depot,6,2),'/',substring(date_depot,1,4)) as date_depot], |
[to_char(date_depot,'DD/MM/YYYY') as date_depot], |
11 |
[concat(substring(date_complet,9,2),'/',substring(date_complet,6,2),'/',substring(date_complet,1,4)) as date_complet], |
[to_char(date_complet,'DD/MM/YYYY') as date_complet], |
12 |
[concat(substring(date_rejet,9,2),'/',substring(date_rejet,6,2),'/',substring(date_rejet,1,4)) as date_rejet], |
[to_char(date_rejet,'DD/MM/YYYY') as date_rejet], |
13 |
[concat(substring(date_notification_delai,9,2),'/',substring(date_notification_delai,6,2),'/',substring(date_notification_delai,1,4)) as date_notification_delai], |
[to_char(date_notification_delai,'DD/MM/YYYY') as date_notification_delai], |
14 |
[delai], |
[delai], |
15 |
[concat(substring(date_limite,9,2),'/',substring(date_limite,6,2),'/',substring(date_limite,1,4)) as date_limite], |
[to_char(date_limite,'DD/MM/YYYY') as date_limite], |
16 |
[accord_tacite], |
[accord_tacite], |
17 |
[concat(substring(date_decision,9,2),'/',substring(date_decision,6,2),'/',substring(date_decision,1,4)) as date_decision], |
[to_char(date_decision,'DD/MM/YYYY') as date_decision], |
18 |
[avis], |
[avis_decision], |
19 |
[concat(substring(date_validite,9,2),'/',substring(date_validite,6,2),'/',substring(date_validite,1,4)) as date_validite], |
[to_char(date_validite,'DD/MM/YYYY') as date_validite], |
20 |
[concat(substring(date_chantier,9,2),'/',substring(date_chantier,6,2),'/',substring(date_chantier,1,4)) as date_chantier], |
[to_char(date_chantier,'DD/MM/YYYY') as date_chantier], |
21 |
[concat(substring(date_achevement,9,2),'/',substring(date_achevement,6,2),'/',substring(date_achevement,1,4)) as date_achevement], |
[to_char(date_achevement,'DD/MM/YYYY') as date_achevement], |
22 |
[concat(substring(date_conformite,9,2),'/',substring(date_conformite,6,2),'/',substring(date_conformite,1,4)) as date_conformite], |
[to_char(date_conformite,'DD/MM/YYYY') as date_conformite], |
23 |
[demandeur_civilite], |
[demandeur_civilite], |
24 |
[demandeur_nom], |
[demandeur_nom], |
25 |
[demandeur_societe], |
[demandeur_societe], |
57 |
[hauteur], |
[hauteur], |
58 |
[piece_nombre], |
[piece_nombre], |
59 |
[amenagement] |
[amenagement] |
60 |
from dossier left join 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 |
// |
// |
86 |
$reqmo['date_limite']="checked"; |
$reqmo['date_limite']="checked"; |
87 |
$reqmo['accord_tacite']="checked"; |
$reqmo['accord_tacite']="checked"; |
88 |
$reqmo['date_decision']="checked"; |
$reqmo['date_decision']="checked"; |
89 |
$reqmo['avis']="checked"; |
$reqmo['avis_decision']="checked"; |
90 |
$reqmo['date_validite']="checked"; |
$reqmo['date_validite']="checked"; |
91 |
$reqmo['date_chantier']="checked"; |
$reqmo['date_chantier']="checked"; |
92 |
$reqmo['date_achevement']="checked"; |
$reqmo['date_achevement']="checked"; |