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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1854 - (hide annotations)
Mon May 6 16:19:09 2013 UTC (11 years, 8 months ago) by nhaye
File size: 12039 byte(s)
Régénération et ajout de traductions suite a l'ajout de champs dans les table cerfa et donnees_techniques (r1849)

1 vpihour 1249 <?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 nhaye 1258
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 vpihour 1329 //Ajout des select sur les tableaux
21 nhaye 1258 if($maj == 0) {
22 vpihour 1329
23 nhaye 1258 $form->setType('tab_surface', 'select');
24 vpihour 1329 $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 nhaye 1258 }elseif($maj == 1) {
31 vpihour 1329
32 nhaye 1258 $form->setType('tab_surface', 'select');
33 vpihour 1329 $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 nhaye 1258 }elseif($maj == 2) {
40 vpihour 1329
41 nhaye 1258 $form->setType('tab_surface', 'selecthiddenstatic');
42 vpihour 1329 $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 nhaye 1258 }elseif($maj == 3) {
49 vpihour 1329
50 nhaye 1258 $form->setType('tab_surface', 'selecthiddenstatic');
51 vpihour 1329 $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 nhaye 1258 }
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 nhaye 1268 $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 nhaye 1258 }
101    
102     function setLayout(&$form, $maj) {
103    
104     /*Fieldset Parametrage du cerfa */
105 nhaye 1268 $form->setBloc('cerfa','D',"","col_12");
106     $form->setFieldset('cerfa','D'
107 nhaye 1258 ,_("Parametrage du cerfa"));
108    
109    
110 nhaye 1263 $form->setFieldset('om_validite_fin','F','');
111     $form->setBloc('om_validite_fin','F');
112 nhaye 1258
113 nhaye 1616 $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 nhaye 1268 $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 nhaye 1828 /*Fieldset n°4 Ouverture de chantier */
138 nhaye 1829 $form->setBloc('doc_date','D',"","col_12");
139     $form->setFieldset('doc_date','D'
140 nhaye 1828 ,_("Ouverture de chantier"));
141 nhaye 1268
142 nhaye 1828 $form->setFieldset('doc_nb_log_autre','F','');
143     $form->setBloc('doc_nb_log_autre','F');
144 nhaye 1268
145 nhaye 1828 /*Fieldset n°4 Achèvement des travaux */
146 nhaye 1829 $form->setBloc('daact_date','D',"","col_12");
147     $form->setFieldset('daact_date','D'
148 nhaye 1828 ,_("Achevement des travaux"));
149    
150     $form->setFieldset('daact_nb_log_autre','F','');
151     $form->setBloc('daact_nb_log_autre','F');
152    
153 fmichon 1316 /*Fieldset n°4 Projet d'amenagement */
154 nhaye 1258 $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 fmichon 1316 ou amenagements envisages"),"col_12");
160 nhaye 1258
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 fmichon 1316 d'un terrain amenage en vue de l'hebergement
171 nhaye 1258 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 nhaye 1615 $form->setBloc('co_archi_mail','F');
187 nhaye 1258
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 fmichon 1316 demontee et re-installee"),"col_12");
201 nhaye 1258
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 nhaye 1854
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 nhaye 1258
233     /*Fieldset n°6 Projet necessitant demolitions */
234     $form->setBloc('dm_constr_dates','D',"","col_12");
235     $form->setFieldset('dm_constr_dates','D'
236     ,_("Projet necessitant demolitions"));
237    
238     $form->setBloc('dm_constr_dates','D',"","col_12");
239    
240     $form->setBloc('dm_tot_log_nb','F');
241    
242     $form->setFieldset('dm_tot_log_nb','F','');
243    
244     $form->setBloc('dm_tot_log_nb','F');
245 nhaye 1268
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 nhaye 1258 }
299    
300 vpihour 1249 }// fin classe
301     ?>

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26