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