/[openfoncier]/trunk/sql/pgsql/recherche_dossier.inc.php
ViewVC logotype

Contents of /trunk/sql/pgsql/recherche_dossier.inc.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1038 - (show annotations)
Tue Dec 11 10:26:42 2012 UTC (12 years, 1 month ago) by vpihour
File size: 2519 byte(s)
Correction de la recherche avancée avec ajout de la nouvelle fonctionnalité.
Ajout du prénom du pétitionnaire si c'est un particulier et de la raison sociale si c'est une personne morale

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26