3 |
//gen openMairie le 10/02/2011 20:32 |
//gen openMairie le 10/02/2011 20:32 |
4 |
include('../gen/sql/pgsql/consultation.inc.php'); |
include('../gen/sql/pgsql/consultation.inc.php'); |
5 |
|
|
6 |
|
$table .= "INNER JOIN ".DB_PREFIXE."om_utilisateur |
7 |
|
ON om_utilisateur.om_utilisateur=dossier.instructeur "; |
8 |
|
|
9 |
if(isset($idx)) |
if(isset($idx)) |
10 |
$selection=" where consultation.dossier ='".$idx."'"; |
$selection=" WHERE consultation.dossier ='".$idx."'"; |
11 |
else |
else |
12 |
$selection=""; |
$selection=" WHERE om_utilisateur.login='".$_SESSION['login']."'"; |
13 |
|
|
14 |
if ($retourformulaire== 'service'){ |
if ($retourformulaire== 'service'){ |
15 |
// Actions en coin : ajouter |
// Actions en coin : ajouter |
21 |
|
|
22 |
$champs = array(); |
$champs = array(); |
23 |
|
|
24 |
$champs['dossier'] = array( |
$champs['service_abrege'] = array( |
25 |
'table' => 'consultation', |
'table' => 'service', |
26 |
'colonne' => 'dossier', |
'colonne' => 'abrege', |
27 |
'type' => 'text', |
'type' => 'text', |
28 |
'libelle' => _('Dossier')); |
'libelle' => _('Service (abrege)')); |
29 |
|
|
30 |
$champs['service'] = array( |
$champs['service'] = array( |
31 |
'table' => 'consultation', |
'table' => 'service', |
32 |
'colonne' => 'service', |
'colonne' => 'libelle', |
33 |
'type' => 'select', |
'type' => 'text', |
34 |
'libelle' => _('Service')); |
'libelle' => _('Service')); |
35 |
|
|
36 |
$champs['date_envoi'] = |
$champs['date_envoi'] = |
39 |
'libelle' => _('Date d\'envoi'), |
'libelle' => _('Date d\'envoi'), |
40 |
'type' => 'date', |
'type' => 'date', |
41 |
'where' => 'intervaldate'); |
'where' => 'intervaldate'); |
42 |
|
$champs['date_retour'] = |
43 |
|
array('colonne' => 'date_retour', |
44 |
|
'table' => 'consultation', |
45 |
|
'libelle' => _('Date de retour'), |
46 |
|
'type' => 'date', |
47 |
|
'where' => 'intervaldate'); |
48 |
|
|
49 |
$champs['date_limite'] = |
$champs['date_limite'] = |
50 |
array('colonne' => 'date_limite', |
array('colonne' => 'date_limite', |
54 |
'where' => 'intervaldate'); |
'where' => 'intervaldate'); |
55 |
|
|
56 |
|
|
57 |
$options[] = array('type' => 'search', |
$options[] = array('type' => 'search', |
58 |
'display' => true, |
'display' => true, |
59 |
'advanced' => $champs, |
'advanced' => $champs, |
60 |
'default_form' => 'advanced', |
'default_form' => 'advanced', |
61 |
'absolute_object' => 'consultation'); |
'absolute_object' => 'consultation'); |
62 |
|
|
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 |
?> |
?> |