1 |
fraynaud |
3 |
<?php |
2 |
|
|
//$Id$ |
3 |
|
|
//gen openMairie le 10/02/2011 20:34 |
4 |
|
|
include('../gen/sql/pgsql/instruction.form.inc.php'); |
5 |
fraynaud |
242 |
$tableSelect=DB_PREFIXE."instruction inner join ".DB_PREFIXE."evenement on instruction.evenement=evenement.evenement"; |
6 |
fraynaud |
20 |
$champs=array("instruction", |
7 |
|
|
"destinataire", |
8 |
|
|
"instruction.evenement", |
9 |
|
|
"libelle", |
10 |
vpihour |
1127 |
"date_evenement", |
11 |
fraynaud |
20 |
"instruction.lettretype", |
12 |
|
|
"complement", |
13 |
|
|
"'' as bible_auto", |
14 |
|
|
"'' as bible", |
15 |
|
|
"complement2", |
16 |
|
|
"'' as bible2", |
17 |
|
|
"complement3", |
18 |
|
|
"'' as bible3", |
19 |
|
|
"complement4", |
20 |
|
|
"'' as bible4", |
21 |
|
|
"complement5", |
22 |
|
|
"'' as bible5", |
23 |
|
|
"complement6", |
24 |
|
|
"'' as bible6", |
25 |
|
|
"complement7", |
26 |
|
|
"'' as bible7", |
27 |
|
|
"complement8", |
28 |
|
|
"'' as bible8", |
29 |
|
|
"complement9", |
30 |
|
|
"'' as bible9", |
31 |
|
|
"complement10", |
32 |
|
|
"'' as bible10", |
33 |
|
|
"complement11", |
34 |
|
|
"'' as bible11", |
35 |
|
|
"dossier", |
36 |
|
|
"instruction.action", |
37 |
|
|
"instruction.delai", |
38 |
|
|
"instruction.etat", |
39 |
|
|
"instruction.accord_tacite", |
40 |
|
|
"instruction.delai_notification", |
41 |
vpihour |
489 |
"instruction.avis_decision", |
42 |
fraynaud |
20 |
"archive_delai", |
43 |
|
|
"archive_accord_tacite", |
44 |
|
|
"archive_etat", |
45 |
|
|
"archive_avis", |
46 |
|
|
"archive_date_complet", |
47 |
|
|
"archive_date_rejet", |
48 |
|
|
"archive_date_limite", |
49 |
|
|
"archive_date_notification_delai", |
50 |
|
|
"archive_date_decision", |
51 |
|
|
"archive_date_validite", |
52 |
|
|
"archive_date_achevement", |
53 |
|
|
"archive_date_conformite", |
54 |
|
|
"archive_date_chantier", |
55 |
vpihour |
1129 |
"complement12", |
56 |
|
|
"complement13", |
57 |
|
|
"complement14", |
58 |
|
|
"complement15" , |
59 |
|
|
"date_finalisation_courrier", |
60 |
|
|
"date_envoi_signature", |
61 |
|
|
"date_retour_signature", |
62 |
|
|
"date_envoi_rar", |
63 |
|
|
"date_retour_rar", |
64 |
|
|
"date_envoi_controle_legalite", |
65 |
vpihour |
1136 |
"date_retour_controle_legalite", |
66 |
|
|
"date_finalisation_courrier", |
67 |
|
|
"date_envoi_signature", |
68 |
|
|
"date_retour_signature", |
69 |
|
|
"date_envoi_rar", |
70 |
|
|
"date_retour_rar", |
71 |
|
|
"date_envoi_controle_legalite", |
72 |
vpihour |
1129 |
"date_retour_controle_legalite" |
73 |
fraynaud |
20 |
); |
74 |
nhaye |
1141 |
$sql_transition = "select evenement.evenement,(evenement.libelle||' ['||evenement.action||']') as lib |
75 |
|
|
from ".DB_PREFIXE."evenement |
76 |
|
|
inner join ".DB_PREFIXE."transition on evenement.evenement = transition.evenement |
77 |
|
|
INNER JOIN ".DB_PREFIXE."lien_dossier_instruction_type_evenement ON |
78 |
|
|
evenement.evenement=lien_dossier_instruction_type_evenement.evenement |
79 |
|
|
INNER JOIN ".DB_PREFIXE."dossier_instruction_type ON |
80 |
|
|
lien_dossier_instruction_type_evenement.dossier_instruction_type = |
81 |
|
|
dossier_instruction_type.dossier_instruction_type |
82 |
|
|
INNER JOIN ".DB_PREFIXE."dossier_autorisation_type_detaille ON |
83 |
|
|
dossier_instruction_type.dossier_autorisation_type_detaille= |
84 |
|
|
dossier_autorisation_type_detaille.dossier_autorisation_type_detaille"; |
85 |
vpihour |
1124 |
|
86 |
|
|
|
87 |
nhaye |
1141 |
$sql_transition_by_id = "select evenement.evenement,(evenementlibelle||' ['||evenement.action||']') as lib |
88 |
|
|
from ".DB_PREFIXE."evenement |
89 |
|
|
inner join ".DB_PREFIXE."transition on evenement.evenement = transition.evenement |
90 |
|
|
INNER JOIN ".DB_PREFIXE."lien_dossier_instruction_type_evenement ON |
91 |
|
|
evenement.evenement=lien_dossier_instruction_type_evenement.evenement |
92 |
|
|
INNER JOIN ".DB_PREFIXE."dossier_instruction_type ON |
93 |
|
|
lien_dossier_instruction_type_evenement.dossier_instruction_type = |
94 |
|
|
dossier_instruction_type.dossier_instruction_type |
95 |
|
|
INNER JOIN ".DB_PREFIXE."dossier_autorisation_type_detaille ON |
96 |
|
|
dossier_instruction_type.dossier_autorisation_type_detaille= |
97 |
|
|
dossier_autorisation_type_detaille.dossier_autorisation_type_detaille |
98 |
nhaye |
428 |
where evenement=<idx>"; |
99 |
fraynaud |
46 |
|
100 |
nhaye |
428 |
$portlet_actions['pdfetat'] = |
101 |
|
|
array('lien' => "../app/pdflettretype_instruction.php?idx=", |
102 |
|
|
'id' => '&obj=dossier', |
103 |
|
|
'lib' => "<span class=\"om-prev-icon om-icon-16 pdf-16\" title=\"". |
104 |
|
|
_("Edition")."\">"._("Edition")."</span>", |
105 |
nhaye |
469 |
'ordre' => 30, |
106 |
|
|
'ajax' => false); |
107 |
fraynaud |
3 |
?> |