/[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 650 - (hide annotations)
Fri Nov 9 16:52:42 2012 UTC (12 years, 2 months ago) by nhaye
File size: 3458 byte(s)
Annulation du commit 649 + correction d'une classe css

1 nhaye 509 <?php
2 fmichon 644
3     //
4 nhaye 509 include('../gen/sql/pgsql/consultation.inc.php');
5    
6 fmichon 644 //
7     $ent = _("instruction")." -> "._("mes retours de consultation");
8    
9     //
10     $tab_description = _("Les consultations qui sont notees comme non lues qui".
11     " concernent des dossiers d'instruction dont je suis".
12     " l'instructeur.");
13    
14     //
15 nhaye 509 $champAffiche = array(
16 nhaye 525 'consultation.consultation as "'._("dossier").'"',
17 nhaye 509 'consultation.dossier as "'._("dossier").'"',
18 nhaye 525 'service.abrege as "'._("service").'"',
19 nhaye 509 'service.libelle as "'._("service").'"',
20     'to_char(consultation.date_reception ,\'DD/MM/YYYY\') as "'._("date_reception").'"',
21     'to_char(consultation.date_retour ,\'DD/MM/YYYY\') as "'._("date_retour").'"',
22     'to_char(consultation.date_limite ,\'DD/MM/YYYY\') as "'._("date_limite").'"',
23     'avis_consultation.libelle as "'._("avis_consultation").'"',
24 nhaye 650 'CASE WHEN dossier.enjeu_erp is TRUE THEN \'<span class="om-icon om-icon-16 om-icon-fix enjeu_erp-16" title="'._('Enjeu ERP').'">ERP</span>\' ELSE \'\' END ||
25     CASE WHEN dossier.enjeu_urba is TRUE THEN \'<span class="om-icon om-icon-16 om-icon-fix enjeu_urba-16" title="'._('Enjeu Urba').'">URBA</span>\' ELSE \'\' END
26 nhaye 615 as "'._("enjeu").'"',
27 nhaye 509 );
28    
29 nhaye 602 $table .= "INNER JOIN ".DB_PREFIXE."instructeur
30     ON instructeur.instructeur=dossier.instructeur INNER JOIN ".
31     DB_PREFIXE."om_utilisateur
32     ON instructeur.om_utilisateur = om_utilisateur.om_utilisateur";
33 nhaye 509
34     $selection=" WHERE om_utilisateur.login='".$_SESSION['login']."' AND consultation.lu IS FALSE";
35    
36 nhaye 615 $tri=" ORDER BY dossier.enjeu_erp, dossier.enjeu_urba, consultation.date_retour";
37 nhaye 509
38     $champRecherche = array(
39     'dossier.dossier as "'._("dossier").'"',
40     );
41    
42     $tab_actions['corner']['ajouter']=NULL;
43 nhaye 525 $tab_actions['left']['consulter']=$tab_actions['left']['consulter']=array('lien' => '../spg/direct_link.php?obj=dossier&amp;action=3'.
44 nhaye 630 '&amp;direct_field=dossier&direct_form=consultation&direct_action=1&direct_idx=',
45 nhaye 525 'id' => '',
46 nhaye 509 'lib' => '<span class="om-icon om-icon-16 om-icon-fix consult-16" title="'._('Consulter').'">'._('Consulter').'</span>',
47     'rights' => array('list' => array($obj, $obj.'_consulter'), 'operator' => 'OR'),
48     'ordre' => 10,);
49     $tab_actions['content'] = $tab_actions['left']['consulter'];
50    
51    
52     $champs = array();
53    
54     $champs['service_abrege'] = array(
55     'table' => 'service',
56     'colonne' => 'abrege',
57     'type' => 'text',
58     'libelle' => _('Service (abrege)'));
59    
60     $champs['service'] = array(
61     'table' => 'service',
62     'colonne' => 'libelle',
63     'type' => 'text',
64     'libelle' => _('Service'));
65    
66     $champs['date_envoi'] =
67     array('colonne' => 'date_envoi',
68     'table' => 'consultation',
69     'libelle' => _('Date d\'envoi'),
70     'type' => 'date',
71     'where' => 'intervaldate');
72     $champs['date_retour'] =
73     array('colonne' => 'date_retour',
74     'table' => 'consultation',
75     'libelle' => _('Date de retour'),
76     'type' => 'date',
77     'where' => 'intervaldate');
78    
79     $champs['date_limite'] =
80     array('colonne' => 'date_limite',
81     'table' => 'consultation',
82     'libelle' => _('Date limite'),
83     'type' => 'date',
84     'where' => 'intervaldate');
85    
86     $options[] = array('type' => 'search',
87     'display' => true,
88     'advanced' => $champs,
89     'absolute_object' => 'consultation');
90    
91     ?>

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26