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 |
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 || |
16 |
|
|
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 |
17 |
nhaye |
615 |
as "'._("enjeu").'"', |
18 |
nhaye |
509 |
); |
19 |
|
|
|
20 |
nhaye |
602 |
$table .= "INNER JOIN ".DB_PREFIXE."instructeur |
21 |
|
|
ON instructeur.instructeur=dossier.instructeur INNER JOIN ". |
22 |
|
|
DB_PREFIXE."om_utilisateur |
23 |
|
|
ON instructeur.om_utilisateur = om_utilisateur.om_utilisateur"; |
24 |
nhaye |
509 |
|
25 |
|
|
$selection=" WHERE om_utilisateur.login='".$_SESSION['login']."' AND consultation.lu IS FALSE"; |
26 |
|
|
|
27 |
nhaye |
615 |
$tri=" ORDER BY dossier.enjeu_erp, dossier.enjeu_urba, consultation.date_retour"; |
28 |
nhaye |
509 |
|
29 |
|
|
$champRecherche = array( |
30 |
|
|
'dossier.dossier as "'._("dossier").'"', |
31 |
|
|
); |
32 |
|
|
|
33 |
|
|
$tab_actions['corner']['ajouter']=NULL; |
34 |
nhaye |
525 |
$tab_actions['left']['consulter']=$tab_actions['left']['consulter']=array('lien' => '../spg/direct_link.php?obj=dossier&action=3'. |
35 |
|
|
'&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 |
|
|
?> |