/[openfoncier]/trunk/obj/cerfa.class.php
ViewVC logotype

Annotation of /trunk/obj/cerfa.class.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4777 - (hide annotations)
Wed Jul 27 10:12:28 2016 UTC (8 years, 6 months ago) by nhaye
File size: 39760 byte(s)
Merge la branche evo-ws-dossier-instruction 

1 mbroquet 3730 <?php
2     //$Id: cerfa.class.php 5856 2016-02-03 11:35:25Z stimezouaght $
3     //gen openMairie le 13/02/2013 14:41
4    
5     require_once ("../gen/obj/cerfa.class.php");
6    
7     class cerfa extends cerfa_gen {
8    
9     function cerfa($id,&$db,$debug) {
10     $this->constructeur($id,$db,$debug);
11     }// fin constructeur
12    
13    
14     function setType(&$form,$maj) {
15     parent::setType($form,$maj);
16    
17    
18     //Ajout des select sur les tableaux
19     if($maj == 0) {
20    
21     $form->setType('tab_surface', 'select');
22 softime 4636 $form->setType('tab_surface2', 'select');
23 mbroquet 3730 $form->setType('tab_tax_su_princ', 'select');
24     $form->setType('tab_tax_su_heber', 'select');
25     $form->setType('tab_tax_su_secon', 'select');
26     $form->setType('tab_tax_su_tot', 'select');
27     $form->setType('tab_tax_su_non_habit_surf', 'select');
28     $form->setType('tab_tax_su_parc_statio_expl_comm', 'select');
29     $form->setType('tab_tax_am', 'select');
30     $form->setType('tab_erp_eff', 'select');
31     }elseif($maj == 1) {
32    
33     $form->setType('tab_surface', 'select');
34 softime 4636 $form->setType('tab_surface2', 'select');
35 mbroquet 3730 $form->setType('tab_tax_su_princ', 'select');
36     $form->setType('tab_tax_su_heber', 'select');
37     $form->setType('tab_tax_su_secon', 'select');
38     $form->setType('tab_tax_su_tot', 'select');
39     $form->setType('tab_tax_su_non_habit_surf', 'select');
40     $form->setType('tab_tax_su_parc_statio_expl_comm', 'select');
41     $form->setType('tab_tax_am', 'select');
42     $form->setType('tab_erp_eff', 'select');
43     }elseif($maj == 2) {
44    
45     $form->setType('tab_surface', 'selecthiddenstatic');
46 softime 4636 $form->setType('tab_surface2', 'selecthiddenstatic');
47 mbroquet 3730 $form->setType('tab_tax_su_princ', 'selecthiddenstatic');
48     $form->setType('tab_tax_su_heber', 'selecthiddenstatic');
49     $form->setType('tab_tax_su_secon', 'selecthiddenstatic');
50     $form->setType('tab_tax_su_tot', 'selecthiddenstatic');
51     $form->setType('tab_tax_su_non_habit_surf', 'selecthiddenstatic');
52     $form->setType('tab_tax_su_parc_statio_expl_comm', 'selecthiddenstatic');
53     $form->setType('tab_tax_am', 'selecthiddenstatic');
54     $form->setType('tab_erp_eff', 'selecthiddenstatic');
55     }elseif($maj == 3) {
56    
57     $form->setType('tab_surface', 'selecthiddenstatic');
58 softime 4636 $form->setType('tab_surface2', 'selecthiddenstatic');
59 mbroquet 3730 $form->setType('tab_tax_su_princ', 'selecthiddenstatic');
60     $form->setType('tab_tax_su_heber', 'selecthiddenstatic');
61     $form->setType('tab_tax_su_secon', 'selecthiddenstatic');
62     $form->setType('tab_tax_su_tot', 'selecthiddenstatic');
63     $form->setType('tab_tax_su_non_habit_surf', 'selecthiddenstatic');
64     $form->setType('tab_tax_su_parc_statio_expl_comm', 'selecthiddenstatic');
65     $form->setType('tab_tax_am', 'selecthiddenstatic');
66     $form->setType('tab_erp_eff', 'selecthiddenstatic');
67     }
68     $form->setType('co_statio_avt_shob', 'hidden');
69     $form->setType('co_statio_apr_shob', 'hidden');
70     $form->setType('co_statio_avt_surf', 'hidden');
71     $form->setType('co_statio_apr_surf', 'hidden');
72     $form->setType('co_trx_amgt', 'hidden');
73     $form->setType('co_modif_aspect', 'hidden');
74     $form->setType('co_modif_struct', 'hidden');
75     $form->setType('co_trx_imm', 'hidden');
76     $form->setType('co_cstr_shob', 'hidden');
77     $form->setType('am_voyage_deb', 'hidden');
78     $form->setType('am_voyage_fin', 'hidden');
79     $form->setType('am_modif_amgt', 'hidden');
80     $form->setType('am_lot_max_shob', 'hidden');
81     $form->setType('mod_desc', 'hidden');
82     $form->setType('tr_total', 'hidden');
83     $form->setType('tr_partiel', 'hidden');
84     $form->setType('tr_desc', 'hidden');
85     $form->setType('avap_co_clot', 'hidden');
86     $form->setType('avap_aut_coup_aba_arb', 'hidden');
87     $form->setType('avap_ouv_infra', 'hidden');
88     $form->setType('avap_aut_inst_mob', 'hidden');
89     $form->setType('avap_aut_plant', 'hidden');
90     $form->setType('avap_aut_auv_elec', 'hidden');
91     $form->setType('tax_dest_loc_tr', 'hidden');
92     }
93    
94     function setSelect(&$form, $maj,&$db,$debug) {
95     parent::setSelect($form, $maj,$db,$debug);
96    
97     if(file_exists ("../sql/".OM_DB_PHPTYPE."/".$this->table.".form.inc.php"))
98     include ("../sql/".OM_DB_PHPTYPE."/".$this->table.".form.inc.php");
99     elseif(file_exists ("../sql/".OM_DB_PHPTYPE."/".$this->table.".form.inc"))
100     include ("../sql/".OM_DB_PHPTYPE."/".$this->table.".form.inc");
101    
102     // parametrage du tableau de surface
103     $contenu=array();
104     $contenu[0]=array_keys($tab_surface);
105     $contenu[1]=array_values($tab_surface);
106     $form->setSelect("tab_surface",$contenu);
107    
108 softime 4636 $contenu=array();
109     $contenu[0]=array_keys($tab_surface2);
110     $contenu[1]=array_values($tab_surface2);
111     $form->setSelect("tab_surface2",$contenu);
112    
113 mbroquet 3730 $contenu[0]=array_keys($tab_tax_su_princ);
114     $contenu[1]=array_values($tab_tax_su_princ);
115     $form->setSelect("tab_tax_su_princ",$contenu);
116    
117     $contenu[0]=array_keys($tab_tax_su_heber);
118     $contenu[1]=array_values($tab_tax_su_heber);
119     $form->setSelect("tab_tax_su_heber",$contenu);
120    
121     $contenu[0]=array_keys($tab_tax_su_secon);
122     $contenu[1]=array_values($tab_tax_su_secon);
123     $form->setSelect("tab_tax_su_secon",$contenu);
124    
125     $contenu[0]=array_keys($tab_tax_su_tot);
126     $contenu[1]=array_values($tab_tax_su_tot);
127     $form->setSelect("tab_tax_su_tot",$contenu);
128    
129     $contenu[0]=array_keys($tab_tax_su_non_habit_surf);
130     $contenu[1]=array_values($tab_tax_su_non_habit_surf);
131     $form->setSelect("tab_tax_su_non_habit_surf",$contenu);
132    
133     $contenu=array();
134     $contenu[0]=array_keys($tab_tax_su_parc_statio_expl_comm);
135     $contenu[1]=array_values($tab_tax_su_parc_statio_expl_comm);
136     $form->setSelect("tab_tax_su_parc_statio_expl_comm",$contenu);
137    
138     $contenu[0]=array_keys($tab_tax_am);
139     $contenu[1]=array_values($tab_tax_am);
140     $form->setSelect("tab_tax_am",$contenu);
141    
142     $contenu=array();
143     $contenu[0]=array_keys($tab_erp_eff);
144     $contenu[1]=array_values($tab_erp_eff);
145     $form->setSelect("tab_erp_eff", $contenu);
146     }
147    
148     function setLayout(&$form, $maj) {
149    
150     /*Fieldset Parametrage du cerfa */
151     $form->setBloc('cerfa','D',"","col_12");
152     $form->setFieldset('cerfa','D'
153     ,_("Parametrage du cerfa"), "col_12");
154    
155     $form->setFieldset('om_validite_fin','F','');
156     $form->setBloc('om_validite_fin','F');
157    
158     // Terrain
159    
160     $form->setBloc('terr_juri_titul','D',"","col_12 alignFormSpec");
161     $form->setFieldset('terr_juri_titul','D'
162     ,_("Terrain"), "startClosed");
163    
164     $form->setBloc('terr_juri_titul','DF',_("Situation juridique du terrain"), "group");
165     $form->setBloc('terr_juri_lot','DF',"", "group");
166     $form->setBloc('terr_juri_zac','DF',"", "group");
167     $form->setBloc('terr_juri_afu','DF',"", "group");
168     $form->setBloc('terr_juri_pup','DF',"", "group");
169     $form->setBloc('terr_juri_oin','DF',"", "group");
170     $form->setBloc('terr_juri_desc','DF',"", "group");
171     $form->setBloc('terr_div_surf_etab','DF',_("Terrain issu d'une division de propriete"), "group");
172     $form->setBloc('terr_div_surf_av_div','DF',"", "group");
173    
174     $form->setFieldset('terr_div_surf_av_div','F','');
175    
176     $form->setBloc('terr_div_surf_av_div','F');
177    
178     // Description de la demande / du projet
179     $form->setFieldset('ope_proj_desc', 'D',
180     _("Description de la demande / du projet"), "col_12 startClosed");
181     $form->setBloc('ope_proj_desc', 'DF', "", "group");
182     $form->setBloc('ope_proj_div_co', 'DF', "", "group");
183     $form->setBloc('ope_proj_div_contr', 'DF', "", "group");
184     $form->setFieldset('ope_proj_div_contr', 'F');
185    
186     // Construire, aménager ou modifier un ERP
187     $form->setBloc('erp_class_cat','D',"","col_12");
188     $form->setFieldset('erp_class_cat','D'
189     ,_("Construire, amenager ou modifier un ERP"), "startClosed alignFormSpec");
190    
191     $form->setBloc('erp_class_cat','DF', _("Activite"),"group");
192     $form->setBloc('erp_class_type','DF', "","group");
193    
194     $form->setBloc('erp_cstr_neuve','DF', _("Nature des travaux (plusieurs cases possibles)"),"group");
195     $form->setBloc('erp_trvx_acc','DF', "","group");
196     $form->setBloc('erp_extension','DF', "","group");
197     $form->setBloc('erp_rehab','DF', "","group");
198     $form->setBloc('erp_trvx_am','DF', "","group");
199     $form->setBloc('erp_vol_nouv_exist','DF', "","group");
200    
201     $form->setBloc('tab_erp_eff','DF', _("Effectif"),"group");
202    
203     $form->setFieldset('tab_erp_eff','F', '');
204     $form->setBloc('tab_erp_eff','F');
205    
206     // Aménager
207     $form->setBloc('am_lotiss','D',"","col_12");
208     $form->setFieldset('am_lotiss','D'
209     ,_("Amenager"), "startClosed");
210     $form->setBloc('am_lotiss','D',"","col_12");
211     $form->setFieldset('am_lotiss','D'
212     ,_("Projet d'amenagement"), "startClosed alignFormSpec");
213     // bloc 4.1
214     $form->setBloc('am_lotiss','DF',_("Nature des travaux, instalations
215     ou amenagements envisages"), "group");
216     $form->setBloc('am_div_mun','DF',"", "group");
217     $form->setBloc('am_autre_div','DF',"", "group");
218     $form->setBloc('am_camping','DF',"", "group");
219     $form->setBloc('am_parc_resid_loi','DF',"", "group");
220     $form->setBloc('am_sport_moto','DF',"", "group");
221     $form->setBloc('am_sport_attrac','DF',"", "group");
222     $form->setBloc('am_sport_golf','DF',"", "group");
223     $form->setBloc('am_caravane','DF',"", "group");
224     $form->setBloc('am_carav_duree','DF',"", "group");
225     $form->setBloc('am_statio','DF',"", "group");
226     $form->setBloc('am_statio_cont','DF',"", "group");
227     $form->setBloc('am_affou_exhau','DF',"", "group");
228     $form->setBloc('am_affou_exhau_sup','DF',"", "group");
229     $form->setBloc('am_affou_prof','DF',"", "group");
230     $form->setBloc('am_exhau_haut','DF',"", "group");
231    
232     $form->setBloc('am_chem_ouv_esp','D',_("Dans les secteurs proteges :"),"col_12");
233     $form->setBloc('am_chem_ouv_esp','DF',_("Amenagement situe dans un espace remarquable :"), "group");
234     $form->setBloc('am_agri_peche','DF',"", "group");
235    
236     $form->setBloc('am_crea_voie','DF',_("Amenagement situe dans un secteur sauvegarde :"), "group");
237     $form->setBloc('am_modif_voie_exist','DF',"", "group");
238     $form->setBloc('am_crea_esp_sauv','DF',"", "group");
239    
240     $form->setBloc('am_crea_esp_class','DF',_("Amenagement situe dans un site classe ou une reserve naturelle 1 :"), "group");
241     $form->setBloc('am_coupe_abat','DF',"", "group");
242     $form->setBloc('am_prot_plu','DF',"", "group");
243     $form->setBloc('am_prot_muni','DF',"", "group");
244     $form->setBloc('am_mobil_voyage','DF',"", "group");
245     $form->setBloc('am_aire_voyage','DF',"", "group");
246     $form->setBloc('am_rememb_afu','DF',"", "group");
247     $form->setBloc('co_ouvr_infra','DF',"", "group");
248     $form->setBloc('co_ouvr_infra','F');
249    
250     $form->setBloc('am_mob_art','DF',_("Dans un secteur sauvegarde, site classe ou reserve naturelle :"), "group");
251     $form->setBloc('am_modif_voie_esp','DF',"", "group");
252     $form->setBloc('am_plant_voie_esp','DF',"", "group");
253     $form->setBloc('co_ouvr_elec','DF',"", "group");
254     $form->setFieldset('co_ouvr_elec','F','');
255     $form->setBloc('co_ouvr_elec','F');
256     $form->setBloc('am_projet_desc','D',"","col_12");
257     $form->setFieldset('am_projet_desc','D'
258     ,_("Description amenagement"), "startClosed alignFormSpec");
259    
260     $form->setBloc('am_projet_desc','DF',"", "group");
261     $form->setBloc('am_terr_surf','DF',"", "group");
262     $form->setBloc('am_tranche_desc','DF',"", "group");
263    
264     $form->setFieldset('am_tranche_desc','F','');
265     $form->setBloc('am_tranche_desc','F');
266     $form->setBloc('am_lot_max_nb','D',"","col_12");
267     $form->setFieldset('am_lot_max_nb','D'
268     ,_("Complement d'amenagement"), "startClosed");
269     // bloc 4.2
270     $form->setBloc('am_lot_max_nb','D',_("Demande concernant un lotissement"),"col_12 alignFormSpec");
271    
272     $form->setBloc('am_lot_max_nb','DF',"", "group");
273     $form->setBloc('am_lot_max_shon','DF',"", "group");
274    
275     $form->setBloc('am_lot_cstr_cos','DF',_("Comment la constructibilite globale sera-t-elle repartie ?"), "group");
276     $form->setBloc('am_lot_cstr_plan','DF',"", "group");
277     $form->setBloc('am_lot_cstr_vente','DF',"", "group");
278     $form->setBloc('am_lot_fin_diff','DF',"", "group");
279    
280     $form->setBloc('am_lot_consign','DF',_("si oui, quelle garantie sera utilisee ?"), "group");
281     $form->setBloc('am_lot_gar_achev','DF',"", "group");
282     $form->setBloc('am_lot_vente_ant','DF',"", "group");
283     $form->setBloc('am_lot_vente_ant','F');
284    
285     // bloc 4.3
286     $form->setBloc('am_exist_agrand','D',_("Amenagement d'un camping ou
287     d'un terrain amenage en vue de l'hebergement
288     touristique"),"col_12");
289     $form->setBloc('am_exist_agrand','D',"", "alignFormSpec");
290     $form->setBloc('am_exist_agrand','DF',"", "group");
291     $form->setBloc('am_exist_date','DF',"", "group");
292     $form->setBloc('am_exist_num','DF',"", "group");
293     $form->setBloc('am_exist_nb_avant','DF',"", "group");
294     $form->setBloc('am_exist_nb_apres','DF',"", "group");
295     $form->setBloc('am_empl_nb','DF',"", "group");
296     $form->setBloc('am_empl_nb','F',"", "");
297    
298     $form->setBloc('am_tente_nb','D',_("Nombre maximum d’emplacements reserves aux :"), "alignForm");
299     $form->setBloc('am_mobil_nb','F',"", "");
300    
301     $form->setBloc('am_pers_nb','DF',"", "alignFormSpec group");
302    
303     $form->setBloc('am_empl_hll_nb','D',_("Implantation d’habitations legeres de loisirs (HLL) :"), "alignFormSpec");
304     $form->setBloc('am_empl_hll_nb','DF',"", "group");
305     $form->setBloc('am_hll_shon','DF',"", "group");
306     $form->setBloc('am_periode_exploit','DF',"", "group");
307     $form->setBloc('am_periode_exploit','F',"", "");
308    
309     $form->setBloc('am_coupe_bois','D',_("Declaration de coupe et/ou abattage d’arbres :"),"col_12 cerfasubtitle");
310    
311     $form->setBloc('am_coupe_bois','D',_("Courte description du lieu :"), "cerfasubtitle alignForm");
312     $form->setBloc('am_coupe_align','F',"", "");
313    
314     $form->setBloc('am_coupe_ess','D',_("Nature du boisement :"),"col_12 cerfasubtitle alignForm");
315     $form->setBloc('am_coupe_autr','F');
316     $form->setBloc('am_coupe_autr','F');
317     $form->setBloc('am_coupe_autr','F');
318    
319    
320     $form->setFieldset('am_coupe_autr','F','');
321    
322     $form->setBloc('am_coupe_autr','F');
323     $form->setFieldset('am_coupe_autr','F','');
324     $form->setBloc('am_coupe_autr','F');
325     // Fin amménager
326     // Construire
327     $form->setBloc('co_archi_recours','D',"","col_12");
328     $form->setFieldset('co_archi_recours','D'
329     ,_("Construire"), "startClosed");
330     $form->setBloc('co_archi_recours','D', "","col_12");
331     $form->setFieldset('co_archi_recours','D'
332     ,_("Projet construction"), "startClosed alignFormSpec");
333    
334     $form->setBloc('co_archi_recours','DF',_("Architecte"), "group");
335     $form->setBloc('architecte','DF',"", "group");
336    
337     $form->setBloc('co_cstr_nouv','DF',_("Nature du projet"), "group");
338     $form->setBloc('avap_co_elt_pro','DF',"", "group");
339     $form->setBloc('avap_nouv_haut_surf','DF',"", "group");
340     $form->setBloc('co_cstr_exist','DF',"", "group");
341     $form->setBloc('co_div_terr','DF',"", "group");
342     $form->setBloc('co_cloture','DF',"", "group");
343     $form->setBloc('co_projet_desc','DF',"", "group");
344     $form->setBloc('co_elec_tension','DF',"", "group");
345     $form->setFieldset('co_elec_tension','F','');
346     $form->setFieldset('co_tot_log_nb','D'
347     ,_("Complement construction"), "startClosed");
348    
349     $form->setBloc('co_tot_log_nb','D',"", "alignForm");
350     $form->setBloc('co_tot_coll_nb','F',"", "");
351    
352     $form->setBloc('co_mais_piece_nb','D',"", "alignForm");
353     $form->setBloc('co_mais_niv_nb','F',"", "");
354    
355     $form->setBloc('co_fin_lls_nb','D', _("Repartition du nombre total de logement crees par type de financement :"),"col_12");
356     $form->setBloc('co_fin_lls_nb','D',"", "alignForm");
357     $form->setBloc('co_fin_autr_nb','F',"", "");
358    
359     $form->setBloc('co_fin_autr_desc','DF',"", "alignFormSpec group");
360     $form->setBloc('co_mais_contrat_ind','DF',"", "alignFormSpec group");
361     $form->setBloc('co_mais_contrat_ind','F');
362    
363     $form->setBloc('co_uti_pers','D',_("Mode d'utilisation principale des logements :"), "col_12");
364     $form->setBloc('co_uti_pers','D', "", "alignForm");
365     $form->setBloc('co_uti_loc','F',"", "");
366     $form->setBloc('co_uti_loc','F',"", "");
367    
368     $form->setBloc('co_uti_princ','D',_("S’il s’agit d’une occupation personnelle, veuillez preciser :"), "col_12");
369     $form->setBloc('co_uti_princ','D',"", "alignForm");
370     $form->setBloc('co_uti_secon','F',"", "");
371     $form->setBloc('co_uti_secon','F',"", "group");
372    
373     $form->setBloc('co_anx_pisc','D',_("Si le projet porte sur une annexe a l’habitation, veuillez preciser :"), "col_12");
374     $form->setBloc('co_anx_pisc','D',"", "alignForm");
375     $form->setBloc('co_anx_autr_desc','F',"", "");
376     $form->setBloc('co_anx_autr_desc','F',"", "group");
377    
378     $form->setBloc('co_resid_agees','D',_("Si le projet est un foyer ou une residence, a quel titre :"), "col_12");
379     $form->setBloc('co_resid_agees','D',"", "alignForm");
380     $form->setBloc('co_resid_hand','F',"", "");
381     $form->setBloc('co_resid_hand','F',"", "group");
382    
383     $form->setBloc('co_resid_autr','D',"", "alignFormSpec");
384     $form->setBloc('co_foyer_chamb_nb','F',"", "");
385    
386     $form->setBloc('co_log_1p_nb','D',_("Repartition du nombre de logements crees selon le nombre de pieces :"), "col_12");
387     $form->setBloc('co_log_1p_nb','D', "", "alignForm");
388     $form->setBloc('co_log_6p_nb','F',"", "group");
389     $form->setBloc('co_log_6p_nb','F',"", "group");
390    
391     $form->setBloc('co_bat_niv_nb','DF',"", "alignFormSpec");
392    
393     $form->setBloc('co_trx_exten','D',_("Indiquez si vos travaux comprennent notamment :"), "col_12");
394     $form->setBloc('co_trx_exten','D',"", "alignForm");
395     $form->setBloc('co_trx_nivsup','F',"", "group");
396    
397     $form->setBloc('co_demont_periode','DF', _("Construction periodiquement demontee et re-installee :"),"alignFormSpec group");
398    
399     $form->setBloc('co_demont_periode','F',"", "group");
400     $form->setFieldset('co_demont_periode','F','');
401    
402     $form->setFieldset('tab_surface','D'
403     ,_("Destinations et surfaces des constructions"), "startClosed");
404 softime 4636 $form->setBloc('tab_surface','DF', _("Destination des constructions et tableau des surfaces (uniquement à remplir si votre projet de construction est situé dans une commune couverte par un plan local d’urbanisme ou un document en tenant lieu appliquant l’article R.123-9 du code de l’urbanisme dans sa rédaction antérieure au 1er janvier 2016)."),"alignFormSpec group");
405    
406 mbroquet 3730 $form->setBloc('co_sp_transport','D', _("Destination des constructions futures en cas de realisation au benefice d'un service public ou d'interet collectif :"),"col_12");
407     $form->setBloc('co_sp_transport','D', "","alignForm");
408     $form->setBloc('co_sp_culture','F', "","");
409     $form->setBloc('co_sp_culture','F', "","");
410 softime 4636
411     $form->setBloc('tab_surface2','DF', _("Destination, sous-destination des constructions et tableau des surfaces (uniquement à remplir si votre projet de construction est situé dans une commune couverte par le règlement national d’urbanisme, une carte communale ou dans une commune non visée à la rubrique précédente"),"alignFormSpec group");
412     $form->setFieldset('tab_surface2','F','');
413    
414 mbroquet 3730 $form->setFieldset('co_statio_avt_nb','D'
415     ,_("Divers construction"), "startClosed");
416     $form->setBloc('co_statio_avt_nb','D', _("Nombre de places de stationnement"),"col_12");
417     $form->setBloc('co_statio_avt_nb','D', "","alignForm");
418     $form->setBloc('co_statio_apr_nb','F', "","");
419     $form->setBloc('co_statio_apr_nb','F', "","");
420    
421     $form->setBloc('co_statio_adr','D', _("Places de stationnement affectees au projet, amenagees ou reservees en dehors du terrain sur lequel est situe le projet"),"col_12");
422     $form->setBloc('co_statio_adr','DF', "","alignFormSpec");
423    
424     $form->setBloc('co_statio_place_nb','D', "","col_12");
425     $form->setBloc('co_statio_place_nb','D', "","alignForm");
426     $form->setBloc('co_statio_tot_shob','F', "","");
427     $form->setBloc('co_statio_tot_shob','F', "","");
428     $form->setBloc('co_statio_tot_shob','F');
429     $form->setBloc('co_statio_comm_cin_surf','D', _("Pour les commerces et cinemas :"),"col_12 alignFormSpec");
430     $form->setBloc('co_perf_energ','F',"", "");
431     $form->setFieldset('co_perf_energ','F','');
432     $form->setBloc('co_perf_energ','F');
433    
434     $form->setFieldset('co_perf_energ','F','');
435    
436     $form->setBloc('co_perf_energ','F');
437     // Fin construire
438    
439     /*Fieldset n°6 Projet necessitant demolitions */
440     $form->setBloc('dm_constr_dates','D',"","col_12");
441     $form->setFieldset('dm_constr_dates','D'
442     ,_("Demolir"), "startClosed alignFormSpec");
443    
444     $form->setBloc('dm_constr_dates','DF', "","group");
445     $form->setBloc('dm_total','DF', "","group");
446     $form->setBloc('dm_partiel','DF', "","group");
447     $form->setBloc('dm_projet_desc','DF', "","group");
448     $form->setBloc('dm_tot_log_nb','DF', "","group");
449     $form->setFieldset('dm_tot_log_nb','F','');
450    
451     $form->setBloc('dm_tot_log_nb','F');
452    
453     /*Fieldset n°4 Ouverture de chantier */
454     $form->setBloc('doc_date','D',"","col_12");
455     $form->setFieldset('doc_date','D'
456     ,_("Ouverture de chantier"), "startClosed alignFormSpec");
457     $form->setBloc('doc_date','DF', "","group");
458     $form->setBloc('doc_tot_trav','DF', "","group");
459     $form->setBloc('doc_tranche_trav','DF', "","group");
460     $form->setBloc('doc_tranche_trav_desc','DF', "","group");
461     $form->setBloc('doc_surf','DF', "","group");
462     $form->setBloc('doc_nb_log','DF', "","group");
463     $form->setBloc('doc_nb_log_indiv','DF', "","group");
464     $form->setBloc('doc_nb_log_coll','DF', "","group");
465     //
466     $form->setBloc('doc_nb_log_lls','DF', _("Repartition du nombre de logements commences par type de financement"), "group");
467     $form->setBloc('doc_nb_log_aa','DF', "","group");
468     $form->setBloc('doc_nb_log_ptz','DF', "","group");
469     $form->setBloc('doc_nb_log_autre','DF', "","group");
470     $form->setFieldset('doc_nb_log_autre','F','');
471     $form->setBloc('doc_nb_log_autre','F');
472    
473     /*Fieldset n°4 Achèvement des travaux */
474     $form->setBloc('daact_date','D',"","col_12");
475     $form->setFieldset('daact_date','D'
476     ,_("Achevement des travaux") , "startClosed alignFormSpec");
477     $form->setBloc('daact_date','DF', "","group");
478     $form->setBloc('daact_date_chgmt_dest','DF', "","group");
479     $form->setBloc('daact_tot_trav','DF', "","group");
480     $form->setBloc('daact_tranche_trav','DF', "","group");
481     $form->setBloc('daact_tranche_trav_desc','DF', "","group");
482     $form->setBloc('daact_surf','DF', "","group");
483     $form->setBloc('daact_nb_log','DF', "","group");
484     $form->setBloc('daact_nb_log_indiv','DF', "","group");
485     $form->setBloc('daact_nb_log_coll','DF', "","group");
486     //
487     $form->setBloc('daact_nb_log_lls','DF', _("Repartition du nombre de logements commences par type de financement"), "group");
488     $form->setBloc('daact_nb_log_aa','DF', "","group");
489     $form->setBloc('daact_nb_log_ptz','DF', "","group");
490     $form->setBloc('daact_nb_log_autre','DF', "","group");
491     $form->setFieldset('daact_nb_log_autre','F','');
492     $form->setBloc('daact_nb_log_autre','F');
493    
494 softime 4417 // Début DIA
495     $form->setBloc('dia_imm_non_bati','D',"","col_12");
496     $form->setFieldset('dia_imm_non_bati','D',_("Déclaration d’intention d’aliéner un bien"), "startClosed alignFormSpec");
497    
498     // Désignation du bien
499     $form->setBloc('dia_imm_non_bati','D', "","col_12");
500     $form->setFieldset('dia_imm_non_bati','D',_("Désignation du bien"), "startClosed");
501    
502     // Immeuble
503     $form->setBloc('dia_imm_non_bati','DF', _("Immeuble"),"group");
504     $form->setBloc('dia_imm_bati_terr_propr','DF', "","group");
505     $form->setBloc('dia_imm_bati_terr_autr','D', "","group");
506     $form->setBloc('dia_imm_bati_terr_autr_desc','F', "","");
507    
508     // Copropriété
509     $form->setBloc('dia_bat_copro','DF', "","group");
510     $form->setBloc('dia_bat_copro_desc','DF', "","group");
511     $form->setBloc('dia_lot_numero','DF', "","group");
512     $form->setBloc('dia_lot_bat','DF', "","group");
513     $form->setBloc('dia_lot_etage','DF', "","group");
514     $form->setBloc('dia_lot_quote_part','DF', "","group");
515    
516     $form->setFieldset('dia_lot_quote_part','F','');
517     $form->setBloc('dia_lot_quote_part','F');
518    
519     // Usage et occupation
520     $form->setBloc('dia_us_hab','D', "","col_12");
521     $form->setFieldset('dia_us_hab','D',_("Usage et occupation"), "startClosed");
522    
523     // Usage
524     $form->setBloc('dia_us_hab','DF', _("Usage"),"group");
525     $form->setBloc('dia_us_pro','DF', "","group");
526     $form->setBloc('dia_us_mixte','DF', "","group");
527     $form->setBloc('dia_us_comm','DF', "","group");
528     $form->setBloc('dia_us_agr','DF', "","group");
529     $form->setBloc('dia_us_autre','D', "","group");
530     $form->setBloc('dia_us_autre_prec','F', "","");
531    
532     // Occupation
533     $form->setBloc('dia_occ_prop','DF', _("Occupation"),"group");
534     $form->setBloc('dia_occ_loc','DF', "","group");
535     $form->setBloc('dia_occ_sans_occ','DF', "","group");
536     $form->setBloc('dia_occ_autre','D', "","group");
537     $form->setBloc('dia_occ_autre_prec','F', "","");
538    
539     $form->setFieldset('dia_occ_autre_prec','F','');
540     $form->setBloc('dia_occ_autre_prec','F');
541    
542     // Modalités de la cession
543     $form->setBloc('dia_mod_cess_prix_vente','D', "","col_12");
544     $form->setFieldset('dia_mod_cess_prix_vente','D',_("Modalités de la cession"), "startClosed");
545    
546     // Vente amiable
547     $form->setBloc('dia_mod_cess_prix_vente','DF', _("Vente amiable"),"group");
548     $form->setBloc('dia_mod_cess_prix_vente_mob','D', _("Dont éventuellement inclus"),"group");
549     $form->setBloc('dia_mod_cess_prix_vente_autre','F', "","");
550    
551     // Modalité de paiement
552     $form->setBloc('dia_mod_cess_commi','D', _("Modalités de paiement"),"group");
553     $form->setBloc('dia_mod_cess_commi_ht','F', "","");
554    
555     $form->setFieldset('dia_mod_cess_commi_ht','F','');
556     $form->setBloc('dia_mod_cess_commi_ht','F');
557    
558     // Les soussignés déclarent
559     $form->setBloc('dia_acquereur_nom_prenom','D', "","col_12");
560     $form->setFieldset('dia_acquereur_nom_prenom','D',_("Les soussignés déclarent"), "startClosed");
561    
562     //
563     $form->setBloc('dia_acquereur_nom_prenom','DF', "","group");
564    
565     // Adresse
566     $form->setBloc('dia_acquereur_adr_num_voie','D', _("Adresse"),"group");
567     $form->setBloc('dia_acquereur_adr_type_voie','F', "","");
568     $form->setBloc('dia_acquereur_adr_nom_voie','D', "","group");
569     $form->setBloc('dia_acquereur_adr_lieu_dit_bp','F', "","");
570     $form->setBloc('dia_acquereur_adr_cp','D', "","group");
571     $form->setBloc('dia_acquereur_adr_localite','F', "","");
572    
573     $form->setFieldset('dia_acquereur_adr_localite','F','');
574     $form->setBloc('dia_acquereur_adr_localite','F');
575    
576     // Observation
577     $form->setBloc('dia_observation','D', "","col_12");
578     $form->setFieldset('dia_observation','D',_("Observation"), "startClosed");
579    
580     //
581     $form->setBloc('dia_observation','DF', "","group");
582    
583     $form->setFieldset('dia_observation','F','');
584     $form->setBloc('dia_observation','F');
585    
586     $form->setFieldset('dia_observation','F','');
587     $form->setBloc('dia_observation','F');
588     // Fin DIA
589    
590 mbroquet 3730 $form->setBloc('code_cnil','D',"","col_12");
591     $form->setFieldset('code_cnil','D'
592     ,_("cnil (opposition à l’utilisation des informations du formulaire à des fins commerciales)") , "startClosed alignFormSpec");
593     $form->setBloc('code_cnil','DF', "","group");
594     $form->setFieldset('code_cnil','F','');
595     $form->setBloc('code_cnil','F');
596    
597     $form->setBloc('tax_surf_tot_cstr','D',"","col_12");
598     $form->setFieldset('tax_surf_tot_cstr','D'
599     ,_("Declaration des elements necessaires au calcul des impositions"), "startClosed alignFormSpec");
600    
601     $form->setBloc('tax_surf_tot_cstr','DF', _("Renseignement"),"group");
602     $form->setBloc('tax_surf_tot','DF', "","group");
603     $form->setBloc('tax_surf','DF', "","group");
604     $form->setBloc('tax_surf_suppr_mod','DF', "","group");
605    
606     $form->setBloc('tab_tax_su_princ','DF', _("Creation de locaux destines a l’habitation :"),"group");
607     $form->setBloc('tab_tax_su_secon','DF', "","group");
608     $form->setBloc('tab_tax_su_heber','DF', "","group");
609     $form->setBloc('tab_tax_su_tot','DF', "","group");
610     //
611     $form->setBloc('tax_ext_pret','DF', _("Extension de l’habitation principale, creation d’un batiment annexe a cette habitation ou d’un garage clos et couvert."), "group");
612     $form->setBloc('tax_ext_desc','DF', "","group");
613     $form->setBloc('tax_surf_tax_exist_cons','DF', "","group");
614     $form->setBloc('tax_log_exist_nb','DF', "","group");
615     $form->setBloc('tax_log_ap_trvx_nb','DF', "", "group");
616    
617     //
618     $form->setBloc('tax_surf_abr_jard_pig_colom','DF', _("Creation d’abris de jardin, de pigeonniers et colombiers"), "group");
619    
620     $form->setBloc('tax_comm_nb','DF', _("Creation ou extension de locaux non destines a l'habitation :"),"group");
621     $form->setBloc('tab_tax_su_non_habit_surf','DF', "","group");
622     $form->setBloc('tab_tax_am','DF', "","group");
623     $form->setBloc('tab_tax_su_parc_statio_expl_comm', 'DF', "", "group");
624     $form->setBloc('tax_su_non_habit_abr_jard_pig_colom', 'DF', "", "group");
625    
626     $form->setBloc('tax_am_statio_ext_cr','D', _("Autres elements crees soumis à la taxe d’amenagement :"),"col_12");
627     $form->setBloc('tax_pann_volt_sup_cr','F');
628    
629     $form->setBloc('tax_surf_loc_arch','D', _("Redevance d’archeologie preventive"),"col_12 alignFormSpec");
630     $form->setBloc('tax_surf_loc_arch','D', _("Veuillez preciser la profondeur du(des) terrassement(s) necessaire(s) a la realisation de votre projet"),"");
631     $form->setBloc('tax_eol_haut_nb_arch','F');
632     $form->setBloc('tax_eol_haut_nb_arch','F');
633    
634     $form->setBloc('tax_trx_presc_ppr','DF', _("Cas particuliers"),"group");
635     $form->setBloc('tax_monu_hist','DF', "","group");
636    
637     $form->setBloc('vsd_surf_planch_smd','DF', _("Versement pour sous-densite (VSD)"),"group");
638     $form->setBloc('vsd_unit_fonc_sup','DF', "","group");
639     $form->setBloc('vsd_unit_fonc_constr_sup','DF', "","group");
640     $form->setBloc('vsd_val_terr','DF', "","group");
641     $form->setBloc('vsd_const_sxist_non_dem_surf','DF', "","group");
642     $form->setBloc('vsd_rescr_fisc','DF', "","group");
643    
644     $form->setBloc('pld_val_terr','DF', _("Plafond legal de densite (PLD)"),"group");
645     $form->setBloc('pld_const_exist_dem','DF', "","group");
646     $form->setBloc('pld_const_exist_dem_surf','DF', "","group");
647    
648     $form->setBloc('tax_desc','DF', _("Autres renseignements"),"col_12 alignFormSpec");
649     $form->setFieldset('tax_desc','F','');
650    
651     $form->setBloc('tax_desc','F');
652     }
653    
654     function setLib(&$form,$maj) {
655     parent::setLib($form,$maj);
656     //libelle des champs
657     $form->setLib('architecte', _("coordonnees de l'architecte"));
658     $form->setLib('ope_proj_desc', _("description"));
659     }
660    
661     /**
662     * Permet de savoir si le cerfa peut calculer la taxe d'aménagement.
663     *
664     * @return boolean
665     */
666     function can_simulate_taxe_amenagement() {
667     // Liste des champs necessaires à la simulation de la taxe d'aménagement
668     require_once "../obj/taxe_amenagement.class.php";
669     $inst_taxe_amenagement = new taxe_amenagement(0);
670     $list_fields = $inst_taxe_amenagement->get_list_fields_simulation();
671    
672     // Pour chaque champ
673     foreach ($list_fields as $field) {
674     // Si un seul des champs requis n'est pas dans le cerfa
675     if ($this->getVal($field) == 'f') {
676     // Retourne faux
677     return false;
678     }
679     }
680    
681     // Retourne vrai
682     return true;
683     }
684    
685 nhaye 4777
686     /**
687     * Récupère les champs du CERFA ainsi que leurs valeurs.
688     *
689     * @return array $result Tableau associatif
690     */
691     function get_form_val() {
692    
693     // Initialisation du tableau des résultats
694     $result = array();
695    
696     // Pour chaque champ
697     foreach ($this->champs as $champ) {
698     // Récupère sa valeur
699     $result[$champ] = $this->getVal($champ);
700     }
701    
702     // Retourne le résultat
703     return $result;
704     }
705    
706    
707 mbroquet 3730 }// fin classe
708     ?>

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26