24 |
LEFT JOIN ".DB_PREFIXE."instruction |
LEFT JOIN ".DB_PREFIXE."instruction |
25 |
ON demande.instruction_recepisse=instruction.instruction "; |
ON demande.instruction_recepisse=instruction.instruction "; |
26 |
|
|
27 |
|
$case_demandeur = "CASE WHEN demandeur.qualite='particulier' |
28 |
|
THEN TRIM(CONCAT(demandeur.particulier_nom, ' ', demandeur.particulier_prenom)) |
29 |
|
ELSE TRIM(CONCAT(demandeur.personne_morale_raison_sociale, ' ', demandeur.personne_morale_denomination)) |
30 |
|
END"; |
31 |
|
|
32 |
// SELECT |
// SELECT |
33 |
$champAffiche = array( |
$champAffiche = array( |
34 |
'demande.demande as "'._("demande").'"', |
'demande.demande as "'._("demande").'"', |
35 |
'COALESCE(demandeur.particulier_nom, demandeur.personne_morale_denomination) as "'._("petitionaire principal").'"', |
$case_demandeur.' as "'._("petitionaire principal").'"', |
36 |
'TRIM(CONCAT(demande.terrain_adresse_voie_numero,\' \', |
'TRIM(CONCAT(demande.terrain_adresse_voie_numero,\' \', |
37 |
demande.complement,\' \', |
demande.complement,\' \', |
38 |
demande.terrain_adresse_lieu_dit,\' \', |
demande.terrain_adresse_lieu_dit,\' \', |
70 |
'terrain_adresse_localite', 'terrain_adresse_bp', |
'terrain_adresse_localite', 'terrain_adresse_bp', |
71 |
'terrain_adresse_cedex'), |
'terrain_adresse_cedex'), |
72 |
'type' => 'text', |
'type' => 'text', |
73 |
'libelle' => _('terrain')); |
'libelle' => _('adresse')); |
74 |
|
|
75 |
$champs['arrondissement'] = |
$champs['arrondissement'] = |
76 |
array('colonne' => 'arrondissement', |
array('colonne' => 'arrondissement', |