/[openfoncier]/trunk/gen/obj/donnees_techniques.class.php
ViewVC logotype

Contents of /trunk/gen/obj/donnees_techniques.class.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1251 - (show annotations)
Wed Feb 13 14:21:52 2013 UTC (11 years, 11 months ago) by vpihour
File size: 146312 byte(s)
Correction de bugs

1 <?php
2 //$Id$
3 //gen openMairie le 13/02/2013 15:07
4
5 require_once ("../obj/om_dbform.class.php");
6
7 class donnees_techniques_gen extends om_dbform {
8 var $table="donnees_techniques";
9 var $clePrimaire="donnees_techniques";
10 var $typeCle="N";
11 var $required_field=array(
12 "donnees_techniques"
13 );
14 var $retourformulaire;
15
16 function setvalF($val) {
17 //affectation valeur formulaire
18 if (!is_numeric($val['donnees_techniques'])) {
19 $this->valF['donnees_techniques'] = ""; // -> requis
20 } else {
21 $this->valF['donnees_techniques'] = $val['donnees_techniques'];
22 }
23 if ($val['dossier_instruction'] == "") {
24 $this->valF['dossier_instruction'] = NULL;
25 } else {
26 $this->valF['dossier_instruction'] = $val['dossier_instruction'];
27 }
28 if (!is_numeric($val['lot'])) {
29 $this->valF['lot'] = NULL;
30 } else {
31 $this->valF['lot'] = $val['lot'];
32 }
33 if (!is_numeric($val['interv_id'])) {
34 $this->valF['interv_id'] = NULL;
35 } else {
36 $this->valF['interv_id'] = $val['interv_id'];
37 }
38 if ($val['am_lotiss'] == 1 || $val['am_lotiss'] == "t" || $val['am_lotiss'] == "Oui") {
39 $this->valF['am_lotiss'] = true;
40 } else {
41 $this->valF['am_lotiss'] = false;
42 }
43 if ($val['am_autre_div'] == 1 || $val['am_autre_div'] == "t" || $val['am_autre_div'] == "Oui") {
44 $this->valF['am_autre_div'] = true;
45 } else {
46 $this->valF['am_autre_div'] = false;
47 }
48 if ($val['am_camping'] == 1 || $val['am_camping'] == "t" || $val['am_camping'] == "Oui") {
49 $this->valF['am_camping'] = true;
50 } else {
51 $this->valF['am_camping'] = false;
52 }
53 if ($val['am_caravane'] == 1 || $val['am_caravane'] == "t" || $val['am_caravane'] == "Oui") {
54 $this->valF['am_caravane'] = true;
55 } else {
56 $this->valF['am_caravane'] = false;
57 }
58 if (!is_numeric($val['am_carav_duree'])) {
59 $this->valF['am_carav_duree'] = NULL;
60 } else {
61 $this->valF['am_carav_duree'] = $val['am_carav_duree'];
62 }
63 if ($val['am_statio'] == 1 || $val['am_statio'] == "t" || $val['am_statio'] == "Oui") {
64 $this->valF['am_statio'] = true;
65 } else {
66 $this->valF['am_statio'] = false;
67 }
68 if (!is_numeric($val['am_statio_cont'])) {
69 $this->valF['am_statio_cont'] = NULL;
70 } else {
71 $this->valF['am_statio_cont'] = $val['am_statio_cont'];
72 }
73 if ($val['am_affou_exhau'] == 1 || $val['am_affou_exhau'] == "t" || $val['am_affou_exhau'] == "Oui") {
74 $this->valF['am_affou_exhau'] = true;
75 } else {
76 $this->valF['am_affou_exhau'] = false;
77 }
78 if (!is_numeric($val['am_affou_prof'])) {
79 $this->valF['am_affou_prof'] = NULL;
80 } else {
81 $this->valF['am_affou_prof'] = $val['am_affou_prof'];
82 }
83 if (!is_numeric($val['am_exhau_haut'])) {
84 $this->valF['am_exhau_haut'] = NULL;
85 } else {
86 $this->valF['am_exhau_haut'] = $val['am_exhau_haut'];
87 }
88 if ($val['am_coupe_abat'] == 1 || $val['am_coupe_abat'] == "t" || $val['am_coupe_abat'] == "Oui") {
89 $this->valF['am_coupe_abat'] = true;
90 } else {
91 $this->valF['am_coupe_abat'] = false;
92 }
93 if ($val['am_prot_plu'] == 1 || $val['am_prot_plu'] == "t" || $val['am_prot_plu'] == "Oui") {
94 $this->valF['am_prot_plu'] = true;
95 } else {
96 $this->valF['am_prot_plu'] = false;
97 }
98 if ($val['am_prot_muni'] == 1 || $val['am_prot_muni'] == "t" || $val['am_prot_muni'] == "Oui") {
99 $this->valF['am_prot_muni'] = true;
100 } else {
101 $this->valF['am_prot_muni'] = false;
102 }
103 if ($val['am_mobil_voyage'] == 1 || $val['am_mobil_voyage'] == "t" || $val['am_mobil_voyage'] == "Oui") {
104 $this->valF['am_mobil_voyage'] = true;
105 } else {
106 $this->valF['am_mobil_voyage'] = false;
107 }
108 if ($val['am_voyage_deb'] != "") {
109 $this->valF['am_voyage_deb'] = $this->dateDB($val['am_voyage_deb']);
110 } else {
111 $this->valF['am_voyage_deb'] = NULL;
112 }
113 if ($val['am_voyage_fin'] != "") {
114 $this->valF['am_voyage_fin'] = $this->dateDB($val['am_voyage_fin']);
115 } else {
116 $this->valF['am_voyage_fin'] = NULL;
117 }
118 if ($val['am_aire_voyage'] == 1 || $val['am_aire_voyage'] == "t" || $val['am_aire_voyage'] == "Oui") {
119 $this->valF['am_aire_voyage'] = true;
120 } else {
121 $this->valF['am_aire_voyage'] = false;
122 }
123 if ($val['am_rememb_afu'] == 1 || $val['am_rememb_afu'] == "t" || $val['am_rememb_afu'] == "Oui") {
124 $this->valF['am_rememb_afu'] = true;
125 } else {
126 $this->valF['am_rememb_afu'] = false;
127 }
128 if ($val['am_parc_resid_loi'] == 1 || $val['am_parc_resid_loi'] == "t" || $val['am_parc_resid_loi'] == "Oui") {
129 $this->valF['am_parc_resid_loi'] = true;
130 } else {
131 $this->valF['am_parc_resid_loi'] = false;
132 }
133 if ($val['am_sport_moto'] == 1 || $val['am_sport_moto'] == "t" || $val['am_sport_moto'] == "Oui") {
134 $this->valF['am_sport_moto'] = true;
135 } else {
136 $this->valF['am_sport_moto'] = false;
137 }
138 if ($val['am_sport_attrac'] == 1 || $val['am_sport_attrac'] == "t" || $val['am_sport_attrac'] == "Oui") {
139 $this->valF['am_sport_attrac'] = true;
140 } else {
141 $this->valF['am_sport_attrac'] = false;
142 }
143 if ($val['am_sport_golf'] == 1 || $val['am_sport_golf'] == "t" || $val['am_sport_golf'] == "Oui") {
144 $this->valF['am_sport_golf'] = true;
145 } else {
146 $this->valF['am_sport_golf'] = false;
147 }
148 if ($val['am_mob_art'] == 1 || $val['am_mob_art'] == "t" || $val['am_mob_art'] == "Oui") {
149 $this->valF['am_mob_art'] = true;
150 } else {
151 $this->valF['am_mob_art'] = false;
152 }
153 if ($val['am_modif_voie_esp'] == 1 || $val['am_modif_voie_esp'] == "t" || $val['am_modif_voie_esp'] == "Oui") {
154 $this->valF['am_modif_voie_esp'] = true;
155 } else {
156 $this->valF['am_modif_voie_esp'] = false;
157 }
158 if ($val['am_plant_voie_esp'] == 1 || $val['am_plant_voie_esp'] == "t" || $val['am_plant_voie_esp'] == "Oui") {
159 $this->valF['am_plant_voie_esp'] = true;
160 } else {
161 $this->valF['am_plant_voie_esp'] = false;
162 }
163 if ($val['am_chem_ouv_esp'] == 1 || $val['am_chem_ouv_esp'] == "t" || $val['am_chem_ouv_esp'] == "Oui") {
164 $this->valF['am_chem_ouv_esp'] = true;
165 } else {
166 $this->valF['am_chem_ouv_esp'] = false;
167 }
168 if ($val['am_agri_peche'] == 1 || $val['am_agri_peche'] == "t" || $val['am_agri_peche'] == "Oui") {
169 $this->valF['am_agri_peche'] = true;
170 } else {
171 $this->valF['am_agri_peche'] = false;
172 }
173 if ($val['am_crea_voie'] == 1 || $val['am_crea_voie'] == "t" || $val['am_crea_voie'] == "Oui") {
174 $this->valF['am_crea_voie'] = true;
175 } else {
176 $this->valF['am_crea_voie'] = false;
177 }
178 if ($val['am_modif_voie_exist'] == 1 || $val['am_modif_voie_exist'] == "t" || $val['am_modif_voie_exist'] == "Oui") {
179 $this->valF['am_modif_voie_exist'] = true;
180 } else {
181 $this->valF['am_modif_voie_exist'] = false;
182 }
183 if ($val['am_crea_esp_sauv'] == 1 || $val['am_crea_esp_sauv'] == "t" || $val['am_crea_esp_sauv'] == "Oui") {
184 $this->valF['am_crea_esp_sauv'] = true;
185 } else {
186 $this->valF['am_crea_esp_sauv'] = false;
187 }
188 if ($val['am_modif_amgt'] == 1 || $val['am_modif_amgt'] == "t" || $val['am_modif_amgt'] == "Oui") {
189 $this->valF['am_modif_amgt'] = true;
190 } else {
191 $this->valF['am_modif_amgt'] = false;
192 }
193 if ($val['am_crea_esp_class'] == 1 || $val['am_crea_esp_class'] == "t" || $val['am_crea_esp_class'] == "Oui") {
194 $this->valF['am_crea_esp_class'] = true;
195 } else {
196 $this->valF['am_crea_esp_class'] = false;
197 }
198 if ($val['am_projet_desc'] == "") {
199 $this->valF['am_projet_desc'] = NULL;
200 } else {
201 $this->valF['am_projet_desc'] = $val['am_projet_desc'];
202 }
203 if (!is_numeric($val['am_terr_surf'])) {
204 $this->valF['am_terr_surf'] = NULL;
205 } else {
206 $this->valF['am_terr_surf'] = $val['am_terr_surf'];
207 }
208 if ($val['am_tranche_desc'] == "") {
209 $this->valF['am_tranche_desc'] = NULL;
210 } else {
211 $this->valF['am_tranche_desc'] = $val['am_tranche_desc'];
212 }
213 if (!is_numeric($val['am_lot_max_nb'])) {
214 $this->valF['am_lot_max_nb'] = NULL;
215 } else {
216 $this->valF['am_lot_max_nb'] = $val['am_lot_max_nb'];
217 }
218 if (!is_numeric($val['am_lot_max_shon'])) {
219 $this->valF['am_lot_max_shon'] = NULL;
220 } else {
221 $this->valF['am_lot_max_shon'] = $val['am_lot_max_shon'];
222 }
223 if (!is_numeric($val['am_lot_max_shob'])) {
224 $this->valF['am_lot_max_shob'] = NULL;
225 } else {
226 $this->valF['am_lot_max_shob'] = $val['am_lot_max_shob'];
227 }
228 if ($val['am_lot_cstr_cos'] == 1 || $val['am_lot_cstr_cos'] == "t" || $val['am_lot_cstr_cos'] == "Oui") {
229 $this->valF['am_lot_cstr_cos'] = true;
230 } else {
231 $this->valF['am_lot_cstr_cos'] = false;
232 }
233 if ($val['am_lot_cstr_plan'] == 1 || $val['am_lot_cstr_plan'] == "t" || $val['am_lot_cstr_plan'] == "Oui") {
234 $this->valF['am_lot_cstr_plan'] = true;
235 } else {
236 $this->valF['am_lot_cstr_plan'] = false;
237 }
238 if ($val['am_lot_cstr_vente'] == 1 || $val['am_lot_cstr_vente'] == "t" || $val['am_lot_cstr_vente'] == "Oui") {
239 $this->valF['am_lot_cstr_vente'] = true;
240 } else {
241 $this->valF['am_lot_cstr_vente'] = false;
242 }
243 if ($val['am_lot_fin_diff'] == 1 || $val['am_lot_fin_diff'] == "t" || $val['am_lot_fin_diff'] == "Oui") {
244 $this->valF['am_lot_fin_diff'] = true;
245 } else {
246 $this->valF['am_lot_fin_diff'] = false;
247 }
248 if ($val['am_lot_consign'] == 1 || $val['am_lot_consign'] == "t" || $val['am_lot_consign'] == "Oui") {
249 $this->valF['am_lot_consign'] = true;
250 } else {
251 $this->valF['am_lot_consign'] = false;
252 }
253 if ($val['am_lot_gar_achev'] == 1 || $val['am_lot_gar_achev'] == "t" || $val['am_lot_gar_achev'] == "Oui") {
254 $this->valF['am_lot_gar_achev'] = true;
255 } else {
256 $this->valF['am_lot_gar_achev'] = false;
257 }
258 if ($val['am_lot_vente_ant'] == 1 || $val['am_lot_vente_ant'] == "t" || $val['am_lot_vente_ant'] == "Oui") {
259 $this->valF['am_lot_vente_ant'] = true;
260 } else {
261 $this->valF['am_lot_vente_ant'] = false;
262 }
263 if (!is_numeric($val['am_empl_nb'])) {
264 $this->valF['am_empl_nb'] = NULL;
265 } else {
266 $this->valF['am_empl_nb'] = $val['am_empl_nb'];
267 }
268 if (!is_numeric($val['am_tente_nb'])) {
269 $this->valF['am_tente_nb'] = NULL;
270 } else {
271 $this->valF['am_tente_nb'] = $val['am_tente_nb'];
272 }
273 if (!is_numeric($val['am_carav_nb'])) {
274 $this->valF['am_carav_nb'] = NULL;
275 } else {
276 $this->valF['am_carav_nb'] = $val['am_carav_nb'];
277 }
278 if (!is_numeric($val['am_mobil_nb'])) {
279 $this->valF['am_mobil_nb'] = NULL;
280 } else {
281 $this->valF['am_mobil_nb'] = $val['am_mobil_nb'];
282 }
283 if (!is_numeric($val['am_pers_nb'])) {
284 $this->valF['am_pers_nb'] = NULL;
285 } else {
286 $this->valF['am_pers_nb'] = $val['am_pers_nb'];
287 }
288 if (!is_numeric($val['am_empl_hll_nb'])) {
289 $this->valF['am_empl_hll_nb'] = NULL;
290 } else {
291 $this->valF['am_empl_hll_nb'] = $val['am_empl_hll_nb'];
292 }
293 if (!is_numeric($val['am_hll_shon'])) {
294 $this->valF['am_hll_shon'] = NULL;
295 } else {
296 $this->valF['am_hll_shon'] = $val['am_hll_shon'];
297 }
298 if ($val['am_periode_exploit'] == "") {
299 $this->valF['am_periode_exploit'] = NULL;
300 } else {
301 $this->valF['am_periode_exploit'] = $val['am_periode_exploit'];
302 }
303 if ($val['am_exist_agrand'] == 1 || $val['am_exist_agrand'] == "t" || $val['am_exist_agrand'] == "Oui") {
304 $this->valF['am_exist_agrand'] = true;
305 } else {
306 $this->valF['am_exist_agrand'] = false;
307 }
308 if ($val['am_exist_date'] != "") {
309 $this->valF['am_exist_date'] = $this->dateDB($val['am_exist_date']);
310 } else {
311 $this->valF['am_exist_date'] = NULL;
312 }
313 if ($val['am_exist_num'] == "") {
314 $this->valF['am_exist_num'] = NULL;
315 } else {
316 $this->valF['am_exist_num'] = $val['am_exist_num'];
317 }
318 if (!is_numeric($val['am_exist_nb_avant'])) {
319 $this->valF['am_exist_nb_avant'] = NULL;
320 } else {
321 $this->valF['am_exist_nb_avant'] = $val['am_exist_nb_avant'];
322 }
323 if (!is_numeric($val['am_exist_nb_apres'])) {
324 $this->valF['am_exist_nb_apres'] = NULL;
325 } else {
326 $this->valF['am_exist_nb_apres'] = $val['am_exist_nb_apres'];
327 }
328 if ($val['am_coupe_bois'] == 1 || $val['am_coupe_bois'] == "t" || $val['am_coupe_bois'] == "Oui") {
329 $this->valF['am_coupe_bois'] = true;
330 } else {
331 $this->valF['am_coupe_bois'] = false;
332 }
333 if ($val['am_coupe_parc'] == 1 || $val['am_coupe_parc'] == "t" || $val['am_coupe_parc'] == "Oui") {
334 $this->valF['am_coupe_parc'] = true;
335 } else {
336 $this->valF['am_coupe_parc'] = false;
337 }
338 if ($val['am_coupe_align'] == 1 || $val['am_coupe_align'] == "t" || $val['am_coupe_align'] == "Oui") {
339 $this->valF['am_coupe_align'] = true;
340 } else {
341 $this->valF['am_coupe_align'] = false;
342 }
343 if ($val['am_coupe_ess'] == "") {
344 $this->valF['am_coupe_ess'] = NULL;
345 } else {
346 $this->valF['am_coupe_ess'] = $val['am_coupe_ess'];
347 }
348 if ($val['am_coupe_age'] == "") {
349 $this->valF['am_coupe_age'] = NULL;
350 } else {
351 $this->valF['am_coupe_age'] = $val['am_coupe_age'];
352 }
353 if ($val['am_coupe_dens'] == "") {
354 $this->valF['am_coupe_dens'] = NULL;
355 } else {
356 $this->valF['am_coupe_dens'] = $val['am_coupe_dens'];
357 }
358 if ($val['am_coupe_qual'] == "") {
359 $this->valF['am_coupe_qual'] = NULL;
360 } else {
361 $this->valF['am_coupe_qual'] = $val['am_coupe_qual'];
362 }
363 if ($val['am_coupe_trait'] == "") {
364 $this->valF['am_coupe_trait'] = NULL;
365 } else {
366 $this->valF['am_coupe_trait'] = $val['am_coupe_trait'];
367 }
368 if ($val['am_coupe_autr'] == "") {
369 $this->valF['am_coupe_autr'] = NULL;
370 } else {
371 $this->valF['am_coupe_autr'] = $val['am_coupe_autr'];
372 }
373 if ($val['co_archi_recours'] == 1 || $val['co_archi_recours'] == "t" || $val['co_archi_recours'] == "Oui") {
374 $this->valF['co_archi_recours'] = true;
375 } else {
376 $this->valF['co_archi_recours'] = false;
377 }
378 if ($val['co_cstr_nouv'] == 1 || $val['co_cstr_nouv'] == "t" || $val['co_cstr_nouv'] == "Oui") {
379 $this->valF['co_cstr_nouv'] = true;
380 } else {
381 $this->valF['co_cstr_nouv'] = false;
382 }
383 if ($val['co_cstr_exist'] == 1 || $val['co_cstr_exist'] == "t" || $val['co_cstr_exist'] == "Oui") {
384 $this->valF['co_cstr_exist'] = true;
385 } else {
386 $this->valF['co_cstr_exist'] = false;
387 }
388 if ($val['co_modif_aspect'] == 1 || $val['co_modif_aspect'] == "t" || $val['co_modif_aspect'] == "Oui") {
389 $this->valF['co_modif_aspect'] = true;
390 } else {
391 $this->valF['co_modif_aspect'] = false;
392 }
393 if ($val['co_modif_struct'] == 1 || $val['co_modif_struct'] == "t" || $val['co_modif_struct'] == "Oui") {
394 $this->valF['co_modif_struct'] = true;
395 } else {
396 $this->valF['co_modif_struct'] = false;
397 }
398 if ($val['co_cloture'] == 1 || $val['co_cloture'] == "t" || $val['co_cloture'] == "Oui") {
399 $this->valF['co_cloture'] = true;
400 } else {
401 $this->valF['co_cloture'] = false;
402 }
403 if ($val['co_ouvr_elec'] == 1 || $val['co_ouvr_elec'] == "t" || $val['co_ouvr_elec'] == "Oui") {
404 $this->valF['co_ouvr_elec'] = true;
405 } else {
406 $this->valF['co_ouvr_elec'] = false;
407 }
408 if (!is_numeric($val['co_elec_tension'])) {
409 $this->valF['co_elec_tension'] = NULL;
410 } else {
411 $this->valF['co_elec_tension'] = $val['co_elec_tension'];
412 }
413 if ($val['co_ouvr_infra'] == 1 || $val['co_ouvr_infra'] == "t" || $val['co_ouvr_infra'] == "Oui") {
414 $this->valF['co_ouvr_infra'] = true;
415 } else {
416 $this->valF['co_ouvr_infra'] = false;
417 }
418 if ($val['co_trx_imm'] == 1 || $val['co_trx_imm'] == "t" || $val['co_trx_imm'] == "Oui") {
419 $this->valF['co_trx_imm'] = true;
420 } else {
421 $this->valF['co_trx_imm'] = false;
422 }
423 if ($val['co_div_terr'] == 1 || $val['co_div_terr'] == "t" || $val['co_div_terr'] == "Oui") {
424 $this->valF['co_div_terr'] = true;
425 } else {
426 $this->valF['co_div_terr'] = false;
427 }
428 if ($val['co_projet_desc'] == "") {
429 $this->valF['co_projet_desc'] = NULL;
430 } else {
431 $this->valF['co_projet_desc'] = $val['co_projet_desc'];
432 }
433 if (!is_numeric($val['co_cstr_shob'])) {
434 $this->valF['co_cstr_shob'] = NULL;
435 } else {
436 $this->valF['co_cstr_shob'] = $val['co_cstr_shob'];
437 }
438 if ($val['co_anx_pisc'] == 1 || $val['co_anx_pisc'] == "t" || $val['co_anx_pisc'] == "Oui") {
439 $this->valF['co_anx_pisc'] = true;
440 } else {
441 $this->valF['co_anx_pisc'] = false;
442 }
443 if ($val['co_anx_gara'] == 1 || $val['co_anx_gara'] == "t" || $val['co_anx_gara'] == "Oui") {
444 $this->valF['co_anx_gara'] = true;
445 } else {
446 $this->valF['co_anx_gara'] = false;
447 }
448 if ($val['co_anx_veran'] == 1 || $val['co_anx_veran'] == "t" || $val['co_anx_veran'] == "Oui") {
449 $this->valF['co_anx_veran'] = true;
450 } else {
451 $this->valF['co_anx_veran'] = false;
452 }
453 if ($val['co_anx_abri'] == 1 || $val['co_anx_abri'] == "t" || $val['co_anx_abri'] == "Oui") {
454 $this->valF['co_anx_abri'] = true;
455 } else {
456 $this->valF['co_anx_abri'] = false;
457 }
458 if ($val['co_anx_autr'] == 1 || $val['co_anx_autr'] == "t" || $val['co_anx_autr'] == "Oui") {
459 $this->valF['co_anx_autr'] = true;
460 } else {
461 $this->valF['co_anx_autr'] = false;
462 }
463 if ($val['co_anx_autr_desc'] == "") {
464 $this->valF['co_anx_autr_desc'] = NULL;
465 } else {
466 $this->valF['co_anx_autr_desc'] = $val['co_anx_autr_desc'];
467 }
468 if (!is_numeric($val['co_tot_log_nb'])) {
469 $this->valF['co_tot_log_nb'] = NULL;
470 } else {
471 $this->valF['co_tot_log_nb'] = $val['co_tot_log_nb'];
472 }
473 if (!is_numeric($val['co_tot_ind_nb'])) {
474 $this->valF['co_tot_ind_nb'] = NULL;
475 } else {
476 $this->valF['co_tot_ind_nb'] = $val['co_tot_ind_nb'];
477 }
478 if (!is_numeric($val['co_tot_coll_nb'])) {
479 $this->valF['co_tot_coll_nb'] = NULL;
480 } else {
481 $this->valF['co_tot_coll_nb'] = $val['co_tot_coll_nb'];
482 }
483 if (!is_numeric($val['co_mais_piece_nb'])) {
484 $this->valF['co_mais_piece_nb'] = NULL;
485 } else {
486 $this->valF['co_mais_piece_nb'] = $val['co_mais_piece_nb'];
487 }
488 if (!is_numeric($val['co_mais_niv_nb'])) {
489 $this->valF['co_mais_niv_nb'] = NULL;
490 } else {
491 $this->valF['co_mais_niv_nb'] = $val['co_mais_niv_nb'];
492 }
493 if (!is_numeric($val['co_fin_lls_nb'])) {
494 $this->valF['co_fin_lls_nb'] = NULL;
495 } else {
496 $this->valF['co_fin_lls_nb'] = $val['co_fin_lls_nb'];
497 }
498 if (!is_numeric($val['co_fin_aa_nb'])) {
499 $this->valF['co_fin_aa_nb'] = NULL;
500 } else {
501 $this->valF['co_fin_aa_nb'] = $val['co_fin_aa_nb'];
502 }
503 if (!is_numeric($val['co_fin_ptz_nb'])) {
504 $this->valF['co_fin_ptz_nb'] = NULL;
505 } else {
506 $this->valF['co_fin_ptz_nb'] = $val['co_fin_ptz_nb'];
507 }
508 if (!is_numeric($val['co_fin_autr_nb'])) {
509 $this->valF['co_fin_autr_nb'] = NULL;
510 } else {
511 $this->valF['co_fin_autr_nb'] = $val['co_fin_autr_nb'];
512 }
513 if ($val['co_fin_autr_desc'] == "") {
514 $this->valF['co_fin_autr_desc'] = NULL;
515 } else {
516 $this->valF['co_fin_autr_desc'] = $val['co_fin_autr_desc'];
517 }
518 if (!is_numeric($val['co_finan1_id'])) {
519 $this->valF['co_finan1_id'] = NULL;
520 } else {
521 $this->valF['co_finan1_id'] = $val['co_finan1_id'];
522 }
523 if (!is_numeric($val['co_finan1_nb'])) {
524 $this->valF['co_finan1_nb'] = NULL;
525 } else {
526 $this->valF['co_finan1_nb'] = $val['co_finan1_nb'];
527 }
528 if (!is_numeric($val['co_finan2_id'])) {
529 $this->valF['co_finan2_id'] = NULL;
530 } else {
531 $this->valF['co_finan2_id'] = $val['co_finan2_id'];
532 }
533 if (!is_numeric($val['co_finan2_nb'])) {
534 $this->valF['co_finan2_nb'] = NULL;
535 } else {
536 $this->valF['co_finan2_nb'] = $val['co_finan2_nb'];
537 }
538 if (!is_numeric($val['co_finan3_id'])) {
539 $this->valF['co_finan3_id'] = NULL;
540 } else {
541 $this->valF['co_finan3_id'] = $val['co_finan3_id'];
542 }
543 if (!is_numeric($val['co_finan3_nb'])) {
544 $this->valF['co_finan3_nb'] = NULL;
545 } else {
546 $this->valF['co_finan3_nb'] = $val['co_finan3_nb'];
547 }
548 if (!is_numeric($val['co_finan4_id'])) {
549 $this->valF['co_finan4_id'] = NULL;
550 } else {
551 $this->valF['co_finan4_id'] = $val['co_finan4_id'];
552 }
553 if (!is_numeric($val['co_finan4_nb'])) {
554 $this->valF['co_finan4_nb'] = NULL;
555 } else {
556 $this->valF['co_finan4_nb'] = $val['co_finan4_nb'];
557 }
558 if (!is_numeric($val['co_finan5_id'])) {
559 $this->valF['co_finan5_id'] = NULL;
560 } else {
561 $this->valF['co_finan5_id'] = $val['co_finan5_id'];
562 }
563 if (!is_numeric($val['co_finan5_nb'])) {
564 $this->valF['co_finan5_nb'] = NULL;
565 } else {
566 $this->valF['co_finan5_nb'] = $val['co_finan5_nb'];
567 }
568 if ($val['co_mais_contrat_ind'] == 1 || $val['co_mais_contrat_ind'] == "t" || $val['co_mais_contrat_ind'] == "Oui") {
569 $this->valF['co_mais_contrat_ind'] = true;
570 } else {
571 $this->valF['co_mais_contrat_ind'] = false;
572 }
573 if ($val['co_uti_pers'] == 1 || $val['co_uti_pers'] == "t" || $val['co_uti_pers'] == "Oui") {
574 $this->valF['co_uti_pers'] = true;
575 } else {
576 $this->valF['co_uti_pers'] = false;
577 }
578 if ($val['co_uti_vente'] == 1 || $val['co_uti_vente'] == "t" || $val['co_uti_vente'] == "Oui") {
579 $this->valF['co_uti_vente'] = true;
580 } else {
581 $this->valF['co_uti_vente'] = false;
582 }
583 if ($val['co_uti_loc'] == 1 || $val['co_uti_loc'] == "t" || $val['co_uti_loc'] == "Oui") {
584 $this->valF['co_uti_loc'] = true;
585 } else {
586 $this->valF['co_uti_loc'] = false;
587 }
588 if ($val['co_uti_princ'] == 1 || $val['co_uti_princ'] == "t" || $val['co_uti_princ'] == "Oui") {
589 $this->valF['co_uti_princ'] = true;
590 } else {
591 $this->valF['co_uti_princ'] = false;
592 }
593 if ($val['co_uti_secon'] == 1 || $val['co_uti_secon'] == "t" || $val['co_uti_secon'] == "Oui") {
594 $this->valF['co_uti_secon'] = true;
595 } else {
596 $this->valF['co_uti_secon'] = false;
597 }
598 if ($val['co_resid_agees'] == 1 || $val['co_resid_agees'] == "t" || $val['co_resid_agees'] == "Oui") {
599 $this->valF['co_resid_agees'] = true;
600 } else {
601 $this->valF['co_resid_agees'] = false;
602 }
603 if ($val['co_resid_etud'] == 1 || $val['co_resid_etud'] == "t" || $val['co_resid_etud'] == "Oui") {
604 $this->valF['co_resid_etud'] = true;
605 } else {
606 $this->valF['co_resid_etud'] = false;
607 }
608 if ($val['co_resid_tourism'] == 1 || $val['co_resid_tourism'] == "t" || $val['co_resid_tourism'] == "Oui") {
609 $this->valF['co_resid_tourism'] = true;
610 } else {
611 $this->valF['co_resid_tourism'] = false;
612 }
613 if ($val['co_resid_hot_soc'] == 1 || $val['co_resid_hot_soc'] == "t" || $val['co_resid_hot_soc'] == "Oui") {
614 $this->valF['co_resid_hot_soc'] = true;
615 } else {
616 $this->valF['co_resid_hot_soc'] = false;
617 }
618 if ($val['co_resid_soc'] == 1 || $val['co_resid_soc'] == "t" || $val['co_resid_soc'] == "Oui") {
619 $this->valF['co_resid_soc'] = true;
620 } else {
621 $this->valF['co_resid_soc'] = false;
622 }
623 if ($val['co_resid_hand'] == 1 || $val['co_resid_hand'] == "t" || $val['co_resid_hand'] == "Oui") {
624 $this->valF['co_resid_hand'] = true;
625 } else {
626 $this->valF['co_resid_hand'] = false;
627 }
628 if ($val['co_resid_autr'] == 1 || $val['co_resid_autr'] == "t" || $val['co_resid_autr'] == "Oui") {
629 $this->valF['co_resid_autr'] = true;
630 } else {
631 $this->valF['co_resid_autr'] = false;
632 }
633 if ($val['co_resid_autr_desc'] == "") {
634 $this->valF['co_resid_autr_desc'] = NULL;
635 } else {
636 $this->valF['co_resid_autr_desc'] = $val['co_resid_autr_desc'];
637 }
638 if (!is_numeric($val['co_foyer_chamb_nb'])) {
639 $this->valF['co_foyer_chamb_nb'] = NULL;
640 } else {
641 $this->valF['co_foyer_chamb_nb'] = $val['co_foyer_chamb_nb'];
642 }
643 if (!is_numeric($val['co_log_1p_nb'])) {
644 $this->valF['co_log_1p_nb'] = NULL;
645 } else {
646 $this->valF['co_log_1p_nb'] = $val['co_log_1p_nb'];
647 }
648 if (!is_numeric($val['co_log_2p_nb'])) {
649 $this->valF['co_log_2p_nb'] = NULL;
650 } else {
651 $this->valF['co_log_2p_nb'] = $val['co_log_2p_nb'];
652 }
653 if (!is_numeric($val['co_log_3p_nb'])) {
654 $this->valF['co_log_3p_nb'] = NULL;
655 } else {
656 $this->valF['co_log_3p_nb'] = $val['co_log_3p_nb'];
657 }
658 if (!is_numeric($val['co_log_4p_nb'])) {
659 $this->valF['co_log_4p_nb'] = NULL;
660 } else {
661 $this->valF['co_log_4p_nb'] = $val['co_log_4p_nb'];
662 }
663 if (!is_numeric($val['co_log_5p_nb'])) {
664 $this->valF['co_log_5p_nb'] = NULL;
665 } else {
666 $this->valF['co_log_5p_nb'] = $val['co_log_5p_nb'];
667 }
668 if (!is_numeric($val['co_log_6p_nb'])) {
669 $this->valF['co_log_6p_nb'] = NULL;
670 } else {
671 $this->valF['co_log_6p_nb'] = $val['co_log_6p_nb'];
672 }
673 if (!is_numeric($val['co_bat_niv_nb'])) {
674 $this->valF['co_bat_niv_nb'] = NULL;
675 } else {
676 $this->valF['co_bat_niv_nb'] = $val['co_bat_niv_nb'];
677 }
678 if ($val['co_trx_exten'] == 1 || $val['co_trx_exten'] == "t" || $val['co_trx_exten'] == "Oui") {
679 $this->valF['co_trx_exten'] = true;
680 } else {
681 $this->valF['co_trx_exten'] = false;
682 }
683 if ($val['co_trx_surelev'] == 1 || $val['co_trx_surelev'] == "t" || $val['co_trx_surelev'] == "Oui") {
684 $this->valF['co_trx_surelev'] = true;
685 } else {
686 $this->valF['co_trx_surelev'] = false;
687 }
688 if ($val['co_trx_nivsup'] == 1 || $val['co_trx_nivsup'] == "t" || $val['co_trx_nivsup'] == "Oui") {
689 $this->valF['co_trx_nivsup'] = true;
690 } else {
691 $this->valF['co_trx_nivsup'] = false;
692 }
693 if ($val['co_trx_amgt'] == 1 || $val['co_trx_amgt'] == "t" || $val['co_trx_amgt'] == "Oui") {
694 $this->valF['co_trx_amgt'] = true;
695 } else {
696 $this->valF['co_trx_amgt'] = false;
697 }
698 if ($val['co_demont_periode'] == "") {
699 $this->valF['co_demont_periode'] = NULL;
700 } else {
701 $this->valF['co_demont_periode'] = $val['co_demont_periode'];
702 }
703 if ($val['co_sp_transport'] == 1 || $val['co_sp_transport'] == "t" || $val['co_sp_transport'] == "Oui") {
704 $this->valF['co_sp_transport'] = true;
705 } else {
706 $this->valF['co_sp_transport'] = false;
707 }
708 if ($val['co_sp_enseign'] == 1 || $val['co_sp_enseign'] == "t" || $val['co_sp_enseign'] == "Oui") {
709 $this->valF['co_sp_enseign'] = true;
710 } else {
711 $this->valF['co_sp_enseign'] = false;
712 }
713 if ($val['co_sp_act_soc'] == 1 || $val['co_sp_act_soc'] == "t" || $val['co_sp_act_soc'] == "Oui") {
714 $this->valF['co_sp_act_soc'] = true;
715 } else {
716 $this->valF['co_sp_act_soc'] = false;
717 }
718 if ($val['co_sp_ouvr_spe'] == 1 || $val['co_sp_ouvr_spe'] == "t" || $val['co_sp_ouvr_spe'] == "Oui") {
719 $this->valF['co_sp_ouvr_spe'] = true;
720 } else {
721 $this->valF['co_sp_ouvr_spe'] = false;
722 }
723 if ($val['co_sp_sante'] == 1 || $val['co_sp_sante'] == "t" || $val['co_sp_sante'] == "Oui") {
724 $this->valF['co_sp_sante'] = true;
725 } else {
726 $this->valF['co_sp_sante'] = false;
727 }
728 if ($val['co_sp_culture'] == 1 || $val['co_sp_culture'] == "t" || $val['co_sp_culture'] == "Oui") {
729 $this->valF['co_sp_culture'] = true;
730 } else {
731 $this->valF['co_sp_culture'] = false;
732 }
733 if (!is_numeric($val['co_statio_avt_nb'])) {
734 $this->valF['co_statio_avt_nb'] = NULL;
735 } else {
736 $this->valF['co_statio_avt_nb'] = $val['co_statio_avt_nb'];
737 }
738 if (!is_numeric($val['co_statio_apr_nb'])) {
739 $this->valF['co_statio_apr_nb'] = NULL;
740 } else {
741 $this->valF['co_statio_apr_nb'] = $val['co_statio_apr_nb'];
742 }
743 if (!is_numeric($val['co_statio_avt_shob'])) {
744 $this->valF['co_statio_avt_shob'] = NULL;
745 } else {
746 $this->valF['co_statio_avt_shob'] = $val['co_statio_avt_shob'];
747 }
748 if (!is_numeric($val['co_statio_apr_shob'])) {
749 $this->valF['co_statio_apr_shob'] = NULL;
750 } else {
751 $this->valF['co_statio_apr_shob'] = $val['co_statio_apr_shob'];
752 }
753 if (!is_numeric($val['co_statio_avt_surf'])) {
754 $this->valF['co_statio_avt_surf'] = NULL;
755 } else {
756 $this->valF['co_statio_avt_surf'] = $val['co_statio_avt_surf'];
757 }
758 if (!is_numeric($val['co_statio_apr_surf'])) {
759 $this->valF['co_statio_apr_surf'] = NULL;
760 } else {
761 $this->valF['co_statio_apr_surf'] = $val['co_statio_apr_surf'];
762 }
763 if ($val['co_statio_adr'] == "") {
764 $this->valF['co_statio_adr'] = NULL;
765 } else {
766 $this->valF['co_statio_adr'] = $val['co_statio_adr'];
767 }
768 if (!is_numeric($val['co_statio_place_nb'])) {
769 $this->valF['co_statio_place_nb'] = NULL;
770 } else {
771 $this->valF['co_statio_place_nb'] = $val['co_statio_place_nb'];
772 }
773 if (!is_numeric($val['co_statio_tot_surf'])) {
774 $this->valF['co_statio_tot_surf'] = NULL;
775 } else {
776 $this->valF['co_statio_tot_surf'] = $val['co_statio_tot_surf'];
777 }
778 if (!is_numeric($val['co_statio_tot_shob'])) {
779 $this->valF['co_statio_tot_shob'] = NULL;
780 } else {
781 $this->valF['co_statio_tot_shob'] = $val['co_statio_tot_shob'];
782 }
783 if (!is_numeric($val['su_avt_shon1'])) {
784 $this->valF['su_avt_shon1'] = NULL;
785 } else {
786 $this->valF['su_avt_shon1'] = $val['su_avt_shon1'];
787 }
788 if (!is_numeric($val['su_avt_shon2'])) {
789 $this->valF['su_avt_shon2'] = NULL;
790 } else {
791 $this->valF['su_avt_shon2'] = $val['su_avt_shon2'];
792 }
793 if (!is_numeric($val['su_avt_shon3'])) {
794 $this->valF['su_avt_shon3'] = NULL;
795 } else {
796 $this->valF['su_avt_shon3'] = $val['su_avt_shon3'];
797 }
798 if (!is_numeric($val['su_avt_shon4'])) {
799 $this->valF['su_avt_shon4'] = NULL;
800 } else {
801 $this->valF['su_avt_shon4'] = $val['su_avt_shon4'];
802 }
803 if (!is_numeric($val['su_avt_shon5'])) {
804 $this->valF['su_avt_shon5'] = NULL;
805 } else {
806 $this->valF['su_avt_shon5'] = $val['su_avt_shon5'];
807 }
808 if (!is_numeric($val['su_avt_shon6'])) {
809 $this->valF['su_avt_shon6'] = NULL;
810 } else {
811 $this->valF['su_avt_shon6'] = $val['su_avt_shon6'];
812 }
813 if (!is_numeric($val['su_avt_shon7'])) {
814 $this->valF['su_avt_shon7'] = NULL;
815 } else {
816 $this->valF['su_avt_shon7'] = $val['su_avt_shon7'];
817 }
818 if (!is_numeric($val['su_avt_shon8'])) {
819 $this->valF['su_avt_shon8'] = NULL;
820 } else {
821 $this->valF['su_avt_shon8'] = $val['su_avt_shon8'];
822 }
823 if (!is_numeric($val['su_avt_shon9'])) {
824 $this->valF['su_avt_shon9'] = NULL;
825 } else {
826 $this->valF['su_avt_shon9'] = $val['su_avt_shon9'];
827 }
828 if (!is_numeric($val['su_cstr_shon1'])) {
829 $this->valF['su_cstr_shon1'] = NULL;
830 } else {
831 $this->valF['su_cstr_shon1'] = $val['su_cstr_shon1'];
832 }
833 if (!is_numeric($val['su_cstr_shon2'])) {
834 $this->valF['su_cstr_shon2'] = NULL;
835 } else {
836 $this->valF['su_cstr_shon2'] = $val['su_cstr_shon2'];
837 }
838 if (!is_numeric($val['su_cstr_shon3'])) {
839 $this->valF['su_cstr_shon3'] = NULL;
840 } else {
841 $this->valF['su_cstr_shon3'] = $val['su_cstr_shon3'];
842 }
843 if (!is_numeric($val['su_cstr_shon4'])) {
844 $this->valF['su_cstr_shon4'] = NULL;
845 } else {
846 $this->valF['su_cstr_shon4'] = $val['su_cstr_shon4'];
847 }
848 if (!is_numeric($val['su_cstr_shon5'])) {
849 $this->valF['su_cstr_shon5'] = NULL;
850 } else {
851 $this->valF['su_cstr_shon5'] = $val['su_cstr_shon5'];
852 }
853 if (!is_numeric($val['su_cstr_shon6'])) {
854 $this->valF['su_cstr_shon6'] = NULL;
855 } else {
856 $this->valF['su_cstr_shon6'] = $val['su_cstr_shon6'];
857 }
858 if (!is_numeric($val['su_cstr_shon7'])) {
859 $this->valF['su_cstr_shon7'] = NULL;
860 } else {
861 $this->valF['su_cstr_shon7'] = $val['su_cstr_shon7'];
862 }
863 if (!is_numeric($val['su_cstr_shon8'])) {
864 $this->valF['su_cstr_shon8'] = NULL;
865 } else {
866 $this->valF['su_cstr_shon8'] = $val['su_cstr_shon8'];
867 }
868 if (!is_numeric($val['su_cstr_shon9'])) {
869 $this->valF['su_cstr_shon9'] = NULL;
870 } else {
871 $this->valF['su_cstr_shon9'] = $val['su_cstr_shon9'];
872 }
873 if (!is_numeric($val['su_trsf_shon1'])) {
874 $this->valF['su_trsf_shon1'] = NULL;
875 } else {
876 $this->valF['su_trsf_shon1'] = $val['su_trsf_shon1'];
877 }
878 if (!is_numeric($val['su_trsf_shon2'])) {
879 $this->valF['su_trsf_shon2'] = NULL;
880 } else {
881 $this->valF['su_trsf_shon2'] = $val['su_trsf_shon2'];
882 }
883 if (!is_numeric($val['su_trsf_shon3'])) {
884 $this->valF['su_trsf_shon3'] = NULL;
885 } else {
886 $this->valF['su_trsf_shon3'] = $val['su_trsf_shon3'];
887 }
888 if (!is_numeric($val['su_trsf_shon4'])) {
889 $this->valF['su_trsf_shon4'] = NULL;
890 } else {
891 $this->valF['su_trsf_shon4'] = $val['su_trsf_shon4'];
892 }
893 if (!is_numeric($val['su_trsf_shon5'])) {
894 $this->valF['su_trsf_shon5'] = NULL;
895 } else {
896 $this->valF['su_trsf_shon5'] = $val['su_trsf_shon5'];
897 }
898 if (!is_numeric($val['su_trsf_shon6'])) {
899 $this->valF['su_trsf_shon6'] = NULL;
900 } else {
901 $this->valF['su_trsf_shon6'] = $val['su_trsf_shon6'];
902 }
903 if (!is_numeric($val['su_trsf_shon7'])) {
904 $this->valF['su_trsf_shon7'] = NULL;
905 } else {
906 $this->valF['su_trsf_shon7'] = $val['su_trsf_shon7'];
907 }
908 if (!is_numeric($val['su_trsf_shon8'])) {
909 $this->valF['su_trsf_shon8'] = NULL;
910 } else {
911 $this->valF['su_trsf_shon8'] = $val['su_trsf_shon8'];
912 }
913 if (!is_numeric($val['su_trsf_shon9'])) {
914 $this->valF['su_trsf_shon9'] = NULL;
915 } else {
916 $this->valF['su_trsf_shon9'] = $val['su_trsf_shon9'];
917 }
918 if (!is_numeric($val['su_chge_shon1'])) {
919 $this->valF['su_chge_shon1'] = NULL;
920 } else {
921 $this->valF['su_chge_shon1'] = $val['su_chge_shon1'];
922 }
923 if (!is_numeric($val['su_chge_shon2'])) {
924 $this->valF['su_chge_shon2'] = NULL;
925 } else {
926 $this->valF['su_chge_shon2'] = $val['su_chge_shon2'];
927 }
928 if (!is_numeric($val['su_chge_shon3'])) {
929 $this->valF['su_chge_shon3'] = NULL;
930 } else {
931 $this->valF['su_chge_shon3'] = $val['su_chge_shon3'];
932 }
933 if (!is_numeric($val['su_chge_shon4'])) {
934 $this->valF['su_chge_shon4'] = NULL;
935 } else {
936 $this->valF['su_chge_shon4'] = $val['su_chge_shon4'];
937 }
938 if (!is_numeric($val['su_chge_shon5'])) {
939 $this->valF['su_chge_shon5'] = NULL;
940 } else {
941 $this->valF['su_chge_shon5'] = $val['su_chge_shon5'];
942 }
943 if (!is_numeric($val['su_chge_shon6'])) {
944 $this->valF['su_chge_shon6'] = NULL;
945 } else {
946 $this->valF['su_chge_shon6'] = $val['su_chge_shon6'];
947 }
948 if (!is_numeric($val['su_chge_shon7'])) {
949 $this->valF['su_chge_shon7'] = NULL;
950 } else {
951 $this->valF['su_chge_shon7'] = $val['su_chge_shon7'];
952 }
953 if (!is_numeric($val['su_chge_shon8'])) {
954 $this->valF['su_chge_shon8'] = NULL;
955 } else {
956 $this->valF['su_chge_shon8'] = $val['su_chge_shon8'];
957 }
958 if (!is_numeric($val['su_chge_shon9'])) {
959 $this->valF['su_chge_shon9'] = NULL;
960 } else {
961 $this->valF['su_chge_shon9'] = $val['su_chge_shon9'];
962 }
963 if (!is_numeric($val['su_demo_shon1'])) {
964 $this->valF['su_demo_shon1'] = NULL;
965 } else {
966 $this->valF['su_demo_shon1'] = $val['su_demo_shon1'];
967 }
968 if (!is_numeric($val['su_demo_shon2'])) {
969 $this->valF['su_demo_shon2'] = NULL;
970 } else {
971 $this->valF['su_demo_shon2'] = $val['su_demo_shon2'];
972 }
973 if (!is_numeric($val['su_demo_shon3'])) {
974 $this->valF['su_demo_shon3'] = NULL;
975 } else {
976 $this->valF['su_demo_shon3'] = $val['su_demo_shon3'];
977 }
978 if (!is_numeric($val['su_demo_shon4'])) {
979 $this->valF['su_demo_shon4'] = NULL;
980 } else {
981 $this->valF['su_demo_shon4'] = $val['su_demo_shon4'];
982 }
983 if (!is_numeric($val['su_demo_shon5'])) {
984 $this->valF['su_demo_shon5'] = NULL;
985 } else {
986 $this->valF['su_demo_shon5'] = $val['su_demo_shon5'];
987 }
988 if (!is_numeric($val['su_demo_shon6'])) {
989 $this->valF['su_demo_shon6'] = NULL;
990 } else {
991 $this->valF['su_demo_shon6'] = $val['su_demo_shon6'];
992 }
993 if (!is_numeric($val['su_demo_shon7'])) {
994 $this->valF['su_demo_shon7'] = NULL;
995 } else {
996 $this->valF['su_demo_shon7'] = $val['su_demo_shon7'];
997 }
998 if (!is_numeric($val['su_demo_shon8'])) {
999 $this->valF['su_demo_shon8'] = NULL;
1000 } else {
1001 $this->valF['su_demo_shon8'] = $val['su_demo_shon8'];
1002 }
1003 if (!is_numeric($val['su_demo_shon9'])) {
1004 $this->valF['su_demo_shon9'] = NULL;
1005 } else {
1006 $this->valF['su_demo_shon9'] = $val['su_demo_shon9'];
1007 }
1008 if (!is_numeric($val['su_sup_shon1'])) {
1009 $this->valF['su_sup_shon1'] = NULL;
1010 } else {
1011 $this->valF['su_sup_shon1'] = $val['su_sup_shon1'];
1012 }
1013 if (!is_numeric($val['su_sup_shon2'])) {
1014 $this->valF['su_sup_shon2'] = NULL;
1015 } else {
1016 $this->valF['su_sup_shon2'] = $val['su_sup_shon2'];
1017 }
1018 if (!is_numeric($val['su_sup_shon3'])) {
1019 $this->valF['su_sup_shon3'] = NULL;
1020 } else {
1021 $this->valF['su_sup_shon3'] = $val['su_sup_shon3'];
1022 }
1023 if (!is_numeric($val['su_sup_shon4'])) {
1024 $this->valF['su_sup_shon4'] = NULL;
1025 } else {
1026 $this->valF['su_sup_shon4'] = $val['su_sup_shon4'];
1027 }
1028 if (!is_numeric($val['su_sup_shon5'])) {
1029 $this->valF['su_sup_shon5'] = NULL;
1030 } else {
1031 $this->valF['su_sup_shon5'] = $val['su_sup_shon5'];
1032 }
1033 if (!is_numeric($val['su_sup_shon6'])) {
1034 $this->valF['su_sup_shon6'] = NULL;
1035 } else {
1036 $this->valF['su_sup_shon6'] = $val['su_sup_shon6'];
1037 }
1038 if (!is_numeric($val['su_sup_shon7'])) {
1039 $this->valF['su_sup_shon7'] = NULL;
1040 } else {
1041 $this->valF['su_sup_shon7'] = $val['su_sup_shon7'];
1042 }
1043 if (!is_numeric($val['su_sup_shon8'])) {
1044 $this->valF['su_sup_shon8'] = NULL;
1045 } else {
1046 $this->valF['su_sup_shon8'] = $val['su_sup_shon8'];
1047 }
1048 if (!is_numeric($val['su_sup_shon9'])) {
1049 $this->valF['su_sup_shon9'] = NULL;
1050 } else {
1051 $this->valF['su_sup_shon9'] = $val['su_sup_shon9'];
1052 }
1053 if (!is_numeric($val['su_tot_shon1'])) {
1054 $this->valF['su_tot_shon1'] = NULL;
1055 } else {
1056 $this->valF['su_tot_shon1'] = $val['su_tot_shon1'];
1057 }
1058 if (!is_numeric($val['su_tot_shon2'])) {
1059 $this->valF['su_tot_shon2'] = NULL;
1060 } else {
1061 $this->valF['su_tot_shon2'] = $val['su_tot_shon2'];
1062 }
1063 if (!is_numeric($val['su_tot_shon3'])) {
1064 $this->valF['su_tot_shon3'] = NULL;
1065 } else {
1066 $this->valF['su_tot_shon3'] = $val['su_tot_shon3'];
1067 }
1068 if (!is_numeric($val['su_tot_shon4'])) {
1069 $this->valF['su_tot_shon4'] = NULL;
1070 } else {
1071 $this->valF['su_tot_shon4'] = $val['su_tot_shon4'];
1072 }
1073 if (!is_numeric($val['su_tot_shon5'])) {
1074 $this->valF['su_tot_shon5'] = NULL;
1075 } else {
1076 $this->valF['su_tot_shon5'] = $val['su_tot_shon5'];
1077 }
1078 if (!is_numeric($val['su_tot_shon6'])) {
1079 $this->valF['su_tot_shon6'] = NULL;
1080 } else {
1081 $this->valF['su_tot_shon6'] = $val['su_tot_shon6'];
1082 }
1083 if (!is_numeric($val['su_tot_shon7'])) {
1084 $this->valF['su_tot_shon7'] = NULL;
1085 } else {
1086 $this->valF['su_tot_shon7'] = $val['su_tot_shon7'];
1087 }
1088 if (!is_numeric($val['su_tot_shon8'])) {
1089 $this->valF['su_tot_shon8'] = NULL;
1090 } else {
1091 $this->valF['su_tot_shon8'] = $val['su_tot_shon8'];
1092 }
1093 if (!is_numeric($val['su_tot_shon9'])) {
1094 $this->valF['su_tot_shon9'] = NULL;
1095 } else {
1096 $this->valF['su_tot_shon9'] = $val['su_tot_shon9'];
1097 }
1098 if (!is_numeric($val['su_avt_shon_tot'])) {
1099 $this->valF['su_avt_shon_tot'] = NULL;
1100 } else {
1101 $this->valF['su_avt_shon_tot'] = $val['su_avt_shon_tot'];
1102 }
1103 if (!is_numeric($val['su_cstr_shon_tot'])) {
1104 $this->valF['su_cstr_shon_tot'] = NULL;
1105 } else {
1106 $this->valF['su_cstr_shon_tot'] = $val['su_cstr_shon_tot'];
1107 }
1108 if (!is_numeric($val['su_trsf_shon_tot'])) {
1109 $this->valF['su_trsf_shon_tot'] = NULL;
1110 } else {
1111 $this->valF['su_trsf_shon_tot'] = $val['su_trsf_shon_tot'];
1112 }
1113 if (!is_numeric($val['su_chge_shon_tot'])) {
1114 $this->valF['su_chge_shon_tot'] = NULL;
1115 } else {
1116 $this->valF['su_chge_shon_tot'] = $val['su_chge_shon_tot'];
1117 }
1118 if (!is_numeric($val['su_demo_shon_tot'])) {
1119 $this->valF['su_demo_shon_tot'] = NULL;
1120 } else {
1121 $this->valF['su_demo_shon_tot'] = $val['su_demo_shon_tot'];
1122 }
1123 if (!is_numeric($val['su_sup_shon_tot'])) {
1124 $this->valF['su_sup_shon_tot'] = NULL;
1125 } else {
1126 $this->valF['su_sup_shon_tot'] = $val['su_sup_shon_tot'];
1127 }
1128 if (!is_numeric($val['su_tot_shon_tot'])) {
1129 $this->valF['su_tot_shon_tot'] = NULL;
1130 } else {
1131 $this->valF['su_tot_shon_tot'] = $val['su_tot_shon_tot'];
1132 }
1133 if ($val['dm_constr_dates'] == "") {
1134 $this->valF['dm_constr_dates'] = NULL;
1135 } else {
1136 $this->valF['dm_constr_dates'] = $val['dm_constr_dates'];
1137 }
1138 if ($val['dm_total'] == 1 || $val['dm_total'] == "t" || $val['dm_total'] == "Oui") {
1139 $this->valF['dm_total'] = true;
1140 } else {
1141 $this->valF['dm_total'] = false;
1142 }
1143 if ($val['dm_partiel'] == 1 || $val['dm_partiel'] == "t" || $val['dm_partiel'] == "Oui") {
1144 $this->valF['dm_partiel'] = true;
1145 } else {
1146 $this->valF['dm_partiel'] = false;
1147 }
1148 if ($val['dm_projet_desc'] == "") {
1149 $this->valF['dm_projet_desc'] = NULL;
1150 } else {
1151 $this->valF['dm_projet_desc'] = $val['dm_projet_desc'];
1152 }
1153 if (!is_numeric($val['dm_tot_log_nb'])) {
1154 $this->valF['dm_tot_log_nb'] = NULL;
1155 } else {
1156 $this->valF['dm_tot_log_nb'] = $val['dm_tot_log_nb'];
1157 }
1158 if ($val['code_cnil'] == 1 || $val['code_cnil'] == "t" || $val['code_cnil'] == "Oui") {
1159 $this->valF['code_cnil'] = true;
1160 } else {
1161 $this->valF['code_cnil'] = false;
1162 }
1163 }
1164
1165 //=================================================
1166 //cle primaire automatique [automatic primary key]
1167 //==================================================
1168
1169 function setId(&$db) {
1170 //numero automatique
1171 $this->valF[$this->clePrimaire] = $db->nextId(DB_PREFIXE.$this->table);
1172 }
1173
1174 function setValFAjout($val) {
1175 //numero automatique -> pas de controle ajout cle primaire
1176 }
1177
1178 function verifierAjout() {
1179 //numero automatique -> pas de verfication de cle primaire
1180 }
1181
1182 //==========================
1183 // Formulaire [form]
1184 //==========================
1185
1186 function setType(&$form,$maj) {
1187 //type
1188 if ($maj==0){ //ajout
1189 $form->setType('donnees_techniques','hidden');// cle automatique
1190
1191 if($this->retourformulaire=='dossier'
1192 and $form->val['dossier_instruction'] == $this->getParameter('idxformulaire')) {
1193 $form->setType('dossier_instruction','selecthiddenstatic');
1194 } else {
1195 $form->setType('dossier_instruction','select');
1196 }
1197
1198 if($this->retourformulaire=='lot'
1199 and $form->val['lot'] == $this->getParameter('idxformulaire')) {
1200 $form->setType('lot','selecthiddenstatic');
1201 } else {
1202 $form->setType('lot','select');
1203 }
1204 $form->setType('interv_id','text');
1205 $form->setType('am_lotiss','checkbox');
1206 $form->setType('am_autre_div','checkbox');
1207 $form->setType('am_camping','checkbox');
1208 $form->setType('am_caravane','checkbox');
1209 $form->setType('am_carav_duree','text');
1210 $form->setType('am_statio','checkbox');
1211 $form->setType('am_statio_cont','text');
1212 $form->setType('am_affou_exhau','checkbox');
1213 $form->setType('am_affou_prof','text');
1214 $form->setType('am_exhau_haut','text');
1215 $form->setType('am_coupe_abat','checkbox');
1216 $form->setType('am_prot_plu','checkbox');
1217 $form->setType('am_prot_muni','checkbox');
1218 $form->setType('am_mobil_voyage','checkbox');
1219 if($this->retourformulaire=='')
1220 $form->setType('am_voyage_deb','date');
1221 else
1222 $form->setType('am_voyage_deb','date2');
1223 if($this->retourformulaire=='')
1224 $form->setType('am_voyage_fin','date');
1225 else
1226 $form->setType('am_voyage_fin','date2');
1227 $form->setType('am_aire_voyage','checkbox');
1228 $form->setType('am_rememb_afu','checkbox');
1229 $form->setType('am_parc_resid_loi','checkbox');
1230 $form->setType('am_sport_moto','checkbox');
1231 $form->setType('am_sport_attrac','checkbox');
1232 $form->setType('am_sport_golf','checkbox');
1233 $form->setType('am_mob_art','checkbox');
1234 $form->setType('am_modif_voie_esp','checkbox');
1235 $form->setType('am_plant_voie_esp','checkbox');
1236 $form->setType('am_chem_ouv_esp','checkbox');
1237 $form->setType('am_agri_peche','checkbox');
1238 $form->setType('am_crea_voie','checkbox');
1239 $form->setType('am_modif_voie_exist','checkbox');
1240 $form->setType('am_crea_esp_sauv','checkbox');
1241 $form->setType('am_modif_amgt','checkbox');
1242 $form->setType('am_crea_esp_class','checkbox');
1243 $form->setType('am_projet_desc','text');
1244 $form->setType('am_terr_surf','text');
1245 $form->setType('am_tranche_desc','text');
1246 $form->setType('am_lot_max_nb','text');
1247 $form->setType('am_lot_max_shon','text');
1248 $form->setType('am_lot_max_shob','text');
1249 $form->setType('am_lot_cstr_cos','checkbox');
1250 $form->setType('am_lot_cstr_plan','checkbox');
1251 $form->setType('am_lot_cstr_vente','checkbox');
1252 $form->setType('am_lot_fin_diff','checkbox');
1253 $form->setType('am_lot_consign','checkbox');
1254 $form->setType('am_lot_gar_achev','checkbox');
1255 $form->setType('am_lot_vente_ant','checkbox');
1256 $form->setType('am_empl_nb','text');
1257 $form->setType('am_tente_nb','text');
1258 $form->setType('am_carav_nb','text');
1259 $form->setType('am_mobil_nb','text');
1260 $form->setType('am_pers_nb','text');
1261 $form->setType('am_empl_hll_nb','text');
1262 $form->setType('am_hll_shon','text');
1263 $form->setType('am_periode_exploit','text');
1264 $form->setType('am_exist_agrand','checkbox');
1265 if($this->retourformulaire=='')
1266 $form->setType('am_exist_date','date');
1267 else
1268 $form->setType('am_exist_date','date2');
1269 $form->setType('am_exist_num','text');
1270 $form->setType('am_exist_nb_avant','text');
1271 $form->setType('am_exist_nb_apres','text');
1272 $form->setType('am_coupe_bois','checkbox');
1273 $form->setType('am_coupe_parc','checkbox');
1274 $form->setType('am_coupe_align','checkbox');
1275 $form->setType('am_coupe_ess','text');
1276 $form->setType('am_coupe_age','text');
1277 $form->setType('am_coupe_dens','text');
1278 $form->setType('am_coupe_qual','text');
1279 $form->setType('am_coupe_trait','text');
1280 $form->setType('am_coupe_autr','text');
1281 $form->setType('co_archi_recours','checkbox');
1282 $form->setType('co_cstr_nouv','checkbox');
1283 $form->setType('co_cstr_exist','checkbox');
1284 $form->setType('co_modif_aspect','checkbox');
1285 $form->setType('co_modif_struct','checkbox');
1286 $form->setType('co_cloture','checkbox');
1287 $form->setType('co_ouvr_elec','checkbox');
1288 $form->setType('co_elec_tension','text');
1289 $form->setType('co_ouvr_infra','checkbox');
1290 $form->setType('co_trx_imm','checkbox');
1291 $form->setType('co_div_terr','checkbox');
1292 $form->setType('co_projet_desc','text');
1293 $form->setType('co_cstr_shob','text');
1294 $form->setType('co_anx_pisc','checkbox');
1295 $form->setType('co_anx_gara','checkbox');
1296 $form->setType('co_anx_veran','checkbox');
1297 $form->setType('co_anx_abri','checkbox');
1298 $form->setType('co_anx_autr','checkbox');
1299 $form->setType('co_anx_autr_desc','text');
1300 $form->setType('co_tot_log_nb','text');
1301 $form->setType('co_tot_ind_nb','text');
1302 $form->setType('co_tot_coll_nb','text');
1303 $form->setType('co_mais_piece_nb','text');
1304 $form->setType('co_mais_niv_nb','text');
1305 $form->setType('co_fin_lls_nb','text');
1306 $form->setType('co_fin_aa_nb','text');
1307 $form->setType('co_fin_ptz_nb','text');
1308 $form->setType('co_fin_autr_nb','text');
1309 $form->setType('co_fin_autr_desc','text');
1310 $form->setType('co_finan1_id','text');
1311 $form->setType('co_finan1_nb','text');
1312 $form->setType('co_finan2_id','text');
1313 $form->setType('co_finan2_nb','text');
1314 $form->setType('co_finan3_id','text');
1315 $form->setType('co_finan3_nb','text');
1316 $form->setType('co_finan4_id','text');
1317 $form->setType('co_finan4_nb','text');
1318 $form->setType('co_finan5_id','text');
1319 $form->setType('co_finan5_nb','text');
1320 $form->setType('co_mais_contrat_ind','checkbox');
1321 $form->setType('co_uti_pers','checkbox');
1322 $form->setType('co_uti_vente','checkbox');
1323 $form->setType('co_uti_loc','checkbox');
1324 $form->setType('co_uti_princ','checkbox');
1325 $form->setType('co_uti_secon','checkbox');
1326 $form->setType('co_resid_agees','checkbox');
1327 $form->setType('co_resid_etud','checkbox');
1328 $form->setType('co_resid_tourism','checkbox');
1329 $form->setType('co_resid_hot_soc','checkbox');
1330 $form->setType('co_resid_soc','checkbox');
1331 $form->setType('co_resid_hand','checkbox');
1332 $form->setType('co_resid_autr','checkbox');
1333 $form->setType('co_resid_autr_desc','text');
1334 $form->setType('co_foyer_chamb_nb','text');
1335 $form->setType('co_log_1p_nb','text');
1336 $form->setType('co_log_2p_nb','text');
1337 $form->setType('co_log_3p_nb','text');
1338 $form->setType('co_log_4p_nb','text');
1339 $form->setType('co_log_5p_nb','text');
1340 $form->setType('co_log_6p_nb','text');
1341 $form->setType('co_bat_niv_nb','text');
1342 $form->setType('co_trx_exten','checkbox');
1343 $form->setType('co_trx_surelev','checkbox');
1344 $form->setType('co_trx_nivsup','checkbox');
1345 $form->setType('co_trx_amgt','checkbox');
1346 $form->setType('co_demont_periode','text');
1347 $form->setType('co_sp_transport','checkbox');
1348 $form->setType('co_sp_enseign','checkbox');
1349 $form->setType('co_sp_act_soc','checkbox');
1350 $form->setType('co_sp_ouvr_spe','checkbox');
1351 $form->setType('co_sp_sante','checkbox');
1352 $form->setType('co_sp_culture','checkbox');
1353 $form->setType('co_statio_avt_nb','text');
1354 $form->setType('co_statio_apr_nb','text');
1355 $form->setType('co_statio_avt_shob','text');
1356 $form->setType('co_statio_apr_shob','text');
1357 $form->setType('co_statio_avt_surf','text');
1358 $form->setType('co_statio_apr_surf','text');
1359 $form->setType('co_statio_adr','text');
1360 $form->setType('co_statio_place_nb','text');
1361 $form->setType('co_statio_tot_surf','text');
1362 $form->setType('co_statio_tot_shob','text');
1363 $form->setType('su_avt_shon1','text');
1364 $form->setType('su_avt_shon2','text');
1365 $form->setType('su_avt_shon3','text');
1366 $form->setType('su_avt_shon4','text');
1367 $form->setType('su_avt_shon5','text');
1368 $form->setType('su_avt_shon6','text');
1369 $form->setType('su_avt_shon7','text');
1370 $form->setType('su_avt_shon8','text');
1371 $form->setType('su_avt_shon9','text');
1372 $form->setType('su_cstr_shon1','text');
1373 $form->setType('su_cstr_shon2','text');
1374 $form->setType('su_cstr_shon3','text');
1375 $form->setType('su_cstr_shon4','text');
1376 $form->setType('su_cstr_shon5','text');
1377 $form->setType('su_cstr_shon6','text');
1378 $form->setType('su_cstr_shon7','text');
1379 $form->setType('su_cstr_shon8','text');
1380 $form->setType('su_cstr_shon9','text');
1381 $form->setType('su_trsf_shon1','text');
1382 $form->setType('su_trsf_shon2','text');
1383 $form->setType('su_trsf_shon3','text');
1384 $form->setType('su_trsf_shon4','text');
1385 $form->setType('su_trsf_shon5','text');
1386 $form->setType('su_trsf_shon6','text');
1387 $form->setType('su_trsf_shon7','text');
1388 $form->setType('su_trsf_shon8','text');
1389 $form->setType('su_trsf_shon9','text');
1390 $form->setType('su_chge_shon1','text');
1391 $form->setType('su_chge_shon2','text');
1392 $form->setType('su_chge_shon3','text');
1393 $form->setType('su_chge_shon4','text');
1394 $form->setType('su_chge_shon5','text');
1395 $form->setType('su_chge_shon6','text');
1396 $form->setType('su_chge_shon7','text');
1397 $form->setType('su_chge_shon8','text');
1398 $form->setType('su_chge_shon9','text');
1399 $form->setType('su_demo_shon1','text');
1400 $form->setType('su_demo_shon2','text');
1401 $form->setType('su_demo_shon3','text');
1402 $form->setType('su_demo_shon4','text');
1403 $form->setType('su_demo_shon5','text');
1404 $form->setType('su_demo_shon6','text');
1405 $form->setType('su_demo_shon7','text');
1406 $form->setType('su_demo_shon8','text');
1407 $form->setType('su_demo_shon9','text');
1408 $form->setType('su_sup_shon1','text');
1409 $form->setType('su_sup_shon2','text');
1410 $form->setType('su_sup_shon3','text');
1411 $form->setType('su_sup_shon4','text');
1412 $form->setType('su_sup_shon5','text');
1413 $form->setType('su_sup_shon6','text');
1414 $form->setType('su_sup_shon7','text');
1415 $form->setType('su_sup_shon8','text');
1416 $form->setType('su_sup_shon9','text');
1417 $form->setType('su_tot_shon1','text');
1418 $form->setType('su_tot_shon2','text');
1419 $form->setType('su_tot_shon3','text');
1420 $form->setType('su_tot_shon4','text');
1421 $form->setType('su_tot_shon5','text');
1422 $form->setType('su_tot_shon6','text');
1423 $form->setType('su_tot_shon7','text');
1424 $form->setType('su_tot_shon8','text');
1425 $form->setType('su_tot_shon9','text');
1426 $form->setType('su_avt_shon_tot','text');
1427 $form->setType('su_cstr_shon_tot','text');
1428 $form->setType('su_trsf_shon_tot','text');
1429 $form->setType('su_chge_shon_tot','text');
1430 $form->setType('su_demo_shon_tot','text');
1431 $form->setType('su_sup_shon_tot','text');
1432 $form->setType('su_tot_shon_tot','text');
1433 $form->setType('dm_constr_dates','text');
1434 $form->setType('dm_total','checkbox');
1435 $form->setType('dm_partiel','checkbox');
1436 $form->setType('dm_projet_desc','text');
1437 $form->setType('dm_tot_log_nb','text');
1438 $form->setType('code_cnil','checkbox');
1439 }// fin ajout
1440 if ($maj==1){ //modifier
1441 $form->setType('donnees_techniques','hiddenstatic');
1442
1443 if($this->retourformulaire=='dossier'
1444 and $form->val['dossier_instruction'] == $this->getParameter('idxformulaire')) {
1445 $form->setType('dossier_instruction','selecthiddenstatic');
1446 } else {
1447 $form->setType('dossier_instruction','select');
1448 }
1449
1450 if($this->retourformulaire=='lot'
1451 and $form->val['lot'] == $this->getParameter('idxformulaire')) {
1452 $form->setType('lot','selecthiddenstatic');
1453 } else {
1454 $form->setType('lot','select');
1455 }
1456 $form->setType('interv_id','text');
1457 $form->setType('am_lotiss','checkbox');
1458 $form->setType('am_autre_div','checkbox');
1459 $form->setType('am_camping','checkbox');
1460 $form->setType('am_caravane','checkbox');
1461 $form->setType('am_carav_duree','text');
1462 $form->setType('am_statio','checkbox');
1463 $form->setType('am_statio_cont','text');
1464 $form->setType('am_affou_exhau','checkbox');
1465 $form->setType('am_affou_prof','text');
1466 $form->setType('am_exhau_haut','text');
1467 $form->setType('am_coupe_abat','checkbox');
1468 $form->setType('am_prot_plu','checkbox');
1469 $form->setType('am_prot_muni','checkbox');
1470 $form->setType('am_mobil_voyage','checkbox');
1471 if($this->retourformulaire=='')
1472 $form->setType('am_voyage_deb','date');
1473 else
1474 $form->setType('am_voyage_deb','date2');
1475 if($this->retourformulaire=='')
1476 $form->setType('am_voyage_fin','date');
1477 else
1478 $form->setType('am_voyage_fin','date2');
1479 $form->setType('am_aire_voyage','checkbox');
1480 $form->setType('am_rememb_afu','checkbox');
1481 $form->setType('am_parc_resid_loi','checkbox');
1482 $form->setType('am_sport_moto','checkbox');
1483 $form->setType('am_sport_attrac','checkbox');
1484 $form->setType('am_sport_golf','checkbox');
1485 $form->setType('am_mob_art','checkbox');
1486 $form->setType('am_modif_voie_esp','checkbox');
1487 $form->setType('am_plant_voie_esp','checkbox');
1488 $form->setType('am_chem_ouv_esp','checkbox');
1489 $form->setType('am_agri_peche','checkbox');
1490 $form->setType('am_crea_voie','checkbox');
1491 $form->setType('am_modif_voie_exist','checkbox');
1492 $form->setType('am_crea_esp_sauv','checkbox');
1493 $form->setType('am_modif_amgt','checkbox');
1494 $form->setType('am_crea_esp_class','checkbox');
1495 $form->setType('am_projet_desc','text');
1496 $form->setType('am_terr_surf','text');
1497 $form->setType('am_tranche_desc','text');
1498 $form->setType('am_lot_max_nb','text');
1499 $form->setType('am_lot_max_shon','text');
1500 $form->setType('am_lot_max_shob','text');
1501 $form->setType('am_lot_cstr_cos','checkbox');
1502 $form->setType('am_lot_cstr_plan','checkbox');
1503 $form->setType('am_lot_cstr_vente','checkbox');
1504 $form->setType('am_lot_fin_diff','checkbox');
1505 $form->setType('am_lot_consign','checkbox');
1506 $form->setType('am_lot_gar_achev','checkbox');
1507 $form->setType('am_lot_vente_ant','checkbox');
1508 $form->setType('am_empl_nb','text');
1509 $form->setType('am_tente_nb','text');
1510 $form->setType('am_carav_nb','text');
1511 $form->setType('am_mobil_nb','text');
1512 $form->setType('am_pers_nb','text');
1513 $form->setType('am_empl_hll_nb','text');
1514 $form->setType('am_hll_shon','text');
1515 $form->setType('am_periode_exploit','text');
1516 $form->setType('am_exist_agrand','checkbox');
1517 if($this->retourformulaire=='')
1518 $form->setType('am_exist_date','date');
1519 else
1520 $form->setType('am_exist_date','date2');
1521 $form->setType('am_exist_num','text');
1522 $form->setType('am_exist_nb_avant','text');
1523 $form->setType('am_exist_nb_apres','text');
1524 $form->setType('am_coupe_bois','checkbox');
1525 $form->setType('am_coupe_parc','checkbox');
1526 $form->setType('am_coupe_align','checkbox');
1527 $form->setType('am_coupe_ess','text');
1528 $form->setType('am_coupe_age','text');
1529 $form->setType('am_coupe_dens','text');
1530 $form->setType('am_coupe_qual','text');
1531 $form->setType('am_coupe_trait','text');
1532 $form->setType('am_coupe_autr','text');
1533 $form->setType('co_archi_recours','checkbox');
1534 $form->setType('co_cstr_nouv','checkbox');
1535 $form->setType('co_cstr_exist','checkbox');
1536 $form->setType('co_modif_aspect','checkbox');
1537 $form->setType('co_modif_struct','checkbox');
1538 $form->setType('co_cloture','checkbox');
1539 $form->setType('co_ouvr_elec','checkbox');
1540 $form->setType('co_elec_tension','text');
1541 $form->setType('co_ouvr_infra','checkbox');
1542 $form->setType('co_trx_imm','checkbox');
1543 $form->setType('co_div_terr','checkbox');
1544 $form->setType('co_projet_desc','text');
1545 $form->setType('co_cstr_shob','text');
1546 $form->setType('co_anx_pisc','checkbox');
1547 $form->setType('co_anx_gara','checkbox');
1548 $form->setType('co_anx_veran','checkbox');
1549 $form->setType('co_anx_abri','checkbox');
1550 $form->setType('co_anx_autr','checkbox');
1551 $form->setType('co_anx_autr_desc','text');
1552 $form->setType('co_tot_log_nb','text');
1553 $form->setType('co_tot_ind_nb','text');
1554 $form->setType('co_tot_coll_nb','text');
1555 $form->setType('co_mais_piece_nb','text');
1556 $form->setType('co_mais_niv_nb','text');
1557 $form->setType('co_fin_lls_nb','text');
1558 $form->setType('co_fin_aa_nb','text');
1559 $form->setType('co_fin_ptz_nb','text');
1560 $form->setType('co_fin_autr_nb','text');
1561 $form->setType('co_fin_autr_desc','text');
1562 $form->setType('co_finan1_id','text');
1563 $form->setType('co_finan1_nb','text');
1564 $form->setType('co_finan2_id','text');
1565 $form->setType('co_finan2_nb','text');
1566 $form->setType('co_finan3_id','text');
1567 $form->setType('co_finan3_nb','text');
1568 $form->setType('co_finan4_id','text');
1569 $form->setType('co_finan4_nb','text');
1570 $form->setType('co_finan5_id','text');
1571 $form->setType('co_finan5_nb','text');
1572 $form->setType('co_mais_contrat_ind','checkbox');
1573 $form->setType('co_uti_pers','checkbox');
1574 $form->setType('co_uti_vente','checkbox');
1575 $form->setType('co_uti_loc','checkbox');
1576 $form->setType('co_uti_princ','checkbox');
1577 $form->setType('co_uti_secon','checkbox');
1578 $form->setType('co_resid_agees','checkbox');
1579 $form->setType('co_resid_etud','checkbox');
1580 $form->setType('co_resid_tourism','checkbox');
1581 $form->setType('co_resid_hot_soc','checkbox');
1582 $form->setType('co_resid_soc','checkbox');
1583 $form->setType('co_resid_hand','checkbox');
1584 $form->setType('co_resid_autr','checkbox');
1585 $form->setType('co_resid_autr_desc','text');
1586 $form->setType('co_foyer_chamb_nb','text');
1587 $form->setType('co_log_1p_nb','text');
1588 $form->setType('co_log_2p_nb','text');
1589 $form->setType('co_log_3p_nb','text');
1590 $form->setType('co_log_4p_nb','text');
1591 $form->setType('co_log_5p_nb','text');
1592 $form->setType('co_log_6p_nb','text');
1593 $form->setType('co_bat_niv_nb','text');
1594 $form->setType('co_trx_exten','checkbox');
1595 $form->setType('co_trx_surelev','checkbox');
1596 $form->setType('co_trx_nivsup','checkbox');
1597 $form->setType('co_trx_amgt','checkbox');
1598 $form->setType('co_demont_periode','text');
1599 $form->setType('co_sp_transport','checkbox');
1600 $form->setType('co_sp_enseign','checkbox');
1601 $form->setType('co_sp_act_soc','checkbox');
1602 $form->setType('co_sp_ouvr_spe','checkbox');
1603 $form->setType('co_sp_sante','checkbox');
1604 $form->setType('co_sp_culture','checkbox');
1605 $form->setType('co_statio_avt_nb','text');
1606 $form->setType('co_statio_apr_nb','text');
1607 $form->setType('co_statio_avt_shob','text');
1608 $form->setType('co_statio_apr_shob','text');
1609 $form->setType('co_statio_avt_surf','text');
1610 $form->setType('co_statio_apr_surf','text');
1611 $form->setType('co_statio_adr','text');
1612 $form->setType('co_statio_place_nb','text');
1613 $form->setType('co_statio_tot_surf','text');
1614 $form->setType('co_statio_tot_shob','text');
1615 $form->setType('su_avt_shon1','text');
1616 $form->setType('su_avt_shon2','text');
1617 $form->setType('su_avt_shon3','text');
1618 $form->setType('su_avt_shon4','text');
1619 $form->setType('su_avt_shon5','text');
1620 $form->setType('su_avt_shon6','text');
1621 $form->setType('su_avt_shon7','text');
1622 $form->setType('su_avt_shon8','text');
1623 $form->setType('su_avt_shon9','text');
1624 $form->setType('su_cstr_shon1','text');
1625 $form->setType('su_cstr_shon2','text');
1626 $form->setType('su_cstr_shon3','text');
1627 $form->setType('su_cstr_shon4','text');
1628 $form->setType('su_cstr_shon5','text');
1629 $form->setType('su_cstr_shon6','text');
1630 $form->setType('su_cstr_shon7','text');
1631 $form->setType('su_cstr_shon8','text');
1632 $form->setType('su_cstr_shon9','text');
1633 $form->setType('su_trsf_shon1','text');
1634 $form->setType('su_trsf_shon2','text');
1635 $form->setType('su_trsf_shon3','text');
1636 $form->setType('su_trsf_shon4','text');
1637 $form->setType('su_trsf_shon5','text');
1638 $form->setType('su_trsf_shon6','text');
1639 $form->setType('su_trsf_shon7','text');
1640 $form->setType('su_trsf_shon8','text');
1641 $form->setType('su_trsf_shon9','text');
1642 $form->setType('su_chge_shon1','text');
1643 $form->setType('su_chge_shon2','text');
1644 $form->setType('su_chge_shon3','text');
1645 $form->setType('su_chge_shon4','text');
1646 $form->setType('su_chge_shon5','text');
1647 $form->setType('su_chge_shon6','text');
1648 $form->setType('su_chge_shon7','text');
1649 $form->setType('su_chge_shon8','text');
1650 $form->setType('su_chge_shon9','text');
1651 $form->setType('su_demo_shon1','text');
1652 $form->setType('su_demo_shon2','text');
1653 $form->setType('su_demo_shon3','text');
1654 $form->setType('su_demo_shon4','text');
1655 $form->setType('su_demo_shon5','text');
1656 $form->setType('su_demo_shon6','text');
1657 $form->setType('su_demo_shon7','text');
1658 $form->setType('su_demo_shon8','text');
1659 $form->setType('su_demo_shon9','text');
1660 $form->setType('su_sup_shon1','text');
1661 $form->setType('su_sup_shon2','text');
1662 $form->setType('su_sup_shon3','text');
1663 $form->setType('su_sup_shon4','text');
1664 $form->setType('su_sup_shon5','text');
1665 $form->setType('su_sup_shon6','text');
1666 $form->setType('su_sup_shon7','text');
1667 $form->setType('su_sup_shon8','text');
1668 $form->setType('su_sup_shon9','text');
1669 $form->setType('su_tot_shon1','text');
1670 $form->setType('su_tot_shon2','text');
1671 $form->setType('su_tot_shon3','text');
1672 $form->setType('su_tot_shon4','text');
1673 $form->setType('su_tot_shon5','text');
1674 $form->setType('su_tot_shon6','text');
1675 $form->setType('su_tot_shon7','text');
1676 $form->setType('su_tot_shon8','text');
1677 $form->setType('su_tot_shon9','text');
1678 $form->setType('su_avt_shon_tot','text');
1679 $form->setType('su_cstr_shon_tot','text');
1680 $form->setType('su_trsf_shon_tot','text');
1681 $form->setType('su_chge_shon_tot','text');
1682 $form->setType('su_demo_shon_tot','text');
1683 $form->setType('su_sup_shon_tot','text');
1684 $form->setType('su_tot_shon_tot','text');
1685 $form->setType('dm_constr_dates','text');
1686 $form->setType('dm_total','checkbox');
1687 $form->setType('dm_partiel','checkbox');
1688 $form->setType('dm_projet_desc','text');
1689 $form->setType('dm_tot_log_nb','text');
1690 $form->setType('code_cnil','checkbox');
1691 }// fin modifier
1692 if ($maj==2){ //supprimer
1693 $form->setType('donnees_techniques','hiddenstatic');
1694 $form->setType('dossier_instruction','selectstatic');
1695 $form->setType('lot','selectstatic');
1696 $form->setType('interv_id','hiddenstatic');
1697 $form->setType('am_lotiss','hiddenstatic');
1698 $form->setType('am_autre_div','hiddenstatic');
1699 $form->setType('am_camping','hiddenstatic');
1700 $form->setType('am_caravane','hiddenstatic');
1701 $form->setType('am_carav_duree','hiddenstatic');
1702 $form->setType('am_statio','hiddenstatic');
1703 $form->setType('am_statio_cont','hiddenstatic');
1704 $form->setType('am_affou_exhau','hiddenstatic');
1705 $form->setType('am_affou_prof','hiddenstatic');
1706 $form->setType('am_exhau_haut','hiddenstatic');
1707 $form->setType('am_coupe_abat','hiddenstatic');
1708 $form->setType('am_prot_plu','hiddenstatic');
1709 $form->setType('am_prot_muni','hiddenstatic');
1710 $form->setType('am_mobil_voyage','hiddenstatic');
1711 $form->setType('am_voyage_deb','hiddenstatic');
1712 $form->setType('am_voyage_fin','hiddenstatic');
1713 $form->setType('am_aire_voyage','hiddenstatic');
1714 $form->setType('am_rememb_afu','hiddenstatic');
1715 $form->setType('am_parc_resid_loi','hiddenstatic');
1716 $form->setType('am_sport_moto','hiddenstatic');
1717 $form->setType('am_sport_attrac','hiddenstatic');
1718 $form->setType('am_sport_golf','hiddenstatic');
1719 $form->setType('am_mob_art','hiddenstatic');
1720 $form->setType('am_modif_voie_esp','hiddenstatic');
1721 $form->setType('am_plant_voie_esp','hiddenstatic');
1722 $form->setType('am_chem_ouv_esp','hiddenstatic');
1723 $form->setType('am_agri_peche','hiddenstatic');
1724 $form->setType('am_crea_voie','hiddenstatic');
1725 $form->setType('am_modif_voie_exist','hiddenstatic');
1726 $form->setType('am_crea_esp_sauv','hiddenstatic');
1727 $form->setType('am_modif_amgt','hiddenstatic');
1728 $form->setType('am_crea_esp_class','hiddenstatic');
1729 $form->setType('am_projet_desc','hiddenstatic');
1730 $form->setType('am_terr_surf','hiddenstatic');
1731 $form->setType('am_tranche_desc','hiddenstatic');
1732 $form->setType('am_lot_max_nb','hiddenstatic');
1733 $form->setType('am_lot_max_shon','hiddenstatic');
1734 $form->setType('am_lot_max_shob','hiddenstatic');
1735 $form->setType('am_lot_cstr_cos','hiddenstatic');
1736 $form->setType('am_lot_cstr_plan','hiddenstatic');
1737 $form->setType('am_lot_cstr_vente','hiddenstatic');
1738 $form->setType('am_lot_fin_diff','hiddenstatic');
1739 $form->setType('am_lot_consign','hiddenstatic');
1740 $form->setType('am_lot_gar_achev','hiddenstatic');
1741 $form->setType('am_lot_vente_ant','hiddenstatic');
1742 $form->setType('am_empl_nb','hiddenstatic');
1743 $form->setType('am_tente_nb','hiddenstatic');
1744 $form->setType('am_carav_nb','hiddenstatic');
1745 $form->setType('am_mobil_nb','hiddenstatic');
1746 $form->setType('am_pers_nb','hiddenstatic');
1747 $form->setType('am_empl_hll_nb','hiddenstatic');
1748 $form->setType('am_hll_shon','hiddenstatic');
1749 $form->setType('am_periode_exploit','hiddenstatic');
1750 $form->setType('am_exist_agrand','hiddenstatic');
1751 $form->setType('am_exist_date','hiddenstatic');
1752 $form->setType('am_exist_num','hiddenstatic');
1753 $form->setType('am_exist_nb_avant','hiddenstatic');
1754 $form->setType('am_exist_nb_apres','hiddenstatic');
1755 $form->setType('am_coupe_bois','hiddenstatic');
1756 $form->setType('am_coupe_parc','hiddenstatic');
1757 $form->setType('am_coupe_align','hiddenstatic');
1758 $form->setType('am_coupe_ess','hiddenstatic');
1759 $form->setType('am_coupe_age','hiddenstatic');
1760 $form->setType('am_coupe_dens','hiddenstatic');
1761 $form->setType('am_coupe_qual','hiddenstatic');
1762 $form->setType('am_coupe_trait','hiddenstatic');
1763 $form->setType('am_coupe_autr','hiddenstatic');
1764 $form->setType('co_archi_recours','hiddenstatic');
1765 $form->setType('co_cstr_nouv','hiddenstatic');
1766 $form->setType('co_cstr_exist','hiddenstatic');
1767 $form->setType('co_modif_aspect','hiddenstatic');
1768 $form->setType('co_modif_struct','hiddenstatic');
1769 $form->setType('co_cloture','hiddenstatic');
1770 $form->setType('co_ouvr_elec','hiddenstatic');
1771 $form->setType('co_elec_tension','hiddenstatic');
1772 $form->setType('co_ouvr_infra','hiddenstatic');
1773 $form->setType('co_trx_imm','hiddenstatic');
1774 $form->setType('co_div_terr','hiddenstatic');
1775 $form->setType('co_projet_desc','hiddenstatic');
1776 $form->setType('co_cstr_shob','hiddenstatic');
1777 $form->setType('co_anx_pisc','hiddenstatic');
1778 $form->setType('co_anx_gara','hiddenstatic');
1779 $form->setType('co_anx_veran','hiddenstatic');
1780 $form->setType('co_anx_abri','hiddenstatic');
1781 $form->setType('co_anx_autr','hiddenstatic');
1782 $form->setType('co_anx_autr_desc','hiddenstatic');
1783 $form->setType('co_tot_log_nb','hiddenstatic');
1784 $form->setType('co_tot_ind_nb','hiddenstatic');
1785 $form->setType('co_tot_coll_nb','hiddenstatic');
1786 $form->setType('co_mais_piece_nb','hiddenstatic');
1787 $form->setType('co_mais_niv_nb','hiddenstatic');
1788 $form->setType('co_fin_lls_nb','hiddenstatic');
1789 $form->setType('co_fin_aa_nb','hiddenstatic');
1790 $form->setType('co_fin_ptz_nb','hiddenstatic');
1791 $form->setType('co_fin_autr_nb','hiddenstatic');
1792 $form->setType('co_fin_autr_desc','hiddenstatic');
1793 $form->setType('co_finan1_id','hiddenstatic');
1794 $form->setType('co_finan1_nb','hiddenstatic');
1795 $form->setType('co_finan2_id','hiddenstatic');
1796 $form->setType('co_finan2_nb','hiddenstatic');
1797 $form->setType('co_finan3_id','hiddenstatic');
1798 $form->setType('co_finan3_nb','hiddenstatic');
1799 $form->setType('co_finan4_id','hiddenstatic');
1800 $form->setType('co_finan4_nb','hiddenstatic');
1801 $form->setType('co_finan5_id','hiddenstatic');
1802 $form->setType('co_finan5_nb','hiddenstatic');
1803 $form->setType('co_mais_contrat_ind','hiddenstatic');
1804 $form->setType('co_uti_pers','hiddenstatic');
1805 $form->setType('co_uti_vente','hiddenstatic');
1806 $form->setType('co_uti_loc','hiddenstatic');
1807 $form->setType('co_uti_princ','hiddenstatic');
1808 $form->setType('co_uti_secon','hiddenstatic');
1809 $form->setType('co_resid_agees','hiddenstatic');
1810 $form->setType('co_resid_etud','hiddenstatic');
1811 $form->setType('co_resid_tourism','hiddenstatic');
1812 $form->setType('co_resid_hot_soc','hiddenstatic');
1813 $form->setType('co_resid_soc','hiddenstatic');
1814 $form->setType('co_resid_hand','hiddenstatic');
1815 $form->setType('co_resid_autr','hiddenstatic');
1816 $form->setType('co_resid_autr_desc','hiddenstatic');
1817 $form->setType('co_foyer_chamb_nb','hiddenstatic');
1818 $form->setType('co_log_1p_nb','hiddenstatic');
1819 $form->setType('co_log_2p_nb','hiddenstatic');
1820 $form->setType('co_log_3p_nb','hiddenstatic');
1821 $form->setType('co_log_4p_nb','hiddenstatic');
1822 $form->setType('co_log_5p_nb','hiddenstatic');
1823 $form->setType('co_log_6p_nb','hiddenstatic');
1824 $form->setType('co_bat_niv_nb','hiddenstatic');
1825 $form->setType('co_trx_exten','hiddenstatic');
1826 $form->setType('co_trx_surelev','hiddenstatic');
1827 $form->setType('co_trx_nivsup','hiddenstatic');
1828 $form->setType('co_trx_amgt','hiddenstatic');
1829 $form->setType('co_demont_periode','hiddenstatic');
1830 $form->setType('co_sp_transport','hiddenstatic');
1831 $form->setType('co_sp_enseign','hiddenstatic');
1832 $form->setType('co_sp_act_soc','hiddenstatic');
1833 $form->setType('co_sp_ouvr_spe','hiddenstatic');
1834 $form->setType('co_sp_sante','hiddenstatic');
1835 $form->setType('co_sp_culture','hiddenstatic');
1836 $form->setType('co_statio_avt_nb','hiddenstatic');
1837 $form->setType('co_statio_apr_nb','hiddenstatic');
1838 $form->setType('co_statio_avt_shob','hiddenstatic');
1839 $form->setType('co_statio_apr_shob','hiddenstatic');
1840 $form->setType('co_statio_avt_surf','hiddenstatic');
1841 $form->setType('co_statio_apr_surf','hiddenstatic');
1842 $form->setType('co_statio_adr','hiddenstatic');
1843 $form->setType('co_statio_place_nb','hiddenstatic');
1844 $form->setType('co_statio_tot_surf','hiddenstatic');
1845 $form->setType('co_statio_tot_shob','hiddenstatic');
1846 $form->setType('su_avt_shon1','hiddenstatic');
1847 $form->setType('su_avt_shon2','hiddenstatic');
1848 $form->setType('su_avt_shon3','hiddenstatic');
1849 $form->setType('su_avt_shon4','hiddenstatic');
1850 $form->setType('su_avt_shon5','hiddenstatic');
1851 $form->setType('su_avt_shon6','hiddenstatic');
1852 $form->setType('su_avt_shon7','hiddenstatic');
1853 $form->setType('su_avt_shon8','hiddenstatic');
1854 $form->setType('su_avt_shon9','hiddenstatic');
1855 $form->setType('su_cstr_shon1','hiddenstatic');
1856 $form->setType('su_cstr_shon2','hiddenstatic');
1857 $form->setType('su_cstr_shon3','hiddenstatic');
1858 $form->setType('su_cstr_shon4','hiddenstatic');
1859 $form->setType('su_cstr_shon5','hiddenstatic');
1860 $form->setType('su_cstr_shon6','hiddenstatic');
1861 $form->setType('su_cstr_shon7','hiddenstatic');
1862 $form->setType('su_cstr_shon8','hiddenstatic');
1863 $form->setType('su_cstr_shon9','hiddenstatic');
1864 $form->setType('su_trsf_shon1','hiddenstatic');
1865 $form->setType('su_trsf_shon2','hiddenstatic');
1866 $form->setType('su_trsf_shon3','hiddenstatic');
1867 $form->setType('su_trsf_shon4','hiddenstatic');
1868 $form->setType('su_trsf_shon5','hiddenstatic');
1869 $form->setType('su_trsf_shon6','hiddenstatic');
1870 $form->setType('su_trsf_shon7','hiddenstatic');
1871 $form->setType('su_trsf_shon8','hiddenstatic');
1872 $form->setType('su_trsf_shon9','hiddenstatic');
1873 $form->setType('su_chge_shon1','hiddenstatic');
1874 $form->setType('su_chge_shon2','hiddenstatic');
1875 $form->setType('su_chge_shon3','hiddenstatic');
1876 $form->setType('su_chge_shon4','hiddenstatic');
1877 $form->setType('su_chge_shon5','hiddenstatic');
1878 $form->setType('su_chge_shon6','hiddenstatic');
1879 $form->setType('su_chge_shon7','hiddenstatic');
1880 $form->setType('su_chge_shon8','hiddenstatic');
1881 $form->setType('su_chge_shon9','hiddenstatic');
1882 $form->setType('su_demo_shon1','hiddenstatic');
1883 $form->setType('su_demo_shon2','hiddenstatic');
1884 $form->setType('su_demo_shon3','hiddenstatic');
1885 $form->setType('su_demo_shon4','hiddenstatic');
1886 $form->setType('su_demo_shon5','hiddenstatic');
1887 $form->setType('su_demo_shon6','hiddenstatic');
1888 $form->setType('su_demo_shon7','hiddenstatic');
1889 $form->setType('su_demo_shon8','hiddenstatic');
1890 $form->setType('su_demo_shon9','hiddenstatic');
1891 $form->setType('su_sup_shon1','hiddenstatic');
1892 $form->setType('su_sup_shon2','hiddenstatic');
1893 $form->setType('su_sup_shon3','hiddenstatic');
1894 $form->setType('su_sup_shon4','hiddenstatic');
1895 $form->setType('su_sup_shon5','hiddenstatic');
1896 $form->setType('su_sup_shon6','hiddenstatic');
1897 $form->setType('su_sup_shon7','hiddenstatic');
1898 $form->setType('su_sup_shon8','hiddenstatic');
1899 $form->setType('su_sup_shon9','hiddenstatic');
1900 $form->setType('su_tot_shon1','hiddenstatic');
1901 $form->setType('su_tot_shon2','hiddenstatic');
1902 $form->setType('su_tot_shon3','hiddenstatic');
1903 $form->setType('su_tot_shon4','hiddenstatic');
1904 $form->setType('su_tot_shon5','hiddenstatic');
1905 $form->setType('su_tot_shon6','hiddenstatic');
1906 $form->setType('su_tot_shon7','hiddenstatic');
1907 $form->setType('su_tot_shon8','hiddenstatic');
1908 $form->setType('su_tot_shon9','hiddenstatic');
1909 $form->setType('su_avt_shon_tot','hiddenstatic');
1910 $form->setType('su_cstr_shon_tot','hiddenstatic');
1911 $form->setType('su_trsf_shon_tot','hiddenstatic');
1912 $form->setType('su_chge_shon_tot','hiddenstatic');
1913 $form->setType('su_demo_shon_tot','hiddenstatic');
1914 $form->setType('su_sup_shon_tot','hiddenstatic');
1915 $form->setType('su_tot_shon_tot','hiddenstatic');
1916 $form->setType('dm_constr_dates','hiddenstatic');
1917 $form->setType('dm_total','hiddenstatic');
1918 $form->setType('dm_partiel','hiddenstatic');
1919 $form->setType('dm_projet_desc','hiddenstatic');
1920 $form->setType('dm_tot_log_nb','hiddenstatic');
1921 $form->setType('code_cnil','hiddenstatic');
1922 }//fin supprimer
1923 if ($maj==3){ //consulter
1924 $form->setType('donnees_techniques','static');
1925 $form->setType('dossier_instruction','selectstatic');
1926 $form->setType('lot','selectstatic');
1927 $form->setType('interv_id','static');
1928 $form->setType('am_lotiss','checkboxstatic');
1929 $form->setType('am_autre_div','checkboxstatic');
1930 $form->setType('am_camping','checkboxstatic');
1931 $form->setType('am_caravane','checkboxstatic');
1932 $form->setType('am_carav_duree','static');
1933 $form->setType('am_statio','checkboxstatic');
1934 $form->setType('am_statio_cont','static');
1935 $form->setType('am_affou_exhau','checkboxstatic');
1936 $form->setType('am_affou_prof','static');
1937 $form->setType('am_exhau_haut','static');
1938 $form->setType('am_coupe_abat','checkboxstatic');
1939 $form->setType('am_prot_plu','checkboxstatic');
1940 $form->setType('am_prot_muni','checkboxstatic');
1941 $form->setType('am_mobil_voyage','checkboxstatic');
1942 $form->setType('am_voyage_deb','datestatic');
1943 $form->setType('am_voyage_fin','datestatic');
1944 $form->setType('am_aire_voyage','checkboxstatic');
1945 $form->setType('am_rememb_afu','checkboxstatic');
1946 $form->setType('am_parc_resid_loi','checkboxstatic');
1947 $form->setType('am_sport_moto','checkboxstatic');
1948 $form->setType('am_sport_attrac','checkboxstatic');
1949 $form->setType('am_sport_golf','checkboxstatic');
1950 $form->setType('am_mob_art','checkboxstatic');
1951 $form->setType('am_modif_voie_esp','checkboxstatic');
1952 $form->setType('am_plant_voie_esp','checkboxstatic');
1953 $form->setType('am_chem_ouv_esp','checkboxstatic');
1954 $form->setType('am_agri_peche','checkboxstatic');
1955 $form->setType('am_crea_voie','checkboxstatic');
1956 $form->setType('am_modif_voie_exist','checkboxstatic');
1957 $form->setType('am_crea_esp_sauv','checkboxstatic');
1958 $form->setType('am_modif_amgt','checkboxstatic');
1959 $form->setType('am_crea_esp_class','checkboxstatic');
1960 $form->setType('am_projet_desc','static');
1961 $form->setType('am_terr_surf','static');
1962 $form->setType('am_tranche_desc','static');
1963 $form->setType('am_lot_max_nb','static');
1964 $form->setType('am_lot_max_shon','static');
1965 $form->setType('am_lot_max_shob','static');
1966 $form->setType('am_lot_cstr_cos','checkboxstatic');
1967 $form->setType('am_lot_cstr_plan','checkboxstatic');
1968 $form->setType('am_lot_cstr_vente','checkboxstatic');
1969 $form->setType('am_lot_fin_diff','checkboxstatic');
1970 $form->setType('am_lot_consign','checkboxstatic');
1971 $form->setType('am_lot_gar_achev','checkboxstatic');
1972 $form->setType('am_lot_vente_ant','checkboxstatic');
1973 $form->setType('am_empl_nb','static');
1974 $form->setType('am_tente_nb','static');
1975 $form->setType('am_carav_nb','static');
1976 $form->setType('am_mobil_nb','static');
1977 $form->setType('am_pers_nb','static');
1978 $form->setType('am_empl_hll_nb','static');
1979 $form->setType('am_hll_shon','static');
1980 $form->setType('am_periode_exploit','static');
1981 $form->setType('am_exist_agrand','checkboxstatic');
1982 $form->setType('am_exist_date','datestatic');
1983 $form->setType('am_exist_num','static');
1984 $form->setType('am_exist_nb_avant','static');
1985 $form->setType('am_exist_nb_apres','static');
1986 $form->setType('am_coupe_bois','checkboxstatic');
1987 $form->setType('am_coupe_parc','checkboxstatic');
1988 $form->setType('am_coupe_align','checkboxstatic');
1989 $form->setType('am_coupe_ess','static');
1990 $form->setType('am_coupe_age','static');
1991 $form->setType('am_coupe_dens','static');
1992 $form->setType('am_coupe_qual','static');
1993 $form->setType('am_coupe_trait','static');
1994 $form->setType('am_coupe_autr','static');
1995 $form->setType('co_archi_recours','checkboxstatic');
1996 $form->setType('co_cstr_nouv','checkboxstatic');
1997 $form->setType('co_cstr_exist','checkboxstatic');
1998 $form->setType('co_modif_aspect','checkboxstatic');
1999 $form->setType('co_modif_struct','checkboxstatic');
2000 $form->setType('co_cloture','checkboxstatic');
2001 $form->setType('co_ouvr_elec','checkboxstatic');
2002 $form->setType('co_elec_tension','static');
2003 $form->setType('co_ouvr_infra','checkboxstatic');
2004 $form->setType('co_trx_imm','checkboxstatic');
2005 $form->setType('co_div_terr','checkboxstatic');
2006 $form->setType('co_projet_desc','static');
2007 $form->setType('co_cstr_shob','static');
2008 $form->setType('co_anx_pisc','checkboxstatic');
2009 $form->setType('co_anx_gara','checkboxstatic');
2010 $form->setType('co_anx_veran','checkboxstatic');
2011 $form->setType('co_anx_abri','checkboxstatic');
2012 $form->setType('co_anx_autr','checkboxstatic');
2013 $form->setType('co_anx_autr_desc','static');
2014 $form->setType('co_tot_log_nb','static');
2015 $form->setType('co_tot_ind_nb','static');
2016 $form->setType('co_tot_coll_nb','static');
2017 $form->setType('co_mais_piece_nb','static');
2018 $form->setType('co_mais_niv_nb','static');
2019 $form->setType('co_fin_lls_nb','static');
2020 $form->setType('co_fin_aa_nb','static');
2021 $form->setType('co_fin_ptz_nb','static');
2022 $form->setType('co_fin_autr_nb','static');
2023 $form->setType('co_fin_autr_desc','static');
2024 $form->setType('co_finan1_id','static');
2025 $form->setType('co_finan1_nb','static');
2026 $form->setType('co_finan2_id','static');
2027 $form->setType('co_finan2_nb','static');
2028 $form->setType('co_finan3_id','static');
2029 $form->setType('co_finan3_nb','static');
2030 $form->setType('co_finan4_id','static');
2031 $form->setType('co_finan4_nb','static');
2032 $form->setType('co_finan5_id','static');
2033 $form->setType('co_finan5_nb','static');
2034 $form->setType('co_mais_contrat_ind','checkboxstatic');
2035 $form->setType('co_uti_pers','checkboxstatic');
2036 $form->setType('co_uti_vente','checkboxstatic');
2037 $form->setType('co_uti_loc','checkboxstatic');
2038 $form->setType('co_uti_princ','checkboxstatic');
2039 $form->setType('co_uti_secon','checkboxstatic');
2040 $form->setType('co_resid_agees','checkboxstatic');
2041 $form->setType('co_resid_etud','checkboxstatic');
2042 $form->setType('co_resid_tourism','checkboxstatic');
2043 $form->setType('co_resid_hot_soc','checkboxstatic');
2044 $form->setType('co_resid_soc','checkboxstatic');
2045 $form->setType('co_resid_hand','checkboxstatic');
2046 $form->setType('co_resid_autr','checkboxstatic');
2047 $form->setType('co_resid_autr_desc','static');
2048 $form->setType('co_foyer_chamb_nb','static');
2049 $form->setType('co_log_1p_nb','static');
2050 $form->setType('co_log_2p_nb','static');
2051 $form->setType('co_log_3p_nb','static');
2052 $form->setType('co_log_4p_nb','static');
2053 $form->setType('co_log_5p_nb','static');
2054 $form->setType('co_log_6p_nb','static');
2055 $form->setType('co_bat_niv_nb','static');
2056 $form->setType('co_trx_exten','checkboxstatic');
2057 $form->setType('co_trx_surelev','checkboxstatic');
2058 $form->setType('co_trx_nivsup','checkboxstatic');
2059 $form->setType('co_trx_amgt','checkboxstatic');
2060 $form->setType('co_demont_periode','static');
2061 $form->setType('co_sp_transport','checkboxstatic');
2062 $form->setType('co_sp_enseign','checkboxstatic');
2063 $form->setType('co_sp_act_soc','checkboxstatic');
2064 $form->setType('co_sp_ouvr_spe','checkboxstatic');
2065 $form->setType('co_sp_sante','checkboxstatic');
2066 $form->setType('co_sp_culture','checkboxstatic');
2067 $form->setType('co_statio_avt_nb','static');
2068 $form->setType('co_statio_apr_nb','static');
2069 $form->setType('co_statio_avt_shob','static');
2070 $form->setType('co_statio_apr_shob','static');
2071 $form->setType('co_statio_avt_surf','static');
2072 $form->setType('co_statio_apr_surf','static');
2073 $form->setType('co_statio_adr','static');
2074 $form->setType('co_statio_place_nb','static');
2075 $form->setType('co_statio_tot_surf','static');
2076 $form->setType('co_statio_tot_shob','static');
2077 $form->setType('su_avt_shon1','static');
2078 $form->setType('su_avt_shon2','static');
2079 $form->setType('su_avt_shon3','static');
2080 $form->setType('su_avt_shon4','static');
2081 $form->setType('su_avt_shon5','static');
2082 $form->setType('su_avt_shon6','static');
2083 $form->setType('su_avt_shon7','static');
2084 $form->setType('su_avt_shon8','static');
2085 $form->setType('su_avt_shon9','static');
2086 $form->setType('su_cstr_shon1','static');
2087 $form->setType('su_cstr_shon2','static');
2088 $form->setType('su_cstr_shon3','static');
2089 $form->setType('su_cstr_shon4','static');
2090 $form->setType('su_cstr_shon5','static');
2091 $form->setType('su_cstr_shon6','static');
2092 $form->setType('su_cstr_shon7','static');
2093 $form->setType('su_cstr_shon8','static');
2094 $form->setType('su_cstr_shon9','static');
2095 $form->setType('su_trsf_shon1','static');
2096 $form->setType('su_trsf_shon2','static');
2097 $form->setType('su_trsf_shon3','static');
2098 $form->setType('su_trsf_shon4','static');
2099 $form->setType('su_trsf_shon5','static');
2100 $form->setType('su_trsf_shon6','static');
2101 $form->setType('su_trsf_shon7','static');
2102 $form->setType('su_trsf_shon8','static');
2103 $form->setType('su_trsf_shon9','static');
2104 $form->setType('su_chge_shon1','static');
2105 $form->setType('su_chge_shon2','static');
2106 $form->setType('su_chge_shon3','static');
2107 $form->setType('su_chge_shon4','static');
2108 $form->setType('su_chge_shon5','static');
2109 $form->setType('su_chge_shon6','static');
2110 $form->setType('su_chge_shon7','static');
2111 $form->setType('su_chge_shon8','static');
2112 $form->setType('su_chge_shon9','static');
2113 $form->setType('su_demo_shon1','static');
2114 $form->setType('su_demo_shon2','static');
2115 $form->setType('su_demo_shon3','static');
2116 $form->setType('su_demo_shon4','static');
2117 $form->setType('su_demo_shon5','static');
2118 $form->setType('su_demo_shon6','static');
2119 $form->setType('su_demo_shon7','static');
2120 $form->setType('su_demo_shon8','static');
2121 $form->setType('su_demo_shon9','static');
2122 $form->setType('su_sup_shon1','static');
2123 $form->setType('su_sup_shon2','static');
2124 $form->setType('su_sup_shon3','static');
2125 $form->setType('su_sup_shon4','static');
2126 $form->setType('su_sup_shon5','static');
2127 $form->setType('su_sup_shon6','static');
2128 $form->setType('su_sup_shon7','static');
2129 $form->setType('su_sup_shon8','static');
2130 $form->setType('su_sup_shon9','static');
2131 $form->setType('su_tot_shon1','static');
2132 $form->setType('su_tot_shon2','static');
2133 $form->setType('su_tot_shon3','static');
2134 $form->setType('su_tot_shon4','static');
2135 $form->setType('su_tot_shon5','static');
2136 $form->setType('su_tot_shon6','static');
2137 $form->setType('su_tot_shon7','static');
2138 $form->setType('su_tot_shon8','static');
2139 $form->setType('su_tot_shon9','static');
2140 $form->setType('su_avt_shon_tot','static');
2141 $form->setType('su_cstr_shon_tot','static');
2142 $form->setType('su_trsf_shon_tot','static');
2143 $form->setType('su_chge_shon_tot','static');
2144 $form->setType('su_demo_shon_tot','static');
2145 $form->setType('su_sup_shon_tot','static');
2146 $form->setType('su_tot_shon_tot','static');
2147 $form->setType('dm_constr_dates','static');
2148 $form->setType('dm_total','checkboxstatic');
2149 $form->setType('dm_partiel','checkboxstatic');
2150 $form->setType('dm_projet_desc','static');
2151 $form->setType('dm_tot_log_nb','static');
2152 $form->setType('code_cnil','checkboxstatic');
2153 }//fin consulter
2154 }
2155
2156 function setOnchange(&$form,$maj) {
2157 //javascript controle client
2158 $form->setOnchange('donnees_techniques','VerifNum(this)');
2159 $form->setOnchange('lot','VerifNum(this)');
2160 $form->setOnchange('interv_id','VerifNum(this)');
2161 $form->setOnchange('am_carav_duree','VerifNum(this)');
2162 $form->setOnchange('am_statio_cont','VerifNum(this)');
2163 $form->setOnchange('am_affou_prof','VerifNum(this)');
2164 $form->setOnchange('am_exhau_haut','VerifNum(this)');
2165 $form->setOnchange('am_voyage_deb','fdate(this)');
2166 $form->setOnchange('am_voyage_fin','fdate(this)');
2167 $form->setOnchange('am_terr_surf','VerifNum(this)');
2168 $form->setOnchange('am_lot_max_nb','VerifNum(this)');
2169 $form->setOnchange('am_lot_max_shon','VerifNum(this)');
2170 $form->setOnchange('am_lot_max_shob','VerifNum(this)');
2171 $form->setOnchange('am_empl_nb','VerifNum(this)');
2172 $form->setOnchange('am_tente_nb','VerifNum(this)');
2173 $form->setOnchange('am_carav_nb','VerifNum(this)');
2174 $form->setOnchange('am_mobil_nb','VerifNum(this)');
2175 $form->setOnchange('am_pers_nb','VerifNum(this)');
2176 $form->setOnchange('am_empl_hll_nb','VerifNum(this)');
2177 $form->setOnchange('am_hll_shon','VerifNum(this)');
2178 $form->setOnchange('am_exist_date','fdate(this)');
2179 $form->setOnchange('am_exist_nb_avant','VerifNum(this)');
2180 $form->setOnchange('am_exist_nb_apres','VerifNum(this)');
2181 $form->setOnchange('co_elec_tension','VerifNum(this)');
2182 $form->setOnchange('co_cstr_shob','VerifNum(this)');
2183 $form->setOnchange('co_tot_log_nb','VerifNum(this)');
2184 $form->setOnchange('co_tot_ind_nb','VerifNum(this)');
2185 $form->setOnchange('co_tot_coll_nb','VerifNum(this)');
2186 $form->setOnchange('co_mais_piece_nb','VerifNum(this)');
2187 $form->setOnchange('co_mais_niv_nb','VerifNum(this)');
2188 $form->setOnchange('co_fin_lls_nb','VerifNum(this)');
2189 $form->setOnchange('co_fin_aa_nb','VerifNum(this)');
2190 $form->setOnchange('co_fin_ptz_nb','VerifNum(this)');
2191 $form->setOnchange('co_fin_autr_nb','VerifNum(this)');
2192 $form->setOnchange('co_finan1_id','VerifNum(this)');
2193 $form->setOnchange('co_finan1_nb','VerifNum(this)');
2194 $form->setOnchange('co_finan2_id','VerifNum(this)');
2195 $form->setOnchange('co_finan2_nb','VerifNum(this)');
2196 $form->setOnchange('co_finan3_id','VerifNum(this)');
2197 $form->setOnchange('co_finan3_nb','VerifNum(this)');
2198 $form->setOnchange('co_finan4_id','VerifNum(this)');
2199 $form->setOnchange('co_finan4_nb','VerifNum(this)');
2200 $form->setOnchange('co_finan5_id','VerifNum(this)');
2201 $form->setOnchange('co_finan5_nb','VerifNum(this)');
2202 $form->setOnchange('co_foyer_chamb_nb','VerifNum(this)');
2203 $form->setOnchange('co_log_1p_nb','VerifNum(this)');
2204 $form->setOnchange('co_log_2p_nb','VerifNum(this)');
2205 $form->setOnchange('co_log_3p_nb','VerifNum(this)');
2206 $form->setOnchange('co_log_4p_nb','VerifNum(this)');
2207 $form->setOnchange('co_log_5p_nb','VerifNum(this)');
2208 $form->setOnchange('co_log_6p_nb','VerifNum(this)');
2209 $form->setOnchange('co_bat_niv_nb','VerifNum(this)');
2210 $form->setOnchange('co_statio_avt_nb','VerifNum(this)');
2211 $form->setOnchange('co_statio_apr_nb','VerifNum(this)');
2212 $form->setOnchange('co_statio_avt_shob','VerifNum(this)');
2213 $form->setOnchange('co_statio_apr_shob','VerifNum(this)');
2214 $form->setOnchange('co_statio_avt_surf','VerifNum(this)');
2215 $form->setOnchange('co_statio_apr_surf','VerifNum(this)');
2216 $form->setOnchange('co_statio_place_nb','VerifNum(this)');
2217 $form->setOnchange('co_statio_tot_surf','VerifNum(this)');
2218 $form->setOnchange('co_statio_tot_shob','VerifNum(this)');
2219 $form->setOnchange('su_avt_shon1','VerifNum(this)');
2220 $form->setOnchange('su_avt_shon2','VerifNum(this)');
2221 $form->setOnchange('su_avt_shon3','VerifNum(this)');
2222 $form->setOnchange('su_avt_shon4','VerifNum(this)');
2223 $form->setOnchange('su_avt_shon5','VerifNum(this)');
2224 $form->setOnchange('su_avt_shon6','VerifNum(this)');
2225 $form->setOnchange('su_avt_shon7','VerifNum(this)');
2226 $form->setOnchange('su_avt_shon8','VerifNum(this)');
2227 $form->setOnchange('su_avt_shon9','VerifNum(this)');
2228 $form->setOnchange('su_cstr_shon1','VerifNum(this)');
2229 $form->setOnchange('su_cstr_shon2','VerifNum(this)');
2230 $form->setOnchange('su_cstr_shon3','VerifNum(this)');
2231 $form->setOnchange('su_cstr_shon4','VerifNum(this)');
2232 $form->setOnchange('su_cstr_shon5','VerifNum(this)');
2233 $form->setOnchange('su_cstr_shon6','VerifNum(this)');
2234 $form->setOnchange('su_cstr_shon7','VerifNum(this)');
2235 $form->setOnchange('su_cstr_shon8','VerifNum(this)');
2236 $form->setOnchange('su_cstr_shon9','VerifNum(this)');
2237 $form->setOnchange('su_trsf_shon1','VerifNum(this)');
2238 $form->setOnchange('su_trsf_shon2','VerifNum(this)');
2239 $form->setOnchange('su_trsf_shon3','VerifNum(this)');
2240 $form->setOnchange('su_trsf_shon4','VerifNum(this)');
2241 $form->setOnchange('su_trsf_shon5','VerifNum(this)');
2242 $form->setOnchange('su_trsf_shon6','VerifNum(this)');
2243 $form->setOnchange('su_trsf_shon7','VerifNum(this)');
2244 $form->setOnchange('su_trsf_shon8','VerifNum(this)');
2245 $form->setOnchange('su_trsf_shon9','VerifNum(this)');
2246 $form->setOnchange('su_chge_shon1','VerifNum(this)');
2247 $form->setOnchange('su_chge_shon2','VerifNum(this)');
2248 $form->setOnchange('su_chge_shon3','VerifNum(this)');
2249 $form->setOnchange('su_chge_shon4','VerifNum(this)');
2250 $form->setOnchange('su_chge_shon5','VerifNum(this)');
2251 $form->setOnchange('su_chge_shon6','VerifNum(this)');
2252 $form->setOnchange('su_chge_shon7','VerifNum(this)');
2253 $form->setOnchange('su_chge_shon8','VerifNum(this)');
2254 $form->setOnchange('su_chge_shon9','VerifNum(this)');
2255 $form->setOnchange('su_demo_shon1','VerifNum(this)');
2256 $form->setOnchange('su_demo_shon2','VerifNum(this)');
2257 $form->setOnchange('su_demo_shon3','VerifNum(this)');
2258 $form->setOnchange('su_demo_shon4','VerifNum(this)');
2259 $form->setOnchange('su_demo_shon5','VerifNum(this)');
2260 $form->setOnchange('su_demo_shon6','VerifNum(this)');
2261 $form->setOnchange('su_demo_shon7','VerifNum(this)');
2262 $form->setOnchange('su_demo_shon8','VerifNum(this)');
2263 $form->setOnchange('su_demo_shon9','VerifNum(this)');
2264 $form->setOnchange('su_sup_shon1','VerifNum(this)');
2265 $form->setOnchange('su_sup_shon2','VerifNum(this)');
2266 $form->setOnchange('su_sup_shon3','VerifNum(this)');
2267 $form->setOnchange('su_sup_shon4','VerifNum(this)');
2268 $form->setOnchange('su_sup_shon5','VerifNum(this)');
2269 $form->setOnchange('su_sup_shon6','VerifNum(this)');
2270 $form->setOnchange('su_sup_shon7','VerifNum(this)');
2271 $form->setOnchange('su_sup_shon8','VerifNum(this)');
2272 $form->setOnchange('su_sup_shon9','VerifNum(this)');
2273 $form->setOnchange('su_tot_shon1','VerifNum(this)');
2274 $form->setOnchange('su_tot_shon2','VerifNum(this)');
2275 $form->setOnchange('su_tot_shon3','VerifNum(this)');
2276 $form->setOnchange('su_tot_shon4','VerifNum(this)');
2277 $form->setOnchange('su_tot_shon5','VerifNum(this)');
2278 $form->setOnchange('su_tot_shon6','VerifNum(this)');
2279 $form->setOnchange('su_tot_shon7','VerifNum(this)');
2280 $form->setOnchange('su_tot_shon8','VerifNum(this)');
2281 $form->setOnchange('su_tot_shon9','VerifNum(this)');
2282 $form->setOnchange('su_avt_shon_tot','VerifNum(this)');
2283 $form->setOnchange('su_cstr_shon_tot','VerifNum(this)');
2284 $form->setOnchange('su_trsf_shon_tot','VerifNum(this)');
2285 $form->setOnchange('su_chge_shon_tot','VerifNum(this)');
2286 $form->setOnchange('su_demo_shon_tot','VerifNum(this)');
2287 $form->setOnchange('su_sup_shon_tot','VerifNum(this)');
2288 $form->setOnchange('su_tot_shon_tot','VerifNum(this)');
2289 $form->setOnchange('dm_tot_log_nb','VerifNum(this)');
2290 }
2291 /**
2292 * Methode setTaille
2293 */
2294 function setTaille(&$form, $maj) {
2295 $form->setTaille("donnees_techniques", 11);
2296 $form->setTaille("dossier_instruction", 20);
2297 $form->setTaille("lot", 11);
2298 $form->setTaille("interv_id", 11);
2299 $form->setTaille("am_lotiss", 1);
2300 $form->setTaille("am_autre_div", 1);
2301 $form->setTaille("am_camping", 1);
2302 $form->setTaille("am_caravane", 1);
2303 $form->setTaille("am_carav_duree", 11);
2304 $form->setTaille("am_statio", 1);
2305 $form->setTaille("am_statio_cont", 11);
2306 $form->setTaille("am_affou_exhau", 1);
2307 $form->setTaille("am_affou_prof", 10);
2308 $form->setTaille("am_exhau_haut", 10);
2309 $form->setTaille("am_coupe_abat", 1);
2310 $form->setTaille("am_prot_plu", 1);
2311 $form->setTaille("am_prot_muni", 1);
2312 $form->setTaille("am_mobil_voyage", 1);
2313 $form->setTaille("am_voyage_deb", 12);
2314 $form->setTaille("am_voyage_fin", 12);
2315 $form->setTaille("am_aire_voyage", 1);
2316 $form->setTaille("am_rememb_afu", 1);
2317 $form->setTaille("am_parc_resid_loi", 1);
2318 $form->setTaille("am_sport_moto", 1);
2319 $form->setTaille("am_sport_attrac", 1);
2320 $form->setTaille("am_sport_golf", 1);
2321 $form->setTaille("am_mob_art", 1);
2322 $form->setTaille("am_modif_voie_esp", 1);
2323 $form->setTaille("am_plant_voie_esp", 1);
2324 $form->setTaille("am_chem_ouv_esp", 1);
2325 $form->setTaille("am_agri_peche", 1);
2326 $form->setTaille("am_crea_voie", 1);
2327 $form->setTaille("am_modif_voie_exist", 1);
2328 $form->setTaille("am_crea_esp_sauv", 1);
2329 $form->setTaille("am_modif_amgt", 1);
2330 $form->setTaille("am_crea_esp_class", 1);
2331 $form->setTaille("am_projet_desc", 30);
2332 $form->setTaille("am_terr_surf", 11);
2333 $form->setTaille("am_tranche_desc", 30);
2334 $form->setTaille("am_lot_max_nb", 11);
2335 $form->setTaille("am_lot_max_shon", 11);
2336 $form->setTaille("am_lot_max_shob", 11);
2337 $form->setTaille("am_lot_cstr_cos", 1);
2338 $form->setTaille("am_lot_cstr_plan", 1);
2339 $form->setTaille("am_lot_cstr_vente", 1);
2340 $form->setTaille("am_lot_fin_diff", 1);
2341 $form->setTaille("am_lot_consign", 1);
2342 $form->setTaille("am_lot_gar_achev", 1);
2343 $form->setTaille("am_lot_vente_ant", 1);
2344 $form->setTaille("am_empl_nb", 11);
2345 $form->setTaille("am_tente_nb", 11);
2346 $form->setTaille("am_carav_nb", 11);
2347 $form->setTaille("am_mobil_nb", 11);
2348 $form->setTaille("am_pers_nb", 11);
2349 $form->setTaille("am_empl_hll_nb", 11);
2350 $form->setTaille("am_hll_shon", 11);
2351 $form->setTaille("am_periode_exploit", 30);
2352 $form->setTaille("am_exist_agrand", 1);
2353 $form->setTaille("am_exist_date", 12);
2354 $form->setTaille("am_exist_num", 30);
2355 $form->setTaille("am_exist_nb_avant", 11);
2356 $form->setTaille("am_exist_nb_apres", 11);
2357 $form->setTaille("am_coupe_bois", 1);
2358 $form->setTaille("am_coupe_parc", 1);
2359 $form->setTaille("am_coupe_align", 1);
2360 $form->setTaille("am_coupe_ess", 30);
2361 $form->setTaille("am_coupe_age", 15);
2362 $form->setTaille("am_coupe_dens", 30);
2363 $form->setTaille("am_coupe_qual", 30);
2364 $form->setTaille("am_coupe_trait", 30);
2365 $form->setTaille("am_coupe_autr", 30);
2366 $form->setTaille("co_archi_recours", 1);
2367 $form->setTaille("co_cstr_nouv", 1);
2368 $form->setTaille("co_cstr_exist", 1);
2369 $form->setTaille("co_modif_aspect", 1);
2370 $form->setTaille("co_modif_struct", 1);
2371 $form->setTaille("co_cloture", 1);
2372 $form->setTaille("co_ouvr_elec", 1);
2373 $form->setTaille("co_elec_tension", 11);
2374 $form->setTaille("co_ouvr_infra", 1);
2375 $form->setTaille("co_trx_imm", 1);
2376 $form->setTaille("co_div_terr", 1);
2377 $form->setTaille("co_projet_desc", 30);
2378 $form->setTaille("co_cstr_shob", 11);
2379 $form->setTaille("co_anx_pisc", 1);
2380 $form->setTaille("co_anx_gara", 1);
2381 $form->setTaille("co_anx_veran", 1);
2382 $form->setTaille("co_anx_abri", 1);
2383 $form->setTaille("co_anx_autr", 1);
2384 $form->setTaille("co_anx_autr_desc", 30);
2385 $form->setTaille("co_tot_log_nb", 11);
2386 $form->setTaille("co_tot_ind_nb", 11);
2387 $form->setTaille("co_tot_coll_nb", 11);
2388 $form->setTaille("co_mais_piece_nb", 11);
2389 $form->setTaille("co_mais_niv_nb", 11);
2390 $form->setTaille("co_fin_lls_nb", 11);
2391 $form->setTaille("co_fin_aa_nb", 11);
2392 $form->setTaille("co_fin_ptz_nb", 11);
2393 $form->setTaille("co_fin_autr_nb", 11);
2394 $form->setTaille("co_fin_autr_desc", 30);
2395 $form->setTaille("co_finan1_id", 11);
2396 $form->setTaille("co_finan1_nb", 11);
2397 $form->setTaille("co_finan2_id", 11);
2398 $form->setTaille("co_finan2_nb", 11);
2399 $form->setTaille("co_finan3_id", 11);
2400 $form->setTaille("co_finan3_nb", 11);
2401 $form->setTaille("co_finan4_id", 11);
2402 $form->setTaille("co_finan4_nb", 11);
2403 $form->setTaille("co_finan5_id", 11);
2404 $form->setTaille("co_finan5_nb", 11);
2405 $form->setTaille("co_mais_contrat_ind", 1);
2406 $form->setTaille("co_uti_pers", 1);
2407 $form->setTaille("co_uti_vente", 1);
2408 $form->setTaille("co_uti_loc", 1);
2409 $form->setTaille("co_uti_princ", 1);
2410 $form->setTaille("co_uti_secon", 1);
2411 $form->setTaille("co_resid_agees", 1);
2412 $form->setTaille("co_resid_etud", 1);
2413 $form->setTaille("co_resid_tourism", 1);
2414 $form->setTaille("co_resid_hot_soc", 1);
2415 $form->setTaille("co_resid_soc", 1);
2416 $form->setTaille("co_resid_hand", 1);
2417 $form->setTaille("co_resid_autr", 1);
2418 $form->setTaille("co_resid_autr_desc", 30);
2419 $form->setTaille("co_foyer_chamb_nb", 11);
2420 $form->setTaille("co_log_1p_nb", 11);
2421 $form->setTaille("co_log_2p_nb", 11);
2422 $form->setTaille("co_log_3p_nb", 11);
2423 $form->setTaille("co_log_4p_nb", 11);
2424 $form->setTaille("co_log_5p_nb", 11);
2425 $form->setTaille("co_log_6p_nb", 11);
2426 $form->setTaille("co_bat_niv_nb", 11);
2427 $form->setTaille("co_trx_exten", 1);
2428 $form->setTaille("co_trx_surelev", 1);
2429 $form->setTaille("co_trx_nivsup", 1);
2430 $form->setTaille("co_trx_amgt", 1);
2431 $form->setTaille("co_demont_periode", 30);
2432 $form->setTaille("co_sp_transport", 1);
2433 $form->setTaille("co_sp_enseign", 1);
2434 $form->setTaille("co_sp_act_soc", 1);
2435 $form->setTaille("co_sp_ouvr_spe", 1);
2436 $form->setTaille("co_sp_sante", 1);
2437 $form->setTaille("co_sp_culture", 1);
2438 $form->setTaille("co_statio_avt_nb", 11);
2439 $form->setTaille("co_statio_apr_nb", 11);
2440 $form->setTaille("co_statio_avt_shob", 11);
2441 $form->setTaille("co_statio_apr_shob", 11);
2442 $form->setTaille("co_statio_avt_surf", 11);
2443 $form->setTaille("co_statio_apr_surf", 11);
2444 $form->setTaille("co_statio_adr", 30);
2445 $form->setTaille("co_statio_place_nb", 11);
2446 $form->setTaille("co_statio_tot_surf", 11);
2447 $form->setTaille("co_statio_tot_shob", 11);
2448 $form->setTaille("su_avt_shon1", 11);
2449 $form->setTaille("su_avt_shon2", 11);
2450 $form->setTaille("su_avt_shon3", 11);
2451 $form->setTaille("su_avt_shon4", 11);
2452 $form->setTaille("su_avt_shon5", 11);
2453 $form->setTaille("su_avt_shon6", 11);
2454 $form->setTaille("su_avt_shon7", 11);
2455 $form->setTaille("su_avt_shon8", 11);
2456 $form->setTaille("su_avt_shon9", 11);
2457 $form->setTaille("su_cstr_shon1", 11);
2458 $form->setTaille("su_cstr_shon2", 11);
2459 $form->setTaille("su_cstr_shon3", 11);
2460 $form->setTaille("su_cstr_shon4", 11);
2461 $form->setTaille("su_cstr_shon5", 11);
2462 $form->setTaille("su_cstr_shon6", 11);
2463 $form->setTaille("su_cstr_shon7", 11);
2464 $form->setTaille("su_cstr_shon8", 11);
2465 $form->setTaille("su_cstr_shon9", 11);
2466 $form->setTaille("su_trsf_shon1", 11);
2467 $form->setTaille("su_trsf_shon2", 11);
2468 $form->setTaille("su_trsf_shon3", 11);
2469 $form->setTaille("su_trsf_shon4", 11);
2470 $form->setTaille("su_trsf_shon5", 11);
2471 $form->setTaille("su_trsf_shon6", 11);
2472 $form->setTaille("su_trsf_shon7", 11);
2473 $form->setTaille("su_trsf_shon8", 11);
2474 $form->setTaille("su_trsf_shon9", 11);
2475 $form->setTaille("su_chge_shon1", 11);
2476 $form->setTaille("su_chge_shon2", 11);
2477 $form->setTaille("su_chge_shon3", 11);
2478 $form->setTaille("su_chge_shon4", 11);
2479 $form->setTaille("su_chge_shon5", 11);
2480 $form->setTaille("su_chge_shon6", 11);
2481 $form->setTaille("su_chge_shon7", 11);
2482 $form->setTaille("su_chge_shon8", 11);
2483 $form->setTaille("su_chge_shon9", 11);
2484 $form->setTaille("su_demo_shon1", 11);
2485 $form->setTaille("su_demo_shon2", 11);
2486 $form->setTaille("su_demo_shon3", 11);
2487 $form->setTaille("su_demo_shon4", 11);
2488 $form->setTaille("su_demo_shon5", 11);
2489 $form->setTaille("su_demo_shon6", 11);
2490 $form->setTaille("su_demo_shon7", 11);
2491 $form->setTaille("su_demo_shon8", 11);
2492 $form->setTaille("su_demo_shon9", 11);
2493 $form->setTaille("su_sup_shon1", 11);
2494 $form->setTaille("su_sup_shon2", 11);
2495 $form->setTaille("su_sup_shon3", 11);
2496 $form->setTaille("su_sup_shon4", 11);
2497 $form->setTaille("su_sup_shon5", 11);
2498 $form->setTaille("su_sup_shon6", 11);
2499 $form->setTaille("su_sup_shon7", 11);
2500 $form->setTaille("su_sup_shon8", 11);
2501 $form->setTaille("su_sup_shon9", 11);
2502 $form->setTaille("su_tot_shon1", 11);
2503 $form->setTaille("su_tot_shon2", 11);
2504 $form->setTaille("su_tot_shon3", 11);
2505 $form->setTaille("su_tot_shon4", 11);
2506 $form->setTaille("su_tot_shon5", 11);
2507 $form->setTaille("su_tot_shon6", 11);
2508 $form->setTaille("su_tot_shon7", 11);
2509 $form->setTaille("su_tot_shon8", 11);
2510 $form->setTaille("su_tot_shon9", 11);
2511 $form->setTaille("su_avt_shon_tot", 11);
2512 $form->setTaille("su_cstr_shon_tot", 11);
2513 $form->setTaille("su_trsf_shon_tot", 11);
2514 $form->setTaille("su_chge_shon_tot", 11);
2515 $form->setTaille("su_demo_shon_tot", 11);
2516 $form->setTaille("su_sup_shon_tot", 11);
2517 $form->setTaille("su_tot_shon_tot", 11);
2518 $form->setTaille("dm_constr_dates", 30);
2519 $form->setTaille("dm_total", 1);
2520 $form->setTaille("dm_partiel", 1);
2521 $form->setTaille("dm_projet_desc", 30);
2522 $form->setTaille("dm_tot_log_nb", 11);
2523 $form->setTaille("code_cnil", 1);
2524 }
2525
2526 /**
2527 * Methode setMax
2528 */
2529 function setMax(&$form, $maj) {
2530 $form->setMax("donnees_techniques", 11);
2531 $form->setMax("dossier_instruction", 20);
2532 $form->setMax("lot", 11);
2533 $form->setMax("interv_id", 11);
2534 $form->setMax("am_lotiss", 1);
2535 $form->setMax("am_autre_div", 1);
2536 $form->setMax("am_camping", 1);
2537 $form->setMax("am_caravane", 1);
2538 $form->setMax("am_carav_duree", 11);
2539 $form->setMax("am_statio", 1);
2540 $form->setMax("am_statio_cont", 11);
2541 $form->setMax("am_affou_exhau", 1);
2542 $form->setMax("am_affou_prof", -5);
2543 $form->setMax("am_exhau_haut", -5);
2544 $form->setMax("am_coupe_abat", 1);
2545 $form->setMax("am_prot_plu", 1);
2546 $form->setMax("am_prot_muni", 1);
2547 $form->setMax("am_mobil_voyage", 1);
2548 $form->setMax("am_voyage_deb", 12);
2549 $form->setMax("am_voyage_fin", 12);
2550 $form->setMax("am_aire_voyage", 1);
2551 $form->setMax("am_rememb_afu", 1);
2552 $form->setMax("am_parc_resid_loi", 1);
2553 $form->setMax("am_sport_moto", 1);
2554 $form->setMax("am_sport_attrac", 1);
2555 $form->setMax("am_sport_golf", 1);
2556 $form->setMax("am_mob_art", 1);
2557 $form->setMax("am_modif_voie_esp", 1);
2558 $form->setMax("am_plant_voie_esp", 1);
2559 $form->setMax("am_chem_ouv_esp", 1);
2560 $form->setMax("am_agri_peche", 1);
2561 $form->setMax("am_crea_voie", 1);
2562 $form->setMax("am_modif_voie_exist", 1);
2563 $form->setMax("am_crea_esp_sauv", 1);
2564 $form->setMax("am_modif_amgt", 1);
2565 $form->setMax("am_crea_esp_class", 1);
2566 $form->setMax("am_projet_desc", 500);
2567 $form->setMax("am_terr_surf", 11);
2568 $form->setMax("am_tranche_desc", 100);
2569 $form->setMax("am_lot_max_nb", 11);
2570 $form->setMax("am_lot_max_shon", 11);
2571 $form->setMax("am_lot_max_shob", 11);
2572 $form->setMax("am_lot_cstr_cos", 1);
2573 $form->setMax("am_lot_cstr_plan", 1);
2574 $form->setMax("am_lot_cstr_vente", 1);
2575 $form->setMax("am_lot_fin_diff", 1);
2576 $form->setMax("am_lot_consign", 1);
2577 $form->setMax("am_lot_gar_achev", 1);
2578 $form->setMax("am_lot_vente_ant", 1);
2579 $form->setMax("am_empl_nb", 11);
2580 $form->setMax("am_tente_nb", 11);
2581 $form->setMax("am_carav_nb", 11);
2582 $form->setMax("am_mobil_nb", 11);
2583 $form->setMax("am_pers_nb", 11);
2584 $form->setMax("am_empl_hll_nb", 11);
2585 $form->setMax("am_hll_shon", 11);
2586 $form->setMax("am_periode_exploit", 100);
2587 $form->setMax("am_exist_agrand", 1);
2588 $form->setMax("am_exist_date", 12);
2589 $form->setMax("am_exist_num", 100);
2590 $form->setMax("am_exist_nb_avant", 11);
2591 $form->setMax("am_exist_nb_apres", 11);
2592 $form->setMax("am_coupe_bois", 1);
2593 $form->setMax("am_coupe_parc", 1);
2594 $form->setMax("am_coupe_align", 1);
2595 $form->setMax("am_coupe_ess", 100);
2596 $form->setMax("am_coupe_age", 15);
2597 $form->setMax("am_coupe_dens", 100);
2598 $form->setMax("am_coupe_qual", 100);
2599 $form->setMax("am_coupe_trait", 100);
2600 $form->setMax("am_coupe_autr", 100);
2601 $form->setMax("co_archi_recours", 1);
2602 $form->setMax("co_cstr_nouv", 1);
2603 $form->setMax("co_cstr_exist", 1);
2604 $form->setMax("co_modif_aspect", 1);
2605 $form->setMax("co_modif_struct", 1);
2606 $form->setMax("co_cloture", 1);
2607 $form->setMax("co_ouvr_elec", 1);
2608 $form->setMax("co_elec_tension", 11);
2609 $form->setMax("co_ouvr_infra", 1);
2610 $form->setMax("co_trx_imm", 1);
2611 $form->setMax("co_div_terr", 1);
2612 $form->setMax("co_projet_desc", 500);
2613 $form->setMax("co_cstr_shob", 11);
2614 $form->setMax("co_anx_pisc", 1);
2615 $form->setMax("co_anx_gara", 1);
2616 $form->setMax("co_anx_veran", 1);
2617 $form->setMax("co_anx_abri", 1);
2618 $form->setMax("co_anx_autr", 1);
2619 $form->setMax("co_anx_autr_desc", 100);
2620 $form->setMax("co_tot_log_nb", 11);
2621 $form->setMax("co_tot_ind_nb", 11);
2622 $form->setMax("co_tot_coll_nb", 11);
2623 $form->setMax("co_mais_piece_nb", 11);
2624 $form->setMax("co_mais_niv_nb", 11);
2625 $form->setMax("co_fin_lls_nb", 11);
2626 $form->setMax("co_fin_aa_nb", 11);
2627 $form->setMax("co_fin_ptz_nb", 11);
2628 $form->setMax("co_fin_autr_nb", 11);
2629 $form->setMax("co_fin_autr_desc", 100);
2630 $form->setMax("co_finan1_id", 11);
2631 $form->setMax("co_finan1_nb", 11);
2632 $form->setMax("co_finan2_id", 11);
2633 $form->setMax("co_finan2_nb", 11);
2634 $form->setMax("co_finan3_id", 11);
2635 $form->setMax("co_finan3_nb", 11);
2636 $form->setMax("co_finan4_id", 11);
2637 $form->setMax("co_finan4_nb", 11);
2638 $form->setMax("co_finan5_id", 11);
2639 $form->setMax("co_finan5_nb", 11);
2640 $form->setMax("co_mais_contrat_ind", 1);
2641 $form->setMax("co_uti_pers", 1);
2642 $form->setMax("co_uti_vente", 1);
2643 $form->setMax("co_uti_loc", 1);
2644 $form->setMax("co_uti_princ", 1);
2645 $form->setMax("co_uti_secon", 1);
2646 $form->setMax("co_resid_agees", 1);
2647 $form->setMax("co_resid_etud", 1);
2648 $form->setMax("co_resid_tourism", 1);
2649 $form->setMax("co_resid_hot_soc", 1);
2650 $form->setMax("co_resid_soc", 1);
2651 $form->setMax("co_resid_hand", 1);
2652 $form->setMax("co_resid_autr", 1);
2653 $form->setMax("co_resid_autr_desc", 100);
2654 $form->setMax("co_foyer_chamb_nb", 11);
2655 $form->setMax("co_log_1p_nb", 11);
2656 $form->setMax("co_log_2p_nb", 11);
2657 $form->setMax("co_log_3p_nb", 11);
2658 $form->setMax("co_log_4p_nb", 11);
2659 $form->setMax("co_log_5p_nb", 11);
2660 $form->setMax("co_log_6p_nb", 11);
2661 $form->setMax("co_bat_niv_nb", 11);
2662 $form->setMax("co_trx_exten", 1);
2663 $form->setMax("co_trx_surelev", 1);
2664 $form->setMax("co_trx_nivsup", 1);
2665 $form->setMax("co_trx_amgt", 1);
2666 $form->setMax("co_demont_periode", 100);
2667 $form->setMax("co_sp_transport", 1);
2668 $form->setMax("co_sp_enseign", 1);
2669 $form->setMax("co_sp_act_soc", 1);
2670 $form->setMax("co_sp_ouvr_spe", 1);
2671 $form->setMax("co_sp_sante", 1);
2672 $form->setMax("co_sp_culture", 1);
2673 $form->setMax("co_statio_avt_nb", 11);
2674 $form->setMax("co_statio_apr_nb", 11);
2675 $form->setMax("co_statio_avt_shob", 11);
2676 $form->setMax("co_statio_apr_shob", 11);
2677 $form->setMax("co_statio_avt_surf", 11);
2678 $form->setMax("co_statio_apr_surf", 11);
2679 $form->setMax("co_statio_adr", 250);
2680 $form->setMax("co_statio_place_nb", 11);
2681 $form->setMax("co_statio_tot_surf", 11);
2682 $form->setMax("co_statio_tot_shob", 11);
2683 $form->setMax("su_avt_shon1", 11);
2684 $form->setMax("su_avt_shon2", 11);
2685 $form->setMax("su_avt_shon3", 11);
2686 $form->setMax("su_avt_shon4", 11);
2687 $form->setMax("su_avt_shon5", 11);
2688 $form->setMax("su_avt_shon6", 11);
2689 $form->setMax("su_avt_shon7", 11);
2690 $form->setMax("su_avt_shon8", 11);
2691 $form->setMax("su_avt_shon9", 11);
2692 $form->setMax("su_cstr_shon1", 11);
2693 $form->setMax("su_cstr_shon2", 11);
2694 $form->setMax("su_cstr_shon3", 11);
2695 $form->setMax("su_cstr_shon4", 11);
2696 $form->setMax("su_cstr_shon5", 11);
2697 $form->setMax("su_cstr_shon6", 11);
2698 $form->setMax("su_cstr_shon7", 11);
2699 $form->setMax("su_cstr_shon8", 11);
2700 $form->setMax("su_cstr_shon9", 11);
2701 $form->setMax("su_trsf_shon1", 11);
2702 $form->setMax("su_trsf_shon2", 11);
2703 $form->setMax("su_trsf_shon3", 11);
2704 $form->setMax("su_trsf_shon4", 11);
2705 $form->setMax("su_trsf_shon5", 11);
2706 $form->setMax("su_trsf_shon6", 11);
2707 $form->setMax("su_trsf_shon7", 11);
2708 $form->setMax("su_trsf_shon8", 11);
2709 $form->setMax("su_trsf_shon9", 11);
2710 $form->setMax("su_chge_shon1", 11);
2711 $form->setMax("su_chge_shon2", 11);
2712 $form->setMax("su_chge_shon3", 11);
2713 $form->setMax("su_chge_shon4", 11);
2714 $form->setMax("su_chge_shon5", 11);
2715 $form->setMax("su_chge_shon6", 11);
2716 $form->setMax("su_chge_shon7", 11);
2717 $form->setMax("su_chge_shon8", 11);
2718 $form->setMax("su_chge_shon9", 11);
2719 $form->setMax("su_demo_shon1", 11);
2720 $form->setMax("su_demo_shon2", 11);
2721 $form->setMax("su_demo_shon3", 11);
2722 $form->setMax("su_demo_shon4", 11);
2723 $form->setMax("su_demo_shon5", 11);
2724 $form->setMax("su_demo_shon6", 11);
2725 $form->setMax("su_demo_shon7", 11);
2726 $form->setMax("su_demo_shon8", 11);
2727 $form->setMax("su_demo_shon9", 11);
2728 $form->setMax("su_sup_shon1", 11);
2729 $form->setMax("su_sup_shon2", 11);
2730 $form->setMax("su_sup_shon3", 11);
2731 $form->setMax("su_sup_shon4", 11);
2732 $form->setMax("su_sup_shon5", 11);
2733 $form->setMax("su_sup_shon6", 11);
2734 $form->setMax("su_sup_shon7", 11);
2735 $form->setMax("su_sup_shon8", 11);
2736 $form->setMax("su_sup_shon9", 11);
2737 $form->setMax("su_tot_shon1", 11);
2738 $form->setMax("su_tot_shon2", 11);
2739 $form->setMax("su_tot_shon3", 11);
2740 $form->setMax("su_tot_shon4", 11);
2741 $form->setMax("su_tot_shon5", 11);
2742 $form->setMax("su_tot_shon6", 11);
2743 $form->setMax("su_tot_shon7", 11);
2744 $form->setMax("su_tot_shon8", 11);
2745 $form->setMax("su_tot_shon9", 11);
2746 $form->setMax("su_avt_shon_tot", 11);
2747 $form->setMax("su_cstr_shon_tot", 11);
2748 $form->setMax("su_trsf_shon_tot", 11);
2749 $form->setMax("su_chge_shon_tot", 11);
2750 $form->setMax("su_demo_shon_tot", 11);
2751 $form->setMax("su_sup_shon_tot", 11);
2752 $form->setMax("su_tot_shon_tot", 11);
2753 $form->setMax("dm_constr_dates", 100);
2754 $form->setMax("dm_total", 1);
2755 $form->setMax("dm_partiel", 1);
2756 $form->setMax("dm_projet_desc", 500);
2757 $form->setMax("dm_tot_log_nb", 11);
2758 $form->setMax("code_cnil", 1);
2759 }
2760
2761
2762 function setLib(&$form,$maj) {
2763 //libelle des champs
2764 $form->setLib('donnees_techniques',_('donnees_techniques'));
2765 $form->setLib('dossier_instruction',_('dossier_instruction'));
2766 $form->setLib('lot',_('lot'));
2767 $form->setLib('interv_id',_('interv_id'));
2768 $form->setLib('am_lotiss',_('am_lotiss'));
2769 $form->setLib('am_autre_div',_('am_autre_div'));
2770 $form->setLib('am_camping',_('am_camping'));
2771 $form->setLib('am_caravane',_('am_caravane'));
2772 $form->setLib('am_carav_duree',_('am_carav_duree'));
2773 $form->setLib('am_statio',_('am_statio'));
2774 $form->setLib('am_statio_cont',_('am_statio_cont'));
2775 $form->setLib('am_affou_exhau',_('am_affou_exhau'));
2776 $form->setLib('am_affou_prof',_('am_affou_prof'));
2777 $form->setLib('am_exhau_haut',_('am_exhau_haut'));
2778 $form->setLib('am_coupe_abat',_('am_coupe_abat'));
2779 $form->setLib('am_prot_plu',_('am_prot_plu'));
2780 $form->setLib('am_prot_muni',_('am_prot_muni'));
2781 $form->setLib('am_mobil_voyage',_('am_mobil_voyage'));
2782 $form->setLib('am_voyage_deb',_('am_voyage_deb'));
2783 $form->setLib('am_voyage_fin',_('am_voyage_fin'));
2784 $form->setLib('am_aire_voyage',_('am_aire_voyage'));
2785 $form->setLib('am_rememb_afu',_('am_rememb_afu'));
2786 $form->setLib('am_parc_resid_loi',_('am_parc_resid_loi'));
2787 $form->setLib('am_sport_moto',_('am_sport_moto'));
2788 $form->setLib('am_sport_attrac',_('am_sport_attrac'));
2789 $form->setLib('am_sport_golf',_('am_sport_golf'));
2790 $form->setLib('am_mob_art',_('am_mob_art'));
2791 $form->setLib('am_modif_voie_esp',_('am_modif_voie_esp'));
2792 $form->setLib('am_plant_voie_esp',_('am_plant_voie_esp'));
2793 $form->setLib('am_chem_ouv_esp',_('am_chem_ouv_esp'));
2794 $form->setLib('am_agri_peche',_('am_agri_peche'));
2795 $form->setLib('am_crea_voie',_('am_crea_voie'));
2796 $form->setLib('am_modif_voie_exist',_('am_modif_voie_exist'));
2797 $form->setLib('am_crea_esp_sauv',_('am_crea_esp_sauv'));
2798 $form->setLib('am_modif_amgt',_('am_modif_amgt'));
2799 $form->setLib('am_crea_esp_class',_('am_crea_esp_class'));
2800 $form->setLib('am_projet_desc',_('am_projet_desc'));
2801 $form->setLib('am_terr_surf',_('am_terr_surf'));
2802 $form->setLib('am_tranche_desc',_('am_tranche_desc'));
2803 $form->setLib('am_lot_max_nb',_('am_lot_max_nb'));
2804 $form->setLib('am_lot_max_shon',_('am_lot_max_shon'));
2805 $form->setLib('am_lot_max_shob',_('am_lot_max_shob'));
2806 $form->setLib('am_lot_cstr_cos',_('am_lot_cstr_cos'));
2807 $form->setLib('am_lot_cstr_plan',_('am_lot_cstr_plan'));
2808 $form->setLib('am_lot_cstr_vente',_('am_lot_cstr_vente'));
2809 $form->setLib('am_lot_fin_diff',_('am_lot_fin_diff'));
2810 $form->setLib('am_lot_consign',_('am_lot_consign'));
2811 $form->setLib('am_lot_gar_achev',_('am_lot_gar_achev'));
2812 $form->setLib('am_lot_vente_ant',_('am_lot_vente_ant'));
2813 $form->setLib('am_empl_nb',_('am_empl_nb'));
2814 $form->setLib('am_tente_nb',_('am_tente_nb'));
2815 $form->setLib('am_carav_nb',_('am_carav_nb'));
2816 $form->setLib('am_mobil_nb',_('am_mobil_nb'));
2817 $form->setLib('am_pers_nb',_('am_pers_nb'));
2818 $form->setLib('am_empl_hll_nb',_('am_empl_hll_nb'));
2819 $form->setLib('am_hll_shon',_('am_hll_shon'));
2820 $form->setLib('am_periode_exploit',_('am_periode_exploit'));
2821 $form->setLib('am_exist_agrand',_('am_exist_agrand'));
2822 $form->setLib('am_exist_date',_('am_exist_date'));
2823 $form->setLib('am_exist_num',_('am_exist_num'));
2824 $form->setLib('am_exist_nb_avant',_('am_exist_nb_avant'));
2825 $form->setLib('am_exist_nb_apres',_('am_exist_nb_apres'));
2826 $form->setLib('am_coupe_bois',_('am_coupe_bois'));
2827 $form->setLib('am_coupe_parc',_('am_coupe_parc'));
2828 $form->setLib('am_coupe_align',_('am_coupe_align'));
2829 $form->setLib('am_coupe_ess',_('am_coupe_ess'));
2830 $form->setLib('am_coupe_age',_('am_coupe_age'));
2831 $form->setLib('am_coupe_dens',_('am_coupe_dens'));
2832 $form->setLib('am_coupe_qual',_('am_coupe_qual'));
2833 $form->setLib('am_coupe_trait',_('am_coupe_trait'));
2834 $form->setLib('am_coupe_autr',_('am_coupe_autr'));
2835 $form->setLib('co_archi_recours',_('co_archi_recours'));
2836 $form->setLib('co_cstr_nouv',_('co_cstr_nouv'));
2837 $form->setLib('co_cstr_exist',_('co_cstr_exist'));
2838 $form->setLib('co_modif_aspect',_('co_modif_aspect'));
2839 $form->setLib('co_modif_struct',_('co_modif_struct'));
2840 $form->setLib('co_cloture',_('co_cloture'));
2841 $form->setLib('co_ouvr_elec',_('co_ouvr_elec'));
2842 $form->setLib('co_elec_tension',_('co_elec_tension'));
2843 $form->setLib('co_ouvr_infra',_('co_ouvr_infra'));
2844 $form->setLib('co_trx_imm',_('co_trx_imm'));
2845 $form->setLib('co_div_terr',_('co_div_terr'));
2846 $form->setLib('co_projet_desc',_('co_projet_desc'));
2847 $form->setLib('co_cstr_shob',_('co_cstr_shob'));
2848 $form->setLib('co_anx_pisc',_('co_anx_pisc'));
2849 $form->setLib('co_anx_gara',_('co_anx_gara'));
2850 $form->setLib('co_anx_veran',_('co_anx_veran'));
2851 $form->setLib('co_anx_abri',_('co_anx_abri'));
2852 $form->setLib('co_anx_autr',_('co_anx_autr'));
2853 $form->setLib('co_anx_autr_desc',_('co_anx_autr_desc'));
2854 $form->setLib('co_tot_log_nb',_('co_tot_log_nb'));
2855 $form->setLib('co_tot_ind_nb',_('co_tot_ind_nb'));
2856 $form->setLib('co_tot_coll_nb',_('co_tot_coll_nb'));
2857 $form->setLib('co_mais_piece_nb',_('co_mais_piece_nb'));
2858 $form->setLib('co_mais_niv_nb',_('co_mais_niv_nb'));
2859 $form->setLib('co_fin_lls_nb',_('co_fin_lls_nb'));
2860 $form->setLib('co_fin_aa_nb',_('co_fin_aa_nb'));
2861 $form->setLib('co_fin_ptz_nb',_('co_fin_ptz_nb'));
2862 $form->setLib('co_fin_autr_nb',_('co_fin_autr_nb'));
2863 $form->setLib('co_fin_autr_desc',_('co_fin_autr_desc'));
2864 $form->setLib('co_finan1_id',_('co_finan1_id'));
2865 $form->setLib('co_finan1_nb',_('co_finan1_nb'));
2866 $form->setLib('co_finan2_id',_('co_finan2_id'));
2867 $form->setLib('co_finan2_nb',_('co_finan2_nb'));
2868 $form->setLib('co_finan3_id',_('co_finan3_id'));
2869 $form->setLib('co_finan3_nb',_('co_finan3_nb'));
2870 $form->setLib('co_finan4_id',_('co_finan4_id'));
2871 $form->setLib('co_finan4_nb',_('co_finan4_nb'));
2872 $form->setLib('co_finan5_id',_('co_finan5_id'));
2873 $form->setLib('co_finan5_nb',_('co_finan5_nb'));
2874 $form->setLib('co_mais_contrat_ind',_('co_mais_contrat_ind'));
2875 $form->setLib('co_uti_pers',_('co_uti_pers'));
2876 $form->setLib('co_uti_vente',_('co_uti_vente'));
2877 $form->setLib('co_uti_loc',_('co_uti_loc'));
2878 $form->setLib('co_uti_princ',_('co_uti_princ'));
2879 $form->setLib('co_uti_secon',_('co_uti_secon'));
2880 $form->setLib('co_resid_agees',_('co_resid_agees'));
2881 $form->setLib('co_resid_etud',_('co_resid_etud'));
2882 $form->setLib('co_resid_tourism',_('co_resid_tourism'));
2883 $form->setLib('co_resid_hot_soc',_('co_resid_hot_soc'));
2884 $form->setLib('co_resid_soc',_('co_resid_soc'));
2885 $form->setLib('co_resid_hand',_('co_resid_hand'));
2886 $form->setLib('co_resid_autr',_('co_resid_autr'));
2887 $form->setLib('co_resid_autr_desc',_('co_resid_autr_desc'));
2888 $form->setLib('co_foyer_chamb_nb',_('co_foyer_chamb_nb'));
2889 $form->setLib('co_log_1p_nb',_('co_log_1p_nb'));
2890 $form->setLib('co_log_2p_nb',_('co_log_2p_nb'));
2891 $form->setLib('co_log_3p_nb',_('co_log_3p_nb'));
2892 $form->setLib('co_log_4p_nb',_('co_log_4p_nb'));
2893 $form->setLib('co_log_5p_nb',_('co_log_5p_nb'));
2894 $form->setLib('co_log_6p_nb',_('co_log_6p_nb'));
2895 $form->setLib('co_bat_niv_nb',_('co_bat_niv_nb'));
2896 $form->setLib('co_trx_exten',_('co_trx_exten'));
2897 $form->setLib('co_trx_surelev',_('co_trx_surelev'));
2898 $form->setLib('co_trx_nivsup',_('co_trx_nivsup'));
2899 $form->setLib('co_trx_amgt',_('co_trx_amgt'));
2900 $form->setLib('co_demont_periode',_('co_demont_periode'));
2901 $form->setLib('co_sp_transport',_('co_sp_transport'));
2902 $form->setLib('co_sp_enseign',_('co_sp_enseign'));
2903 $form->setLib('co_sp_act_soc',_('co_sp_act_soc'));
2904 $form->setLib('co_sp_ouvr_spe',_('co_sp_ouvr_spe'));
2905 $form->setLib('co_sp_sante',_('co_sp_sante'));
2906 $form->setLib('co_sp_culture',_('co_sp_culture'));
2907 $form->setLib('co_statio_avt_nb',_('co_statio_avt_nb'));
2908 $form->setLib('co_statio_apr_nb',_('co_statio_apr_nb'));
2909 $form->setLib('co_statio_avt_shob',_('co_statio_avt_shob'));
2910 $form->setLib('co_statio_apr_shob',_('co_statio_apr_shob'));
2911 $form->setLib('co_statio_avt_surf',_('co_statio_avt_surf'));
2912 $form->setLib('co_statio_apr_surf',_('co_statio_apr_surf'));
2913 $form->setLib('co_statio_adr',_('co_statio_adr'));
2914 $form->setLib('co_statio_place_nb',_('co_statio_place_nb'));
2915 $form->setLib('co_statio_tot_surf',_('co_statio_tot_surf'));
2916 $form->setLib('co_statio_tot_shob',_('co_statio_tot_shob'));
2917 $form->setLib('su_avt_shon1',_('su_avt_shon1'));
2918 $form->setLib('su_avt_shon2',_('su_avt_shon2'));
2919 $form->setLib('su_avt_shon3',_('su_avt_shon3'));
2920 $form->setLib('su_avt_shon4',_('su_avt_shon4'));
2921 $form->setLib('su_avt_shon5',_('su_avt_shon5'));
2922 $form->setLib('su_avt_shon6',_('su_avt_shon6'));
2923 $form->setLib('su_avt_shon7',_('su_avt_shon7'));
2924 $form->setLib('su_avt_shon8',_('su_avt_shon8'));
2925 $form->setLib('su_avt_shon9',_('su_avt_shon9'));
2926 $form->setLib('su_cstr_shon1',_('su_cstr_shon1'));
2927 $form->setLib('su_cstr_shon2',_('su_cstr_shon2'));
2928 $form->setLib('su_cstr_shon3',_('su_cstr_shon3'));
2929 $form->setLib('su_cstr_shon4',_('su_cstr_shon4'));
2930 $form->setLib('su_cstr_shon5',_('su_cstr_shon5'));
2931 $form->setLib('su_cstr_shon6',_('su_cstr_shon6'));
2932 $form->setLib('su_cstr_shon7',_('su_cstr_shon7'));
2933 $form->setLib('su_cstr_shon8',_('su_cstr_shon8'));
2934 $form->setLib('su_cstr_shon9',_('su_cstr_shon9'));
2935 $form->setLib('su_trsf_shon1',_('su_trsf_shon1'));
2936 $form->setLib('su_trsf_shon2',_('su_trsf_shon2'));
2937 $form->setLib('su_trsf_shon3',_('su_trsf_shon3'));
2938 $form->setLib('su_trsf_shon4',_('su_trsf_shon4'));
2939 $form->setLib('su_trsf_shon5',_('su_trsf_shon5'));
2940 $form->setLib('su_trsf_shon6',_('su_trsf_shon6'));
2941 $form->setLib('su_trsf_shon7',_('su_trsf_shon7'));
2942 $form->setLib('su_trsf_shon8',_('su_trsf_shon8'));
2943 $form->setLib('su_trsf_shon9',_('su_trsf_shon9'));
2944 $form->setLib('su_chge_shon1',_('su_chge_shon1'));
2945 $form->setLib('su_chge_shon2',_('su_chge_shon2'));
2946 $form->setLib('su_chge_shon3',_('su_chge_shon3'));
2947 $form->setLib('su_chge_shon4',_('su_chge_shon4'));
2948 $form->setLib('su_chge_shon5',_('su_chge_shon5'));
2949 $form->setLib('su_chge_shon6',_('su_chge_shon6'));
2950 $form->setLib('su_chge_shon7',_('su_chge_shon7'));
2951 $form->setLib('su_chge_shon8',_('su_chge_shon8'));
2952 $form->setLib('su_chge_shon9',_('su_chge_shon9'));
2953 $form->setLib('su_demo_shon1',_('su_demo_shon1'));
2954 $form->setLib('su_demo_shon2',_('su_demo_shon2'));
2955 $form->setLib('su_demo_shon3',_('su_demo_shon3'));
2956 $form->setLib('su_demo_shon4',_('su_demo_shon4'));
2957 $form->setLib('su_demo_shon5',_('su_demo_shon5'));
2958 $form->setLib('su_demo_shon6',_('su_demo_shon6'));
2959 $form->setLib('su_demo_shon7',_('su_demo_shon7'));
2960 $form->setLib('su_demo_shon8',_('su_demo_shon8'));
2961 $form->setLib('su_demo_shon9',_('su_demo_shon9'));
2962 $form->setLib('su_sup_shon1',_('su_sup_shon1'));
2963 $form->setLib('su_sup_shon2',_('su_sup_shon2'));
2964 $form->setLib('su_sup_shon3',_('su_sup_shon3'));
2965 $form->setLib('su_sup_shon4',_('su_sup_shon4'));
2966 $form->setLib('su_sup_shon5',_('su_sup_shon5'));
2967 $form->setLib('su_sup_shon6',_('su_sup_shon6'));
2968 $form->setLib('su_sup_shon7',_('su_sup_shon7'));
2969 $form->setLib('su_sup_shon8',_('su_sup_shon8'));
2970 $form->setLib('su_sup_shon9',_('su_sup_shon9'));
2971 $form->setLib('su_tot_shon1',_('su_tot_shon1'));
2972 $form->setLib('su_tot_shon2',_('su_tot_shon2'));
2973 $form->setLib('su_tot_shon3',_('su_tot_shon3'));
2974 $form->setLib('su_tot_shon4',_('su_tot_shon4'));
2975 $form->setLib('su_tot_shon5',_('su_tot_shon5'));
2976 $form->setLib('su_tot_shon6',_('su_tot_shon6'));
2977 $form->setLib('su_tot_shon7',_('su_tot_shon7'));
2978 $form->setLib('su_tot_shon8',_('su_tot_shon8'));
2979 $form->setLib('su_tot_shon9',_('su_tot_shon9'));
2980 $form->setLib('su_avt_shon_tot',_('su_avt_shon_tot'));
2981 $form->setLib('su_cstr_shon_tot',_('su_cstr_shon_tot'));
2982 $form->setLib('su_trsf_shon_tot',_('su_trsf_shon_tot'));
2983 $form->setLib('su_chge_shon_tot',_('su_chge_shon_tot'));
2984 $form->setLib('su_demo_shon_tot',_('su_demo_shon_tot'));
2985 $form->setLib('su_sup_shon_tot',_('su_sup_shon_tot'));
2986 $form->setLib('su_tot_shon_tot',_('su_tot_shon_tot'));
2987 $form->setLib('dm_constr_dates',_('dm_constr_dates'));
2988 $form->setLib('dm_total',_('dm_total'));
2989 $form->setLib('dm_partiel',_('dm_partiel'));
2990 $form->setLib('dm_projet_desc',_('dm_projet_desc'));
2991 $form->setLib('dm_tot_log_nb',_('dm_tot_log_nb'));
2992 $form->setLib('code_cnil',_('code_cnil'));
2993 }
2994
2995 function setSelect(&$form, $maj,&$db,$debug) {
2996 if(file_exists ("../sql/".$db->phptype."/".$this->table.".form.inc.php"))
2997 include ("../sql/".$db->phptype."/".$this->table.".form.inc.php");
2998 elseif(file_exists ("../sql/".$db->phptype."/".$this->table.".form.inc"))
2999 include ("../sql/".$db->phptype."/".$this->table.".form.inc");
3000
3001 // dossier_instruction
3002 $this->init_select($form, $db, $maj, $debug, "dossier_instruction",
3003 $sql_dossier_instruction, $sql_dossier_instruction_by_id, false);
3004
3005 // lot
3006 $this->init_select($form, $db, $maj, $debug, "lot",
3007 $sql_lot, $sql_lot_by_id, false);
3008 }// fin select
3009
3010 //==================================
3011 // sous Formulaire [subform]
3012 //==================================
3013
3014 function setValsousformulaire(&$form,$maj,$validation,$idxformulaire,$retourformulaire,$typeformulaire,&$db,$DEBUG=null){
3015 $this->retourformulaire = $retourformulaire;
3016 if($validation == 0) {
3017 if($retourformulaire =='dossier')
3018 $form->setVal('dossier_instruction', $idxformulaire);
3019 if($retourformulaire =='lot')
3020 $form->setVal('lot', $idxformulaire);
3021 }// fin validation
3022 }// fin setValsousformulaire
3023
3024 //==================================
3025 // cle secondaire [secondary key]
3026 //==================================
3027
3028 }// fin classe
3029 ?>

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26