<?php
//$Id: cerfa.class.php 4943 2015-07-23 10:38:36Z stimezouaght $ 
//gen openMairie le 13/02/2013 14:41

require_once ("../gen/obj/cerfa.class.php");

class cerfa extends cerfa_gen {

    function cerfa($id,&$db,$debug) {
        $this->constructeur($id,$db,$debug);
    }// fin constructeur


    function setType(&$form,$maj) {
        parent::setType($form,$maj);


        //Ajout des select sur les tableaux
        if($maj == 0) {
            
            $form->setType('tab_surface', 'select');
            $form->setType('tab_tax_su_princ', 'select');
            $form->setType('tab_tax_su_heber', 'select');
            $form->setType('tab_tax_su_secon', 'select');
            $form->setType('tab_tax_su_tot', 'select');
            $form->setType('tab_tax_su_non_habit_surf', 'select');
            $form->setType('tab_tax_su_parc_statio_expl_comm', 'select');
            $form->setType('tab_tax_am', 'select');
        }elseif($maj == 1) {
                
            $form->setType('tab_surface', 'select');
            $form->setType('tab_tax_su_princ', 'select');
            $form->setType('tab_tax_su_heber', 'select');
            $form->setType('tab_tax_su_secon', 'select');
            $form->setType('tab_tax_su_tot', 'select');
            $form->setType('tab_tax_su_non_habit_surf', 'select');
            $form->setType('tab_tax_su_parc_statio_expl_comm', 'select');
            $form->setType('tab_tax_am', 'select');
        }elseif($maj == 2) {
                
            $form->setType('tab_surface', 'selecthiddenstatic');
            $form->setType('tab_tax_su_princ', 'selecthiddenstatic');
            $form->setType('tab_tax_su_heber', 'selecthiddenstatic');
            $form->setType('tab_tax_su_secon', 'selecthiddenstatic');
            $form->setType('tab_tax_su_tot', 'selecthiddenstatic');
            $form->setType('tab_tax_su_non_habit_surf', 'selecthiddenstatic');
            $form->setType('tab_tax_su_parc_statio_expl_comm', 'selecthiddenstatic');
            $form->setType('tab_tax_am', 'selecthiddenstatic');
        }elseif($maj == 3) {
                
            $form->setType('tab_surface', 'selecthiddenstatic');
            $form->setType('tab_tax_su_princ', 'selecthiddenstatic');
            $form->setType('tab_tax_su_heber', 'selecthiddenstatic');
            $form->setType('tab_tax_su_secon', 'selecthiddenstatic');
            $form->setType('tab_tax_su_tot', 'selecthiddenstatic');
            $form->setType('tab_tax_su_non_habit_surf', 'selecthiddenstatic');
            $form->setType('tab_tax_su_parc_statio_expl_comm', 'selecthiddenstatic');
            $form->setType('tab_tax_am', 'selecthiddenstatic');
        }
        $form->setType('co_statio_avt_shob', 'hidden');
        $form->setType('co_statio_apr_shob', 'hidden');
        $form->setType('co_statio_avt_surf', 'hidden');
        $form->setType('co_statio_apr_surf', 'hidden');
        $form->setType('co_trx_amgt', 'hidden');
        $form->setType('co_modif_aspect', 'hidden');
        $form->setType('co_modif_struct', 'hidden');
        $form->setType('co_trx_imm', 'hidden');
        $form->setType('co_cstr_shob', 'hidden');
        $form->setType('am_voyage_deb', 'hidden');
        $form->setType('am_voyage_fin', 'hidden');
        $form->setType('am_modif_amgt', 'hidden');
        $form->setType('am_lot_max_shob', 'hidden');
        $form->setType('mod_desc', 'hidden');
        $form->setType('tr_total', 'hidden');
        $form->setType('tr_partiel', 'hidden');
        $form->setType('tr_desc', 'hidden');
        $form->setType('avap_co_clot', 'hidden');
        $form->setType('avap_aut_coup_aba_arb', 'hidden');
        $form->setType('avap_ouv_infra', 'hidden');
        $form->setType('avap_aut_inst_mob', 'hidden');
        $form->setType('avap_aut_plant', 'hidden');
        $form->setType('avap_aut_auv_elec', 'hidden');
        $form->setType('tax_dest_loc_tr', 'hidden');
    }

    function setSelect(&$form, $maj,&$db,$debug) {
        parent::setSelect($form, $maj,$db,$debug);

        if(file_exists ("../sql/".OM_DB_PHPTYPE."/".$this->table.".form.inc.php"))
            include ("../sql/".OM_DB_PHPTYPE."/".$this->table.".form.inc.php");
        elseif(file_exists ("../sql/".OM_DB_PHPTYPE."/".$this->table.".form.inc"))
            include ("../sql/".OM_DB_PHPTYPE."/".$this->table.".form.inc");
        
        // parametrage du tableau de surface
        $contenu=array();
        $contenu[0]=array_keys($tab_surface);
        $contenu[1]=array_values($tab_surface);
        $form->setSelect("tab_surface",$contenu);

        $contenu[0]=array_keys($tab_tax_su_princ);
        $contenu[1]=array_values($tab_tax_su_princ);
        $form->setSelect("tab_tax_su_princ",$contenu);

        $contenu[0]=array_keys($tab_tax_su_heber);
        $contenu[1]=array_values($tab_tax_su_heber);
        $form->setSelect("tab_tax_su_heber",$contenu);

        $contenu[0]=array_keys($tab_tax_su_secon);
        $contenu[1]=array_values($tab_tax_su_secon);
        $form->setSelect("tab_tax_su_secon",$contenu);

        $contenu[0]=array_keys($tab_tax_su_tot);
        $contenu[1]=array_values($tab_tax_su_tot);
        $form->setSelect("tab_tax_su_tot",$contenu);

        $contenu[0]=array_keys($tab_tax_su_non_habit_surf);
        $contenu[1]=array_values($tab_tax_su_non_habit_surf);
        $form->setSelect("tab_tax_su_non_habit_surf",$contenu);

        $contenu=array();
        $contenu[0]=array_keys($tab_tax_su_parc_statio_expl_comm);
        $contenu[1]=array_values($tab_tax_su_parc_statio_expl_comm);
        $form->setSelect("tab_tax_su_parc_statio_expl_comm",$contenu);

        $contenu[0]=array_keys($tab_tax_am);
        $contenu[1]=array_values($tab_tax_am);
        $form->setSelect("tab_tax_am",$contenu);



    }

    function setLayout(&$form, $maj) {

        /*Fieldset Parametrage du cerfa */
        $form->setBloc('cerfa','D',"","col_12");
            $form->setFieldset('cerfa','D'
                               ,_("Parametrage du cerfa"), "col_12");

            $form->setFieldset('om_validite_fin','F','');
        $form->setBloc('om_validite_fin','F');

        // Terrain

        $form->setBloc('terr_juri_titul','D',"","col_12 alignFormSpec");
            $form->setFieldset('terr_juri_titul','D'
                               ,_("Terrain"), "startClosed");

                $form->setBloc('terr_juri_titul','DF',_("Situation juridique du terrain"), "group");
                $form->setBloc('terr_juri_lot','DF',"", "group");
                $form->setBloc('terr_juri_zac','DF',"", "group");
                $form->setBloc('terr_juri_afu','DF',"", "group");
                $form->setBloc('terr_juri_pup','DF',"", "group");
                $form->setBloc('terr_juri_oin','DF',"", "group");
                $form->setBloc('terr_juri_desc','DF',"", "group");
                $form->setBloc('terr_div_surf_etab','DF',_("Terrain issu d'une division de propriete"), "group");
                $form->setBloc('terr_div_surf_av_div','DF',"", "group");

            $form->setFieldset('terr_div_surf_av_div','F','');
            
        $form->setBloc('terr_div_surf_av_div','F');

        // Description de la demande / du projet
        $form->setFieldset('ope_proj_desc', 'D',
            _("Description de la demande / du projet"), "col_12 startClosed");
            $form->setBloc('ope_proj_desc', 'DF', "", "group");
            $form->setBloc('ope_proj_div_co', 'DF', "", "group");
            $form->setBloc('ope_proj_div_contr', 'DF', "", "group");
        $form->setFieldset('ope_proj_div_contr', 'F');

        // Aménager
        $form->setBloc('am_lotiss','D',"","col_12");
            $form->setFieldset('am_lotiss','D'
                                       ,_("Amenager"), "startClosed");
                $form->setBloc('am_lotiss','D',"","col_12");
                    $form->setFieldset('am_lotiss','D'
                                       ,_("Projet d'amenagement"), "startClosed alignFormSpec");
                        // bloc 4.1
                        $form->setBloc('am_lotiss','DF',_("Nature des travaux, instalations
                                       ou amenagements envisages"), "group");
                        $form->setBloc('am_div_mun','DF',"", "group");
                        $form->setBloc('am_autre_div','DF',"", "group");
                        $form->setBloc('am_camping','DF',"", "group");
                        $form->setBloc('am_parc_resid_loi','DF',"", "group");
                        $form->setBloc('am_sport_moto','DF',"", "group");
                        $form->setBloc('am_sport_attrac','DF',"", "group");
                        $form->setBloc('am_sport_golf','DF',"", "group");
                        $form->setBloc('am_caravane','DF',"", "group");
                        $form->setBloc('am_carav_duree','DF',"", "group");
                        $form->setBloc('am_statio','DF',"", "group");
                        $form->setBloc('am_statio_cont','DF',"", "group");
                        $form->setBloc('am_affou_exhau','DF',"", "group");
                        $form->setBloc('am_affou_exhau_sup','DF',"", "group");
                        $form->setBloc('am_affou_prof','DF',"", "group");
                        $form->setBloc('am_exhau_haut','DF',"", "group");
                        
                        $form->setBloc('am_chem_ouv_esp','D',_("Dans les secteurs proteges :"),"col_12");
                            $form->setBloc('am_chem_ouv_esp','DF',_("Amenagement situe dans un espace remarquable :"), "group");
                            $form->setBloc('am_agri_peche','DF',"", "group");
                            
                            $form->setBloc('am_crea_voie','DF',_("Amenagement situe dans un secteur sauvegarde :"), "group");
                            $form->setBloc('am_modif_voie_exist','DF',"", "group");
                            $form->setBloc('am_crea_esp_sauv','DF',"", "group");
                            
                            $form->setBloc('am_crea_esp_class','DF',_("Amenagement situe dans un site classe ou une reserve naturelle 1 :"), "group");
                            $form->setBloc('am_coupe_abat','DF',"", "group");
                            $form->setBloc('am_prot_plu','DF',"", "group");
                            $form->setBloc('am_prot_muni','DF',"", "group");
                            $form->setBloc('am_mobil_voyage','DF',"", "group");
                            $form->setBloc('am_aire_voyage','DF',"", "group");
                            $form->setBloc('am_rememb_afu','DF',"", "group");
                            $form->setBloc('co_ouvr_infra','DF',"", "group");
                        $form->setBloc('co_ouvr_infra','F');

                        $form->setBloc('am_mob_art','DF',_("Dans un secteur sauvegarde, site classe ou reserve naturelle :"), "group");
                        $form->setBloc('am_modif_voie_esp','DF',"", "group");
                        $form->setBloc('am_plant_voie_esp','DF',"", "group");
                        $form->setBloc('co_ouvr_elec','DF',"", "group");
                    $form->setFieldset('co_ouvr_elec','F','');
                $form->setBloc('co_ouvr_elec','F');
                $form->setBloc('am_projet_desc','D',"","col_12");
                    $form->setFieldset('am_projet_desc','D'
                                       ,_("Description amenagement"), "startClosed alignFormSpec");
                                       
                        $form->setBloc('am_projet_desc','DF',"", "group");
                        $form->setBloc('am_terr_surf','DF',"", "group");
                        $form->setBloc('am_tranche_desc','DF',"", "group");
                        
                    $form->setFieldset('am_tranche_desc','F','');
                $form->setBloc('am_tranche_desc','F');
                $form->setBloc('am_lot_max_nb','D',"","col_12");
                    $form->setFieldset('am_lot_max_nb','D'
                                       ,_("Complement d'amenagement"), "startClosed");
                        // bloc 4.2
                        $form->setBloc('am_lot_max_nb','D',_("Demande concernant un lotissement"),"col_12 alignFormSpec");
                        
                            $form->setBloc('am_lot_max_nb','DF',"", "group");
                            $form->setBloc('am_lot_max_shon','DF',"", "group");
                        
                            $form->setBloc('am_lot_cstr_cos','DF',_("Comment la constructibilite globale sera-t-elle repartie ?"), "group");
                            $form->setBloc('am_lot_cstr_plan','DF',"", "group");
                            $form->setBloc('am_lot_cstr_vente','DF',"", "group");
                            $form->setBloc('am_lot_fin_diff','DF',"", "group");
                            
                            $form->setBloc('am_lot_consign','DF',_("si oui, quelle garantie sera utilisee ?"), "group");
                            $form->setBloc('am_lot_gar_achev','DF',"", "group");
                            $form->setBloc('am_lot_vente_ant','DF',"", "group");
                        $form->setBloc('am_lot_vente_ant','F');

                        // bloc 4.3
                        $form->setBloc('am_exist_agrand','D',_("Amenagement d'un camping ou
                                       d'un terrain amenage en vue de l'hebergement
                                       touristique"),"col_12");
                            $form->setBloc('am_exist_agrand','D',"", "alignFormSpec");
                                $form->setBloc('am_exist_agrand','DF',"", "group");
                                $form->setBloc('am_exist_date','DF',"", "group");
                                $form->setBloc('am_exist_num','DF',"", "group");
                                $form->setBloc('am_exist_nb_avant','DF',"", "group");
                                $form->setBloc('am_exist_nb_apres','DF',"", "group");
                                $form->setBloc('am_empl_nb','DF',"", "group");
                            $form->setBloc('am_empl_nb','F',"", "");

                            $form->setBloc('am_tente_nb','D',_("Nombre maximum d’emplacements reserves aux :"), "alignForm");
                            $form->setBloc('am_mobil_nb','F',"", "");
                            
                            $form->setBloc('am_pers_nb','DF',"", "alignFormSpec group");
                            
                            $form->setBloc('am_empl_hll_nb','D',_("Implantation d’habitations legeres de loisirs (HLL) :"), "alignFormSpec");
                                $form->setBloc('am_empl_hll_nb','DF',"", "group");
                                $form->setBloc('am_hll_shon','DF',"", "group");
                                $form->setBloc('am_periode_exploit','DF',"", "group");
                            $form->setBloc('am_periode_exploit','F',"", "");

                            $form->setBloc('am_coupe_bois','D',_("Declaration de coupe et/ou abattage d’arbres :"),"col_12 cerfasubtitle");
                                
                                $form->setBloc('am_coupe_bois','D',_("Courte description du lieu :"), "cerfasubtitle alignForm");
                                $form->setBloc('am_coupe_align','F',"", "");
                                
                                $form->setBloc('am_coupe_ess','D',_("Nature du boisement :"),"col_12 cerfasubtitle alignForm");
                                $form->setBloc('am_coupe_autr','F');
                            $form->setBloc('am_coupe_autr','F');
                        $form->setBloc('am_coupe_autr','F');


                    $form->setFieldset('am_coupe_autr','F','');
                
                $form->setBloc('am_coupe_autr','F');
            $form->setFieldset('am_coupe_autr','F','');
        $form->setBloc('am_coupe_autr','F');
        // Fin amménager
        // Construire
        $form->setBloc('co_archi_recours','D',"","col_12");
            $form->setFieldset('co_archi_recours','D'
                               ,_("Construire"), "startClosed");
                $form->setBloc('co_archi_recours','D', "","col_12");
                    $form->setFieldset('co_archi_recours','D'
                               ,_("Projet construction"), "startClosed alignFormSpec");
                         
                        $form->setBloc('co_archi_recours','DF',_("Architecte"), "group");
                        $form->setBloc('architecte','DF',"", "group");
                        
                        $form->setBloc('co_cstr_nouv','DF',_("Nature du projet"), "group");
                        $form->setBloc('avap_co_elt_pro','DF',"", "group");
                        $form->setBloc('avap_nouv_haut_surf','DF',"", "group");
                        $form->setBloc('co_cstr_exist','DF',"", "group");
                        $form->setBloc('co_div_terr','DF',"", "group");
                        $form->setBloc('co_cloture','DF',"", "group");
                        $form->setBloc('co_projet_desc','DF',"", "group");
                        $form->setBloc('co_elec_tension','DF',"", "group");
                    $form->setFieldset('co_elec_tension','F','');
                    $form->setFieldset('co_tot_log_nb','D'
                               ,_("Complement construction"), "startClosed");

                        $form->setBloc('co_tot_log_nb','D',"", "alignForm");
                        $form->setBloc('co_tot_coll_nb','F',"", "");
                        
                        $form->setBloc('co_mais_piece_nb','D',"", "alignForm");
                        $form->setBloc('co_mais_niv_nb','F',"", "");
                        
                        $form->setBloc('co_fin_lls_nb','D', _("Repartition du nombre total de logement crees par type de financement :"),"col_12");
                            $form->setBloc('co_fin_lls_nb','D',"", "alignForm");
                            $form->setBloc('co_fin_autr_nb','F',"", "");
                            
                            $form->setBloc('co_fin_autr_desc','DF',"", "alignFormSpec group");
                            $form->setBloc('co_mais_contrat_ind','DF',"", "alignFormSpec group");
                        $form->setBloc('co_mais_contrat_ind','F');
                        
                        $form->setBloc('co_uti_pers','D',_("Mode d'utilisation principale des logements :"), "col_12");
                            $form->setBloc('co_uti_pers','D', "", "alignForm");
                            $form->setBloc('co_uti_loc','F',"", "");
                        $form->setBloc('co_uti_loc','F',"", "");
                        
                        $form->setBloc('co_uti_princ','D',_("S’il s’agit d’une occupation personnelle, veuillez preciser :"), "col_12");
                            $form->setBloc('co_uti_princ','D',"", "alignForm");
                            $form->setBloc('co_uti_secon','F',"", "");
                        $form->setBloc('co_uti_secon','F',"", "group");

                        $form->setBloc('co_anx_pisc','D',_("Si le projet porte sur une annexe a l’habitation, veuillez preciser :"), "col_12");
                            $form->setBloc('co_anx_pisc','D',"", "alignForm");
                            $form->setBloc('co_anx_autr_desc','F',"", "");
                        $form->setBloc('co_anx_autr_desc','F',"", "group");
                        
                        $form->setBloc('co_resid_agees','D',_("Si le projet est un foyer ou une residence, a quel titre :"), "col_12");
                            $form->setBloc('co_resid_agees','D',"", "alignForm");
                            $form->setBloc('co_resid_hand','F',"", "");
                        $form->setBloc('co_resid_hand','F',"", "group");
                        
                        $form->setBloc('co_resid_autr','D',"", "alignFormSpec");
                        $form->setBloc('co_foyer_chamb_nb','F',"", "");
                        
                        $form->setBloc('co_log_1p_nb','D',_("Repartition du nombre de logements crees selon le nombre de pieces :"), "col_12");
                            $form->setBloc('co_log_1p_nb','D', "", "alignForm");
                            $form->setBloc('co_log_6p_nb','F',"", "group");
                        $form->setBloc('co_log_6p_nb','F',"", "group");
                        
                        $form->setBloc('co_bat_niv_nb','DF',"", "alignFormSpec");
                        
                        $form->setBloc('co_trx_exten','D',_("Indiquez si vos travaux comprennent notamment :"), "col_12");
                            $form->setBloc('co_trx_exten','D',"", "alignForm");
                            $form->setBloc('co_trx_nivsup','F',"", "group");

                            $form->setBloc('co_demont_periode','DF', _("Construction periodiquement demontee et re-installee :"),"alignFormSpec group");

                        $form->setBloc('co_demont_periode','F',"", "group");
                    $form->setFieldset('co_demont_periode','F','');

                    $form->setFieldset('tab_surface','D'
                               ,_("Destinations et surfaces des constructions"), "startClosed");
                        $form->setBloc('tab_surface','DF', "","alignFormSpec group");
                        
                        $form->setBloc('co_sp_transport','D', _("Destination des constructions futures en cas de realisation au benefice d'un service public ou d'interet collectif :"),"col_12");
                            $form->setBloc('co_sp_transport','D', "","alignForm");
                            $form->setBloc('co_sp_culture','F', "","");
                        $form->setBloc('co_sp_culture','F', "","");
                    $form->setFieldset('co_sp_culture','F','');
                    $form->setFieldset('co_statio_avt_nb','D'
                               ,_("Divers construction"), "startClosed");
                        $form->setBloc('co_statio_avt_nb','D', _("Nombre de places de stationnement"),"col_12");
                            $form->setBloc('co_statio_avt_nb','D', "","alignForm");
                            $form->setBloc('co_statio_apr_nb','F', "","");
                        $form->setBloc('co_statio_apr_nb','F', "","");
                        
                        $form->setBloc('co_statio_adr','D', _("Places de stationnement affectees au projet, amenagees ou reservees en dehors du terrain sur lequel est situe le projet"),"col_12");
                            $form->setBloc('co_statio_adr','DF', "","alignFormSpec");
                            
                            $form->setBloc('co_statio_place_nb','D', "","col_12");
                                $form->setBloc('co_statio_place_nb','D', "","alignForm");
                                $form->setBloc('co_statio_tot_shob','F', "","");
                            $form->setBloc('co_statio_tot_shob','F', "","");
                        $form->setBloc('co_statio_tot_shob','F');
                        $form->setBloc('co_statio_comm_cin_surf','D', _("Pour les commerces et cinemas :"),"col_12 alignFormSpec");
                        $form->setBloc('co_perf_energ','F',"", "");
                    $form->setFieldset('co_perf_energ','F','');
                $form->setBloc('co_perf_energ','F');

            $form->setFieldset('co_perf_energ','F','');
        
        $form->setBloc('co_perf_energ','F');
        // Fin construire

        /*Fieldset n°6 Projet necessitant demolitions */
        $form->setBloc('dm_constr_dates','D',"","col_12");
            $form->setFieldset('dm_constr_dates','D'
                               ,_("Demolir"), "startClosed alignFormSpec");
                
                $form->setBloc('dm_constr_dates','DF', "","group");
                $form->setBloc('dm_total','DF', "","group");
                $form->setBloc('dm_partiel','DF', "","group");
                $form->setBloc('dm_projet_desc','DF', "","group");
                $form->setBloc('dm_tot_log_nb','DF', "","group");
            $form->setFieldset('dm_tot_log_nb','F','');
        
        $form->setBloc('dm_tot_log_nb','F');

        /*Fieldset n°4 Ouverture de chantier */
        $form->setBloc('doc_date','D',"","col_12");
            $form->setFieldset('doc_date','D'
                               ,_("Ouverture de chantier"), "startClosed alignFormSpec");
                $form->setBloc('doc_date','DF', "","group");
                $form->setBloc('doc_tot_trav','DF', "","group");
                $form->setBloc('doc_tranche_trav','DF', "","group");
                $form->setBloc('doc_tranche_trav_desc','DF', "","group");
                $form->setBloc('doc_surf','DF', "","group");
                $form->setBloc('doc_nb_log','DF', "","group");
                $form->setBloc('doc_nb_log_indiv','DF', "","group");
                $form->setBloc('doc_nb_log_coll','DF', "","group");
                //
                $form->setBloc('doc_nb_log_lls','DF', _("Repartition du nombre de logements commences par type de financement"), "group");
                $form->setBloc('doc_nb_log_aa','DF', "","group");
                $form->setBloc('doc_nb_log_ptz','DF', "","group");
                $form->setBloc('doc_nb_log_autre','DF', "","group");
            $form->setFieldset('doc_nb_log_autre','F','');
        $form->setBloc('doc_nb_log_autre','F');

        /*Fieldset n°4  Achèvement des travaux */
        $form->setBloc('daact_date','D',"","col_12");
            $form->setFieldset('daact_date','D'
                               ,_("Achevement des travaux") , "startClosed alignFormSpec");
                $form->setBloc('daact_date','DF', "","group");
                $form->setBloc('daact_date_chgmt_dest','DF', "","group");
                $form->setBloc('daact_tot_trav','DF', "","group");
                $form->setBloc('daact_tranche_trav','DF', "","group");
                $form->setBloc('daact_tranche_trav_desc','DF', "","group");
                $form->setBloc('daact_surf','DF', "","group");
                $form->setBloc('daact_nb_log','DF', "","group");
                $form->setBloc('daact_nb_log_indiv','DF', "","group");
                $form->setBloc('daact_nb_log_coll','DF', "","group");
                //
                $form->setBloc('daact_nb_log_lls','DF', _("Repartition du nombre de logements commences par type de financement"), "group");
                $form->setBloc('daact_nb_log_aa','DF', "","group");
                $form->setBloc('daact_nb_log_ptz','DF', "","group");
                $form->setBloc('daact_nb_log_autre','DF', "","group");
            $form->setFieldset('daact_nb_log_autre','F','');
        $form->setBloc('daact_nb_log_autre','F');

        $form->setBloc('code_cnil','D',"","col_12");
            $form->setFieldset('code_cnil','D'
                               ,_("cnil (opposition à l’utilisation des informations du formulaire à des fins commerciales)") , "startClosed alignFormSpec");
                $form->setBloc('code_cnil','DF', "","group");
            $form->setFieldset('code_cnil','F','');
        $form->setBloc('code_cnil','F');

        $form->setBloc('tax_surf_tot_cstr','D',"","col_12");
            $form->setFieldset('tax_surf_tot_cstr','D'
                               ,_("Declaration des elements necessaires au calcul des impositions"), "startClosed alignFormSpec");
                
                $form->setBloc('tax_surf_tot_cstr','DF', _("Renseignement"),"group");
                $form->setBloc('tax_surf_tot','DF', "","group");
                $form->setBloc('tax_surf','DF', "","group");
                $form->setBloc('tax_surf_suppr_mod','DF', "","group");
                
                $form->setBloc('tab_tax_su_princ','DF', _("Creation de locaux destines a l’habitation :"),"group");
                $form->setBloc('tab_tax_su_secon','DF', "","group");
                $form->setBloc('tab_tax_su_heber','DF', "","group");
                $form->setBloc('tab_tax_su_tot','DF', "","group");
                //
                $form->setBloc('tax_ext_pret','DF', _("Extension de l’habitation principale ou creation d’un batiment annexe a cette habitation"), "group");
                $form->setBloc('tax_ext_desc','DF', "","group");
                $form->setBloc('tax_surf_tax_exist_cons','DF', "","group");
                $form->setBloc('tax_log_exist_nb','DF', "","group");
                $form->setBloc('tax_log_ap_trvx_nb','DF', "", "group");

                $form->setBloc('tax_comm_nb','DF', _("Creation ou extension de locaux non destines a l'habitation :"),"group");
                $form->setBloc('tab_tax_su_non_habit_surf','DF', "","group");
                $form->setBloc('tab_tax_am','DF', "","group");
                $form->setBloc('tab_tax_su_parc_statio_expl_comm', 'DF', "", "group");

                $form->setBloc('tax_am_statio_ext_cr','D', _("Autres elements crees soumis à la taxe d’amenagement :"),"col_12");
                $form->setBloc('tax_pann_volt_sup_cr','F');

                $form->setBloc('tax_surf_loc_arch','D', _("Redevance d’archeologie preventive"),"col_12 alignFormSpec");
                $form->setBloc('tax_eol_haut_nb_arch','F');

                $form->setBloc('tax_trx_presc_ppr','DF', _("Cas particuliers"),"group");
                $form->setBloc('tax_monu_hist','DF', "","group");

                $form->setBloc('vsd_surf_planch_smd','DF', _("Versement pour sous-densite (VSD)"),"group");
                $form->setBloc('vsd_unit_fonc_sup','DF', "","group");
                $form->setBloc('vsd_unit_fonc_constr_sup','DF', "","group");
                $form->setBloc('vsd_val_terr','DF', "","group");
                $form->setBloc('vsd_const_sxist_non_dem_surf','DF', "","group");
                $form->setBloc('vsd_rescr_fisc','DF', "","group");
                
                $form->setBloc('pld_val_terr','DF', _("Plafond legal de densite (PLD)"),"group");
                $form->setBloc('pld_const_exist_dem','DF', "","group");
                $form->setBloc('pld_const_exist_dem_surf','DF', "","group");

                $form->setBloc('tax_desc','DF', _("Autres renseignements"),"col_12 alignFormSpec");
            $form->setFieldset('tax_desc','F','');
        
        $form->setBloc('tax_desc','F');
    }
    
    function setLib(&$form,$maj) {
        parent::setLib($form,$maj);
        //libelle des champs
        $form->setLib('architecte', _("coordonnees de l'architecte"));
        $form->setLib('ope_proj_desc', _("description"));
    }
}// fin classe
?>
