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

Annotation of /trunk/sql/pgsql/consultation_mes_retours.inc.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 602 - (hide annotations)
Mon Nov 5 17:44:24 2012 UTC (12 years, 3 months ago) by nhaye
File size: 2974 byte(s)
Correction de l'affichage des tableaux en fonction de l'instructeur du dossier

1 nhaye 509 <?php
2     //$Id$
3     //gen openMairie le 10/02/2011 20:32
4     include('../gen/sql/pgsql/consultation.inc.php');
5    
6     $champAffiche = array(
7 nhaye 525 'consultation.consultation as "'._("dossier").'"',
8 nhaye 509 'consultation.dossier as "'._("dossier").'"',
9 nhaye 525 'service.abrege as "'._("service").'"',
10 nhaye 509 'service.libelle as "'._("service").'"',
11     'to_char(consultation.date_reception ,\'DD/MM/YYYY\') as "'._("date_reception").'"',
12     'to_char(consultation.date_retour ,\'DD/MM/YYYY\') as "'._("date_retour").'"',
13     'to_char(consultation.date_limite ,\'DD/MM/YYYY\') as "'._("date_limite").'"',
14     'avis_consultation.libelle as "'._("avis_consultation").'"',
15     'CASE WHEN dossier.enjeu IS TRUE THEN \''._("Oui").'\' ELSE \''._("Non").'\' END as "'._("dossier a enjeu").'"',
16     );
17    
18 nhaye 602 $table .= "INNER JOIN ".DB_PREFIXE."instructeur
19     ON instructeur.instructeur=dossier.instructeur INNER JOIN ".
20     DB_PREFIXE."om_utilisateur
21     ON instructeur.om_utilisateur = om_utilisateur.om_utilisateur";
22 nhaye 509
23     $selection=" WHERE om_utilisateur.login='".$_SESSION['login']."' AND consultation.lu IS FALSE";
24    
25     $tri=" ORDER BY dossier.enjeu DESC, consultation.date_retour";
26    
27     $champRecherche = array(
28     'dossier.dossier as "'._("dossier").'"',
29     );
30    
31     $tab_actions['corner']['ajouter']=NULL;
32 nhaye 525 $tab_actions['left']['consulter']=$tab_actions['left']['consulter']=array('lien' => '../spg/direct_link.php?obj=dossier&amp;action=3'.
33     '&amp;direct_field=dossier&direct_form=consultation&direct_action=3&direct_idx=',
34     'id' => '',
35 nhaye 509 'lib' => '<span class="om-icon om-icon-16 om-icon-fix consult-16" title="'._('Consulter').'">'._('Consulter').'</span>',
36     'rights' => array('list' => array($obj, $obj.'_consulter'), 'operator' => 'OR'),
37     'ordre' => 10,);
38     $tab_actions['content'] = $tab_actions['left']['consulter'];
39    
40    
41     $champs = array();
42    
43     $champs['service_abrege'] = array(
44     'table' => 'service',
45     'colonne' => 'abrege',
46     'type' => 'text',
47     'libelle' => _('Service (abrege)'));
48    
49     $champs['service'] = array(
50     'table' => 'service',
51     'colonne' => 'libelle',
52     'type' => 'text',
53     'libelle' => _('Service'));
54    
55     $champs['date_envoi'] =
56     array('colonne' => 'date_envoi',
57     'table' => 'consultation',
58     'libelle' => _('Date d\'envoi'),
59     'type' => 'date',
60     'where' => 'intervaldate');
61     $champs['date_retour'] =
62     array('colonne' => 'date_retour',
63     'table' => 'consultation',
64     'libelle' => _('Date de retour'),
65     'type' => 'date',
66     'where' => 'intervaldate');
67    
68     $champs['date_limite'] =
69     array('colonne' => 'date_limite',
70     'table' => 'consultation',
71     'libelle' => _('Date limite'),
72     'type' => 'date',
73     'where' => 'intervaldate');
74    
75     $options[] = array('type' => 'search',
76     'display' => true,
77     'advanced' => $champs,
78     'absolute_object' => 'consultation');
79    
80     ?>

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26