/[openfoncier]/branches/3.14.x/obj/cerfa.class.php
ViewVC logotype

Contents of /branches/3.14.x/obj/cerfa.class.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1828 - (show annotations)
Fri May 3 14:33:53 2013 UTC (11 years, 9 months ago) by nhaye
Original Path: trunk/obj/cerfa.class.php
File size: 11755 byte(s)
Ajout de champs de cerfa doc et daact, ajout et correction de traduction dans le script d'export sitadel

1 <?php
2 //$Id$
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 // Sais pas quoi faire de ce champ
18 $form->setType('code_cnil', 'hidden');
19
20 //Ajout des select sur les tableaux
21 if($maj == 0) {
22
23 $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) {
31
32 $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) {
40
41 $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) {
49
50 $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
60 function setSelect(&$form, $maj,&$db,$debug) {
61 parent::setSelect($form, $maj,$db,$debug);
62
63 if(file_exists ("../sql/".$db->phptype."/".$this->table.".form.inc.php"))
64 include ("../sql/".$db->phptype."/".$this->table.".form.inc.php");
65 elseif(file_exists ("../sql/".$db->phptype."/".$this->table.".form.inc"))
66 include ("../sql/".$db->phptype."/".$this->table.".form.inc");
67
68 // parametrage du tableau de surface
69 $contenu=array();
70 $contenu[0]=array_keys($tab_surface);
71 $contenu[1]=array_values($tab_surface);
72 $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) {
103
104 /*Fieldset Parametrage du cerfa */
105 $form->setBloc('cerfa','D',"","col_12");
106 $form->setFieldset('cerfa','D'
107 ,_("Parametrage du cerfa"));
108
109
110 $form->setFieldset('om_validite_fin','F','');
111 $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 Ouverture de chantier */
138 $form->setBloc('doc_date_ouv','D',"","col_12");
139 $form->setFieldset('doc_date_ouv','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_ouv','D',"","col_12");
147 $form->setFieldset('daact_date_ouv','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");
155 $form->setFieldset('am_lotiss','D'
156 ,_("Projet d'amenagement"));
157 // bloc 4.1
158 $form->setBloc('am_lotiss','D',_("Nature des travaux, instalations
159 ou amenagements envisages"),"col_12");
160
161 $form->setBloc('am_tranche_desc','F');
162
163 // bloc 4.2
164 $form->setBloc('am_lot_max_nb','D',_("Demande concernant un lotissement"),"col_12");
165
166 $form->setBloc('am_lot_vente_ant','F');
167
168 // bloc 4.3
169 $form->setBloc('am_empl_nb','D',_("Amenagement d'un camping ou
170 d'un terrain amenage en vue de l'hebergement
171 touristique"),"col_12");
172
173 $form->setBloc('am_exist_agrand','F');
174
175 $form->setFieldset('am_coupe_autr','F','');
176
177 $form->setBloc('am_coupe_autr','F');
178
179 /*Fieldset n°5 Projet de construction */
180 $form->setBloc('co_archi_recours','D',"","col_12");
181 $form->setFieldset('co_archi_recours','D'
182 ,_("Projet de construction"));
183 // bloc 5.1
184 $form->setBloc('co_archi_recours','D',_("Architecte"),"col_12");
185
186 $form->setBloc('co_archi_mail','F');
187
188 // bloc 5.2
189 $form->setBloc('co_cstr_nouv','D',_("Nature du projet"),"col_12");
190
191 $form->setBloc('co_elec_tension','F');
192
193 // bloc 5.3
194 $form->setBloc('co_tot_log_nb','D',_("Informations complementaires"),"col_12");
195
196 $form->setBloc('co_trx_nivsup','F');
197
198 // bloc 5.4
199 $form->setBloc('co_demont_period','D',_("Construction periodiquement
200 demontee et re-installee"),"col_12");
201
202 $form->setBloc('co_demont_period','F');
203
204 // bloc 5.5
205 $form->setBloc('tab_surface','D',_("Destination des constructions
206 et tableau des surfaces"),"col_12");
207
208 $form->setBloc('tab_surface','F');
209
210 // bloc 5.6
211 $form->setBloc('co_sp_transport','D',_("Destination des constructions
212 futures en cas de realisation au benefice d'un
213 service public ou d'interet collectif"),"col_12");
214
215 $form->setBloc('co_sp_culture','F');
216
217 // bloc 5.7
218 $form->setBloc('co_statio_avt_nb','D',_("Stationnement"),"col_12");
219
220 $form->setBloc('co_statio_comm_cin_surf','F');
221
222 $form->setFieldset('co_statio_apr_surf','F','');
223
224 $form->setBloc('co_statio_apr_surf','F');
225
226
227 /*Fieldset n°6 Projet necessitant demolitions */
228 $form->setBloc('dm_constr_dates','D',"","col_12");
229 $form->setFieldset('dm_constr_dates','D'
230 ,_("Projet necessitant demolitions"));
231
232 $form->setBloc('dm_constr_dates','D',"","col_12");
233
234 $form->setBloc('dm_tot_log_nb','F');
235
236 $form->setFieldset('dm_tot_log_nb','F','');
237
238 $form->setBloc('dm_tot_log_nb','F');
239
240 $form->setBloc('tax_surf_tot','D',_("Declaration des elements necessaires au calcul des impositions"),"col_12");
241 $form->setBloc('tax_surf_tot','D',"","col_12");
242 $form->setFieldset('tax_surf_tot','D'
243 ,_("Renseignement"));
244
245 $form->setBloc('tax_surf_tot','D',"","col_12");
246
247 $form->setBloc('tax_dest_loc_tr','F');
248
249 $form->setBloc('tab_tax_su_princ','D',_("Locaux a usage d'habitation principale"),"col_12");
250 $form->setBloc('tab_tax_su_princ','F');
251
252 $form->setBloc('tab_tax_su_heber','D',_("Locaux a usage d'hebergement"),"col_12");
253 $form->setBloc('tab_tax_su_heber','F');
254
255 $form->setBloc('tab_tax_su_secon','D',_("Locaux a usage d'habitation secondaire"),"col_12");
256 $form->setBloc('tab_tax_su_secon','F');
257
258 $form->setBloc('tab_tax_su_tot','D',_("Total de logement"),"col_12");
259 $form->setBloc('tab_tax_su_tot','F');
260
261 $form->setBloc('tax_ext_pret','D',"","col_12");
262 $form->setBloc('tax_log_exist_nb','F');
263
264 $form->setBloc('tax_comm_nb','D',_("Creation ou extension de locaux non destines a l'habitation"),"col_12");
265 $form->setBloc('tab_tax_su_non_habit_surf','F');
266
267 $form->setBloc('tab_tax_am','D',_("Autres elements soumis a la taxe d'amenagement"),"col_12");
268 $form->setBloc('tab_tax_am','F');
269
270 $form->setBloc('tax_trx_presc_ppr','D',_("Cas particuliers"),"col_12");
271 $form->setBloc('tax_monu_hist','F');
272
273 $form->setFieldset('tax_monu_hist','F','');
274
275 $form->setBloc('tax_monu_hist','F');
276
277 $form->setBloc('vsd_surf_planch_smd','D',"","col_12");
278 $form->setFieldset('vsd_surf_planch_smd','D'
279 ,_("Autres renseignements"));
280
281 $form->setBloc('vsd_surf_planch_smd','D',_("Versement pour sous-densite (VSD)"),"col_12");
282 $form->setBloc('vsd_rescr_fisc','F');
283
284 $form->setBloc('pld_val_terr','D',_("Plafond legal de densite (PLD)"),"col_12");
285 $form->setBloc('pld_const_exist_dem_surf','F');
286
287 $form->setFieldset('pld_const_exist_dem_surf','F','');
288
289 $form->setBloc('pld_const_exist_dem_surf','F');
290
291 $form->setBloc('pld_const_exist_dem_surf','F');
292 }
293
294 }// fin classe
295 ?>

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26