1 |
<?php |
2 |
//$Id$ |
3 |
//gen openMairie le 10/02/2011 20:39 |
4 |
include('../gen/sql/pgsql/dossier.inc.php'); |
5 |
$table=DB_PREFIXE."dossier left join ". |
6 |
DB_PREFIXE."instructeur on dossier.instructeur = instructeur.instructeur left join ". |
7 |
DB_PREFIXE."om_utilisateur on instructeur.om_utilisateur = om_utilisateur.om_utilisateur left join ". |
8 |
DB_PREFIXE."avis_decision on avis_decision.avis_decision=dossier.avis_decision"; |
9 |
$champAffiche=array( |
10 |
'dossier.dossier as "'._("dossier").'"', |
11 |
'dossier.demandeur_nom as "'._("demandeur_nom").'"', |
12 |
'instructeur.nom as "'._("instructeur").'"', |
13 |
'to_char(dossier.date_demande ,\'DD/MM/YYYY\') as "'._("date_demande").'"', |
14 |
'to_char(dossier.date_depot ,\'DD/MM/YYYY\') as "'._("date_depot").'"', |
15 |
'to_char(dossier.date_complet ,\'DD/MM/YYYY\') as "'._("date_complet").'"', |
16 |
'to_char(dossier.date_notification_delai ,\'DD/MM/YYYY\') as "'._("date_notification_delai").'"', |
17 |
'to_char(dossier.date_limite ,\'DD/MM/YYYY\') as "'._("date_limite").'"', |
18 |
'etat as "'._("etat").'"', |
19 |
'avis_decision.libelle as "'._("avis_decision").'"', |
20 |
'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 || |
21 |
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 |
22 |
as "'._("enjeu").'"', |
23 |
); |
24 |
|
25 |
$tri= "order by dossier.dossier"; |
26 |
|
27 |
$champRecherche=array("dossier","demandeur_nom"); |
28 |
|
29 |
$ico = "../img/ico_dossier.png"; |
30 |
|
31 |
$edition=""; |
32 |
|
33 |
if ($retourformulaire== 'architecte'){ |
34 |
$tab_actions['corner']['ajouter'] = NULL; |
35 |
$tab_actions['left']['consulter'] = NULL; |
36 |
$tab_actions['content'] =NULL; |
37 |
$selection=" where dossier.architecte ='".$idx."'"; |
38 |
} |
39 |
if ($retourformulaire== 'travaux'){ |
40 |
$tab_actions['corner']['ajouter'] = NULL; |
41 |
$tab_actions['left']['consulter'] = NULL; |
42 |
$tab_actions['content'] =NULL; |
43 |
$selection=" where dossier.travaux ='".$idx."'"; |
44 |
} |
45 |
|
46 |
if (isset($_GET["obj"]) && $_GET["obj"] == "dossier") { |
47 |
// Configuration de la recherche avancee |
48 |
if (!isset($options)) { |
49 |
$options = array(); |
50 |
} |
51 |
// Options pour les select de faux booléens |
52 |
$args = array( |
53 |
0 => array("", "Oui", "Non", ), |
54 |
1 => array(_("choisir")." "._("accord_tacite"), _("Oui"), _("Non"), ), |
55 |
); |
56 |
// |
57 |
$champs['dossier'] = array( |
58 |
'table' => 'dossier', |
59 |
'colonne' => 'dossier', |
60 |
'type' => 'text', |
61 |
'taille' => 30, |
62 |
'libelle' => _('dossier')); |
63 |
// |
64 |
$champs['nature'] = array( |
65 |
'table' => 'dossier', |
66 |
'colonne' => 'nature', |
67 |
'type' => 'select', |
68 |
'taille' => 30, |
69 |
'libelle' => _('nature')); |
70 |
|
71 |
|
72 |
|
73 |
// |
74 |
$champs['delegataire_nom'] = array( |
75 |
'table' => 'dossier', |
76 |
'colonne' => 'delegataire_nom', |
77 |
'type' => 'text', |
78 |
'taille' => 30, |
79 |
'libelle' => _('nom delegataire')); |
80 |
// |
81 |
$champs['demandeur_nom'] = array( |
82 |
'table' => 'dossier', |
83 |
'colonne' => 'demandeur_nom', |
84 |
'type' => 'text', |
85 |
'taille' => 30, |
86 |
'libelle' => _('nom demandeur')); |
87 |
|
88 |
|
89 |
// |
90 |
$champs['demandeur_societe'] = array( |
91 |
'table' => 'dossier', |
92 |
'colonne' => 'demandeur_societe', |
93 |
'type' => 'text', |
94 |
'taille' => 30, |
95 |
'libelle' => _('demandeur_societe')); |
96 |
// |
97 |
$champs['parcelle'] = array( |
98 |
'table' => 'dossier', |
99 |
'colonne' => 'parcelle', |
100 |
'type' => 'text', |
101 |
'taille' => 30, |
102 |
'libelle' => _('parcelle')); |
103 |
|
104 |
// |
105 |
$champs['rivoli'] = array( |
106 |
'table' => 'dossier', |
107 |
'colonne' => 'rivoli', |
108 |
'type' => 'text', |
109 |
'taille' => 30, |
110 |
'libelle' => _('rivoli')); |
111 |
// |
112 |
$champs['terrain_adresse'] = array( |
113 |
'table' => 'dossier', |
114 |
'colonne' => 'terrain_adresse', |
115 |
'type' => 'text', |
116 |
'taille' => 30, |
117 |
'libelle' => _('terrain_adresse')); |
118 |
|
119 |
|
120 |
|
121 |
|
122 |
// |
123 |
$champs['terrain_adresse_complement'] = array( |
124 |
'table' => 'dossier', |
125 |
'colonne' => 'terrain_adresse_complement', |
126 |
'type' => 'text', |
127 |
'taille' => 30, |
128 |
'libelle' => _('terrain_adresse_complement')); |
129 |
//// COL2 |
130 |
|
131 |
// |
132 |
$champs['etat'] = array( |
133 |
'table' => 'dossier', |
134 |
'colonne' => 'etat', |
135 |
'type' => 'select', |
136 |
'libelle' => _('etat')); |
137 |
// |
138 |
$champs['accord_tacite'] = array( |
139 |
'table' => 'dossier', |
140 |
'colonne' => 'accord_tacite', |
141 |
'type' => 'select', |
142 |
"subtype" => "manualselect", |
143 |
'libelle' => _('accord_tacite'), |
144 |
"args" => $args, |
145 |
); |
146 |
|
147 |
// |
148 |
$champs['travaux'] = array( |
149 |
'table' => 'dossier', |
150 |
'colonne' => 'travaux', |
151 |
'type' => 'select', |
152 |
'libelle' => _('travaux')); |
153 |
|
154 |
|
155 |
//// COL3 |
156 |
|
157 |
|
158 |
|
159 |
|
160 |
// |
161 |
$champs['instructeur'] = array( |
162 |
'table' => 'dossier', |
163 |
'colonne' => 'instructeur', |
164 |
'type' => 'select', |
165 |
'libelle' => _('instructeur')); |
166 |
// |
167 |
//$champs['architecte'] = array( |
168 |
// 'table' => 'dossier', |
169 |
// 'colonne' => 'architecte', |
170 |
// 'type' => 'select', |
171 |
// 'libelle' => _('architecte')); |
172 |
|
173 |
// |
174 |
$champs['date_depot'] = array( |
175 |
'colonne' => 'date_depot', |
176 |
'table' => 'dossier', |
177 |
'libelle' => _('date_depot'), |
178 |
'lib1'=> _("debut"), |
179 |
'lib2' => _("fin"), |
180 |
'type' => 'date', |
181 |
'taille' => 8, |
182 |
'where' => 'intervaldate'); |
183 |
// |
184 |
$champs['date_rejet'] = array( |
185 |
'colonne' => 'date_rejet', |
186 |
'table' => 'dossier', |
187 |
'libelle' => _('date_rejet'), |
188 |
'lib1'=> _("debut"), |
189 |
'lib2' => _("fin"), |
190 |
'type' => 'date', |
191 |
'taille' => 8, |
192 |
'where' => 'intervaldate'); |
193 |
|
194 |
// |
195 |
$champs['date_validite'] = array( |
196 |
'colonne' => 'date_validite', |
197 |
'table' => 'dossier', |
198 |
'libelle' => _('date_validite'), |
199 |
'lib1'=> _("debut"), |
200 |
'lib2' => _("fin"), |
201 |
'type' => 'date', |
202 |
'taille' => 8, |
203 |
'where' => 'intervaldate'); |
204 |
|
205 |
|
206 |
|
207 |
// |
208 |
$champs['date_complet'] = array( |
209 |
'colonne' => 'date_complet', |
210 |
'table' => 'dossier', |
211 |
'libelle' => _('date_complet'), |
212 |
'lib1'=> _("debut"), |
213 |
'lib2' => _("fin"), |
214 |
'type' => 'date', |
215 |
'taille' => 8, |
216 |
'where' => 'intervaldate'); |
217 |
// |
218 |
$champs['date_decision'] = array( |
219 |
'colonne' => 'date_decision', |
220 |
'table' => 'dossier', |
221 |
'libelle' => _('date_decision'), |
222 |
'lib1'=> _("debut"), |
223 |
'lib2' => _("fin"), |
224 |
'type' => 'date', |
225 |
'taille' => 8, |
226 |
'where' => 'intervaldate'); |
227 |
// |
228 |
$champs['date_limite'] = array( |
229 |
'colonne' => 'date_limite', |
230 |
'table' => 'dossier', |
231 |
'libelle' => _('date_limite'), |
232 |
'lib1'=> _("debut"), |
233 |
'lib2' => _("fin"), |
234 |
'type' => 'date', |
235 |
'taille' => 8, |
236 |
'where' => 'intervaldate'); |
237 |
|
238 |
|
239 |
|
240 |
|
241 |
// |
242 |
$champs['date_chantier'] = array( |
243 |
'colonne' => 'date_chantier', |
244 |
'table' => 'dossier', |
245 |
'libelle' => _('date_chantier'), |
246 |
'lib1'=> _("debut"), |
247 |
'lib2' => _("fin"), |
248 |
'type' => 'date', |
249 |
'taille' => 8, |
250 |
'where' => 'intervaldate'); |
251 |
// |
252 |
$champs['date_achevement'] = array( |
253 |
'colonne' => 'date_achevement', |
254 |
'table' => 'dossier', |
255 |
'libelle' => _('date_achevement'), |
256 |
'lib1'=> _("debut"), |
257 |
'lib2' => _("fin"), |
258 |
'type' => 'date', |
259 |
'taille' => 8, |
260 |
'where' => 'intervaldate'); |
261 |
// |
262 |
$champs['date_conformite'] = array( |
263 |
'colonne' => 'date_conformite', |
264 |
'table' => 'dossier', |
265 |
'libelle' => _('date_conformite'), |
266 |
'lib1'=> _("debut"), |
267 |
'lib2' => _("fin"), |
268 |
'type' => 'date', |
269 |
'taille' => 8, |
270 |
'where' => 'intervaldate'); |
271 |
// |
272 |
$options[] = array( |
273 |
'type' => 'search', |
274 |
'display' => true, |
275 |
'advanced' => $champs, |
276 |
'default_form' => 'advanced', |
277 |
'absolute_object' => 'dossier'); |
278 |
} |
279 |
|
280 |
|
281 |
$sousformulaire=array("instruction", |
282 |
"consultation", |
283 |
"terrain", |
284 |
"blocnote", |
285 |
"destination_shon", |
286 |
"statistique", |
287 |
"messages"); |
288 |
?> |