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 |
|
|
'CASE WHEN messages.enjeux_erp IS TRUE THEN \''._("Oui").'\' ELSE \''._("Non").'\' END as "'._("enjeux_erp").'"', |
13 |
|
|
'CASE WHEN messages.enjeux_urba IS TRUE THEN \''._("Oui").'\' ELSE \''._("Non").'\' END as "'._("enjeux_urba").'"', |
14 |
|
|
); |
15 |
|
|
|
16 |
|
|
|
17 |
|
|
//$table .= DB_PREFIXE."messages"; |
18 |
|
|
|
19 |
|
|
$selection=" WHERE messages.lu IS FALSE"; |
20 |
|
|
|
21 |
|
|
$tri="";//" ORDER BY dossier.enjeu DESC, consultation.date_retour"; |
22 |
|
|
|
23 |
|
|
$tab_actions['corner']['ajouter']=NULL; |
24 |
|
|
|
25 |
|
|
/* |
26 |
|
|
$champRecherche = array( |
27 |
|
|
'dossier.dossier as "'._("dossier").'"', |
28 |
|
|
); |
29 |
|
|
|
30 |
|
|
$tab_actions['corner']['ajouter']=NULL; |
31 |
|
|
$tab_actions['left']['consulter']=$tab_actions['left']['consulter']=array('lien' => '../spg/direct_link.php?obj=dossier&action=3'. |
32 |
|
|
'&direct_field=dossier&direct_form=consultation&direct_action=3&direct_idx=', |
33 |
|
|
'id' => '', |
34 |
|
|
'lib' => '<span class="om-icon om-icon-16 om-icon-fix consult-16" title="'._('Consulter').'">'._('Consulter').'</span>', |
35 |
|
|
'rights' => array('list' => array($obj, $obj.'_consulter'), 'operator' => 'OR'), |
36 |
|
|
'ordre' => 10,); |
37 |
|
|
$tab_actions['content'] = $tab_actions['left']['consulter']; |
38 |
|
|
|
39 |
|
|
|
40 |
|
|
$champs = array(); |
41 |
|
|
|
42 |
|
|
$champs['service_abrege'] = array( |
43 |
|
|
'table' => 'service', |
44 |
|
|
'colonne' => 'abrege', |
45 |
|
|
'type' => 'text', |
46 |
|
|
'libelle' => _('Service (abrege)')); |
47 |
|
|
|
48 |
|
|
$champs['service'] = array( |
49 |
|
|
'table' => 'service', |
50 |
|
|
'colonne' => 'libelle', |
51 |
|
|
'type' => 'text', |
52 |
|
|
'libelle' => _('Service')); |
53 |
|
|
|
54 |
|
|
$champs['date_envoi'] = |
55 |
|
|
array('colonne' => 'date_envoi', |
56 |
|
|
'table' => 'consultation', |
57 |
|
|
'libelle' => _('Date d\'envoi'), |
58 |
|
|
'type' => 'date', |
59 |
|
|
'where' => 'intervaldate'); |
60 |
|
|
$champs['date_retour'] = |
61 |
|
|
array('colonne' => 'date_retour', |
62 |
|
|
'table' => 'consultation', |
63 |
|
|
'libelle' => _('Date de retour'), |
64 |
|
|
'type' => 'date', |
65 |
|
|
'where' => 'intervaldate'); |
66 |
|
|
|
67 |
|
|
$champs['date_limite'] = |
68 |
|
|
array('colonne' => 'date_limite', |
69 |
|
|
'table' => 'consultation', |
70 |
|
|
'libelle' => _('Date limite'), |
71 |
|
|
'type' => 'date', |
72 |
|
|
'where' => 'intervaldate'); |
73 |
|
|
|
74 |
|
|
$options[] = array('type' => 'search', |
75 |
|
|
'display' => true, |
76 |
|
|
'advanced' => $champs, |
77 |
|
|
'absolute_object' => 'consultation'); |
78 |
|
|
*/ |
79 |
|
|
?> |