17 |
**/ |
**/ |
18 |
function getCerfa(){ |
function getCerfa(){ |
19 |
if($this->getParameter("retourformulaire") == "lot") { |
if($this->getParameter("retourformulaire") == "lot") { |
20 |
$sql = "SELECT cerfa_lot FROM ".DB_PREFIXE."dossier_instruction_type |
$sql = "SELECT cerfa_lot FROM ".DB_PREFIXE."dossier_autorisation_type_detaille |
21 |
|
JOIN ".DB_PREFIXE."dossier_instruction_type ON dossier_instruction_type.dossier_autorisation_type_detaille= |
22 |
|
dossier_autorisation_type_detaille.dossier_autorisation_type_detaille |
23 |
JOIN ".DB_PREFIXE."dossier ON dossier.dossier_instruction_type= |
JOIN ".DB_PREFIXE."dossier ON dossier.dossier_instruction_type= |
24 |
dossier_instruction_type.dossier_instruction_type |
dossier_instruction_type.dossier_instruction_type |
25 |
JOIN ".DB_PREFIXE."lot ON dossier.dossier=lot.dossier |
JOIN ".DB_PREFIXE."lot ON dossier.dossier=lot.dossier |
26 |
WHERE lot.lot = ".$this->getParameter("idxformulaire"); |
WHERE lot.lot = ".$this->getParameter("idxformulaire"); |
27 |
|
|
28 |
} else { |
} else { |
29 |
$sql = "SELECT cerfa FROM ".DB_PREFIXE."dossier_instruction_type |
$sql = "SELECT cerfa FROM ".DB_PREFIXE."dossier_autorisation_type_detaille |
30 |
|
JOIN ".DB_PREFIXE."dossier_instruction_type ON dossier_instruction_type.dossier_autorisation_type_detaille= |
31 |
|
dossier_autorisation_type_detaille.dossier_autorisation_type_detaille |
32 |
JOIN ".DB_PREFIXE."dossier ON dossier.dossier_instruction_type= |
JOIN ".DB_PREFIXE."dossier ON dossier.dossier_instruction_type= |
33 |
dossier_instruction_type.dossier_instruction_type |
dossier_instruction_type.dossier_instruction_type |
34 |
WHERE dossier = '"; |
WHERE dossier = '"; |
126 |
$form->setSelect('terr_juri_desc',$value); |
$form->setSelect('terr_juri_desc',$value); |
127 |
$form->setSelect('terr_div_surf_etab',$value); |
$form->setSelect('terr_div_surf_etab',$value); |
128 |
$form->setSelect('terr_div_surf_av_div',$value); |
$form->setSelect('terr_div_surf_av_div',$value); |
129 |
|
|
130 |
|
|
131 |
|
//Récupérer le nom et le prénom de l'architecte |
132 |
|
$coordonneesArchitecte = $this->getPrenomNomArchitecte($this->getVal('architecte')); |
133 |
|
$value = ""; |
134 |
|
if ($maj<2){ |
135 |
|
$value = array( |
136 |
|
"data" => $coordonneesArchitecte, |
137 |
|
"obj" => "architecte", |
138 |
|
); |
139 |
|
} |
140 |
|
else { |
141 |
|
$value[0][0]=$this->getVal('architecte'); |
142 |
|
$value[1][0]=$coordonneesArchitecte;// table |
143 |
|
} |
144 |
|
$form->setSelect('architecte', $value); |
145 |
} |
} |
146 |
|
|
147 |
|
|
308 |
$form->setType('terr_juri_afu','select'); |
$form->setType('terr_juri_afu','select'); |
309 |
$form->setType('terr_juri_pup','select'); |
$form->setType('terr_juri_pup','select'); |
310 |
$form->setType('terr_juri_oin','select'); |
$form->setType('terr_juri_oin','select'); |
311 |
|
$form->setType('architecte', 'manage_with_popup'); |
312 |
|
|
313 |
} elseif($maj == 1) { |
} elseif($maj == 1) { |
314 |
$form->setType('terr_juri_titul','select'); |
$form->setType('terr_juri_titul','select'); |
317 |
$form->setType('terr_juri_afu','select'); |
$form->setType('terr_juri_afu','select'); |
318 |
$form->setType('terr_juri_pup','select'); |
$form->setType('terr_juri_pup','select'); |
319 |
$form->setType('terr_juri_oin','select'); |
$form->setType('terr_juri_oin','select'); |
320 |
|
$form->setType('architecte', 'manage_with_popup'); |
321 |
|
|
322 |
} elseif($maj == 2) { |
} elseif($maj == 2) { |
323 |
$form->setType('terr_juri_titul','selectstatic'); |
$form->setType('terr_juri_titul','selectstatic'); |
326 |
$form->setType('terr_juri_afu','selectstatic'); |
$form->setType('terr_juri_afu','selectstatic'); |
327 |
$form->setType('terr_juri_pup','selectstatic'); |
$form->setType('terr_juri_pup','selectstatic'); |
328 |
$form->setType('terr_juri_oin','selectstatic'); |
$form->setType('terr_juri_oin','selectstatic'); |
329 |
|
$form->setType('architecte', 'selectstatic'); |
330 |
|
|
331 |
} elseif($maj == 3) { |
} elseif($maj == 3) { |
332 |
$form->setType('terr_juri_titul','selectstatic'); |
$form->setType('terr_juri_titul','selectstatic'); |
335 |
$form->setType('terr_juri_afu','selectstatic'); |
$form->setType('terr_juri_afu','selectstatic'); |
336 |
$form->setType('terr_juri_pup','selectstatic'); |
$form->setType('terr_juri_pup','selectstatic'); |
337 |
$form->setType('terr_juri_oin','selectstatic'); |
$form->setType('terr_juri_oin','selectstatic'); |
338 |
|
$form->setType('architecte', 'selectstatic'); |
339 |
|
|
340 |
} |
} |
341 |
|
|
451 |
} |
} |
452 |
|
|
453 |
function setLayout(&$form, $maj) { |
function setLayout(&$form, $maj) { |
454 |
/*Fieldset Parametrage du cerfa */ |
/*Fieldset Parametrage du cerfa */ |
455 |
$form->setBloc('cerfa','D',"","col_12"); |
$form->setBloc('cerfa','D',"","col_12"); |
456 |
$form->setFieldset('cerfa','D' |
$form->setFieldset('cerfa','D' |
457 |
,_("Parametrage du cerfa")); |
,_("Parametrage du cerfa")); |
460 |
$form->setFieldset('om_validite_fin','F',''); |
$form->setFieldset('om_validite_fin','F',''); |
461 |
$form->setBloc('om_validite_fin','F'); |
$form->setBloc('om_validite_fin','F'); |
462 |
|
|
463 |
|
// Terrain |
464 |
$form->setBloc('terr_juri_titul','D',"","col_12"); |
$form->setBloc('terr_juri_titul','D',"","col_12"); |
465 |
$form->setFieldset('terr_juri_titul','D' |
$form->setFieldset('terr_juri_titul','D' |
466 |
,_("Terrain")); |
,_("Terrain"), "startClosed"); |
467 |
|
|
468 |
$form->setBloc('terr_juri_titul','D',_("Situation juridique du terrain"),"col_12"); |
$form->setBloc('terr_juri_titul','D',_("Situation juridique du terrain"),"col_12"); |
469 |
$form->setBloc('terr_juri_desc','F'); |
$form->setBloc('terr_juri_desc','F'); |
470 |
|
|
471 |
$form->setBloc('terr_div_surf_etab','D',_("Terrain issu d'une division de propriete"),"col_12"); |
$form->setBloc('terr_div_surf_etab','D',_("Terrain issu d'une division de propriete"),"col_12"); |
472 |
$form->setBloc('terr_div_surf_av_div','F'); |
$form->setBloc('terr_div_surf_av_div','F'); |
473 |
|
|
474 |
$form->setFieldset('terr_div_surf_av_div','F',''); |
$form->setFieldset('terr_div_surf_av_div','F',''); |
475 |
$form->setBloc('terr_div_surf_av_div','F'); |
$form->setBloc('terr_div_surf_av_div','F'); |
476 |
|
|
477 |
$form->setBloc('avap_co_elt_pro','D',"","col_12"); |
// Aménager |
|
$form->setFieldset('avap_co_elt_pro','D' |
|
|
,_("Projet")); |
|
|
|
|
|
|
|
|
$form->setFieldset('avap_aut_auv_elec','F',''); |
|
|
$form->setBloc('avap_aut_auv_elec','F'); |
|
|
|
|
|
|
|
|
$form->setBloc('tr_total','D',"","col_12"); |
|
|
$form->setFieldset('tr_total','D' |
|
|
,_("Projet")); |
|
|
|
|
|
|
|
|
$form->setFieldset('tr_desc','F',''); |
|
|
$form->setBloc('tr_desc','F'); |
|
|
|
|
|
/*Fieldset n°4 Ouverture de chantier */ |
|
|
$form->setBloc('doc_date','D',"","col_12"); |
|
|
$form->setFieldset('doc_date','D' |
|
|
,_("Ouverture de chantier")); |
|
|
|
|
|
$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")); |
|
|
|
|
|
$form->setFieldset('daact_nb_log_autre','F',''); |
|
|
$form->setBloc('daact_nb_log_autre','F'); |
|
|
|
|
|
/*Fieldset n°4 Projet d'aménagement */ |
|
478 |
$form->setBloc('am_lotiss','D',"","col_12"); |
$form->setBloc('am_lotiss','D',"","col_12"); |
479 |
$form->setFieldset('am_lotiss','D' |
$form->setFieldset('am_lotiss','D' |
480 |
,_("Projet d'amenagement")); |
,_("Amenager"), "startClosed"); |
481 |
// bloc 4.1 |
$form->setBloc('am_lotiss','D',"","col_12"); |
482 |
$form->setBloc('am_lotiss','D',_("Nature des travaux, instalations |
$form->setFieldset('am_lotiss','D' |
483 |
ou amenagements envisages"),"col_12"); |
,_("Projet d'amenagement"), "startClosed"); |
484 |
|
// bloc 4.1 |
485 |
$form->setBloc('am_tranche_desc','F'); |
$form->setBloc('am_lotiss','D',_("Nature des travaux, instalations |
486 |
|
ou amenagements envisages"),"col_12"); |
487 |
// bloc 4.2 |
$form->setBloc('am_exhau_haut','F'); |
488 |
$form->setBloc('am_lot_max_nb','D',_("Demande concernant un lotissement"),"col_12"); |
|
489 |
|
$form->setBloc('am_chem_ouv_esp','D',_("Dans les secteurs proteges :"),"col_12"); |
490 |
|
$form->setBloc('am_chem_ouv_esp','D',_("Amenagement situe dans un espace remarquable :"),"col_12 cerfasubtitle"); |
491 |
|
$form->setBloc('am_agri_peche','F'); |
492 |
|
$form->setBloc('am_crea_voie','D',_("Amenagement situe dans un secteur sauvegarde :"),"col_12 cerfasubtitle"); |
493 |
|
$form->setBloc('am_crea_esp_sauv','F'); |
494 |
|
$form->setBloc('am_crea_esp_class','D',_("Amenagement situe dans un site classe ou une reserve naturelle 1 :"),"col_12 cerfasubtitle"); |
495 |
|
$form->setBloc('am_rememb_afu','F'); |
496 |
|
|
497 |
|
$form->setBloc('am_rememb_afu','F'); |
498 |
|
|
499 |
|
$form->setBloc('am_mob_art','D',_("Dans un secteur sauvegarde, site classe ou reserve naturelle :"),"col_12"); |
500 |
|
$form->setBloc('am_plant_voie_esp','F'); |
501 |
|
|
502 |
|
$form->setFieldset('am_plant_voie_esp','F',''); |
503 |
|
$form->setBloc('am_plant_voie_esp','F'); |
504 |
|
$form->setBloc('am_projet_desc','D',"","col_12"); |
505 |
|
$form->setFieldset('am_projet_desc','D' |
506 |
|
,_("Description amenagement"), "startClosed"); |
507 |
|
|
508 |
$form->setBloc('am_lot_vente_ant','F'); |
$form->setBloc('am_projet_desc','D', '',"col_12"); |
509 |
|
|
510 |
// bloc 4.3 |
$form->setBloc('am_tranche_desc','F'); |
511 |
$form->setBloc('am_empl_nb','D',_("Amenagement d'un camping ou |
$form->setFieldset('am_tranche_desc','F',''); |
512 |
d'un terrain amenage en vue de l'hebergement |
$form->setBloc('am_tranche_desc','F'); |
513 |
touristique"),"col_12"); |
$form->setBloc('am_lot_max_nb','D',"","col_12"); |
514 |
|
$form->setFieldset('am_lot_max_nb','D' |
515 |
|
,_("Complement d'amenagement"), "startClosed"); |
516 |
|
// bloc 4.2 |
517 |
|
$form->setBloc('am_lot_max_nb','D',_("Demande concernant un lotissement"),"col_12"); |
518 |
|
$form->setBloc('am_lot_cstr_cos','D',_("Comment la constructibilite globale sera-t-elle repartie ?"),"col_12 cerfasubtitle"); |
519 |
|
$form->setBloc('am_lot_fin_diff','F'); |
520 |
|
$form->setBloc('am_lot_consign','D',_("si oui, quelle garantie sera utilisee ?"),"col_12 cerfasubtitle"); |
521 |
|
$form->setBloc('am_lot_vente_ant','F'); |
522 |
|
|
523 |
|
$form->setBloc('am_lot_vente_ant','F'); |
524 |
|
|
525 |
|
// bloc 4.3 |
526 |
|
$form->setBloc('am_exist_agrand','D',_("Amenagement d'un camping ou |
527 |
|
d'un terrain amenage en vue de l'hebergement |
528 |
|
touristique"),"col_12"); |
529 |
|
$form->setBloc('am_tente_nb','D',_("Nombre maximum d’emplacements reserves aux :"),"group col_12 cerfasubtitle"); |
530 |
|
$form->setBloc('am_mobil_nb','F'); |
531 |
|
$form->setBloc('am_empl_hll_nb','D',_("Implantation d’habitations legeres de loisirs (HLL) :"),"col_12 cerfasubtitle"); |
532 |
|
$form->setBloc('am_hll_shon','F'); |
533 |
|
$form->setBloc('am_coupe_bois','D',_("Declaration de coupe et/ou abattage d’arbres :"),"col_12 cerfasubtitle"); |
534 |
|
$form->setBloc('am_coupe_bois','D',_("Courte description du lieu :"),"group col_12 cerfasubtitle"); |
535 |
|
$form->setBloc('am_coupe_align','F'); |
536 |
|
$form->setBloc('am_coupe_ess','D',_("Nature du boisement :"),"col_12 cerfasubtitle"); |
537 |
|
$form->setBloc('am_coupe_ess','D', '',"group col_12"); |
538 |
|
$form->setBloc('am_coupe_dens','F'); |
539 |
|
$form->setBloc('am_coupe_qual','D', '',"group col_12"); |
540 |
|
$form->setBloc('am_coupe_autr','F'); |
541 |
|
$form->setBloc('am_coupe_autr','F'); |
542 |
|
$form->setBloc('am_coupe_autr','F'); |
543 |
|
$form->setBloc('am_coupe_autr','F'); |
544 |
|
|
|
$form->setBloc('am_exist_agrand','F'); |
|
545 |
|
|
546 |
|
$form->setFieldset('am_coupe_autr','F',''); |
547 |
|
|
548 |
|
$form->setBloc('am_coupe_autr','F'); |
549 |
$form->setFieldset('am_coupe_autr','F',''); |
$form->setFieldset('am_coupe_autr','F',''); |
|
|
|
550 |
$form->setBloc('am_coupe_autr','F'); |
$form->setBloc('am_coupe_autr','F'); |
551 |
|
// Fin amménager |
552 |
/*Fieldset n°5 Projet de construction */ |
// Construire |
553 |
$form->setBloc('co_archi_recours','D',"","col_12"); |
$form->setBloc('co_archi_recours','D',"","col_12"); |
554 |
$form->setFieldset('co_archi_recours','D' |
$form->setFieldset('co_archi_recours','D' |
555 |
,_("Projet de construction")); |
,_("Construire"), "startClosed"); |
556 |
// bloc 5.1 |
$form->setBloc('co_archi_recours','D', "","col_12"); |
557 |
$form->setBloc('co_archi_recours','D',_("Architecte"),"col_12"); |
$form->setFieldset('co_archi_recours','D' |
558 |
|
,_("Projet construction"), "startClosed"); |
559 |
|
|
560 |
$form->setBloc('co_archi_recours','DF', "","group"); |
$form->setBloc('co_archi_recours','DF', "","group"); |
561 |
|
|
562 |
$form->setBloc('co_archi_nom','D', "","group"); |
$form->setBloc('architecte','DF', "","group"); |
|
$form->setBloc('co_archi_prenom','F'); |
|
|
|
|
|
$form->setBloc('co_archi_adr_num','D', "","group"); |
|
|
$form->setBloc('co_archi_adr_voie','F'); |
|
563 |
|
|
564 |
$form->setBloc('co_archi_adr_lieu_dit','D', "","group"); |
$form->setBloc('co_cstr_nouv','D', _("Nature du projet"),"col_12 cerfasubtitle"); |
565 |
$form->setBloc('co_archi_adr_localite','F'); |
$form->setBloc('co_elec_tension','F'); |
566 |
|
$form->setFieldset('co_elec_tension','F',''); |
567 |
$form->setBloc('co_archi_adr_cp','D', "","group"); |
$form->setFieldset('co_anx_pisc','D' |
568 |
$form->setBloc('co_archi_adr_cedex','F'); |
,_("Complement construction"), "startClosed"); |
569 |
|
$form->setBloc('co_anx_pisc','D', "","col_12 group"); |
570 |
$form->setBloc('co_archi_no_incri','DF', "","group"); |
$form->setBloc('co_anx_autr','F'); |
571 |
|
$form->setBloc('co_tot_log_nb','D', "","col_12 group"); |
572 |
$form->setBloc('co_archi_cg','DF', "","group"); |
$form->setBloc('co_tot_coll_nb','F'); |
573 |
|
$form->setBloc('co_mais_piece_nb','D', "","col_12 group"); |
574 |
$form->setBloc('co_archi_tel1','D', "","group"); |
$form->setBloc('co_mais_niv_nb','F'); |
575 |
$form->setBloc('co_archi_tel2','F'); |
$form->setBloc('co_fin_lls_nb','D', _("Repartition du nombre total de logement crees par type de financement :"),"col_12"); |
576 |
|
$form->setBloc('co_fin_lls_nb','D', "","col_12 group"); |
577 |
$form->setBloc('co_archi_mail','DF', "","group"); |
$form->setBloc('co_fin_autr_nb','F'); |
578 |
|
$form->setBloc('co_mais_contrat_ind','F'); |
579 |
$form->setBloc('co_archi_mail','F'); |
$form->setBloc('co_uti_pers','D', _("Mode d'utilisation principale des logements :"),"col_12 group"); |
580 |
|
$form->setBloc('co_uti_loc','F'); |
581 |
|
$form->setBloc('co_uti_princ','D', _("S’il s’agit d’une occupation personnelle, veuillez preciser :"),"col_12 group"); |
582 |
|
$form->setBloc('co_uti_secon','F'); |
583 |
|
$form->setBloc('co_resid_agees','D', _("Si le projet est un foyer ou une residence, a quel titre :"),"col_12 group"); |
584 |
|
$form->setBloc('co_resid_hand','F'); |
585 |
|
$form->setBloc('co_log_1p_nb','D', _("Repartition du nombre de logements crees selon le nombre de pieces :"),"col_12 group"); |
586 |
|
$form->setBloc('co_log_6p_nb','F'); |
587 |
|
$form->setBloc('co_trx_exten','D', _("Indiquez si vos travaux comprennent notamment :"),"col_12 group"); |
588 |
|
$form->setBloc('co_trx_nivsup','F'); |
589 |
|
|
590 |
|
$form->setFieldset('co_trx_nivsup','F',''); |
591 |
|
$form->setFieldset('tab_surface','D' |
592 |
|
,_("Destinations et surfaces des constructions"), "startClosed"); |
593 |
|
$form->setBloc('tab_surface','D', "","col_12 group"); |
594 |
|
$form->setBloc('tab_surface','F'); |
595 |
|
$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 group"); |
596 |
|
$form->setBloc('co_sp_culture','F'); |
597 |
|
|
598 |
|
$form->setFieldset('co_sp_culture','F',''); |
599 |
|
$form->setFieldset('co_demont_periode','D' |
600 |
|
,_("Divers construction"), "startClosed"); |
601 |
|
|
602 |
|
$form->setBloc('co_demont_periode','D', _("Construction periodiquement demontee et re-installee :"),"col_12 group"); |
603 |
|
$form->setBloc('co_demont_periode','F'); |
604 |
|
|
605 |
|
$form->setBloc('co_statio_avt_nb','D', _("Nombre de places de stationnement"),"col_12 group"); |
606 |
|
$form->setBloc('co_statio_apr_nb','F'); |
607 |
|
$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"); |
608 |
|
$form->setBloc('co_statio_place_nb','D', "","col_12 group"); |
609 |
|
$form->setBloc('co_statio_tot_shob','F'); |
610 |
|
$form->setBloc('co_statio_tot_shob','F'); |
611 |
|
$form->setBloc('co_statio_comm_cin_surf','D', _("Pour les commerces et cinemas :"),"col_12 group"); |
612 |
|
$form->setBloc('co_statio_comm_cin_surf','F'); |
613 |
|
|
614 |
// bloc 5.2 |
$form->setFieldset('co_perf_energ','F',''); |
615 |
$form->setBloc('co_cstr_nouv','D',_("Nature du projet"),"col_12"); |
$form->setBloc('co_perf_energ','F'); |
|
|
|
|
$form->setBloc('co_elec_tension','F'); |
|
|
|
|
|
// bloc 5.3 |
|
|
$form->setBloc('co_tot_log_nb','D',_("Informations complementaires"),"col_12"); |
|
616 |
|
|
617 |
$form->setBloc('co_trx_nivsup','F'); |
$form->setFieldset('co_perf_energ','F',''); |
|
|
|
|
// bloc 5.4 |
|
|
$form->setBloc('co_demont_period','D',_("Construction periodiquement |
|
|
demontee et re-installee"),"col_12"); |
|
|
|
|
|
$form->setBloc('co_demont_period','F'); |
|
|
|
|
|
// bloc 5.5 |
|
|
$form->setBloc('tab_surface','D',_("Destination des constructions |
|
|
et tableau des surfaces"),"col_12"); |
|
|
|
|
|
$form->setBloc('tab_surface','F'); |
|
|
|
|
|
// bloc 5.6 |
|
|
$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_culture','F'); |
|
|
|
|
|
// bloc 5.7 |
|
|
$form->setBloc('co_statio_avt_nb','D',_("Stationnement"),"col_12"); |
|
|
|
|
|
$form->setBloc('co_statio_comm_cin_surf','F'); |
|
|
|
|
|
$form->setFieldset('co_statio_apr_surf','F',''); |
|
618 |
|
|
619 |
$form->setBloc('co_statio_apr_surf','F'); |
$form->setBloc('co_perf_energ','F'); |
620 |
|
// Fin construire |
621 |
|
|
|
// Description de modification |
|
|
$form->setBloc('mod_desc','D',"","col_12"); |
|
|
$form->setFieldset('mod_desc','D' |
|
|
,_("Objet de la modification")); |
|
|
$form->setFieldset('mod_desc','F',''); |
|
|
$form->setBloc('mod_desc','F'); |
|
|
|
|
622 |
/*Fieldset n°6 Projet necessitant demolitions */ |
/*Fieldset n°6 Projet necessitant demolitions */ |
623 |
$form->setBloc('dm_constr_dates','D',"","col_12"); |
$form->setBloc('dm_constr_dates','D',"","col_12"); |
624 |
$form->setFieldset('dm_constr_dates','D' |
$form->setFieldset('dm_constr_dates','D' |
625 |
,_("Projet necessitant demolitions")); |
,_("Demolir"), "startClosed"); |
626 |
|
|
627 |
$form->setBloc('dm_constr_dates','D',"","col_12"); |
$form->setBloc('dm_constr_dates','D',"","col_12"); |
628 |
|
|
632 |
|
|
633 |
$form->setBloc('dm_tot_log_nb','F'); |
$form->setBloc('dm_tot_log_nb','F'); |
634 |
|
|
635 |
$form->setBloc('tax_surf_tot','D',_("Declaration des elements necessaires au calcul des impositions"),"col_12"); |
/*Fieldset n°4 Ouverture de chantier */ |
636 |
$form->setBloc('tax_surf_tot','D',"","col_12"); |
$form->setBloc('doc_date','D',"","col_12"); |
637 |
$form->setFieldset('tax_surf_tot','D' |
$form->setFieldset('doc_date','D' |
638 |
,_("Renseignement")); |
,_("Ouverture de chantier"), "startClosed"); |
639 |
|
|
640 |
$form->setBloc('tax_surf_tot','D',"","col_12"); |
$form->setFieldset('doc_nb_log_autre','F',''); |
641 |
|
$form->setBloc('doc_nb_log_autre','F'); |
642 |
|
|
643 |
$form->setBloc('tax_dest_loc_tr','F'); |
/*Fieldset n°4 Achèvement des travaux */ |
644 |
|
$form->setBloc('daact_date','D',"","col_12"); |
645 |
|
$form->setFieldset('daact_date','D' |
646 |
|
,_("Achevement des travaux") , "startClosed"); |
647 |
|
|
648 |
$form->setBloc('tab_tax_su_princ','D',_("Locaux a usage d'habitation principale"),"col_12"); |
$form->setFieldset('daact_nb_log_autre','F',''); |
649 |
$form->setBloc('tab_tax_su_princ','F'); |
$form->setBloc('daact_nb_log_autre','F'); |
650 |
|
|
651 |
$form->setBloc('tab_tax_su_heber','D',_("Locaux a usage d'hebergement"),"col_12"); |
$form->setBloc('code_cnil','D',"","col_12"); |
652 |
$form->setBloc('tab_tax_su_heber','F'); |
$form->setBloc('code_cnil','F'); |
653 |
|
|
654 |
$form->setBloc('tab_tax_su_secon','D',_("Locaux a usage d'habitation secondaire"),"col_12"); |
$form->setBloc('tax_surf_tot','D',"","col_12"); |
655 |
$form->setBloc('tab_tax_su_secon','F'); |
$form->setFieldset('tax_surf_tot','D' |
656 |
|
,_("Declaration des elements necessaires au calcul des impositions"), "startClosed"); |
657 |
|
|
658 |
$form->setBloc('tab_tax_su_tot','D',_("Total de logement"),"col_12"); |
$form->setBloc('tax_surf_tot','D',_("Renseignement"),"col_12"); |
659 |
$form->setBloc('tab_tax_su_tot','F'); |
$form->setBloc('tax_surf_suppr_mod','F'); |
660 |
|
|
661 |
$form->setBloc('tax_ext_pret','D',"","col_12"); |
$form->setBloc('tab_tax_su_princ','D',_("Creation de locaux destines a l’habitation :"),"col_12"); |
662 |
$form->setBloc('tax_log_exist_nb','F'); |
$form->setBloc('tax_log_exist_nb','F'); |
663 |
|
|
664 |
$form->setBloc('tax_comm_nb','D',_("Creation ou extension de locaux non destines a l'habitation"),"col_12"); |
$form->setBloc('tax_comm_nb','D',_("Creation ou extension de locaux non destines a l'habitation :"),"col_12"); |
665 |
$form->setBloc('tab_tax_su_non_habit_surf','F'); |
$form->setBloc('tax_log_exist_nb','F'); |
|
|
|
|
$form->setBloc('tab_tax_am','D',_("Autres elements soumis a la taxe d'amenagement"),"col_12"); |
|
|
$form->setBloc('tab_tax_am','F'); |
|
666 |
|
|
667 |
$form->setBloc('tax_trx_presc_ppr','D',_("Cas particuliers"),"col_12"); |
$form->setBloc('tax_trx_presc_ppr','D',_("Cas particuliers"),"col_12"); |
668 |
$form->setBloc('tax_monu_hist','F'); |
$form->setBloc('tax_monu_hist','F'); |
669 |
|
|
|
$form->setFieldset('tax_monu_hist','F',''); |
|
|
|
|
|
$form->setBloc('tax_monu_hist','F'); |
|
|
|
|
|
$form->setBloc('vsd_surf_planch_smd','D',"","col_12"); |
|
|
$form->setFieldset('vsd_surf_planch_smd','D' |
|
|
,_("Autres renseignements")); |
|
|
|
|
670 |
$form->setBloc('vsd_surf_planch_smd','D',_("Versement pour sous-densite (VSD)"),"col_12"); |
$form->setBloc('vsd_surf_planch_smd','D',_("Versement pour sous-densite (VSD)"),"col_12"); |
671 |
$form->setBloc('vsd_rescr_fisc','F'); |
$form->setBloc('vsd_rescr_fisc','F'); |
672 |
|
|
676 |
$form->setFieldset('pld_const_exist_dem_surf','F',''); |
$form->setFieldset('pld_const_exist_dem_surf','F',''); |
677 |
|
|
678 |
$form->setBloc('pld_const_exist_dem_surf','F'); |
$form->setBloc('pld_const_exist_dem_surf','F'); |
|
|
|
|
$form->setBloc('pld_const_exist_dem_surf','F'); |
|
679 |
} |
} |
680 |
|
|
681 |
|
/** |
682 |
|
* Surcharge de la méthode setOnChange |
683 |
|
*/ |
684 |
|
function setOnchange(&$form,$maj){ |
685 |
|
parent::setOnchange($form,$maj); |
686 |
|
|
687 |
|
$form->setOnchange("co_tot_ind_nb","sommeChampsCerfa('co_tot_log_nb',['co_tot_ind_nb','co_tot_coll_nb']);"); |
688 |
|
$form->setOnchange("co_tot_coll_nb","sommeChampsCerfa('co_tot_log_nb',['co_tot_ind_nb','co_tot_coll_nb']);"); |
689 |
|
|
690 |
|
$form->setOnchange("doc_nb_log_indiv","sommeChampsCerfa('doc_nb_log',['doc_nb_log_indiv','doc_nb_log_coll']);"); |
691 |
|
$form->setOnchange("doc_nb_log_coll","sommeChampsCerfa('doc_nb_log',['doc_nb_log_indiv','doc_nb_log_coll']);"); |
692 |
|
|
693 |
|
$form->setOnchange("su_avt_shon1","calculSurfaceTotal();"); |
694 |
|
$form->setOnchange("su_avt_shon2","calculSurfaceTotal();"); |
695 |
|
$form->setOnchange("su_avt_shon3","calculSurfaceTotal();"); |
696 |
|
$form->setOnchange("su_avt_shon4","calculSurfaceTotal();"); |
697 |
|
$form->setOnchange("su_avt_shon5","calculSurfaceTotal();"); |
698 |
|
$form->setOnchange("su_avt_shon6","calculSurfaceTotal();"); |
699 |
|
$form->setOnchange("su_avt_shon7","calculSurfaceTotal();"); |
700 |
|
$form->setOnchange("su_avt_shon8","calculSurfaceTotal();"); |
701 |
|
$form->setOnchange("su_avt_shon9","calculSurfaceTotal();"); |
702 |
|
$form->setOnchange("su_cstr_shon1","calculSurfaceTotal();"); |
703 |
|
$form->setOnchange("su_cstr_shon2","calculSurfaceTotal();"); |
704 |
|
$form->setOnchange("su_cstr_shon3","calculSurfaceTotal();"); |
705 |
|
$form->setOnchange("su_cstr_shon4","calculSurfaceTotal();"); |
706 |
|
$form->setOnchange("su_cstr_shon5","calculSurfaceTotal();"); |
707 |
|
$form->setOnchange("su_cstr_shon6","calculSurfaceTotal();"); |
708 |
|
$form->setOnchange("su_cstr_shon7","calculSurfaceTotal();"); |
709 |
|
$form->setOnchange("su_cstr_shon8","calculSurfaceTotal();"); |
710 |
|
$form->setOnchange("su_cstr_shon9","calculSurfaceTotal();"); |
711 |
|
$form->setOnchange("su_trsf_shon1","calculSurfaceTotal();"); |
712 |
|
$form->setOnchange("su_trsf_shon2","calculSurfaceTotal();"); |
713 |
|
$form->setOnchange("su_trsf_shon3","calculSurfaceTotal();"); |
714 |
|
$form->setOnchange("su_trsf_shon4","calculSurfaceTotal();"); |
715 |
|
$form->setOnchange("su_trsf_shon5","calculSurfaceTotal();"); |
716 |
|
$form->setOnchange("su_trsf_shon6","calculSurfaceTotal();"); |
717 |
|
$form->setOnchange("su_trsf_shon7","calculSurfaceTotal();"); |
718 |
|
$form->setOnchange("su_trsf_shon8","calculSurfaceTotal();"); |
719 |
|
$form->setOnchange("su_trsf_shon9","calculSurfaceTotal();"); |
720 |
|
$form->setOnchange("su_chge_shon1","calculSurfaceTotal();"); |
721 |
|
$form->setOnchange("su_chge_shon2","calculSurfaceTotal();"); |
722 |
|
$form->setOnchange("su_chge_shon3","calculSurfaceTotal();"); |
723 |
|
$form->setOnchange("su_chge_shon4","calculSurfaceTotal();"); |
724 |
|
$form->setOnchange("su_chge_shon5","calculSurfaceTotal();"); |
725 |
|
$form->setOnchange("su_chge_shon6","calculSurfaceTotal();"); |
726 |
|
$form->setOnchange("su_chge_shon7","calculSurfaceTotal();"); |
727 |
|
$form->setOnchange("su_chge_shon8","calculSurfaceTotal();"); |
728 |
|
$form->setOnchange("su_chge_shon9","calculSurfaceTotal();"); |
729 |
|
$form->setOnchange("su_demo_shon1","calculSurfaceTotal();"); |
730 |
|
$form->setOnchange("su_demo_shon2","calculSurfaceTotal();"); |
731 |
|
$form->setOnchange("su_demo_shon3","calculSurfaceTotal();"); |
732 |
|
$form->setOnchange("su_demo_shon4","calculSurfaceTotal();"); |
733 |
|
$form->setOnchange("su_demo_shon5","calculSurfaceTotal();"); |
734 |
|
$form->setOnchange("su_demo_shon6","calculSurfaceTotal();"); |
735 |
|
$form->setOnchange("su_demo_shon7","calculSurfaceTotal();"); |
736 |
|
$form->setOnchange("su_demo_shon8","calculSurfaceTotal();"); |
737 |
|
$form->setOnchange("su_demo_shon9","calculSurfaceTotal();"); |
738 |
|
$form->setOnchange("su_sup_shon1","calculSurfaceTotal();"); |
739 |
|
$form->setOnchange("su_sup_shon2","calculSurfaceTotal();"); |
740 |
|
$form->setOnchange("su_sup_shon3","calculSurfaceTotal();"); |
741 |
|
$form->setOnchange("su_sup_shon4","calculSurfaceTotal();"); |
742 |
|
$form->setOnchange("su_sup_shon5","calculSurfaceTotal();"); |
743 |
|
$form->setOnchange("su_sup_shon6","calculSurfaceTotal();"); |
744 |
|
$form->setOnchange("su_sup_shon7","calculSurfaceTotal();"); |
745 |
|
$form->setOnchange("su_sup_shon8","calculSurfaceTotal();"); |
746 |
|
$form->setOnchange("su_sup_shon9","calculSurfaceTotal();"); |
747 |
|
$form->setOnchange("su_tot_shon1","calculSurfaceTotal();"); |
748 |
|
$form->setOnchange("su_tot_shon2","calculSurfaceTotal();"); |
749 |
|
$form->setOnchange("su_tot_shon3","calculSurfaceTotal();"); |
750 |
|
$form->setOnchange("su_tot_shon4","calculSurfaceTotal();"); |
751 |
|
$form->setOnchange("su_tot_shon5","calculSurfaceTotal();"); |
752 |
|
$form->setOnchange("su_tot_shon6","calculSurfaceTotal();"); |
753 |
|
$form->setOnchange("su_tot_shon7","calculSurfaceTotal();"); |
754 |
|
$form->setOnchange("su_tot_shon8","calculSurfaceTotal();"); |
755 |
|
$form->setOnchange("su_tot_shon9","calculSurfaceTotal();"); |
756 |
|
|
757 |
|
} |
758 |
|
|
759 |
|
|
760 |
/** |
/** |
847 |
return $this->_division_from_dossier; |
return $this->_division_from_dossier; |
848 |
|
|
849 |
} |
} |
850 |
|
|
851 |
|
/** |
852 |
|
* Retourne le nom et le prénom de l'architecte qui a l'identifiant $id |
853 |
|
* @param integer $id |
854 |
|
* @param object $db |
855 |
|
* @return string |
856 |
|
*/ |
857 |
|
function getPrenomNomArchitecte($id){ |
858 |
|
|
859 |
|
$coordonneesArchitecte = ""; |
860 |
|
if ( $id != '' && is_numeric($id) ){ |
861 |
|
|
862 |
|
$sql = "SELECT |
863 |
|
CONCAT(architecte.prenom, ' ', architecte.nom) |
864 |
|
FROM |
865 |
|
".DB_PREFIXE."architecte |
866 |
|
WHERE |
867 |
|
architecte.architecte = ".$id; |
868 |
|
$coordonneesArchitecte = $this->db->getOne($sql); |
869 |
|
$this->f->addToLog("setSelect() : db->getOne(\"".$sql."\")", VERBOSE_MODE); |
870 |
|
if ( database::isError($coordonneesArchitecte)){ |
871 |
|
$this->f->addToError("", $coordonneesArchitecte, $coordonneesArchitecte); |
872 |
|
return false; |
873 |
|
} |
874 |
|
} |
875 |
|
return $coordonneesArchitecte; |
876 |
|
} |
877 |
|
|
878 |
}// fin classe |
}// fin classe |
879 |
?> |
?> |