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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1030 by nhaye, Fri Dec 7 18:13:00 2012 UTC revision 1061 by nhaye, Thu Dec 13 17:26:39 2012 UTC
# Line 7  Line 7 
7  //  //
8  include('../sql/pgsql/dossier_instruction.inc.php');  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;  $tab_actions['corner']['ajouter'] = NULL;
14  // Actions a gauche : consulter  // Actions a gauche : consulter
15  $tab_actions['left']['consulter'] =  $tab_actions['left']['consulter'] =
16      array('lien' => '../scr/form.php?obj=demande&idx_dossier=',      array('lien' => '../scr/form.php?obj=demande&action=0&idx_dossier=',
17            'id' => ''            'id' => '&premier='.$premier.'&advs_id='.$advs_id.'&recherche='.$recherche1.
18            'lib' => '<span class="om-icon om-icon-16 om-icon-fix add-16" title="'._('Ajouter une demande').'">'._('Ajouter une demande').'</span>',                      '&amp;tricol='.$tricol.'&amp;selectioncol='.$selectioncol.'&amp;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,);            'ordre' => 20,);
22    
23  // Action du contenu : transferer  // Action du contenu : transferer
# Line 22  $tab_actions['content'] = $tab_actions[' Line 26  $tab_actions['content'] = $tab_actions['
26  // Recherche avancee  // Recherche avancee
27  $champs = array();  $champs = array();
28    
29    /*Ajout des champs de la recherche*/
30  $champs['dossier'] = array(  $champs['dossier'] = array(
31      'table' => 'dossier',      'table' => 'dossier',
32      'colonne' => 'dossier',      'colonne' => 'dossier',
# Line 29  $champs['dossier'] = array( Line 34  $champs['dossier'] = array(
34      'libelle' => _('dossier_instruction'));      'libelle' => _('dossier_instruction'));
35    
36  $champs['particulier_nom'] =  $champs['particulier_nom'] =
37      array('colonne' => 'particulier_nom',      array('colonne' => array('particulier_nom', 'personne_morale_denomination'),
38            'table' => 'demandeur',            'table' => 'demandeur',
39            'libelle' => _('petitionnaire'),            'libelle' => _('petitionnaire'),
40            'type' => 'text'            'type' => 'text'
41            );            );
42  $champs['adresse'] = array(  $champs['adresse'] = array(
43      'table' => 'dossier',      'table' => 'dossier',
44      'colonne' => 'TRIM(CONCAT(dossier_autorisation.terrain_adresse_voie_numero,\' \',      'colonne' => array('terrain_adresse_voie_numero', 'complement',
45          dossier_autorisation.complement,\' \',          'terrain_adresse_lieu_dit', 'terrain_adresse_code_postal',
46          dossier_autorisation.terrain_adresse_lieu_dit,\' \',          'terrain_adresse_localite', 'terrain_adresse_bp',
47          dossier_autorisation.terrain_adresse_code_postal,\' \',          'terrain_adresse_cedex'),
         dossier_autorisation.terrain_adresse_localite,\' \',  
         dossier_autorisation.terrain_adresse_bp,\' \',  
         dossier_autorisation.terrain_adresse_cedex  
     ))',  
48      'type' => 'text',      'type' => 'text',
49      'libelle' => _('terrain'));      'libelle' => _('terrain'));
50    
# Line 78  $options[] =  array('type' => 'search', Line 79  $options[] =  array('type' => 'search',
79                       'advanced' => $champs,                       'advanced' => $champs,
80                       'absolute_object' => 'dossier',                       'absolute_object' => 'dossier',
81                       'export' => array("csv"));                       'export' => array("csv"));
82    /*Fin rechercher avancĂ©e*/
83  ?>  ?>

Legend:
Removed from v.1030  
changed lines
  Added in v.1061

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26