1 |
nhaye |
1023 |
<?php |
2 |
|
|
/** |
3 |
|
|
* @package openfoncier |
4 |
|
|
* @version SVN : $id$ |
5 |
|
|
**/ |
6 |
|
|
|
7 |
|
|
// |
8 |
|
|
include('../sql/pgsql/dossier_instruction.inc.php'); |
9 |
|
|
|
10 |
|
|
$table = DB_PREFIXE."dossier |
11 |
|
|
INNER JOIN ".DB_PREFIXE."dossier_autorisation |
12 |
|
|
ON dossier_autorisation.dossier_autorisation = dossier.dossier_autorisation |
13 |
|
|
LEFT JOIN ".DB_PREFIXE."instructeur |
14 |
|
|
ON dossier.instructeur = instructeur.instructeur |
15 |
|
|
LEFT JOIN ".DB_PREFIXE."om_utilisateur |
16 |
|
|
ON instructeur.om_utilisateur = om_utilisateur.om_utilisateur |
17 |
|
|
LEFT JOIN ".DB_PREFIXE."avis_decision |
18 |
|
|
ON avis_decision.avis_decision=dossier.avis_decision |
19 |
|
|
LEFT JOIN ".DB_PREFIXE."division |
20 |
|
|
ON dossier.division=division.division"; |
21 |
|
|
|
22 |
|
|
// Recherche avancee |
23 |
|
|
$champs = array(); |
24 |
|
|
|
25 |
|
|
$champs['dossier'] = array( |
26 |
|
|
'table' => 'dossier', |
27 |
|
|
'colonne' => 'dossier', |
28 |
|
|
'type' => 'text', |
29 |
|
|
'libelle' => _('dossier_instruction')); |
30 |
|
|
|
31 |
|
|
$champs['particulier_nom'] = |
32 |
|
|
array('colonne' => 'particulier_nom', |
33 |
|
|
'table' => 'demandeur', |
34 |
|
|
'libelle' => _('petitionnaire'), |
35 |
|
|
'type' => 'text' |
36 |
|
|
); |
37 |
|
|
|
38 |
|
|
$champs['particulier_nom'] = |
39 |
|
|
array('colonne' => 'particulier_nom', |
40 |
|
|
'table' => 'demandeur', |
41 |
|
|
'libelle' => _('petitionnaire'), |
42 |
|
|
'type' => 'text' |
43 |
|
|
); |
44 |
|
|
|
45 |
|
|
$champs['adresse'] = array( |
46 |
|
|
'table' => 'dossier', |
47 |
|
|
'colonne' => 'TRIM(CONCAT(dossier_autorisation.terrain_adresse_voie_numero,\' \', |
48 |
|
|
dossier_autorisation.complement,\' \', |
49 |
|
|
dossier_autorisation.terrain_adresse_lieu_dit,\' \', |
50 |
|
|
dossier_autorisation.terrain_adresse_code_postal,\' \', |
51 |
|
|
dossier_autorisation.terrain_adresse_localite,\' \', |
52 |
|
|
dossier_autorisation.terrain_adresse_bp,\' \', |
53 |
|
|
dossier_autorisation.terrain_adresse_cedex |
54 |
|
|
))', |
55 |
|
|
'type' => 'text', |
56 |
|
|
'libelle' => _('terrain')); |
57 |
|
|
|
58 |
|
|
$champs['arrondissement'] = |
59 |
|
|
array('colonne' => 'arrondissement', |
60 |
|
|
'table' => 'dossier_autorisation', |
61 |
|
|
'libelle' => _('arrondissement'), |
62 |
|
|
'type' => 'select' |
63 |
|
|
); |
64 |
|
|
|
65 |
|
|
$champs['dossier_autorisation_type_detaille'] = array( |
66 |
|
|
'table' => 'dossier_autorisation', |
67 |
|
|
'colonne' => 'dossier_autorisation_type_detaille', |
68 |
|
|
'type' => 'select', |
69 |
|
|
'libelle' => _('nature du dossier')); |
70 |
|
|
|
71 |
|
|
$champs['depot_initial'] = |
72 |
|
|
array('colonne' => 'depot_initial', |
73 |
|
|
'table' => 'dossier', |
74 |
|
|
'libelle' => _('depot_initial'), |
75 |
|
|
'type' => 'date', |
76 |
|
|
'where' => 'intervaldate'); |
77 |
|
|
|
78 |
|
|
$champs['etat'] = array( |
79 |
|
|
'table' => 'dossier', |
80 |
|
|
'colonne' => 'etat', |
81 |
|
|
'type' => 'select', |
82 |
|
|
'libelle' => _('etat du dossier')); |
83 |
|
|
|
84 |
|
|
$options[] = array('type' => 'search', |
85 |
|
|
'display' => true, |
86 |
|
|
'advanced' => $champs, |
87 |
|
|
'absolute_object' => 'dossier', |
88 |
|
|
'export' => array("csv")); |
89 |
|
|
|
90 |
|
|
?> |