1 |
fraynaud |
3 |
<?php |
2 |
|
|
//$Id$ |
3 |
|
|
//gen openMairie le 10/02/2011 20:32 |
4 |
|
|
include('../gen/sql/pgsql/consultation.inc.php'); |
5 |
nhaye |
429 |
|
6 |
nhaye |
498 |
$table .= "INNER JOIN ".DB_PREFIXE."om_utilisateur |
7 |
|
|
ON om_utilisateur.om_utilisateur=dossier.instructeur "; |
8 |
|
|
|
9 |
nhaye |
461 |
if(isset($idx)) |
10 |
nhaye |
498 |
$selection=" WHERE consultation.dossier ='".$idx."'"; |
11 |
nhaye |
461 |
else |
12 |
nhaye |
498 |
$selection=" WHERE om_utilisateur.login='".$_SESSION['login']."'"; |
13 |
fraynaud |
38 |
|
14 |
|
|
if ($retourformulaire== 'service'){ |
15 |
nhaye |
429 |
// Actions en coin : ajouter |
16 |
nhaye |
496 |
$tab_actions['corner']['ajouter'] = NULL; |
17 |
nhaye |
429 |
// Actions a gauche : consulter |
18 |
|
|
$tab_actions['left']['consulter'] = NULL; |
19 |
fraynaud |
38 |
$selection=" where consultation.service ='".$idx."'"; |
20 |
|
|
} |
21 |
|
|
|
22 |
nhaye |
496 |
$champs = array(); |
23 |
|
|
|
24 |
nhaye |
498 |
$champs['service_abrege'] = array( |
25 |
|
|
'table' => 'service', |
26 |
|
|
'colonne' => 'abrege', |
27 |
nhaye |
496 |
'type' => 'text', |
28 |
nhaye |
498 |
'libelle' => _('Service (abrege)')); |
29 |
nhaye |
496 |
|
30 |
|
|
$champs['service'] = array( |
31 |
nhaye |
498 |
'table' => 'service', |
32 |
|
|
'colonne' => 'libelle', |
33 |
|
|
'type' => 'text', |
34 |
nhaye |
496 |
'libelle' => _('Service')); |
35 |
|
|
|
36 |
|
|
$champs['date_envoi'] = |
37 |
|
|
array('colonne' => 'date_envoi', |
38 |
|
|
'table' => 'consultation', |
39 |
|
|
'libelle' => _('Date d\'envoi'), |
40 |
|
|
'type' => 'date', |
41 |
|
|
'where' => 'intervaldate'); |
42 |
nhaye |
498 |
$champs['date_retour'] = |
43 |
|
|
array('colonne' => 'date_retour', |
44 |
|
|
'table' => 'consultation', |
45 |
|
|
'libelle' => _('Date de retour'), |
46 |
|
|
'type' => 'date', |
47 |
|
|
'where' => 'intervaldate'); |
48 |
nhaye |
496 |
|
49 |
|
|
$champs['date_limite'] = |
50 |
|
|
array('colonne' => 'date_limite', |
51 |
|
|
'table' => 'consultation', |
52 |
|
|
'libelle' => _('Date limite'), |
53 |
|
|
'type' => 'date', |
54 |
|
|
'where' => 'intervaldate'); |
55 |
|
|
|
56 |
|
|
|
57 |
nhaye |
498 |
$options[] = array('type' => 'search', |
58 |
nhaye |
496 |
'display' => true, |
59 |
|
|
'advanced' => $champs, |
60 |
|
|
'default_form' => 'advanced', |
61 |
|
|
'absolute_object' => 'consultation'); |
62 |
nhaye |
498 |
|
63 |
|
|
/** |
64 |
|
|
* Options |
65 |
|
|
*/ |
66 |
|
|
|
67 |
|
|
$options_tab[] = array( |
68 |
|
|
"type" => "condition", |
69 |
|
|
"field" => "om_collectivite.niveau", |
70 |
|
|
"case" => array( |
71 |
|
|
"0" => array( |
72 |
|
|
"style" => "tab_desactive", |
73 |
|
|
), |
74 |
|
|
), |
75 |
|
|
); |
76 |
fraynaud |
3 |
?> |