1 |
fraynaud |
3 |
<?php |
2 |
fmichon |
1540 |
/** |
3 |
|
|
* |
4 |
|
|
* |
5 |
|
|
* @package openfoncier |
6 |
|
|
* @version SVN : $Id$ |
7 |
|
|
*/ |
8 |
|
|
|
9 |
|
|
// |
10 |
|
|
include "../gen/sql/pgsql/evenement.inc.php"; |
11 |
|
|
|
12 |
|
|
// |
13 |
fmichon |
1551 |
$ent = _("parametrage")." -> "._("workflows")." -> "._("evenement"); |
14 |
fmichon |
1549 |
if (isset($idx) && $idx != ']' && trim($idx) != '') { |
15 |
|
|
$ent .= "-> ".$idx." "; |
16 |
|
|
} |
17 |
|
|
if (isset($idz) && trim($idz) != '') { |
18 |
|
|
$ent .= " ".strtoupper($idz)." "; |
19 |
|
|
} |
20 |
|
|
|
21 |
|
|
// |
22 |
fmichon |
1540 |
$sousformulaire = array('bible'); |
23 |
|
|
|
24 |
fmichon |
1549 |
// |
25 |
|
|
$trim_concat_parametres = "trim(concat( |
26 |
|
|
case |
27 |
|
|
when etat.libelle<>'' |
28 |
|
|
then concat('"._("etat")." : ', etat.libelle, '<br/>') |
29 |
|
|
else '' |
30 |
|
|
end, |
31 |
|
|
case |
32 |
|
|
when evenement.delai<>0 |
33 |
|
|
then concat('"._("delai")." : ', evenement.delai, '<br/>') |
34 |
|
|
else '' |
35 |
|
|
end, |
36 |
|
|
case |
37 |
|
|
when evenement.delai_notification<>0 |
38 |
|
|
then concat('"._("delai_notification")." : ', evenement.delai_notification, '<br/>') |
39 |
|
|
else '' |
40 |
|
|
end, |
41 |
|
|
case |
42 |
|
|
when avis_decision.libelle<>'' |
43 |
|
|
then concat('"._("avis_decision")." : ', avis_decision.libelle, '<br/>') |
44 |
|
|
else '' |
45 |
|
|
end, |
46 |
|
|
concat('"._("accord_tacite")." : ', evenement.accord_tacite, '<br/>'), |
47 |
|
|
'')) |
48 |
|
|
AS \""._("parametres")."\""; |
49 |
fmichon |
1540 |
|
50 |
|
|
// SELECT |
51 |
|
|
$champAffiche = array( |
52 |
|
|
'evenement.evenement as "'._("id").'"', |
53 |
|
|
'evenement.libelle as "'._("libelle").'"', |
54 |
|
|
'action.libelle as "'._("action").'"', |
55 |
fmichon |
1549 |
$trim_concat_parametres, |
56 |
fmichon |
1540 |
'evenement.lettretype as "'._("lettretype").'"', |
57 |
|
|
); |
58 |
|
|
|
59 |
|
|
// |
60 |
|
|
$champRecherche = array( |
61 |
|
|
'evenement.evenement as "'._("id").'"', |
62 |
|
|
'evenement.libelle as "'._("libelle").'"', |
63 |
|
|
'action.libelle as "'._("action").'"', |
64 |
|
|
'etat.libelle as "'._("etat").'"', |
65 |
|
|
'evenement.delai as "'._("delai").'"', |
66 |
|
|
'evenement.accord_tacite as "'._("accord_tacite").'"', |
67 |
|
|
'evenement.delai_notification as "'._("delai_notification").'"', |
68 |
|
|
'evenement.lettretype as "'._("lettretype").'"', |
69 |
|
|
'evenement.consultation as "'._("consultation").'"', |
70 |
|
|
'avis_decision.libelle as "'._("avis_decision").'"', |
71 |
|
|
'evenement.restriction as "'._("restriction").'"', |
72 |
|
|
'evenement.type as "'._("type").'"', |
73 |
|
|
'evenement3.libelle as "'._("evenement_retour_ar").'"', |
74 |
|
|
'evenement4.libelle as "'._("evenement_suivant_tacite").'"', |
75 |
|
|
); |
76 |
|
|
|
77 |
fmichon |
1549 |
// XXX |
78 |
fraynaud |
358 |
$href[3] = array( |
79 |
|
|
"lien" => "../app/valid_copie.php?obj=".$obj."&objsf=bible&idx=", |
80 |
|
|
"id" => "", |
81 |
|
|
"lib" => "<span class=\"om-icon om-icon-16 om-icon-fix copy-16\" title=\""._("Copier")."\">"._("Copier")."</span>", |
82 |
|
|
); |
83 |
fmichon |
1540 |
|
84 |
|
|
?> |