17 |
// Sais pas quoi faire de ce champ |
// Sais pas quoi faire de ce champ |
18 |
$form->setType('code_cnil', 'hidden'); |
$form->setType('code_cnil', 'hidden'); |
19 |
|
|
20 |
|
//Ajout des select sur les tableaux |
21 |
if($maj == 0) { |
if($maj == 0) { |
22 |
|
|
23 |
$form->setType('tab_surface', 'select'); |
$form->setType('tab_surface', 'select'); |
24 |
|
$form->setType('tab_tax_su_princ', 'select'); |
25 |
|
$form->setType('tab_tax_su_heber', 'select'); |
26 |
|
$form->setType('tab_tax_su_secon', 'select'); |
27 |
|
$form->setType('tab_tax_su_tot', 'select'); |
28 |
|
$form->setType('tab_tax_su_non_habit_surf', 'select'); |
29 |
|
$form->setType('tab_tax_am', 'select'); |
30 |
}elseif($maj == 1) { |
}elseif($maj == 1) { |
31 |
|
|
32 |
$form->setType('tab_surface', 'select'); |
$form->setType('tab_surface', 'select'); |
33 |
|
$form->setType('tab_tax_su_princ', 'select'); |
34 |
|
$form->setType('tab_tax_su_heber', 'select'); |
35 |
|
$form->setType('tab_tax_su_secon', 'select'); |
36 |
|
$form->setType('tab_tax_su_tot', 'select'); |
37 |
|
$form->setType('tab_tax_su_non_habit_surf', 'select'); |
38 |
|
$form->setType('tab_tax_am', 'select'); |
39 |
}elseif($maj == 2) { |
}elseif($maj == 2) { |
40 |
|
|
41 |
$form->setType('tab_surface', 'selecthiddenstatic'); |
$form->setType('tab_surface', 'selecthiddenstatic'); |
42 |
|
$form->setType('tab_tax_su_princ', 'selecthiddenstatic'); |
43 |
|
$form->setType('tab_tax_su_heber', 'selecthiddenstatic'); |
44 |
|
$form->setType('tab_tax_su_secon', 'selecthiddenstatic'); |
45 |
|
$form->setType('tab_tax_su_tot', 'selecthiddenstatic'); |
46 |
|
$form->setType('tab_tax_su_non_habit_surf', 'selecthiddenstatic'); |
47 |
|
$form->setType('tab_tax_am', 'selecthiddenstatic'); |
48 |
}elseif($maj == 3) { |
}elseif($maj == 3) { |
49 |
|
|
50 |
$form->setType('tab_surface', 'selecthiddenstatic'); |
$form->setType('tab_surface', 'selecthiddenstatic'); |
51 |
|
$form->setType('tab_tax_su_princ', 'selecthiddenstatic'); |
52 |
|
$form->setType('tab_tax_su_heber', 'selecthiddenstatic'); |
53 |
|
$form->setType('tab_tax_su_secon', 'selecthiddenstatic'); |
54 |
|
$form->setType('tab_tax_su_tot', 'selecthiddenstatic'); |
55 |
|
$form->setType('tab_tax_su_non_habit_surf', 'selecthiddenstatic'); |
56 |
|
$form->setType('tab_tax_am', 'selecthiddenstatic'); |
57 |
} |
} |
58 |
} |
} |
59 |
|
|
71 |
$contenu[1]=array_values($tab_surface); |
$contenu[1]=array_values($tab_surface); |
72 |
$form->setSelect("tab_surface",$contenu); |
$form->setSelect("tab_surface",$contenu); |
73 |
|
|
74 |
|
$contenu[0]=array_keys($tab_tax_su_princ); |
75 |
|
$contenu[1]=array_values($tab_tax_su_princ); |
76 |
|
$form->setSelect("tab_tax_su_princ",$contenu); |
77 |
|
|
78 |
|
$contenu[0]=array_keys($tab_tax_su_heber); |
79 |
|
$contenu[1]=array_values($tab_tax_su_heber); |
80 |
|
$form->setSelect("tab_tax_su_heber",$contenu); |
81 |
|
|
82 |
|
$contenu[0]=array_keys($tab_tax_su_secon); |
83 |
|
$contenu[1]=array_values($tab_tax_su_secon); |
84 |
|
$form->setSelect("tab_tax_su_secon",$contenu); |
85 |
|
|
86 |
|
$contenu[0]=array_keys($tab_tax_su_tot); |
87 |
|
$contenu[1]=array_values($tab_tax_su_tot); |
88 |
|
$form->setSelect("tab_tax_su_tot",$contenu); |
89 |
|
|
90 |
|
$contenu[0]=array_keys($tab_tax_su_non_habit_surf); |
91 |
|
$contenu[1]=array_values($tab_tax_su_non_habit_surf); |
92 |
|
$form->setSelect("tab_tax_su_non_habit_surf",$contenu); |
93 |
|
|
94 |
|
$contenu[0]=array_keys($tab_tax_am); |
95 |
|
$contenu[1]=array_values($tab_tax_am); |
96 |
|
$form->setSelect("tab_tax_am",$contenu); |
97 |
|
|
98 |
|
|
99 |
|
|
100 |
} |
} |
101 |
|
|
102 |
function setLayout(&$form, $maj) { |
function setLayout(&$form, $maj) { |
103 |
|
|
104 |
/*Fieldset Parametrage du cerfa */ |
/*Fieldset Parametrage du cerfa */ |
105 |
$form->setBloc('libelle','D',"","col_12"); |
$form->setBloc('cerfa','D',"","col_12"); |
106 |
$form->setFieldset('libelle','D' |
$form->setFieldset('cerfa','D' |
107 |
,_("Parametrage du cerfa")); |
,_("Parametrage du cerfa")); |
108 |
|
|
109 |
|
|
110 |
$form->setFieldset('dossier_instruction_type','F',''); |
$form->setFieldset('om_validite_fin','F',''); |
111 |
$form->setBloc('dossier_instruction_type','F'); |
$form->setBloc('om_validite_fin','F'); |
112 |
|
|
113 |
|
$form->setBloc('terr_juri_titul','D',"","col_12"); |
114 |
|
$form->setFieldset('terr_juri_titul','D' |
115 |
|
,_("Terrain")); |
116 |
|
|
117 |
|
|
118 |
|
$form->setFieldset('terr_div_surf_av_div','F',''); |
119 |
|
$form->setBloc('terr_div_surf_av_div','F'); |
120 |
|
|
121 |
|
$form->setBloc('avap_co_elt_pro','D',"","col_12"); |
122 |
|
$form->setFieldset('avap_co_elt_pro','D' |
123 |
|
,_("Projet")); |
124 |
|
|
125 |
|
|
126 |
|
$form->setFieldset('avap_aut_auv_elec','F',''); |
127 |
|
$form->setBloc('avap_aut_auv_elec','F'); |
128 |
|
|
129 |
|
$form->setBloc('tr_total','D',"","col_12"); |
130 |
|
$form->setFieldset('tr_total','D' |
131 |
|
,_("Projet")); |
132 |
|
|
133 |
|
|
134 |
|
$form->setFieldset('tr_desc','F',''); |
135 |
|
$form->setBloc('tr_desc','F'); |
136 |
|
|
137 |
/*Fieldset n°4 Projet d'aménagement */ |
/*Fieldset n°4 Ouverture de chantier */ |
138 |
|
$form->setBloc('doc_date','D',"","col_12"); |
139 |
|
$form->setFieldset('doc_date','D' |
140 |
|
,_("Ouverture de chantier")); |
141 |
|
|
142 |
|
$form->setFieldset('doc_nb_log_autre','F',''); |
143 |
|
$form->setBloc('doc_nb_log_autre','F'); |
144 |
|
|
145 |
|
/*Fieldset n°4 Achèvement des travaux */ |
146 |
|
$form->setBloc('daact_date','D',"","col_12"); |
147 |
|
$form->setFieldset('daact_date','D' |
148 |
|
,_("Achevement des travaux")); |
149 |
|
|
150 |
|
$form->setFieldset('daact_nb_log_autre','F',''); |
151 |
|
$form->setBloc('daact_nb_log_autre','F'); |
152 |
|
|
153 |
|
/*Fieldset n°4 Projet d'amenagement */ |
154 |
$form->setBloc('am_lotiss','D',"","col_12"); |
$form->setBloc('am_lotiss','D',"","col_12"); |
155 |
$form->setFieldset('am_lotiss','D' |
$form->setFieldset('am_lotiss','D' |
156 |
,_("Projet d'amenagement")); |
,_("Projet d'amenagement")); |
157 |
// bloc 4.1 |
// bloc 4.1 |
158 |
$form->setBloc('am_lotiss','D',_("Nature des travaux, instalations |
$form->setBloc('am_lotiss','D',_("Nature des travaux, instalations |
159 |
ou aménagements envisagés"),"col_12"); |
ou amenagements envisages"),"col_12"); |
160 |
|
|
161 |
$form->setBloc('am_tranche_desc','F'); |
$form->setBloc('am_tranche_desc','F'); |
162 |
|
|
167 |
|
|
168 |
// bloc 4.3 |
// bloc 4.3 |
169 |
$form->setBloc('am_empl_nb','D',_("Amenagement d'un camping ou |
$form->setBloc('am_empl_nb','D',_("Amenagement d'un camping ou |
170 |
d'un terrain aménagé en vue de l'hébergement |
d'un terrain amenage en vue de l'hebergement |
171 |
touristique"),"col_12"); |
touristique"),"col_12"); |
172 |
|
|
173 |
$form->setBloc('am_exist_agrand','F'); |
$form->setBloc('am_exist_agrand','F'); |
183 |
// bloc 5.1 |
// bloc 5.1 |
184 |
$form->setBloc('co_archi_recours','D',_("Architecte"),"col_12"); |
$form->setBloc('co_archi_recours','D',_("Architecte"),"col_12"); |
185 |
|
|
186 |
$form->setBloc('co_archi_recours','F'); |
$form->setBloc('architecte','F'); |
187 |
|
|
188 |
// bloc 5.2 |
// bloc 5.2 |
189 |
$form->setBloc('co_cstr_nouv','D',_("Nature du projet"),"col_12"); |
$form->setBloc('co_cstr_nouv','D',_("Nature du projet"),"col_12"); |
197 |
|
|
198 |
// bloc 5.4 |
// bloc 5.4 |
199 |
$form->setBloc('co_demont_period','D',_("Construction periodiquement |
$form->setBloc('co_demont_period','D',_("Construction periodiquement |
200 |
démontee et re-installee"),"col_12"); |
demontee et re-installee"),"col_12"); |
201 |
|
|
202 |
$form->setBloc('co_demont_period','F'); |
$form->setBloc('co_demont_period','F'); |
203 |
|
|
222 |
$form->setFieldset('co_statio_apr_surf','F',''); |
$form->setFieldset('co_statio_apr_surf','F',''); |
223 |
|
|
224 |
$form->setBloc('co_statio_apr_surf','F'); |
$form->setBloc('co_statio_apr_surf','F'); |
225 |
|
|
226 |
|
// Description de modification |
227 |
|
$form->setBloc('mod_desc','D',"","col_12"); |
228 |
|
$form->setFieldset('mod_desc','D' |
229 |
|
,_("Objet de la modification")); |
230 |
|
$form->setFieldset('mod_desc','F',''); |
231 |
|
$form->setBloc('mod_desc','F'); |
232 |
|
|
233 |
/*Fieldset n°6 Projet necessitant demolitions */ |
/*Fieldset n°6 Projet necessitant demolitions */ |
234 |
$form->setBloc('dm_constr_dates','D',"","col_12"); |
$form->setBloc('dm_constr_dates','D',"","col_12"); |
242 |
$form->setFieldset('dm_tot_log_nb','F',''); |
$form->setFieldset('dm_tot_log_nb','F',''); |
243 |
|
|
244 |
$form->setBloc('dm_tot_log_nb','F'); |
$form->setBloc('dm_tot_log_nb','F'); |
|
} |
|
245 |
|
|
246 |
|
$form->setBloc('tax_surf_tot','D',_("Declaration des elements necessaires au calcul des impositions"),"col_12"); |
247 |
|
$form->setBloc('tax_surf_tot','D',"","col_12"); |
248 |
|
$form->setFieldset('tax_surf_tot','D' |
249 |
|
,_("Renseignement")); |
250 |
|
|
251 |
|
$form->setBloc('tax_surf_tot','D',"","col_12"); |
252 |
|
|
253 |
|
$form->setBloc('tax_dest_loc_tr','F'); |
254 |
|
|
255 |
|
$form->setBloc('tab_tax_su_princ','D',_("Locaux a usage d'habitation principale"),"col_12"); |
256 |
|
$form->setBloc('tab_tax_su_princ','F'); |
257 |
|
|
258 |
|
$form->setBloc('tab_tax_su_heber','D',_("Locaux a usage d'hebergement"),"col_12"); |
259 |
|
$form->setBloc('tab_tax_su_heber','F'); |
260 |
|
|
261 |
|
$form->setBloc('tab_tax_su_secon','D',_("Locaux a usage d'habitation secondaire"),"col_12"); |
262 |
|
$form->setBloc('tab_tax_su_secon','F'); |
263 |
|
|
264 |
|
$form->setBloc('tab_tax_su_tot','D',_("Total de logement"),"col_12"); |
265 |
|
$form->setBloc('tab_tax_su_tot','F'); |
266 |
|
|
267 |
|
$form->setBloc('tax_ext_pret','D',"","col_12"); |
268 |
|
$form->setBloc('tax_log_exist_nb','F'); |
269 |
|
|
270 |
|
$form->setBloc('tax_comm_nb','D',_("Creation ou extension de locaux non destines a l'habitation"),"col_12"); |
271 |
|
$form->setBloc('tab_tax_su_non_habit_surf','F'); |
272 |
|
|
273 |
|
$form->setBloc('tab_tax_am','D',_("Autres elements soumis a la taxe d'amenagement"),"col_12"); |
274 |
|
$form->setBloc('tab_tax_am','F'); |
275 |
|
|
276 |
|
$form->setBloc('tax_trx_presc_ppr','D',_("Cas particuliers"),"col_12"); |
277 |
|
$form->setBloc('tax_monu_hist','F'); |
278 |
|
|
279 |
|
$form->setFieldset('tax_monu_hist','F',''); |
280 |
|
|
281 |
|
$form->setBloc('tax_monu_hist','F'); |
282 |
|
|
283 |
|
$form->setBloc('vsd_surf_planch_smd','D',"","col_12"); |
284 |
|
$form->setFieldset('vsd_surf_planch_smd','D' |
285 |
|
,_("Autres renseignements")); |
286 |
|
|
287 |
|
$form->setBloc('vsd_surf_planch_smd','D',_("Versement pour sous-densite (VSD)"),"col_12"); |
288 |
|
$form->setBloc('vsd_rescr_fisc','F'); |
289 |
|
|
290 |
|
$form->setBloc('pld_val_terr','D',_("Plafond legal de densite (PLD)"),"col_12"); |
291 |
|
$form->setBloc('pld_const_exist_dem_surf','F'); |
292 |
|
|
293 |
|
$form->setFieldset('pld_const_exist_dem_surf','F',''); |
294 |
|
|
295 |
|
$form->setBloc('pld_const_exist_dem_surf','F'); |
296 |
|
|
297 |
|
$form->setBloc('pld_const_exist_dem_surf','F'); |
298 |
|
} |
299 |
|
|
300 |
|
function setLib(&$form,$maj) { |
301 |
|
parent::setLib($form,$maj); |
302 |
|
//libelle des champs |
303 |
|
$form->setLib('architecte', _("coordonnees de l'architecte")); |
304 |
|
} |
305 |
}// fin classe |
}// fin classe |
306 |
?> |
?> |