28 |
} |
} |
29 |
} |
} |
30 |
|
|
|
function verifier($val, &$db, $DEBUG) { |
|
|
parent::verifier($val, $db, $DEBUG); |
|
|
// Vérification que les dates de validités de cerfa ne se chevauchent pas |
|
|
$sql = "SELECT count(*) FROM ".DB_PREFIXE."cerfa |
|
|
WHERE dossier_instruction_type=".$this->valF['dossier_instruction_type']. |
|
|
" AND om_validite_fin >= '".$this->valF['om_validite_debut']."'". |
|
|
" AND om_validite_debut <= '".$this->valF['om_validite_fin']."'". |
|
|
" AND cerfa != '".$this->valF['cerfa']."'"; |
|
|
$count = $db->getOne($sql); |
|
|
$this->addToLog("db->getone(\"".$sql."\");", VERBOSE_MODE); |
|
|
$this->f->isDatabaseError($count); |
|
|
if($count>0) { |
|
|
$this->correct=false; |
|
|
$this->addToMessage(_("Un cerfa pour ce type de dossier d'instruction |
|
|
et sur l'interval de dates selectionnees existe deja.")); |
|
|
} |
|
|
} |
|
|
|
|
31 |
function setSelect(&$form, $maj,&$db,$debug) { |
function setSelect(&$form, $maj,&$db,$debug) { |
32 |
parent::setSelect($form, $maj,$db,$debug); |
parent::setSelect($form, $maj,$db,$debug); |
33 |
|
|
42 |
$contenu[1]=array_values($tab_surface); |
$contenu[1]=array_values($tab_surface); |
43 |
$form->setSelect("tab_surface",$contenu); |
$form->setSelect("tab_surface",$contenu); |
44 |
|
|
45 |
|
$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 |
} |
} |
72 |
|
|
73 |
function setLayout(&$form, $maj) { |
function setLayout(&$form, $maj) { |
74 |
|
|
75 |
/*Fieldset Parametrage du cerfa */ |
/*Fieldset Parametrage du cerfa */ |
76 |
$form->setBloc('libelle','D',"","col_12"); |
$form->setBloc('cerfa','D',"","col_12"); |
77 |
$form->setFieldset('libelle','D' |
$form->setFieldset('cerfa','D' |
78 |
,_("Parametrage du cerfa")); |
,_("Parametrage du cerfa")); |
79 |
|
|
80 |
|
|
81 |
$form->setFieldset('dossier_instruction_type','F',''); |
$form->setFieldset('om_validite_fin','F',''); |
82 |
$form->setBloc('dossier_instruction_type','F'); |
$form->setBloc('om_validite_fin','F'); |
83 |
|
|
84 |
|
$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 |
/*Fieldset n°4 Projet d'aménagement */ |
/*Fieldset n°4 Projet d'aménagement */ |
104 |
$form->setBloc('am_lotiss','D',"","col_12"); |
$form->setBloc('am_lotiss','D',"","col_12"); |
186 |
$form->setFieldset('dm_tot_log_nb','F',''); |
$form->setFieldset('dm_tot_log_nb','F',''); |
187 |
|
|
188 |
$form->setBloc('dm_tot_log_nb','F'); |
$form->setBloc('dm_tot_log_nb','F'); |
189 |
|
|
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 |
} |
} |
243 |
|
|
244 |
}// fin classe |
}// fin classe |