1 |
<?php |
2 |
/** |
3 |
* @package openfoncier |
4 |
* @version SVN : $id$ |
5 |
**/ |
6 |
|
7 |
// |
8 |
include('../sql/pgsql/dossier_instruction.inc.php'); |
9 |
|
10 |
$ent = _("Recherche de dossier existant"); |
11 |
|
12 |
//Suppression de l'action ajouter |
13 |
$tab_actions['corner']['ajouter'] = NULL; |
14 |
// Actions a gauche : consulter |
15 |
$tab_actions['left']['consulter'] = |
16 |
array('lien' => '../scr/form.php?obj=demande&action=0&idx_dossier=', |
17 |
'id' => '&premier='.$premier.'&advs_id='.$advs_id.'&recherche='.$recherche1. |
18 |
'&tricol='.$tricol.'&selectioncol='.$selectioncol.'&valide='.$valide, |
19 |
'lib' => '<span class="om-icon om-icon-16 om-icon-fix add-16" title="'._('Ajouter une demande').'">'. |
20 |
_('Ajouter une demande').'</span>', |
21 |
'ordre' => 20,); |
22 |
|
23 |
// Action du contenu : transferer |
24 |
$tab_actions['content'] = $tab_actions['left']['consulter']; |
25 |
|
26 |
// Recherche avancee |
27 |
$champs = array(); |
28 |
|
29 |
/*Ajout des champs de la recherche*/ |
30 |
$champs['dossier'] = array( |
31 |
'table' => 'dossier', |
32 |
'colonne' => 'dossier', |
33 |
'type' => 'text', |
34 |
'libelle' => _('dossier_instruction')); |
35 |
|
36 |
$champs['particulier_nom'] = |
37 |
array('colonne' => array('particulier_nom', 'personne_morale_denomination'), |
38 |
'table' => 'demandeur', |
39 |
'libelle' => _('petitionnaire'), |
40 |
'type' => 'text' |
41 |
); |
42 |
$champs['adresse'] = array( |
43 |
'table' => 'dossier', |
44 |
'colonne' => array('terrain_adresse_voie_numero', 'complement', |
45 |
'terrain_adresse_lieu_dit', 'terrain_adresse_code_postal', |
46 |
'terrain_adresse_localite', 'terrain_adresse_bp', |
47 |
'terrain_adresse_cedex'), |
48 |
'type' => 'text', |
49 |
'libelle' => _('terrain')); |
50 |
|
51 |
$champs['arrondissement'] = |
52 |
array('colonne' => 'arrondissement', |
53 |
'table' => 'dossier_autorisation', |
54 |
'libelle' => _('arrondissement'), |
55 |
'type' => 'select' |
56 |
); |
57 |
|
58 |
$champs['dossier_autorisation_type_detaille'] = array( |
59 |
'table' => 'dossier_autorisation', |
60 |
'colonne' => 'dossier_autorisation_type_detaille', |
61 |
'type' => 'select', |
62 |
'libelle' => _('nature du dossier')); |
63 |
|
64 |
$champs['depot_initial'] = |
65 |
array('colonne' => 'depot_initial', |
66 |
'table' => 'dossier', |
67 |
'libelle' => _('depot_initial'), |
68 |
'type' => 'date', |
69 |
'where' => 'intervaldate'); |
70 |
|
71 |
$champs['etat'] = array( |
72 |
'table' => 'dossier', |
73 |
'colonne' => 'etat', |
74 |
'type' => 'select', |
75 |
'libelle' => _('etat du dossier')); |
76 |
|
77 |
$options[] = array('type' => 'search', |
78 |
'display' => true, |
79 |
'advanced' => $champs, |
80 |
'absolute_object' => 'dossier', |
81 |
'export' => array("csv")); |
82 |
/*Fin rechercher avancée*/ |
83 |
?> |