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

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

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

revision 461 by nhaye, Thu Sep 27 10:36:55 2012 UTC revision 498 by nhaye, Fri Oct 12 16:01:09 2012 UTC
# Line 3  Line 3 
3  //gen openMairie le 10/02/2011 20:32  //gen openMairie le 10/02/2011 20:32
4  include('../gen/sql/pgsql/consultation.inc.php');  include('../gen/sql/pgsql/consultation.inc.php');
5    
6    $table .= "INNER JOIN ".DB_PREFIXE."om_utilisateur
7            ON om_utilisateur.om_utilisateur=dossier.instructeur ";
8            
9  if(isset($idx))  if(isset($idx))
10    $selection=" where consultation.dossier ='".$idx."'";    $selection=" WHERE consultation.dossier ='".$idx."'";
11  else  else
12    $selection="";    $selection=" WHERE om_utilisateur.login='".$_SESSION['login']."'";
13    
14  if ($retourformulaire== 'service'){  if ($retourformulaire== 'service'){
15      // Actions en coin : ajouter      // Actions en coin : ajouter
16          $tab_actions['corner']['ajouter'] = NULL;      $tab_actions['corner']['ajouter'] = NULL;
17      // Actions a gauche : consulter      // Actions a gauche : consulter
18      $tab_actions['left']['consulter'] = NULL;      $tab_actions['left']['consulter'] = NULL;
19      $selection=" where consultation.service ='".$idx."'";      $selection=" where consultation.service ='".$idx."'";
20  }  }
21    
22    $champs = array();
23    
24    $champs['service_abrege'] = array(
25        'table' => 'service',
26        'colonne' => 'abrege',
27        'type' => 'text',
28        'libelle' => _('Service (abrege)'));
29    
30    $champs['service'] = array(
31        'table' => 'service',
32        'colonne' => 'libelle',
33        'type' => 'text',
34        'libelle' => _('Service'));
35    
36    $champs['date_envoi'] =
37        array('colonne' => 'date_envoi',
38              'table' => 'consultation',
39              'libelle' => _('Date d\'envoi'),
40              'type' => 'date',
41              'where' => 'intervaldate');
42    $champs['date_retour'] =
43        array('colonne' => 'date_retour',
44              'table' => 'consultation',
45              'libelle' => _('Date de retour'),
46              'type' => 'date',
47              'where' => 'intervaldate');
48        
49    $champs['date_limite'] =
50        array('colonne' => 'date_limite',
51              'table' => 'consultation',
52              'libelle' => _('Date limite'),
53              'type' => 'date',
54              'where' => 'intervaldate');
55    
56    
57    $options[] =  array('type' => 'search',
58                         'display' => true,
59                         'advanced' => $champs,
60                         'default_form' => 'advanced',
61                         'absolute_object' => 'consultation');
62    
63    /**
64     * Options
65     */
66    
67    $options_tab[] = array(
68        "type" => "condition",
69        "field" => "om_collectivite.niveau",
70        "case" => array(
71            "0" => array(
72                "style" => "tab_desactive",
73            ),
74        ),
75    );
76  ?>  ?>

Legend:
Removed from v.461  
changed lines
  Added in v.498

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26