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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 615 - (hide annotations)
Wed Nov 7 10:33:42 2012 UTC (12 years, 2 months ago) by nhaye
File size: 3364 byte(s)
Correction d'une erreur de base de données.

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 "'._("consultation").'"',
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 nhaye 615 'CASE WHEN dossier.enjeu_erp is TRUE THEN \'<span class="enjeu_erp">ERP</span>\' ELSE \'\' END ||
16     CASE WHEN dossier.enjeu_urba is TRUE THEN \'<span class="enjeu_urba">URBA</span>\' ELSE \'\' END
17     as "'._("enjeu").'"',
18 nhaye 509 );
19    
20     $table .= "LEFT OUTER JOIN ".DB_PREFIXE."om_utilisateur
21     ON om_utilisateur.om_utilisateur=dossier.instructeur ";
22    
23     // XXX Ajouter le critere concernant la division de l'instructeur connecte
24     $selection=" WHERE consultation.lu IS FALSE";
25    
26 nhaye 615 $tri=" ORDER BY dossier.enjeu_erp, dossier.enjeu_urba, consultation.date_retour";
27 nhaye 509
28     $champRecherche = array(
29     'dossier.dossier as "'._("dossier").'"',
30     'om_utilisateur.nom as "'._("instructeur").'"',
31     );
32    
33     $tab_actions['corner']['ajouter']=NULL;
34 nhaye 525 $tab_actions['left']['consulter']=array('lien' => '../spg/direct_link.php?obj=dossier&amp;action=3'.
35     '&amp;direct_field=dossier&direct_form=consultation&direct_action=3&direct_idx=',
36     'id' => '',
37 nhaye 509 'lib' => '<span class="om-icon om-icon-16 om-icon-fix consult-16" title="'._('Consulter').'">'._('Consulter').'</span>',
38     'rights' => array('list' => array($obj, $obj.'_consulter'), 'operator' => 'OR'),
39     'ordre' => 10,);
40     $tab_actions['content'] = $tab_actions['left']['consulter'];
41    
42    
43     $champs = array();
44    
45     $champs['service_abrege'] = array(
46     'table' => 'service',
47     'colonne' => 'abrege',
48     'type' => 'text',
49     'libelle' => _('Service (abrege)'));
50    
51     $champs['service'] = array(
52     'table' => 'service',
53     'colonne' => 'libelle',
54     'type' => 'text',
55     'libelle' => _('Service'));
56    
57     $champs['date_envoi'] =
58     array('colonne' => 'date_envoi',
59     'table' => 'consultation',
60     'libelle' => _('Date d\'envoi'),
61     'type' => 'date',
62     'where' => 'intervaldate');
63     $champs['date_retour'] =
64     array('colonne' => 'date_retour',
65     'table' => 'consultation',
66     'libelle' => _('Date de retour'),
67     'type' => 'date',
68     'where' => 'intervaldate');
69    
70     $champs['date_limite'] =
71     array('colonne' => 'date_limite',
72     'table' => 'consultation',
73     'libelle' => _('Date limite'),
74     'type' => 'date',
75     'where' => 'intervaldate');
76    
77     $options[] = array('type' => 'search',
78     'display' => true,
79     'advanced' => $champs,
80     'absolute_object' => 'consultation');
81    
82     /**
83     * Options
84     */
85    
86     $options[] = array(
87     "type" => "condition",
88     "field" => "case consultation.lu when 't' then 'Oui' else 'Non' end",
89     "case" => array(
90     "0" => array(
91     "values" => array("Non", ),
92     "style" => "consultation_non_lue",
93     ),
94     ),
95     );
96    
97     ?>

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26