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 |
|
} elseif($this->getParameter("retourformulaire") == "dossier_autorisation"){ |
29 |
|
$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= |
33 |
|
dossier_instruction_type.dossier_instruction_type |
34 |
|
WHERE dossier_autorisation = '"; |
35 |
|
$sql .= $this->getParameter("idxformulaire")."'"; |
36 |
} else { |
} else { |
37 |
$sql = "SELECT cerfa FROM ".DB_PREFIXE."dossier_instruction_type |
$sql = "SELECT cerfa FROM ".DB_PREFIXE."dossier_autorisation_type_detaille |
38 |
|
JOIN ".DB_PREFIXE."dossier_instruction_type ON dossier_instruction_type.dossier_autorisation_type_detaille= |
39 |
|
dossier_autorisation_type_detaille.dossier_autorisation_type_detaille |
40 |
JOIN ".DB_PREFIXE."dossier ON dossier.dossier_instruction_type= |
JOIN ".DB_PREFIXE."dossier ON dossier.dossier_instruction_type= |
41 |
dossier_instruction_type.dossier_instruction_type |
dossier_instruction_type.dossier_instruction_type |
42 |
WHERE dossier = '"; |
WHERE dossier = '"; |
134 |
$form->setSelect('terr_juri_desc',$value); |
$form->setSelect('terr_juri_desc',$value); |
135 |
$form->setSelect('terr_div_surf_etab',$value); |
$form->setSelect('terr_div_surf_etab',$value); |
136 |
$form->setSelect('terr_div_surf_av_div',$value); |
$form->setSelect('terr_div_surf_av_div',$value); |
137 |
|
|
138 |
|
|
139 |
|
//Récupérer le nom et le prénom de l'architecte |
140 |
|
$coordonneesArchitecte = $this->getPrenomNomArchitecte($this->getVal('architecte')); |
141 |
|
$value = ""; |
142 |
|
if ($maj<2){ |
143 |
|
$value = array( |
144 |
|
"data" => $coordonneesArchitecte, |
145 |
|
"obj" => "architecte", |
146 |
|
); |
147 |
|
} |
148 |
|
else { |
149 |
|
$value[0][0]=$this->getVal('architecte'); |
150 |
|
$value[1][0]=$coordonneesArchitecte;// table |
151 |
|
} |
152 |
|
$form->setSelect('architecte', $value); |
153 |
} |
} |
154 |
|
|
155 |
|
|
316 |
$form->setType('terr_juri_afu','select'); |
$form->setType('terr_juri_afu','select'); |
317 |
$form->setType('terr_juri_pup','select'); |
$form->setType('terr_juri_pup','select'); |
318 |
$form->setType('terr_juri_oin','select'); |
$form->setType('terr_juri_oin','select'); |
319 |
|
$form->setType('architecte', 'manage_with_popup'); |
320 |
|
|
321 |
} elseif($maj == 1) { |
} elseif($maj == 1) { |
322 |
$form->setType('terr_juri_titul','select'); |
$form->setType('terr_juri_titul','select'); |
325 |
$form->setType('terr_juri_afu','select'); |
$form->setType('terr_juri_afu','select'); |
326 |
$form->setType('terr_juri_pup','select'); |
$form->setType('terr_juri_pup','select'); |
327 |
$form->setType('terr_juri_oin','select'); |
$form->setType('terr_juri_oin','select'); |
328 |
|
$form->setType('architecte', 'manage_with_popup'); |
329 |
|
|
330 |
} elseif($maj == 2) { |
} elseif($maj == 2) { |
331 |
$form->setType('terr_juri_titul','selectstatic'); |
$form->setType('terr_juri_titul','selectstatic'); |
334 |
$form->setType('terr_juri_afu','selectstatic'); |
$form->setType('terr_juri_afu','selectstatic'); |
335 |
$form->setType('terr_juri_pup','selectstatic'); |
$form->setType('terr_juri_pup','selectstatic'); |
336 |
$form->setType('terr_juri_oin','selectstatic'); |
$form->setType('terr_juri_oin','selectstatic'); |
337 |
|
$form->setType('architecte', 'selectstatic'); |
338 |
|
|
339 |
} elseif($maj == 3) { |
} elseif($maj == 3) { |
340 |
$form->setType('terr_juri_titul','selectstatic'); |
$form->setType('terr_juri_titul','selectstatic'); |
343 |
$form->setType('terr_juri_afu','selectstatic'); |
$form->setType('terr_juri_afu','selectstatic'); |
344 |
$form->setType('terr_juri_pup','selectstatic'); |
$form->setType('terr_juri_pup','selectstatic'); |
345 |
$form->setType('terr_juri_oin','selectstatic'); |
$form->setType('terr_juri_oin','selectstatic'); |
346 |
|
$form->setType('architecte', 'selectstatic'); |
347 |
|
|
348 |
} |
} |
349 |
|
|
350 |
|
// Anciens champs à conserver pour les anciens cerfa |
351 |
|
$form->setType("co_statio_avt_shob", "hidden"); |
352 |
|
$form->setType("co_statio_apr_shob", "hidden"); |
353 |
|
$form->setType("co_statio_avt_surf", "hidden"); |
354 |
|
$form->setType("co_statio_apr_surf", "hidden"); |
355 |
|
$form->setType("co_trx_amgt", "hidden"); |
356 |
|
$form->setType("co_modif_aspect", "hidden"); |
357 |
|
$form->setType("co_modif_struct", "hidden"); |
358 |
|
$form->setType("co_ouvr_elec", "hidden"); |
359 |
|
$form->setType("co_ouvr_infra", "hidden"); |
360 |
|
$form->setType("co_trx_imm", "hidden"); |
361 |
|
$form->setType("co_cstr_shob", "hidden"); |
362 |
|
$form->setType("am_voyage_deb", "hidden"); |
363 |
|
$form->setType("am_voyage_fin", "hidden"); |
364 |
|
$form->setType("am_modif_amgt", "hidden"); |
365 |
|
$form->setType("am_lot_max_shob", "hidden"); |
366 |
|
$form->setType("mod_desc", "hidden"); |
367 |
|
$form->setType("tr_total", "hidden"); |
368 |
|
$form->setType("tr_partiel", "hidden"); |
369 |
|
$form->setType("tr_desc", "hidden"); |
370 |
|
$form->setType("avap_co_elt_pro", "hidden"); |
371 |
|
$form->setType("avap_nouv_haut_surf", "hidden"); |
372 |
|
$form->setType("avap_co_clot", "hidden"); |
373 |
|
$form->setType("avap_aut_coup_aba_arb", "hidden"); |
374 |
|
$form->setType("avap_ouv_infra", "hidden"); |
375 |
|
$form->setType("avap_aut_inst_mob", "hidden"); |
376 |
|
$form->setType("avap_aut_plant", "hidden"); |
377 |
|
$form->setType("avap_aut_auv_elec", "hidden"); |
378 |
|
$form->setType("tax_dest_loc_tr", "hidden"); |
379 |
|
|
380 |
|
|
381 |
//Cache les champs des clés étrangères, elles sont renseignées automatiquement |
//Cache les champs des clés étrangères, elles sont renseignées automatiquement |
382 |
$form->setType('dossier_instruction', 'hidden'); |
$form->setType('dossier_instruction', 'hidden'); |
489 |
} |
} |
490 |
|
|
491 |
function setLayout(&$form, $maj) { |
function setLayout(&$form, $maj) { |
492 |
/*Fieldset Parametrage du cerfa */ |
/*Fieldset Parametrage du cerfa */ |
493 |
$form->setBloc('cerfa','D',"","col_12"); |
$form->setBloc('cerfa','D',"","col_12"); |
494 |
$form->setFieldset('cerfa','D' |
$form->setFieldset('cerfa','D' |
495 |
,_("Parametrage du cerfa")); |
,_("Parametrage du cerfa")); |
496 |
|
$form->setBloc('cerfa','D',"", "alignFormSpec"); |
497 |
|
$form->setBloc('code','F'); |
498 |
|
$form->setBloc('om_validite_debut','D',"", "alignFormSpec-type-date"); |
499 |
|
$form->setBloc('om_validite_fin','F'); |
500 |
|
|
501 |
$form->setFieldset('om_validite_fin','F',''); |
$form->setFieldset('om_validite_fin','F',''); |
502 |
$form->setBloc('om_validite_fin','F'); |
$form->setBloc('om_validite_fin','F'); |
503 |
|
|
504 |
|
// Terrain |
505 |
$form->setBloc('terr_juri_titul','D',"","col_12"); |
$form->setBloc('terr_juri_titul','D',"","col_12"); |
506 |
$form->setFieldset('terr_juri_titul','D' |
$form->setFieldset('terr_juri_titul','D' |
507 |
,_("Terrain")); |
,_("Terrain"), "startClosed"); |
508 |
$form->setBloc('terr_juri_titul','D',_("Situation juridique du terrain"),"col_12"); |
|
509 |
$form->setBloc('terr_juri_desc','F'); |
$form->setBloc('terr_juri_titul','D',_("Situation juridique du terrain"), "col_12 alignFormSpec"); |
510 |
$form->setBloc('terr_div_surf_etab','D',_("Terrain issu d'une division de propriete"),"col_12"); |
$form->setBloc('terr_juri_oin','F'); |
511 |
$form->setBloc('terr_div_surf_av_div','F'); |
$form->setBloc('terr_juri_desc','DF',"", "group"); |
512 |
|
$form->setBloc('terr_div_surf_etab','D',_("Terrain issu d'une division de propriete"), "col_12 alignFormSpec"); |
513 |
|
$form->setBloc('terr_div_surf_av_div', 'F'); |
514 |
|
|
515 |
$form->setFieldset('terr_div_surf_av_div','F',''); |
$form->setFieldset('terr_div_surf_av_div','F',''); |
516 |
|
|
517 |
$form->setBloc('terr_div_surf_av_div','F'); |
$form->setBloc('terr_div_surf_av_div','F'); |
518 |
|
|
519 |
$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 */ |
|
520 |
$form->setBloc('am_lotiss','D',"","col_12"); |
$form->setBloc('am_lotiss','D',"","col_12"); |
521 |
$form->setFieldset('am_lotiss','D' |
$form->setFieldset('am_lotiss','D' |
522 |
,_("Projet d'amenagement")); |
,_("Amenager"), "startClosed"); |
523 |
// bloc 4.1 |
$form->setBloc('am_lotiss','D',"","col_12"); |
524 |
$form->setBloc('am_lotiss','D',_("Nature des travaux, instalations |
$form->setFieldset('am_lotiss','D' |
525 |
ou amenagements envisages"),"col_12"); |
,_("Projet d'amenagement"), "startClosed alignFormSpec"); |
526 |
|
// bloc 4.1 |
527 |
|
$form->setBloc('am_lotiss','DF',_("Nature des travaux, installations |
528 |
|
ou amenagements envisages"), "group"); |
529 |
|
$form->setBloc('am_div_mun','DF',"", "group"); |
530 |
|
$form->setBloc('am_autre_div','DF',"", "group"); |
531 |
|
$form->setBloc('am_camping','DF',"", "group"); |
532 |
|
$form->setBloc('am_parc_resid_loi','DF',"", "group"); |
533 |
|
$form->setBloc('am_sport_moto','DF',"", "group"); |
534 |
|
$form->setBloc('am_sport_attrac','DF',"", "group"); |
535 |
|
$form->setBloc('am_sport_golf','DF',"", "group"); |
536 |
|
$form->setBloc('am_caravane','DF',"", "group"); |
537 |
|
$form->setBloc('am_carav_duree','DF',"", "group"); |
538 |
|
$form->setBloc('am_statio','DF',"", "group"); |
539 |
|
$form->setBloc('am_statio_cont','DF',"", "group"); |
540 |
|
$form->setBloc('am_affou_exhau','DF',"", "group"); |
541 |
|
$form->setBloc('am_affou_exhau_sup','DF',"", "group"); |
542 |
|
$form->setBloc('am_affou_prof','DF',"", "group"); |
543 |
|
$form->setBloc('am_exhau_haut','DF',"", "group"); |
544 |
|
|
545 |
|
$form->setBloc('am_chem_ouv_esp','D',_("Dans les secteurs proteges :"),"col_12"); |
546 |
|
$form->setBloc('am_chem_ouv_esp','DF',_("Amenagement situe dans un espace remarquable :"), "group"); |
547 |
|
$form->setBloc('am_agri_peche','DF',"", "group"); |
548 |
|
|
549 |
|
$form->setBloc('am_crea_voie','DF',_("Amenagement situe dans un secteur sauvegarde :"), "group"); |
550 |
|
$form->setBloc('am_modif_voie_exist','DF',"", "group"); |
551 |
|
$form->setBloc('am_crea_esp_sauv','DF',"", "group"); |
552 |
|
|
553 |
|
$form->setBloc('am_crea_esp_class','DF',_("Amenagement situe dans un site classe ou une reserve naturelle 1 :"), "group"); |
554 |
|
$form->setBloc('am_coupe_abat','DF',"", "group"); |
555 |
|
$form->setBloc('am_prot_plu','DF',"", "group"); |
556 |
|
$form->setBloc('am_prot_muni','DF',"", "group"); |
557 |
|
$form->setBloc('am_mobil_voyage','DF',"", "group"); |
558 |
|
$form->setBloc('am_aire_voyage','DF',"", "group"); |
559 |
|
$form->setBloc('am_rememb_afu','DF',"", "group"); |
560 |
|
$form->setBloc('am_rememb_afu','F'); |
561 |
|
|
562 |
|
$form->setBloc('am_mob_art','DF',_("Dans un secteur sauvegarde, site classe ou reserve naturelle :"), "group"); |
563 |
|
$form->setBloc('am_modif_voie_esp','DF',"", "group"); |
564 |
|
$form->setBloc('am_plant_voie_esp','DF',"", "group"); |
565 |
|
|
566 |
|
$form->setFieldset('am_plant_voie_esp','F',''); |
567 |
|
$form->setBloc('am_plant_voie_esp','F'); |
568 |
|
$form->setBloc('am_projet_desc','D',"","col_12"); |
569 |
|
$form->setFieldset('am_projet_desc','D' |
570 |
|
,_("Description amenagement"), "startClosed"); |
571 |
|
|
572 |
|
$form->setBloc('am_projet_desc','DF',"", "group"); |
573 |
|
$form->setBloc('am_terr_surf','DF',"", "alignFormSpec"); |
574 |
|
$form->setBloc('am_tranche_desc','DF',"", "group"); |
575 |
|
$form->setFieldset('am_tranche_desc','F',''); |
576 |
$form->setBloc('am_tranche_desc','F'); |
$form->setBloc('am_tranche_desc','F'); |
577 |
|
$form->setBloc('am_lot_max_nb','D',"","col_12"); |
578 |
// bloc 4.2 |
$form->setFieldset('am_lot_max_nb','D' |
579 |
$form->setBloc('am_lot_max_nb','D',_("Demande concernant un lotissement"),"col_12"); |
,_("Complement d'amenagement"), "startClosed"); |
580 |
|
// bloc 4.2 |
581 |
$form->setBloc('am_lot_vente_ant','F'); |
$form->setBloc('am_lot_max_nb','D',_("Demande concernant un lotissement"),"col_12 alignFormSpec"); |
582 |
|
|
583 |
|
$form->setBloc('am_lot_max_nb','DF',"", "group"); |
584 |
|
$form->setBloc('am_lot_max_shon','DF',"", "group"); |
585 |
|
|
586 |
|
$form->setBloc('am_lot_cstr_cos','DF',_("Comment la constructibilite globale sera-t-elle repartie ?"), "group"); |
587 |
|
$form->setBloc('am_lot_cstr_plan','DF',"", "group"); |
588 |
|
$form->setBloc('am_lot_cstr_vente','DF',"", "group"); |
589 |
|
$form->setBloc('am_lot_fin_diff','DF',"", "group"); |
590 |
|
|
591 |
|
$form->setBloc('am_lot_consign','DF',_("si oui, quelle garantie sera utilisee ?"), "group"); |
592 |
|
$form->setBloc('am_lot_gar_achev','DF',"", "group"); |
593 |
|
$form->setBloc('am_lot_vente_ant','DF',"", "group"); |
594 |
|
$form->setBloc('am_lot_vente_ant','F'); |
595 |
|
|
596 |
|
// bloc 4.3 |
597 |
|
$form->setBloc('am_exist_agrand','D',_("Amenagement d'un camping ou |
598 |
|
d'un terrain amenage en vue de l'hebergement |
599 |
|
touristique"),"col_12"); |
600 |
|
|
601 |
|
$form->setBloc('am_exist_agrand','DF',"", "alignFormSpec"); |
602 |
|
$form->setBloc('am_exist_date','DF',"", "alignFormSpec-type-date"); |
603 |
|
$form->setBloc('am_exist_num','D',"", "alignFormSpec"); |
604 |
|
$form->setBloc('am_empl_nb','F',"", ""); |
605 |
|
|
606 |
|
$form->setBloc('am_tente_nb','D',_("Nombre maximum d’emplacements reserves aux :"), "col_12 alignForm"); |
607 |
|
$form->setBloc('am_mobil_nb','F',"", ""); |
608 |
|
|
609 |
|
$form->setBloc('am_pers_nb','DF',"", "alignFormSpec group"); |
610 |
|
|
611 |
|
$form->setBloc('am_empl_hll_nb','D',_("Implantation d’habitations legeres de loisirs (HLL) :"), "col_12 alignFormSpec"); |
612 |
|
//$form->setBloc('am_empl_hll_nb','DF',"", "group"); |
613 |
|
$form->setBloc('am_hll_shon','F'); |
614 |
|
|
615 |
|
$form->setBloc('am_periode_exploit','DF',"", "group"); |
616 |
|
|
617 |
|
$form->setBloc('am_coupe_bois','D',_("Declaration de coupe et/ou abattage d’arbres :"),"col_12 cerfasubtitle"); |
618 |
|
|
619 |
|
$form->setBloc('am_coupe_bois','D',_("Courte description du lieu :"), "cerfasubtitle alignForm"); |
620 |
|
$form->setBloc('am_coupe_align','F',"", ""); |
621 |
|
|
622 |
|
$form->setBloc('am_coupe_ess','D',_("Nature du boisement :"),"col_12 cerfasubtitle alignForm"); |
623 |
|
$form->setBloc('am_coupe_autr','F'); |
624 |
|
$form->setBloc('am_coupe_autr','F'); |
625 |
|
|
626 |
|
$form->setBloc('am_coupe_autr','F'); |
627 |
|
|
|
// bloc 4.3 |
|
|
$form->setBloc('am_empl_nb','D',_("Amenagement d'un camping ou |
|
|
d'un terrain amenage en vue de l'hebergement |
|
|
touristique"),"col_12"); |
|
|
|
|
|
$form->setBloc('am_exist_agrand','F'); |
|
628 |
|
|
629 |
|
$form->setFieldset('am_coupe_autr','F',''); |
630 |
|
|
631 |
|
$form->setBloc('am_coupe_autr','F'); |
632 |
$form->setFieldset('am_coupe_autr','F',''); |
$form->setFieldset('am_coupe_autr','F',''); |
|
|
|
633 |
$form->setBloc('am_coupe_autr','F'); |
$form->setBloc('am_coupe_autr','F'); |
634 |
|
// Fin amménager |
635 |
/*Fieldset n°5 Projet de construction */ |
// Construire |
636 |
$form->setBloc('co_archi_recours','D',"","col_12"); |
$form->setBloc('co_archi_recours','D',"","col_12"); |
637 |
$form->setFieldset('co_archi_recours','D' |
$form->setFieldset('co_archi_recours','D' |
638 |
,_("Projet de construction")); |
,_("Construire"), "startClosed"); |
639 |
// bloc 5.1 |
$form->setBloc('co_archi_recours','D', "","col_12"); |
640 |
$form->setBloc('co_archi_recours','D',_("Architecte"),"col_12"); |
$form->setFieldset('co_archi_recours','D' |
641 |
|
,_("Projet construction"), "startClosed"); |
642 |
$form->setBloc('co_archi_recours','DF', "","group"); |
|
643 |
|
$form->setBloc('co_archi_recours','D',_("Architecte"), "col_12"); |
644 |
$form->setBloc('co_archi_nom','D', "","group"); |
$form->setBloc('co_archi_recours','DF',"", "alignFormSpec group"); |
645 |
$form->setBloc('co_archi_prenom','F'); |
$form->setBloc('architecte','DF', "", "group"); |
646 |
|
$form->setBloc('architecte','F'); |
647 |
$form->setBloc('co_archi_adr_num','D', "","group"); |
|
648 |
$form->setBloc('co_archi_adr_voie','F'); |
$form->setBloc('co_cstr_nouv','D',_("Nature du projet"), "col_12 alignFormSpec"); |
649 |
|
$form->setBloc('co_cloture','F'); |
650 |
$form->setBloc('co_archi_adr_lieu_dit','D', "","group"); |
$form->setBloc('co_projet_desc','DF',"", "group"); |
651 |
$form->setBloc('co_archi_adr_localite','F'); |
$form->setBloc('co_elec_tension','DF', "", "alignFormSpec"); |
652 |
|
$form->setFieldset('co_elec_tension','F',''); |
653 |
$form->setBloc('co_archi_adr_cp','D', "","group"); |
$form->setFieldset('co_anx_pisc','D' |
654 |
$form->setBloc('co_archi_adr_cedex','F'); |
,_("Complement construction"), "startClosed"); |
655 |
|
|
656 |
$form->setBloc('co_archi_no_incri','DF', "","group"); |
$form->setBloc('co_anx_pisc','D',"", "alignForm"); |
657 |
|
$form->setBloc('co_anx_autr','F',"", ""); |
658 |
$form->setBloc('co_archi_cg','DF', "","group"); |
$form->setBloc('co_anx_autr_desc','DF',"", "group"); |
659 |
|
|
660 |
$form->setBloc('co_archi_tel1','D', "","group"); |
$form->setBloc('co_tot_log_nb','D',"", "alignForm"); |
661 |
$form->setBloc('co_archi_tel2','F'); |
$form->setBloc('co_tot_coll_nb','F',"", ""); |
662 |
|
|
663 |
$form->setBloc('co_archi_mail','DF', "","group"); |
$form->setBloc('co_mais_piece_nb','D',"", "alignForm"); |
664 |
|
$form->setBloc('co_mais_niv_nb','F',"", ""); |
665 |
$form->setBloc('co_archi_mail','F'); |
|
666 |
|
$form->setBloc('co_fin_lls_nb','D', _("Repartition du nombre total de logement crees par type de financement :"),"col_12"); |
667 |
|
$form->setBloc('co_fin_lls_nb','D',"", "alignForm"); |
668 |
|
$form->setBloc('co_fin_autr_nb','F',"", ""); |
669 |
|
|
670 |
|
$form->setBloc('co_fin_autr_desc','DF',"", "alignFormSpec group"); |
671 |
|
$form->setBloc('co_mais_contrat_ind','DF',"", "alignFormSpec group"); |
672 |
|
$form->setBloc('co_mais_contrat_ind','F'); |
673 |
|
|
674 |
|
$form->setBloc('co_uti_pers','D',_("Mode d'utilisation principale des logements :"), "col_12"); |
675 |
|
$form->setBloc('co_uti_pers','D', "", "alignForm"); |
676 |
|
$form->setBloc('co_uti_loc','F',"", ""); |
677 |
|
$form->setBloc('co_uti_loc','F',"", ""); |
678 |
|
|
679 |
|
$form->setBloc('co_uti_princ','D',_("S’il s’agit d’une occupation personnelle, veuillez preciser :"), "col_12"); |
680 |
|
$form->setBloc('co_uti_princ','D',"", "alignForm"); |
681 |
|
$form->setBloc('co_uti_secon','F',"", ""); |
682 |
|
$form->setBloc('co_uti_secon','F',"", "group"); |
683 |
|
|
684 |
|
$form->setBloc('co_resid_agees','D',_("Si le projet est un foyer ou une residence, a quel titre :"), "col_12 alignForm"); |
685 |
|
$form->setBloc('co_resid_agees','D',"", "alignForm"); |
686 |
|
$form->setBloc('co_resid_hand','F',"", ""); |
687 |
|
$form->setBloc('co_resid_hand','F',"", "group"); |
688 |
|
|
689 |
|
$form->setBloc('co_resid_autr','DF',"", "group alignFormSpec"); |
690 |
|
$form->setBloc('co_resid_autr_desc','DF',"", "group"); |
691 |
|
$form->setBloc('co_foyer_chamb_nb','DF',"", "group alignFormSpec"); |
692 |
|
|
693 |
|
$form->setBloc('co_log_1p_nb','D',_("Repartition du nombre de logements crees selon le nombre de pieces :"), "col_12"); |
694 |
|
$form->setBloc('co_log_1p_nb','D', "", "alignForm"); |
695 |
|
$form->setBloc('co_log_6p_nb','F',"", "group"); |
696 |
|
$form->setBloc('co_log_6p_nb','F',"", "group"); |
697 |
|
|
698 |
|
$form->setBloc('co_bat_niv_nb','DF',"", "alignFormSpec"); |
699 |
|
|
700 |
|
$form->setBloc('co_trx_exten','D',_("Indiquez si vos travaux comprennent notamment :"), "col_12"); |
701 |
|
$form->setBloc('co_trx_exten','D',"", "alignForm"); |
702 |
|
$form->setBloc('co_trx_nivsup','F',"", "group"); |
703 |
|
$form->setBloc('co_trx_nivsup','F',"", "group"); |
704 |
|
|
705 |
|
$form->setFieldset('co_trx_nivsup','F',''); |
706 |
|
$form->setFieldset('tab_surface','D' |
707 |
|
,_("Destinations et surfaces des constructions"), "startClosed"); |
708 |
|
$form->setBloc('tab_surface','D', "","col_12 group"); |
709 |
|
$form->setBloc('tab_surface','F'); |
710 |
|
$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"); |
711 |
|
$form->setBloc('co_sp_transport','D', "","alignForm"); |
712 |
|
$form->setBloc('co_sp_culture','F', "",""); |
713 |
|
$form->setBloc('co_sp_culture','F', "",""); |
714 |
|
|
715 |
|
$form->setFieldset('co_sp_culture','F',''); |
716 |
|
$form->setFieldset('co_demont_periode','D' |
717 |
|
,_("Divers construction"), "startClosed"); |
718 |
|
|
719 |
|
$form->setBloc('co_demont_periode','DF', _("Construction periodiquement demontee et re-installee :"),"col_12 group"); |
720 |
|
|
721 |
|
$form->setBloc('co_statio_avt_nb','D', _("Nombre de places de stationnement"),"col_12"); |
722 |
|
$form->setBloc('co_statio_avt_nb','D', "","alignForm"); |
723 |
|
$form->setBloc('co_statio_apr_nb','F', "",""); |
724 |
|
$form->setBloc('co_statio_apr_nb','F', "",""); |
725 |
|
|
726 |
|
$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"); |
727 |
|
$form->setBloc('co_statio_adr','DF', "","group"); |
728 |
|
|
729 |
|
$form->setBloc('co_statio_place_nb','D', "","col_12"); |
730 |
|
$form->setBloc('co_statio_place_nb','D', "","alignForm"); |
731 |
|
$form->setBloc('co_statio_tot_shob','F', "",""); |
732 |
|
$form->setBloc('co_statio_tot_shob','F', "",""); |
733 |
|
$form->setBloc('co_statio_tot_shob','F'); |
734 |
|
$form->setBloc('co_statio_comm_cin_surf','D', _("Pour les commerces et cinemas :"),"col_12 alignFormSpec"); |
735 |
|
$form->setBloc('co_perf_energ','F',"", ""); |
736 |
|
|
737 |
// bloc 5.2 |
$form->setFieldset('co_perf_energ','F',''); |
738 |
$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"); |
|
|
|
|
|
$form->setBloc('co_trx_nivsup','F'); |
|
|
|
|
|
// bloc 5.4 |
|
|
$form->setBloc('co_demont_period','D',_("Construction periodiquement |
|
|
demontee et re-installee"),"col_12"); |
|
|
|
|
|
$form->setBloc('co_demont_period','F'); |
|
739 |
|
|
740 |
// bloc 5.5 |
$form->setFieldset('co_perf_energ','F',''); |
|
$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',''); |
|
741 |
|
|
742 |
$form->setBloc('co_statio_apr_surf','F'); |
$form->setBloc('co_perf_energ','F'); |
743 |
|
// Fin construire |
744 |
|
|
|
// 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'); |
|
|
|
|
745 |
/*Fieldset n°6 Projet necessitant demolitions */ |
/*Fieldset n°6 Projet necessitant demolitions */ |
746 |
$form->setBloc('dm_constr_dates','D',"","col_12"); |
$form->setBloc('dm_constr_dates','D',"","col_12"); |
747 |
$form->setFieldset('dm_constr_dates','D' |
$form->setFieldset('dm_constr_dates','D' |
748 |
,_("Projet necessitant demolitions")); |
,_("Demolir"), "startClosed"); |
749 |
|
$form->setBloc('dm_constr_dates','DF', "","group"); |
750 |
$form->setBloc('dm_constr_dates','D',"","col_12"); |
$form->setBloc('dm_total','D', "","alignFormSpec"); |
751 |
|
$form->setBloc('dm_partiel','F'); |
752 |
$form->setBloc('dm_tot_log_nb','F'); |
$form->setBloc('dm_projet_desc','DF', "","group"); |
753 |
|
$form->setBloc('dm_tot_log_nb','DF', "","alignFormSpec"); |
754 |
$form->setFieldset('dm_tot_log_nb','F',''); |
$form->setFieldset('dm_tot_log_nb','F',''); |
755 |
|
|
756 |
$form->setBloc('dm_tot_log_nb','F'); |
$form->setBloc('dm_tot_log_nb','F'); |
757 |
|
|
758 |
$form->setBloc('tax_surf_tot','D',_("Declaration des elements necessaires au calcul des impositions"),"col_12"); |
/*Fieldset n°4 Ouverture de chantier */ |
759 |
$form->setBloc('tax_surf_tot','D',"","col_12"); |
$form->setBloc('doc_date','D',"","col_12"); |
760 |
$form->setFieldset('tax_surf_tot','D' |
$form->setFieldset('doc_date','D' |
761 |
,_("Renseignement")); |
,_("Ouverture de chantier"), "startClosed"); |
762 |
|
$form->setBloc('doc_date','DF', "","alignFormSpec-type-date"); |
763 |
$form->setBloc('tax_surf_tot','D',"","col_12"); |
$form->setBloc('doc_tot_trav','D', "","alignFormSpec"); |
764 |
|
$form->setBloc('doc_tranche_trav','F'); |
765 |
$form->setBloc('tax_dest_loc_tr','F'); |
$form->setBloc('doc_tranche_trav_desc','DF', "","group"); |
766 |
|
$form->setBloc('doc_surf','D', "","alignFormSpec"); |
767 |
$form->setBloc('tab_tax_su_princ','D',_("Locaux a usage d'habitation principale"),"col_12"); |
$form->setBloc('doc_nb_log_autre','F', "","group"); |
768 |
$form->setBloc('tab_tax_su_princ','F'); |
$form->setFieldset('doc_nb_log_autre','F',''); |
769 |
|
$form->setBloc('doc_nb_log_autre','F'); |
770 |
|
|
771 |
$form->setBloc('tab_tax_su_heber','D',_("Locaux a usage d'hebergement"),"col_12"); |
/*Fieldset n°4 Achèvement des travaux */ |
772 |
$form->setBloc('tab_tax_su_heber','F'); |
$form->setBloc('daact_date','D',"","col_12"); |
773 |
|
$form->setFieldset('daact_date','D' |
774 |
|
,_("Achevement des travaux") , "startClosed"); |
775 |
|
|
776 |
|
$form->setBloc('daact_date','D', "","alignFormSpec-type-date"); |
777 |
|
$form->setBloc('daact_date_chgmt_dest','F'); |
778 |
|
|
779 |
|
$form->setBloc('daact_tot_trav','D', "","alignFormSpec"); |
780 |
|
$form->setBloc('daact_tranche_trav','F'); |
781 |
|
|
782 |
|
$form->setBloc('daact_tranche_trav_desc','DF', "","group"); |
783 |
|
|
784 |
|
$form->setBloc('daact_surf','D', "","alignFormSpec"); |
785 |
|
$form->setBloc('daact_nb_log_autre','F', "","group"); |
786 |
|
$form->setFieldset('daact_nb_log_autre','F',''); |
787 |
|
$form->setBloc('daact_nb_log_autre','F'); |
788 |
|
|
789 |
$form->setBloc('tab_tax_su_secon','D',_("Locaux a usage d'habitation secondaire"),"col_12"); |
$form->setBloc('code_cnil','D',"","col_12"); |
790 |
$form->setBloc('tab_tax_su_secon','F'); |
$form->setBloc('code_cnil','DF', "","alignFormSpec"); |
791 |
|
$form->setBloc('code_cnil','F'); |
792 |
|
|
793 |
$form->setBloc('tab_tax_su_tot','D',_("Total de logement"),"col_12"); |
$form->setBloc('tax_surf_tot','D',"","col_12"); |
794 |
$form->setBloc('tab_tax_su_tot','F'); |
$form->setFieldset('tax_surf_tot','D' |
795 |
|
,_("Declaration des elements necessaires au calcul des impositions"), "startClosed"); |
796 |
|
|
797 |
$form->setBloc('tax_ext_pret','D',"","col_12"); |
$form->setBloc('tax_surf_tot','D', _("Renseignement"),"col_12"); |
798 |
|
$form->setBloc('tax_surf_tot','D', "", "alignFormSpec"); |
799 |
|
$form->setBloc('tax_surf_suppr_mod','F', "",""); |
800 |
|
$form->setBloc('tax_surf_suppr_mod','F', "",""); |
801 |
|
|
802 |
|
$form->setBloc('tab_tax_su_princ','D',_("Creation de locaux destines a l’habitation :"),"col_12"); |
803 |
|
$form->setBloc('tab_tax_su_tot','F', "",""); |
804 |
|
|
805 |
|
$form->setBloc('tax_ext_pret','DF', "","alignFormSpec"); |
806 |
|
$form->setBloc('tax_ext_desc','DF', "","group"); |
807 |
|
$form->setBloc('tax_surf_tax_exist_cons','D', "","alignFormSpec"); |
808 |
$form->setBloc('tax_log_exist_nb','F'); |
$form->setBloc('tax_log_exist_nb','F'); |
809 |
|
|
810 |
$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"); |
811 |
$form->setBloc('tab_tax_su_non_habit_surf','F'); |
$form->setBloc('tax_comm_nb','DF', "","col_12 alignFormSpec"); |
812 |
|
$form->setBloc('tax_log_exist_nb','DF'); |
813 |
$form->setBloc('tab_tax_am','D',_("Autres elements soumis a la taxe d'amenagement"),"col_12"); |
$form->setBloc('tax_log_exist_nb','F'); |
|
$form->setBloc('tab_tax_am','F'); |
|
814 |
|
|
815 |
$form->setBloc('tax_trx_presc_ppr','D',_("Cas particuliers"),"col_12"); |
$form->setBloc('tax_trx_presc_ppr','D', _("Cas particuliers"),"col_12 alignFormSpec"); |
816 |
$form->setBloc('tax_monu_hist','F'); |
$form->setBloc('tax_monu_hist','F'); |
817 |
|
|
818 |
$form->setFieldset('tax_monu_hist','F',''); |
$form->setBloc('vsd_surf_planch_smd','D', _("Versement pour sous-densite (VSD)"),"col_12"); |
819 |
|
$form->setBloc('vsd_surf_planch_smd','D', "","alignFormSpec"); |
820 |
$form->setBloc('tax_monu_hist','F'); |
$form->setBloc('vsd_const_sxist_non_dem_surf','F'); |
821 |
|
|
822 |
$form->setBloc('vsd_surf_planch_smd','D',"","col_12"); |
$form->setBloc('vsd_rescr_fisc','DF',"", "alignFormSpec-type-date"); |
|
$form->setFieldset('vsd_surf_planch_smd','D' |
|
|
,_("Autres renseignements")); |
|
|
|
|
|
$form->setBloc('vsd_surf_planch_smd','D',_("Versement pour sous-densite (VSD)"),"col_12"); |
|
823 |
$form->setBloc('vsd_rescr_fisc','F'); |
$form->setBloc('vsd_rescr_fisc','F'); |
824 |
|
|
825 |
$form->setBloc('pld_val_terr','D',_("Plafond legal de densite (PLD)"),"col_12"); |
$form->setBloc('pld_val_terr','D', _("Plafond legal de densite (PLD)"),"col_12 alignFormSpec"); |
826 |
$form->setBloc('pld_const_exist_dem_surf','F'); |
$form->setBloc('pld_const_exist_dem_surf','F'); |
827 |
|
|
828 |
$form->setFieldset('pld_const_exist_dem_surf','F',''); |
$form->setFieldset('pld_const_exist_dem_surf','F',''); |
829 |
|
|
830 |
$form->setBloc('pld_const_exist_dem_surf','F'); |
$form->setBloc('pld_const_exist_dem_surf','F'); |
|
|
|
|
$form->setBloc('pld_const_exist_dem_surf','F'); |
|
831 |
} |
} |
832 |
|
|
833 |
|
/** |
834 |
|
* Surcharge de la méthode setOnChange |
835 |
|
*/ |
836 |
|
function setOnchange(&$form,$maj){ |
837 |
|
parent::setOnchange($form,$maj); |
838 |
|
|
839 |
|
$form->setOnchange("co_tot_ind_nb","sommeChampsCerfa('co_tot_log_nb',['co_tot_ind_nb','co_tot_coll_nb']);"); |
840 |
|
$form->setOnchange("co_tot_coll_nb","sommeChampsCerfa('co_tot_log_nb',['co_tot_ind_nb','co_tot_coll_nb']);"); |
841 |
|
|
842 |
|
$form->setOnchange("doc_nb_log_indiv","sommeChampsCerfa('doc_nb_log',['doc_nb_log_indiv','doc_nb_log_coll']);"); |
843 |
|
$form->setOnchange("doc_nb_log_coll","sommeChampsCerfa('doc_nb_log',['doc_nb_log_indiv','doc_nb_log_coll']);"); |
844 |
|
|
845 |
|
$form->setOnchange("su_avt_shon1","calculSurfaceTotal();"); |
846 |
|
$form->setOnchange("su_avt_shon2","calculSurfaceTotal();"); |
847 |
|
$form->setOnchange("su_avt_shon3","calculSurfaceTotal();"); |
848 |
|
$form->setOnchange("su_avt_shon4","calculSurfaceTotal();"); |
849 |
|
$form->setOnchange("su_avt_shon5","calculSurfaceTotal();"); |
850 |
|
$form->setOnchange("su_avt_shon6","calculSurfaceTotal();"); |
851 |
|
$form->setOnchange("su_avt_shon7","calculSurfaceTotal();"); |
852 |
|
$form->setOnchange("su_avt_shon8","calculSurfaceTotal();"); |
853 |
|
$form->setOnchange("su_avt_shon9","calculSurfaceTotal();"); |
854 |
|
$form->setOnchange("su_cstr_shon1","calculSurfaceTotal();"); |
855 |
|
$form->setOnchange("su_cstr_shon2","calculSurfaceTotal();"); |
856 |
|
$form->setOnchange("su_cstr_shon3","calculSurfaceTotal();"); |
857 |
|
$form->setOnchange("su_cstr_shon4","calculSurfaceTotal();"); |
858 |
|
$form->setOnchange("su_cstr_shon5","calculSurfaceTotal();"); |
859 |
|
$form->setOnchange("su_cstr_shon6","calculSurfaceTotal();"); |
860 |
|
$form->setOnchange("su_cstr_shon7","calculSurfaceTotal();"); |
861 |
|
$form->setOnchange("su_cstr_shon8","calculSurfaceTotal();"); |
862 |
|
$form->setOnchange("su_cstr_shon9","calculSurfaceTotal();"); |
863 |
|
$form->setOnchange("su_trsf_shon1","calculSurfaceTotal();"); |
864 |
|
$form->setOnchange("su_trsf_shon2","calculSurfaceTotal();"); |
865 |
|
$form->setOnchange("su_trsf_shon3","calculSurfaceTotal();"); |
866 |
|
$form->setOnchange("su_trsf_shon4","calculSurfaceTotal();"); |
867 |
|
$form->setOnchange("su_trsf_shon5","calculSurfaceTotal();"); |
868 |
|
$form->setOnchange("su_trsf_shon6","calculSurfaceTotal();"); |
869 |
|
$form->setOnchange("su_trsf_shon7","calculSurfaceTotal();"); |
870 |
|
$form->setOnchange("su_trsf_shon8","calculSurfaceTotal();"); |
871 |
|
$form->setOnchange("su_trsf_shon9","calculSurfaceTotal();"); |
872 |
|
$form->setOnchange("su_chge_shon1","calculSurfaceTotal();"); |
873 |
|
$form->setOnchange("su_chge_shon2","calculSurfaceTotal();"); |
874 |
|
$form->setOnchange("su_chge_shon3","calculSurfaceTotal();"); |
875 |
|
$form->setOnchange("su_chge_shon4","calculSurfaceTotal();"); |
876 |
|
$form->setOnchange("su_chge_shon5","calculSurfaceTotal();"); |
877 |
|
$form->setOnchange("su_chge_shon6","calculSurfaceTotal();"); |
878 |
|
$form->setOnchange("su_chge_shon7","calculSurfaceTotal();"); |
879 |
|
$form->setOnchange("su_chge_shon8","calculSurfaceTotal();"); |
880 |
|
$form->setOnchange("su_chge_shon9","calculSurfaceTotal();"); |
881 |
|
$form->setOnchange("su_demo_shon1","calculSurfaceTotal();"); |
882 |
|
$form->setOnchange("su_demo_shon2","calculSurfaceTotal();"); |
883 |
|
$form->setOnchange("su_demo_shon3","calculSurfaceTotal();"); |
884 |
|
$form->setOnchange("su_demo_shon4","calculSurfaceTotal();"); |
885 |
|
$form->setOnchange("su_demo_shon5","calculSurfaceTotal();"); |
886 |
|
$form->setOnchange("su_demo_shon6","calculSurfaceTotal();"); |
887 |
|
$form->setOnchange("su_demo_shon7","calculSurfaceTotal();"); |
888 |
|
$form->setOnchange("su_demo_shon8","calculSurfaceTotal();"); |
889 |
|
$form->setOnchange("su_demo_shon9","calculSurfaceTotal();"); |
890 |
|
$form->setOnchange("su_sup_shon1","calculSurfaceTotal();"); |
891 |
|
$form->setOnchange("su_sup_shon2","calculSurfaceTotal();"); |
892 |
|
$form->setOnchange("su_sup_shon3","calculSurfaceTotal();"); |
893 |
|
$form->setOnchange("su_sup_shon4","calculSurfaceTotal();"); |
894 |
|
$form->setOnchange("su_sup_shon5","calculSurfaceTotal();"); |
895 |
|
$form->setOnchange("su_sup_shon6","calculSurfaceTotal();"); |
896 |
|
$form->setOnchange("su_sup_shon7","calculSurfaceTotal();"); |
897 |
|
$form->setOnchange("su_sup_shon8","calculSurfaceTotal();"); |
898 |
|
$form->setOnchange("su_sup_shon9","calculSurfaceTotal();"); |
899 |
|
$form->setOnchange("su_tot_shon1","calculSurfaceTotal();"); |
900 |
|
$form->setOnchange("su_tot_shon2","calculSurfaceTotal();"); |
901 |
|
$form->setOnchange("su_tot_shon3","calculSurfaceTotal();"); |
902 |
|
$form->setOnchange("su_tot_shon4","calculSurfaceTotal();"); |
903 |
|
$form->setOnchange("su_tot_shon5","calculSurfaceTotal();"); |
904 |
|
$form->setOnchange("su_tot_shon6","calculSurfaceTotal();"); |
905 |
|
$form->setOnchange("su_tot_shon7","calculSurfaceTotal();"); |
906 |
|
$form->setOnchange("su_tot_shon8","calculSurfaceTotal();"); |
907 |
|
$form->setOnchange("su_tot_shon9","calculSurfaceTotal();"); |
908 |
|
|
909 |
|
} |
910 |
|
|
911 |
|
|
912 |
/** |
/** |
999 |
return $this->_division_from_dossier; |
return $this->_division_from_dossier; |
1000 |
|
|
1001 |
} |
} |
1002 |
|
|
1003 |
|
/** |
1004 |
|
* Retourne le nom et le prénom de l'architecte qui a l'identifiant $id |
1005 |
|
* @param integer $id |
1006 |
|
* @param object $db |
1007 |
|
* @return string |
1008 |
|
*/ |
1009 |
|
function getPrenomNomArchitecte($id){ |
1010 |
|
|
1011 |
|
$coordonneesArchitecte = ""; |
1012 |
|
if ( $id != '' && is_numeric($id) ){ |
1013 |
|
|
1014 |
|
$sql = "SELECT |
1015 |
|
CONCAT(architecte.prenom, ' ', architecte.nom) |
1016 |
|
FROM |
1017 |
|
".DB_PREFIXE."architecte |
1018 |
|
WHERE |
1019 |
|
architecte.architecte = ".$id; |
1020 |
|
$coordonneesArchitecte = $this->db->getOne($sql); |
1021 |
|
$this->f->addToLog("setSelect() : db->getOne(\"".$sql."\")", VERBOSE_MODE); |
1022 |
|
if ( database::isError($coordonneesArchitecte)){ |
1023 |
|
$this->f->addToError("", $coordonneesArchitecte, $coordonneesArchitecte); |
1024 |
|
return false; |
1025 |
|
} |
1026 |
|
} |
1027 |
|
return $coordonneesArchitecte; |
1028 |
|
} |
1029 |
|
|
1030 |
}// fin classe |
}// fin classe |
1031 |
?> |
?> |