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 |
|
|
if($maj == 0) { |
21 |
|
|
$form->setType('tab_surface', 'select'); |
22 |
|
|
}elseif($maj == 1) { |
23 |
|
|
$form->setType('tab_surface', 'select'); |
24 |
|
|
}elseif($maj == 2) { |
25 |
|
|
$form->setType('tab_surface', 'selecthiddenstatic'); |
26 |
|
|
}elseif($maj == 3) { |
27 |
|
|
$form->setType('tab_surface', 'selecthiddenstatic'); |
28 |
|
|
} |
29 |
|
|
} |
30 |
|
|
|
31 |
|
|
function setSelect(&$form, $maj,&$db,$debug) { |
32 |
|
|
parent::setSelect($form, $maj,$db,$debug); |
33 |
|
|
|
34 |
|
|
if(file_exists ("../sql/".$db->phptype."/".$this->table.".form.inc.php")) |
35 |
|
|
include ("../sql/".$db->phptype."/".$this->table.".form.inc.php"); |
36 |
|
|
elseif(file_exists ("../sql/".$db->phptype."/".$this->table.".form.inc")) |
37 |
|
|
include ("../sql/".$db->phptype."/".$this->table.".form.inc"); |
38 |
|
|
|
39 |
|
|
// parametrage du tableau de surface |
40 |
|
|
$contenu=array(); |
41 |
|
|
$contenu[0]=array_keys($tab_surface); |
42 |
|
|
$contenu[1]=array_values($tab_surface); |
43 |
|
|
$form->setSelect("tab_surface",$contenu); |
44 |
|
|
|
45 |
nhaye |
1268 |
$contenu[0]=array_keys($tab_tax_su_princ); |
46 |
|
|
$contenu[1]=array_values($tab_tax_su_princ); |
47 |
|
|
$form->setSelect("tab_tax_su_princ",$contenu); |
48 |
|
|
|
49 |
|
|
$contenu[0]=array_keys($tab_tax_su_heber); |
50 |
|
|
$contenu[1]=array_values($tab_tax_su_heber); |
51 |
|
|
$form->setSelect("tab_tax_su_heber",$contenu); |
52 |
|
|
|
53 |
|
|
$contenu[0]=array_keys($tab_tax_su_secon); |
54 |
|
|
$contenu[1]=array_values($tab_tax_su_secon); |
55 |
|
|
$form->setSelect("tab_tax_su_secon",$contenu); |
56 |
|
|
|
57 |
|
|
$contenu[0]=array_keys($tab_tax_su_tot); |
58 |
|
|
$contenu[1]=array_values($tab_tax_su_tot); |
59 |
|
|
$form->setSelect("tab_tax_su_tot",$contenu); |
60 |
|
|
|
61 |
|
|
$contenu[0]=array_keys($tab_tax_su_non_habit_surf); |
62 |
|
|
$contenu[1]=array_values($tab_tax_su_non_habit_surf); |
63 |
|
|
$form->setSelect("tab_tax_su_non_habit_surf",$contenu); |
64 |
|
|
|
65 |
|
|
$contenu[0]=array_keys($tab_tax_am); |
66 |
|
|
$contenu[1]=array_values($tab_tax_am); |
67 |
|
|
$form->setSelect("tab_tax_am",$contenu); |
68 |
|
|
|
69 |
|
|
|
70 |
|
|
|
71 |
nhaye |
1258 |
} |
72 |
|
|
|
73 |
|
|
function setLayout(&$form, $maj) { |
74 |
|
|
|
75 |
|
|
/*Fieldset Parametrage du cerfa */ |
76 |
nhaye |
1268 |
$form->setBloc('cerfa','D',"","col_12"); |
77 |
|
|
$form->setFieldset('cerfa','D' |
78 |
nhaye |
1258 |
,_("Parametrage du cerfa")); |
79 |
|
|
|
80 |
|
|
|
81 |
nhaye |
1263 |
$form->setFieldset('om_validite_fin','F',''); |
82 |
|
|
$form->setBloc('om_validite_fin','F'); |
83 |
nhaye |
1258 |
|
84 |
nhaye |
1268 |
$form->setBloc('avap_co_elt_pro','D',"","col_12"); |
85 |
|
|
$form->setFieldset('avap_co_elt_pro','D' |
86 |
|
|
,_("Projet")); |
87 |
|
|
|
88 |
|
|
|
89 |
|
|
$form->setFieldset('avap_aut_auv_elec','F',''); |
90 |
|
|
$form->setBloc('avap_aut_auv_elec','F'); |
91 |
|
|
|
92 |
|
|
|
93 |
|
|
$form->setBloc('tr_total','D',"","col_12"); |
94 |
|
|
$form->setFieldset('tr_total','D' |
95 |
|
|
,_("Projet")); |
96 |
|
|
|
97 |
|
|
|
98 |
|
|
$form->setFieldset('tr_desc','F',''); |
99 |
|
|
$form->setBloc('tr_desc','F'); |
100 |
|
|
|
101 |
|
|
|
102 |
|
|
|
103 |
nhaye |
1258 |
/*Fieldset n°4 Projet d'aménagement */ |
104 |
|
|
$form->setBloc('am_lotiss','D',"","col_12"); |
105 |
|
|
$form->setFieldset('am_lotiss','D' |
106 |
|
|
,_("Projet d'amenagement")); |
107 |
|
|
// bloc 4.1 |
108 |
|
|
$form->setBloc('am_lotiss','D',_("Nature des travaux, instalations |
109 |
|
|
ou aménagements envisagés"),"col_12"); |
110 |
|
|
|
111 |
|
|
$form->setBloc('am_tranche_desc','F'); |
112 |
|
|
|
113 |
|
|
// bloc 4.2 |
114 |
|
|
$form->setBloc('am_lot_max_nb','D',_("Demande concernant un lotissement"),"col_12"); |
115 |
|
|
|
116 |
|
|
$form->setBloc('am_lot_vente_ant','F'); |
117 |
|
|
|
118 |
|
|
// bloc 4.3 |
119 |
|
|
$form->setBloc('am_empl_nb','D',_("Amenagement d'un camping ou |
120 |
|
|
d'un terrain aménagé en vue de l'hébergement |
121 |
|
|
touristique"),"col_12"); |
122 |
|
|
|
123 |
|
|
$form->setBloc('am_exist_agrand','F'); |
124 |
|
|
|
125 |
|
|
$form->setFieldset('am_coupe_autr','F',''); |
126 |
|
|
|
127 |
|
|
$form->setBloc('am_coupe_autr','F'); |
128 |
|
|
|
129 |
|
|
/*Fieldset n°5 Projet de construction */ |
130 |
|
|
$form->setBloc('co_archi_recours','D',"","col_12"); |
131 |
|
|
$form->setFieldset('co_archi_recours','D' |
132 |
|
|
,_("Projet de construction")); |
133 |
|
|
// bloc 5.1 |
134 |
|
|
$form->setBloc('co_archi_recours','D',_("Architecte"),"col_12"); |
135 |
|
|
|
136 |
|
|
$form->setBloc('co_archi_recours','F'); |
137 |
|
|
|
138 |
|
|
// bloc 5.2 |
139 |
|
|
$form->setBloc('co_cstr_nouv','D',_("Nature du projet"),"col_12"); |
140 |
|
|
|
141 |
|
|
$form->setBloc('co_elec_tension','F'); |
142 |
|
|
|
143 |
|
|
// bloc 5.3 |
144 |
|
|
$form->setBloc('co_tot_log_nb','D',_("Informations complementaires"),"col_12"); |
145 |
|
|
|
146 |
|
|
$form->setBloc('co_trx_nivsup','F'); |
147 |
|
|
|
148 |
|
|
// bloc 5.4 |
149 |
|
|
$form->setBloc('co_demont_period','D',_("Construction periodiquement |
150 |
|
|
démontee et re-installee"),"col_12"); |
151 |
|
|
|
152 |
|
|
$form->setBloc('co_demont_period','F'); |
153 |
|
|
|
154 |
|
|
// bloc 5.5 |
155 |
|
|
$form->setBloc('tab_surface','D',_("Destination des constructions |
156 |
|
|
et tableau des surfaces"),"col_12"); |
157 |
|
|
|
158 |
|
|
$form->setBloc('tab_surface','F'); |
159 |
|
|
|
160 |
|
|
// bloc 5.6 |
161 |
|
|
$form->setBloc('co_sp_transport','D',_("Destination des constructions |
162 |
|
|
futures en cas de realisation au benefice d'un |
163 |
|
|
service public ou d'interet collectif"),"col_12"); |
164 |
|
|
|
165 |
|
|
$form->setBloc('co_sp_culture','F'); |
166 |
|
|
|
167 |
|
|
// bloc 5.7 |
168 |
|
|
$form->setBloc('co_statio_avt_nb','D',_("Stationnement"),"col_12"); |
169 |
|
|
|
170 |
|
|
$form->setBloc('co_statio_comm_cin_surf','F'); |
171 |
|
|
|
172 |
|
|
$form->setFieldset('co_statio_apr_surf','F',''); |
173 |
|
|
|
174 |
|
|
$form->setBloc('co_statio_apr_surf','F'); |
175 |
|
|
|
176 |
|
|
|
177 |
|
|
/*Fieldset n°6 Projet necessitant demolitions */ |
178 |
|
|
$form->setBloc('dm_constr_dates','D',"","col_12"); |
179 |
|
|
$form->setFieldset('dm_constr_dates','D' |
180 |
|
|
,_("Projet necessitant demolitions")); |
181 |
|
|
|
182 |
|
|
$form->setBloc('dm_constr_dates','D',"","col_12"); |
183 |
|
|
|
184 |
|
|
$form->setBloc('dm_tot_log_nb','F'); |
185 |
|
|
|
186 |
|
|
$form->setFieldset('dm_tot_log_nb','F',''); |
187 |
|
|
|
188 |
|
|
$form->setBloc('dm_tot_log_nb','F'); |
189 |
nhaye |
1268 |
|
190 |
|
|
$form->setBloc('tax_surf_tot','D',_("Declaration des elements necessaires au calcul des impositions"),"col_12"); |
191 |
|
|
$form->setBloc('tax_surf_tot','D',"","col_12"); |
192 |
|
|
$form->setFieldset('tax_surf_tot','D' |
193 |
|
|
,_("Renseignement")); |
194 |
|
|
|
195 |
|
|
$form->setBloc('tax_surf_tot','D',"","col_12"); |
196 |
|
|
|
197 |
|
|
$form->setBloc('tax_dest_loc_tr','F'); |
198 |
|
|
|
199 |
|
|
$form->setBloc('tab_tax_su_princ','D',_("Locaux a usage d'habitation principale"),"col_12"); |
200 |
|
|
$form->setBloc('tab_tax_su_princ','F'); |
201 |
|
|
|
202 |
|
|
$form->setBloc('tab_tax_su_heber','D',_("Locaux a usage d'hebergement"),"col_12"); |
203 |
|
|
$form->setBloc('tab_tax_su_heber','F'); |
204 |
|
|
|
205 |
|
|
$form->setBloc('tab_tax_su_secon','D',_("Locaux a usage d'habitation secondaire"),"col_12"); |
206 |
|
|
$form->setBloc('tab_tax_su_secon','F'); |
207 |
|
|
|
208 |
|
|
$form->setBloc('tab_tax_su_tot','D',_("Total de logement"),"col_12"); |
209 |
|
|
$form->setBloc('tab_tax_su_tot','F'); |
210 |
|
|
|
211 |
|
|
$form->setBloc('tax_ext_pret','D',"","col_12"); |
212 |
|
|
$form->setBloc('tax_log_exist_nb','F'); |
213 |
|
|
|
214 |
|
|
$form->setBloc('tax_comm_nb','D',_("Creation ou extension de locaux non destines a l'habitation"),"col_12"); |
215 |
|
|
$form->setBloc('tab_tax_su_non_habit_surf','F'); |
216 |
|
|
|
217 |
|
|
$form->setBloc('tab_tax_am','D',_("Autres elements soumis a la taxe d'amenagement"),"col_12"); |
218 |
|
|
$form->setBloc('tab_tax_am','F'); |
219 |
|
|
|
220 |
|
|
$form->setBloc('tax_trx_presc_ppr','D',_("Cas particuliers"),"col_12"); |
221 |
|
|
$form->setBloc('tax_monu_hist','F'); |
222 |
|
|
|
223 |
|
|
$form->setFieldset('tax_monu_hist','F',''); |
224 |
|
|
|
225 |
|
|
$form->setBloc('tax_monu_hist','F'); |
226 |
|
|
|
227 |
|
|
$form->setBloc('vsd_surf_planch_smd','D',"","col_12"); |
228 |
|
|
$form->setFieldset('vsd_surf_planch_smd','D' |
229 |
|
|
,_("Autres renseignements")); |
230 |
|
|
|
231 |
|
|
$form->setBloc('vsd_surf_planch_smd','D',_("Versement pour sous-densite (VSD)"),"col_12"); |
232 |
|
|
$form->setBloc('vsd_rescr_fisc','F'); |
233 |
|
|
|
234 |
|
|
$form->setBloc('pld_val_terr','D',_("Plafond legal de densite (PLD)"),"col_12"); |
235 |
|
|
$form->setBloc('pld_const_exist_dem_surf','F'); |
236 |
|
|
|
237 |
|
|
$form->setFieldset('pld_const_exist_dem_surf','F',''); |
238 |
|
|
|
239 |
|
|
$form->setBloc('pld_const_exist_dem_surf','F'); |
240 |
|
|
|
241 |
|
|
$form->setBloc('pld_const_exist_dem_surf','F'); |
242 |
nhaye |
1258 |
} |
243 |
|
|
|
244 |
vpihour |
1249 |
}// fin classe |
245 |
|
|
?> |