/[openfoncier]/trunk/obj/donnees_techniques.class.php
ViewVC logotype

Annotation of /trunk/obj/donnees_techniques.class.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 6565 - (hide annotations)
Fri Apr 21 16:14:15 2017 UTC (7 years, 9 months ago) by softime
File size: 91332 byte(s)
Merge de la version 4.0.0

1 mbroquet 3730 <?php
2     //$Id: donnees_techniques.class.php 5856 2016-02-03 11:35:25Z stimezouaght $
3     //gen openMairie le 13/02/2013 14:41
4    
5     require_once ("../gen/obj/donnees_techniques.class.php");
6    
7     class donnees_techniques extends donnees_techniques_gen {
8    
9     var $cerfa; // Instance de la classe cerfa
10    
11     /**
12     * Instance de la classe dossier.
13     *
14     * @var null
15     */
16     var $inst_dossier = null;
17    
18 softime 6565 /**
19     * Instance de la classe dossier_autorisation
20     *
21     * @var null
22     */
23     var $inst_dossier_autorisation = null;
24 mbroquet 3730
25 softime 6565 /**
26     * Instance de la classe lot
27     *
28     * @var null
29     */
30     var $inst_lot = null;
31    
32     /**
33     * Liaison NaN
34     */
35     var $liaisons_nan = array(
36     //
37     "lien_donnees_techniques_moyen_souleve" => array(
38     "table_l" => "lien_donnees_techniques_moyen_souleve",
39     "table_f" => "moyen_souleve",
40     "field" => "ctx_moyen_souleve",
41     ),
42     //
43     "lien_donnees_techniques_moyen_retenu_juge" => array(
44     "table_l" => "lien_donnees_techniques_moyen_retenu_juge",
45     "table_f" => "moyen_retenu_juge",
46     "field" => "ctx_moyen_retenu_juge",
47     ),
48     );
49    
50 mbroquet 3730 function donnees_techniques($id, &$db = null, $debug = null) {
51     $this->constructeur($id,$db,$debug);
52     }// fin constructeur
53    
54     /**
55     * Définition des actions disponibles sur la classe.
56     *
57     * @return void
58     */
59     function init_class_actions() {
60    
61     // On récupère les actions génériques définies dans la méthode
62     // d'initialisation de la classe parente
63     parent::init_class_actions();
64    
65     // ACTION - 001 - modifier
66     //
67     $this->class_actions[1]["condition"] = "is_editable";
68    
69     // ACTION - 002 - supprimer
70     //
71     $this->class_actions[2]["condition"] = "is_deletable";
72 softime 6565
73     // ACTION - 003 - consulter
74     $this->class_actions[3]["condition"] = "can_user_access_dossier_contexte_modification";
75    
76     // ACTION - 004 - action consulter spécifique au contexte de dossier d'autorisation
77     $this->class_actions[4] = array(
78     "identifier" => "consulter_contexte_da",
79     "permission_suffix" => "consulter",
80     "crud" => "read",
81     "condition" => "can_user_access_dossier_contexte_dossier_autorisation_modification"
82     );
83    
84     // ACTION - 005 - action consulter spécifique au contexte de lot
85     $this->class_actions[5] = array(
86     "identifier" => "consulter_contexte_lot",
87     "permission_suffix" => "consulter",
88     "crud" => "read",
89     "condition" => "can_user_access_dossier_contexte_lot_modification"
90     );
91 mbroquet 3730 }
92    
93     /**
94     * CONDITION - is_deletable.
95     *
96 nmeucci 4123 * Condition pour afficher le bouton de suppression. Cette action n'est pas utile donc
97     * ne doit pas être disponible, même pour l'admin.
98 mbroquet 3730 *
99     * @return boolean
100     */
101     function is_deletable() {
102     //
103 nmeucci 4123 return false;
104 mbroquet 3730 }
105    
106     /**
107     * CONDITION - is_editable.
108     *
109     * Condition pour afficher le bouton de modification.
110     *
111     * @return boolean
112     */
113     function is_editable() {
114    
115     // Si c'est un sous-formulaire du dossier d'autorisation
116     if ($this->getParameter("retourformulaire") == 'dossier_autorisation'
117     || $this->getParameter("retourformulaire") == 'dossier_autorisation_avis') {
118    
119     //
120     return false;
121     }
122    
123     // Contrôle si l'utilisateur possède un bypass
124 softime 6565 $bypass = $this->f->isAccredited(get_class($this)."_modifier_bypass");
125 mbroquet 3730 //
126     if ($bypass == true) {
127     //
128     return true;
129     }
130    
131 softime 6565 // Si l'utilisateur est un intructeur qui correspond à la
132 mbroquet 3730 // division du dossier
133 softime 6565 if ($this->is_instructeur_from_division_dossier() === true) {
134 mbroquet 3730 //
135 softime 6565 return true;
136 mbroquet 3730 }
137    
138     //
139 softime 6565 return false;
140 mbroquet 3730 }
141    
142     /**
143     * Méthode permettant de récupérer l'id du cerfa lié au dossier.
144     *
145     * @return cerfa handler du cerfa
146     */
147     function getCerfa() {
148     if($this->cerfa != null) {
149     return $this->cerfa;
150     }
151     require_once ("../obj/cerfa.class.php");
152     $this->cerfa = new cerfa($this->getVal("cerfa"), $this->db, DEBUG);
153     return $this->cerfa;
154     }
155    
156     /**
157     * Méthode permettant de vérifier si le tableau passé en parametre est défini
158     * dans la table des cerfa
159     */
160    
161     function setTabSelect($tab, $idchamp) {
162     // Test si un tableau de surface a été défini
163     if ( $this->cerfa->getVal($idchamp) != "" ){
164    
165     // Configuration du tableau des surfaces
166     $contenu['column_header']=$tab[$this->cerfa->getVal($idchamp)]['column_header'];
167     $contenu['row_header']=$tab[$this->cerfa->getVal($idchamp)]['row_header'];
168    
169     foreach($tab[$this->cerfa->getVal($idchamp)]['values'] as $champ) {
170     $contenu['values'][$champ] = $this->getVal($champ);
171     }
172    
173     $this->form->setSelect($idchamp,$contenu);
174     }
175     }
176    
177    
178     function setSelect(&$form, $maj,&$db,$debug) {
179     if(file_exists ("../sql/".OM_DB_PHPTYPE."/".$this->table.".form.inc.php"))
180     include ("../sql/".OM_DB_PHPTYPE."/".$this->table.".form.inc.php");
181     elseif(file_exists ("../sql/".OM_DB_PHPTYPE."/".$this->table.".form.inc"))
182     include ("../sql/".OM_DB_PHPTYPE."/".$this->table.".form.inc");
183    
184     if(empty($this->cerfa)) {
185     $this->getCerfa();
186     }
187    
188     $this->setTabSelect($tab_surface, "tab_surface");
189 softime 4636 $this->setTabSelect($tab_surface2, "tab_surface2");
190 mbroquet 3730 $this->setTabSelect($tab_tax_su_princ, "tab_tax_su_princ");
191     $this->setTabSelect($tab_tax_su_heber, "tab_tax_su_heber");
192     $this->setTabSelect($tab_tax_su_secon, "tab_tax_su_secon");
193     $this->setTabSelect($tab_tax_su_tot, "tab_tax_su_tot");
194     $this->setTabSelect($tab_tax_su_non_habit_surf, "tab_tax_su_non_habit_surf");
195     $this->setTabSelect($tab_tax_su_parc_statio_expl_comm, "tab_tax_su_parc_statio_expl_comm");
196     $this->setTabSelect($tab_tax_am, "tab_tax_am");
197     $this->setTabSelect($tab_erp_eff, "tab_erp_eff");
198    
199     // Définition des champs Oui/Non/Je ne sais pas
200     $value[] = array(
201     "nesaispas",
202     "non",
203     "oui",
204     );
205     $value[] = array(
206     _("Je ne sais pas"),
207     _("Non"),
208     _("Oui"),
209     );
210    
211     $form->setSelect('terr_juri_titul',$value);
212     $form->setSelect('terr_juri_lot',$value);
213     $form->setSelect('terr_juri_zac',$value);
214     $form->setSelect('terr_juri_afu',$value);
215     $form->setSelect('terr_juri_pup',$value);
216     $form->setSelect('terr_juri_oin',$value);
217     $form->setSelect('terr_juri_desc',$value);
218     $form->setSelect('terr_div_surf_etab',$value);
219     $form->setSelect('terr_div_surf_av_div',$value);
220    
221     //
222     $this->init_select($form, $this->f->db, $maj, null, "erp_class_cat", $sql_erp_class_cat, $sql_erp_class_cat_by_id, false);
223     //
224     $this->init_select($form, $this->f->db, $maj, null, "erp_class_type", $sql_erp_class_type, $sql_erp_class_type_by_id, false);
225 softime 6565 //
226     $this->init_select($form, $this->f->db, $maj, null, "ctx_objet_recours", $sql_ctx_objet_recours, $sql_ctx_objet_recours_by_id, true);
227    
228 mbroquet 3730 //Récupérer le nom et le prénom de l'architecte
229     $coordonneesArchitecte = $this->getPrenomNomArchitecte($this->getVal('architecte'));
230     $value = "";
231     if ($maj<2){
232     $value = array(
233     "data" => $coordonneesArchitecte,
234     "obj" => "architecte",
235     );
236     }
237     else {
238     $value[0][0]=$this->getVal('architecte');
239     $value[1][0]=$coordonneesArchitecte;// table
240     }
241     $form->setSelect('architecte', $value);
242 softime 6565
243     // Champ select_multiple - ctx_moyen_souleve
244     $sql_ctx_moyen_souleve = $sql_ctx_moyen_souleve_select.$sql_ctx_moyen_souleve_from.$sql_ctx_moyen_souleve_where;
245     $sql_ctx_moyen_souleve_by_id = $sql_ctx_moyen_souleve_select.$sql_ctx_moyen_souleve_from.$sql_ctx_moyen_souleve_by_id_where;
246     //
247     $this->init_select($form, $db, $maj, $debug, "ctx_moyen_souleve", $sql_ctx_moyen_souleve, $sql_ctx_moyen_souleve_by_id, true, true);
248    
249     // Champ select_multiple - ctx_moyen_retenu_juge
250     $sql_ctx_moyen_retenu_juge = $sql_ctx_moyen_retenu_juge_select.$sql_ctx_moyen_retenu_juge_from.$sql_ctx_moyen_retenu_juge_where;
251     $sql_ctx_moyen_retenu_juge_by_id = $sql_ctx_moyen_retenu_juge_select.$sql_ctx_moyen_retenu_juge_from.$sql_ctx_moyen_retenu_juge_by_id_where;
252     //
253     $this->init_select($form, $db, $maj, $debug, "ctx_moyen_retenu_juge", $sql_ctx_moyen_retenu_juge, $sql_ctx_moyen_retenu_juge_by_id, true, true);
254 mbroquet 3730 }
255    
256    
257     // XXX Créer une nouvelle méthode au même endroit que l'appel a checkAccessibility()
258     function checkAccessibility() {
259 softime 6565
260     parent::checkAccessibility();
261    
262 mbroquet 3730 if(file_exists ("../sql/".OM_DB_PHPTYPE."/".$this->table.".form.inc.php"))
263     include ("../sql/".OM_DB_PHPTYPE."/".$this->table.".form.inc.php");
264     elseif(file_exists ("../sql/".OM_DB_PHPTYPE."/".$this->table.".form.inc"))
265     include ("../sql/".OM_DB_PHPTYPE."/".$this->table.".form.inc");
266    
267     //
268     if(empty($this->cerfa)) {
269     $this->getCerfa();
270     }
271    
272     $id_tab_surface = $this->cerfa->getVal("tab_surface");
273 softime 4636 $id_tab_surface2 = $this->cerfa->getVal("tab_surface2");
274 mbroquet 3730 $id_tab_tax_su_princ = $this->cerfa->getVal("tab_tax_su_princ");
275     $id_tab_tax_su_heber = $this->cerfa->getVal("tab_tax_su_heber");
276     $id_tab_tax_su_secon = $this->cerfa->getVal("tab_tax_su_secon");
277     $id_tab_tax_su_tot = $this->cerfa->getVal("tab_tax_su_tot");
278     $id_tab_tax_su_non_habit_surf = $this->cerfa->getVal("tab_tax_su_non_habit_surf");
279     $id_tab_tax_su_parc_statio_expl_comm = $this->cerfa->getVal("tab_tax_su_parc_statio_expl_comm");
280     $id_tab_tax_am = $this->cerfa->getVal("tab_tax_am");
281     $id_tab_erp_eff = $this->cerfa->getVal("tab_erp_eff");
282    
283     //Suppression des champs de tableaux
284     if(!empty($id_tab_surface)) {
285     foreach($tab_surface[$this->cerfa->getVal("tab_surface")]['values'] as $champ) {
286     unset($this->champs[array_search($champ,$this->champs)]);
287     }
288     }
289 softime 4636 if(!empty($id_tab_surface2)) {
290     foreach($tab_surface2[$this->cerfa->getVal("tab_surface2")]['values'] as $champ) {
291     unset($this->champs[array_search($champ,$this->champs)]);
292     }
293     }
294 mbroquet 3730 if(!empty($id_tab_tax_su_princ)) {
295     foreach($tab_tax_su_princ[$this->cerfa->getVal("tab_tax_su_princ")]['values'] as $champ) {
296     unset($this->champs[array_search($champ,$this->champs)]);
297     }
298     }
299     if(!empty($id_tab_tax_su_heber)) {
300     foreach($tab_tax_su_heber[$this->cerfa->getVal("tab_tax_su_heber")]['values'] as $champ) {
301     unset($this->champs[array_search($champ,$this->champs)]);
302     }
303     }
304     if(!empty($id_tab_tax_su_secon)) {
305     foreach($tab_tax_su_secon[$this->cerfa->getVal("tab_tax_su_secon")]['values'] as $champ) {
306     unset($this->champs[array_search($champ,$this->champs)]);
307     }
308     }
309     if(!empty($id_tab_tax_su_tot)) {
310     foreach($tab_tax_su_tot[$this->cerfa->getVal("tab_tax_su_tot")]['values'] as $champ) {
311     unset($this->champs[array_search($champ,$this->champs)]);
312     }
313     }
314     if(!empty($id_tab_tax_su_non_habit_surf)) {
315     foreach($tab_tax_su_non_habit_surf[$this->cerfa->getVal("tab_tax_su_non_habit_surf")]['values'] as $champ) {
316     unset($this->champs[array_search($champ,$this->champs)]);
317     }
318     }
319     if(!empty($id_tab_tax_su_parc_statio_expl_comm)) {
320     foreach($tab_tax_su_parc_statio_expl_comm[$this->cerfa->getVal("tab_tax_su_parc_statio_expl_comm")]['values'] as $champ) {
321     unset($this->champs[array_search($champ,$this->champs)]);
322     }
323     }
324     if(!empty($id_tab_tax_am)) {
325     foreach($tab_tax_am[$this->cerfa->getVal("tab_tax_am")]['values'] as $champ) {
326     unset($this->champs[array_search($champ,$this->champs)]);
327     }
328     }
329     if(!empty($id_tab_erp_eff)) {
330     foreach($tab_erp_eff[$this->cerfa->getVal("tab_erp_eff")]['values'] as $champ) {
331     unset($this->champs[array_search($champ,$this->champs)]);
332     }
333     }
334     // Renumérotation
335     $this->champs = array_values($this->champs);
336     }
337    
338     /**
339     * Méthode permettant de définir le type des différents tableaux en fonction
340     * des valeurs du cerfa
341     **/
342     function setTabType($tab) {
343     // Définition du type "tableau"
344     if ( $this->cerfa->getVal($tab) != "" ){
345    
346     $this->form->setType($tab,'tableau');
347     }
348     //Le chache si non défini
349     else {
350    
351     $this->form->setType($tab,'hidden');
352     }
353     }
354    
355     /**
356     * Méthode permettant de définir le type des champs des tableaux en fonction
357     * des valeurs du cerfa
358     **/
359     function setTabChampType($tab) {
360     if(file_exists ("../sql/".OM_DB_PHPTYPE."/".$this->table.".form.inc.php"))
361     include ("../sql/".OM_DB_PHPTYPE."/".$this->table.".form.inc.php");
362     elseif(file_exists ("../sql/".OM_DB_PHPTYPE."/".$this->table.".form.inc"))
363     include ("../sql/".OM_DB_PHPTYPE."/".$this->table.".form.inc");
364     // Pour chaque champ dans la liste des champs du cerfa
365     $tableau = $$tab;
366     foreach ($this->champs as $champ) {
367    
368     if(array_search($champ, $this->cerfa->champs) !== false) {
369     // On les cache si décoché dans le formulaire de cerfa
370     if($this->cerfa->getVal($champ) == 'f') {
371     $this->form->setType($champ,'hidden');
372     }
373     } else {
374    
375     if(!in_array($champ, $tableau[$this->cerfa->getVal($tab)]['values'])) {
376    
377     $this->form->setType($champ,'hidden');
378     }
379     }
380     }
381     }
382    
383    
384    
385     function setType(&$form,$maj) {
386     parent::setType($form,$maj);
387    
388     if(file_exists ("../sql/".OM_DB_PHPTYPE."/".$this->table.".form.inc.php"))
389     include ("../sql/".OM_DB_PHPTYPE."/".$this->table.".form.inc.php");
390     elseif(file_exists ("../sql/".OM_DB_PHPTYPE."/".$this->table.".form.inc"))
391     include ("../sql/".OM_DB_PHPTYPE."/".$this->table.".form.inc");
392    
393     if(empty($this->cerfa)) {
394     $this->getCerfa();
395     }
396    
397     $this->setTabType("tab_surface");
398 softime 4636 $this->setTabType("tab_surface2");
399 mbroquet 3730 $this->setTabType("tab_tax_su_princ");
400     $this->setTabType("tab_tax_su_heber");
401     $this->setTabType("tab_tax_su_secon");
402     $this->setTabType("tab_tax_su_tot");
403     $this->setTabType("tab_tax_su_non_habit_surf");
404     $this->setTabType("tab_tax_su_parc_statio_expl_comm");
405     $this->setTabType("tab_tax_am");
406     $this->setTabType("tab_erp_eff");
407    
408     //Champs select pour les liste a choix oui/non/je ne sais pas (terr_*)
409     if($maj == 0) {
410     $form->setType('terr_juri_titul','select');
411     $form->setType('terr_juri_lot','select');
412     $form->setType('terr_juri_zac','select');
413     $form->setType('terr_juri_afu','select');
414     $form->setType('terr_juri_pup','select');
415     $form->setType('terr_juri_oin','select');
416     $form->setType('architecte', 'manage_with_popup');
417     $form->setType('erp_class_cat','select');
418     $form->setType('erp_class_type','select');
419 softime 6565 $form->setType('ctx_objet_recours','select');
420     $form->setType('ctx_moyen_souleve','select_multiple');
421     $form->setType('ctx_moyen_retenu_juge','select_multiple');
422 mbroquet 3730
423     } elseif($maj == 1) {
424     $form->setType('terr_juri_titul','select');
425     $form->setType('terr_juri_lot','select');
426     $form->setType('terr_juri_zac','select');
427     $form->setType('terr_juri_afu','select');
428     $form->setType('terr_juri_pup','select');
429     $form->setType('terr_juri_oin','select');
430     $form->setType('architecte', 'manage_with_popup');
431     $form->setType('erp_class_cat','select');
432     $form->setType('erp_class_type','select');
433 softime 6565 $form->setType('ctx_objet_recours','select');
434     $form->setType('ctx_moyen_souleve','select_multiple');
435     $form->setType('ctx_moyen_retenu_juge','select_multiple');
436 mbroquet 3730
437     } elseif($maj == 2) {
438     $form->setType('terr_juri_titul','selectstatic');
439     $form->setType('terr_juri_lot','selectstatic');
440     $form->setType('terr_juri_zac','selectstatic');
441     $form->setType('terr_juri_afu','selectstatic');
442     $form->setType('terr_juri_pup','selectstatic');
443     $form->setType('terr_juri_oin','selectstatic');
444     $form->setType('architecte', 'selectstatic');
445     $form->setType('erp_class_cat','selectstatic');
446     $form->setType('erp_class_type','selectstatic');
447 softime 6565 $form->setType('ctx_objet_recours','selectstatic');
448     $form->setType('ctx_moyen_souleve','select_multiple_static');
449     $form->setType('ctx_moyen_retenu_juge','select_multiple_static');
450 mbroquet 3730
451 softime 6565 } elseif($maj == 3 || $maj == 4 || $maj == 5) {
452 mbroquet 3730 $form->setType('terr_juri_titul','selectstatic');
453     $form->setType('terr_juri_lot','selectstatic');
454     $form->setType('terr_juri_zac','selectstatic');
455     $form->setType('terr_juri_afu','selectstatic');
456     $form->setType('terr_juri_pup','selectstatic');
457     $form->setType('terr_juri_oin','selectstatic');
458     $form->setType('architecte', 'selectstatic');
459     $form->setType('erp_class_cat','selectstatic');
460     $form->setType('erp_class_type','selectstatic');
461 softime 6565 $form->setType('ctx_objet_recours','selectstatic');
462     $form->setType('ctx_moyen_souleve','select_multiple_static');
463     $form->setType('ctx_moyen_retenu_juge','select_multiple_static');
464 mbroquet 3730
465     }
466    
467     // Anciens champs à conserver pour les anciens cerfa
468     $form->setType("co_statio_avt_shob", "hidden");
469     $form->setType("co_statio_apr_shob", "hidden");
470     $form->setType("co_statio_avt_surf", "hidden");
471     $form->setType("co_statio_apr_surf", "hidden");
472     $form->setType("co_trx_amgt", "hidden");
473     $form->setType("co_modif_aspect", "hidden");
474     $form->setType("co_modif_struct", "hidden");
475     $form->setType("co_trx_imm", "hidden");
476     $form->setType("co_cstr_shob", "hidden");
477     $form->setType("am_voyage_deb", "hidden");
478     $form->setType("am_voyage_fin", "hidden");
479     $form->setType("am_modif_amgt", "hidden");
480     $form->setType("am_lot_max_shob", "hidden");
481     $form->setType("mod_desc", "hidden");
482     $form->setType("tr_total", "hidden");
483     $form->setType("tr_partiel", "hidden");
484     $form->setType("tr_desc", "hidden");
485     $form->setType("avap_co_clot", "hidden");
486     $form->setType("avap_aut_coup_aba_arb", "hidden");
487     $form->setType("avap_ouv_infra", "hidden");
488     $form->setType("avap_aut_inst_mob", "hidden");
489     $form->setType("avap_aut_plant", "hidden");
490     $form->setType("avap_aut_auv_elec", "hidden");
491     $form->setType("tax_dest_loc_tr", "hidden");
492    
493    
494     //Cache les champs des clés étrangères, elles sont renseignées automatiquement
495     $form->setType('dossier_instruction', 'hidden');
496     $form->setType('lot', 'hidden');
497     $form->setType('cerfa', 'hidden');
498    
499 nhaye 4777 // Boucler sur les champs des données techniques pour cacher les données qui ne
500     // doivent pas être saisies
501 mbroquet 3730
502     foreach ($this->champs as $champ) {
503     if(array_search($champ, $this->cerfa->champs) !== false) {
504     if($this->cerfa->getVal($champ) == 'f') {
505     $form->setType($champ,'hidden');
506     }
507     } else {
508     $id_tab_surface = $this->cerfa->getVal("tab_surface");
509 softime 4636 $id_tab_surface2 = $this->cerfa->getVal("tab_surface2");
510 mbroquet 3730 $id_tab_tax_su_princ = $this->cerfa->getVal("tab_tax_su_princ");
511     $id_tab_tax_su_heber = $this->cerfa->getVal("tab_tax_su_heber");
512     $id_tab_tax_su_secon = $this->cerfa->getVal("tab_tax_su_secon");
513     $id_tab_tax_su_tot = $this->cerfa->getVal("tab_tax_su_tot");
514     $id_tab_tax_su_non_habit_surf = $this->cerfa->getVal("tab_tax_su_non_habit_surf");
515     $id_tab_tax_su_parc_statio_expl_comm = $this->cerfa->getVal("tab_tax_su_parc_statio_expl_comm");
516     $id_tab_tax_am = $this->cerfa->getVal("tab_tax_am");
517     $id_tab_erp_eff = $this->cerfa->getVal("tab_erp_eff");
518     $hidden = true;
519    
520     // On cache tous les champs
521     $form->setType($champ,'hidden');
522    
523     // On défini l'affichage des champs des tableaux de configuration
524     // Si les tableau sont définis dans le cerfa on test si les champs des données
525     // techniques sont définis dans les tableaux de configuration des tableaux
526     // pour chaque cerfa alors on les affiche en type "text"
527     if(!empty($id_tab_surface)) {
528     if(in_array($champ, $tab_surface[$this->cerfa->getVal("tab_surface")]['values'])) {
529     $hidden = false;
530     }
531     }
532 softime 4636 if(!empty($id_tab_surface2)) {
533     if(in_array($champ, $tab_surface2[$this->cerfa->getVal("tab_surface2")]['values'])) {
534     $hidden = false;
535     }
536     }
537 mbroquet 3730 if(!empty($id_tab_tax_su_princ)) {
538     if(in_array($champ, $tab_tax_su_princ[$this->cerfa->getVal("tab_tax_su_princ")]['values'])) {
539     $hidden = false;
540     }
541     }
542     if(!empty($id_tab_tax_su_heber)) {
543     if(in_array($champ, $tab_tax_su_heber[$this->cerfa->getVal("tab_tax_su_heber")]['values'])) {
544     $hidden = false;
545     }
546     }
547     if(!empty($id_tab_tax_su_secon)) {
548     if(in_array($champ, $tab_tax_su_secon[$this->cerfa->getVal("tab_tax_su_secon")]['values'])) {
549     $hidden = false;
550     }
551     }
552     if(!empty($id_tab_tax_su_tot)) {
553     if(in_array($champ, $tab_tax_su_tot[$this->cerfa->getVal("tab_tax_su_tot")]['values'])) {
554     $hidden = false;
555     }
556     }
557     if(!empty($id_tab_tax_su_non_habit_surf)) {
558     if(in_array($champ, $tab_tax_su_non_habit_surf[$this->cerfa->getVal("tab_tax_su_non_habit_surf")]['values'])) {
559     $hidden = false;
560     }
561     }
562     if(!empty($id_tab_tax_su_parc_statio_expl_comm)) {
563     if(in_array($champ, $tab_tax_su_parc_statio_expl_comm[$this->cerfa->getVal("tab_tax_su_parc_statio_expl_comm")]['values'])) {
564     $hidden = false;
565     }
566     }
567     if(!empty($id_tab_tax_am)) {
568     if(in_array($champ, $tab_tax_am[$this->cerfa->getVal("tab_tax_am")]['values'])) {
569     $hidden = false;
570     }
571     }
572     if(!empty($id_tab_erp_eff)) {
573     if(in_array($champ, $tab_erp_eff[$this->cerfa->getVal("tab_erp_eff")]['values'])) {
574     $hidden = false;
575     }
576     }
577    
578     if(!$hidden){
579     if($maj < 2) {
580     $form->setType($champ,'text');
581     } else {
582     $form->setType($champ,'static');
583     }
584    
585     }
586     }
587     }
588     }
589    
590     // Ajout des clés étrangères
591     function setValsousformulaire(&$form,$maj,$validation,$idxformulaire,$retourformulaire,$typeformulaire,&$db,$DEBUG=null){
592     $this->retourformulaire = $retourformulaire;
593     if($validation == 0) {
594    
595     //Si on est dans le dossier
596     if($retourformulaire =='dossier' || $retourformulaire =='dossier_instruction' ) {
597    
598     $form->setVal('dossier_instruction', $idxformulaire);
599     $form->setVal('lot', "");
600     }
601    
602     //Si on est dans le lot
603     if($retourformulaire =='lot') {
604    
605     $form->setVal('dossier_instruction', "");
606     $form->setVal('lot', $idxformulaire);
607     }
608     }// fin validation
609     }// fin setValsousformulaire
610    
611     function setLib(&$form,$maj) {
612     parent::setLib($form,$maj);
613     //libelle des champs
614     $form->setLib('tab_surface', "");
615 softime 4636 $form->setLib('tab_surface2', "");
616 mbroquet 3730 $form->setLib('tab_tax_su_princ', "");
617     $form->setLib('tab_tax_su_heber', "");
618     $form->setLib('tab_tax_su_secon', "");
619     $form->setLib('tab_tax_su_tot', "");
620     $form->setLib('tab_tax_su_non_habit_surf', "");
621     $form->setLib('tab_tax_su_parc_statio_expl_comm', "");
622     $form->setLib('tab_tax_am', "");
623     $form->setLib('tab_erp_eff', "");
624     $form->setLib('ope_proj_desc', _("description"));
625 softime 6565
626     // Champs select_multiple
627     $form->setLib('ctx_moyen_souleve', _("ctx_moyen_souleve"));
628     $form->setLib('ctx_moyen_retenu_juge', _("ctx_moyen_retenu_juge"));
629 mbroquet 3730 }
630    
631     function setLayout(&$form, $maj) {
632    
633     // Terrain
634     $form->setBloc('terr_juri_titul','D',"","col_12");
635     $form->setFieldset('terr_juri_titul','D'
636     ,_("Terrain"), "startClosed");
637    
638     $form->setBloc('terr_juri_titul','D',_("Situation juridique du terrain"), "col_12 alignFormSpec");
639     $form->setBloc('terr_juri_oin','F');
640     $form->setBloc('terr_juri_desc','DF',"", "group");
641     $form->setBloc('terr_div_surf_etab','D',_("Terrain issu d'une division de propriete"), "col_12 alignFormSpec");
642     $form->setBloc('terr_div_surf_av_div', 'F');
643    
644     $form->setFieldset('terr_div_surf_av_div','F','');
645    
646     $form->setBloc('terr_div_surf_av_div','F');
647    
648     // Description de la demande / du projet
649     $form->setFieldset('ope_proj_desc', 'D',
650     _("Description de la demande / du projet"), "col_12 startClosed");
651     $form->setBloc('ope_proj_desc', 'DF', "", "group");
652     $form->setBloc('ope_proj_div_co', 'DF', "", "group");
653     $form->setBloc('ope_proj_div_contr', 'DF', "", "group");
654     $form->setFieldset('ope_proj_div_contr', 'F');
655    
656     // Construire, aménager ou modifier un ERP
657     $form->setBloc('erp_class_cat','D',"","col_12");
658     $form->setFieldset('erp_class_cat','D'
659     ,_("Construire, amenager ou modifier un ERP"), "startClosed");
660    
661     $form->setBloc('erp_class_cat','DF', _("Activite"),"alignFormSpec");
662     $form->setBloc('erp_class_type','DF', "","alignFormSpec");
663    
664     $form->setBloc('erp_cstr_neuve','DF', _("Nature des travaux (plusieurs cases possibles)"),"col_12");
665     $form->setBloc('erp_cstr_neuve','DF', "","alignFormSpec");
666     $form->setBloc('erp_trvx_acc','DF', "","alignFormSpec");
667     $form->setBloc('erp_extension','DF', "","alignFormSpec");
668     $form->setBloc('erp_rehab','DF', "","alignFormSpec");
669     $form->setBloc('erp_trvx_am','DF', "","alignFormSpec");
670     $form->setBloc('erp_vol_nouv_exist','DF', "","alignFormSpec");
671    
672     $form->setBloc('tab_erp_eff','D',_("Effectif"),"col_12");
673     $form->setBloc('tab_erp_eff','DF', "", "col_12");
674     $form->setBloc('tab_erp_eff','F', "","");
675    
676     $form->setFieldset('tab_erp_eff','F', '');
677     $form->setBloc('tab_erp_eff','F');
678    
679     // Aménager
680     $form->setBloc('am_lotiss','D',"","col_12");
681     $form->setFieldset('am_lotiss','D'
682     ,_("Amenager"), "startClosed");
683     $form->setBloc('am_lotiss','D',"","col_12");
684     $form->setFieldset('am_lotiss','D'
685     ,_("Projet d'amenagement"), "startClosed alignFormSpec");
686     // bloc 4.1
687     $form->setBloc('am_lotiss','DF',_("Nature des travaux, installations
688     ou amenagements envisages"), "group");
689     $form->setBloc('am_div_mun','DF',"", "group");
690     $form->setBloc('am_autre_div','DF',"", "group");
691     $form->setBloc('am_camping','DF',"", "group");
692     $form->setBloc('am_parc_resid_loi','DF',"", "group");
693     $form->setBloc('am_sport_moto','DF',"", "group");
694     $form->setBloc('am_sport_attrac','DF',"", "group");
695     $form->setBloc('am_sport_golf','DF',"", "group");
696     $form->setBloc('am_caravane','DF',"", "group");
697     $form->setBloc('am_carav_duree','DF',"", "group");
698     $form->setBloc('am_statio','DF',"", "group");
699     $form->setBloc('am_statio_cont','DF',"", "group");
700     $form->setBloc('am_affou_exhau','DF',"", "group");
701     $form->setBloc('am_affou_exhau_sup','DF',"", "group");
702     $form->setBloc('am_affou_prof','DF',"", "group");
703     $form->setBloc('am_exhau_haut','DF',"", "group");
704 softime 5504 $form->setBloc('am_terr_res_demon','DF',"", "group");
705     $form->setBloc('am_air_terr_res_mob','DF',"", "group");
706 mbroquet 3730
707     $form->setBloc('am_chem_ouv_esp','D',_("Dans les secteurs proteges :"),"col_12");
708     $form->setBloc('am_chem_ouv_esp','DF',_("Amenagement situe dans un espace remarquable :"), "group");
709     $form->setBloc('am_agri_peche','DF',"", "group");
710    
711     $form->setBloc('am_crea_voie','DF',_("Amenagement situe dans un secteur sauvegarde :"), "group");
712     $form->setBloc('am_modif_voie_exist','DF',"", "group");
713     $form->setBloc('am_crea_esp_sauv','DF',"", "group");
714    
715     $form->setBloc('am_crea_esp_class','DF',_("Amenagement situe dans un site classe ou une reserve naturelle 1 :"), "group");
716     $form->setBloc('am_coupe_abat','DF',"", "group");
717     $form->setBloc('am_prot_plu','DF',"", "group");
718     $form->setBloc('am_prot_muni','DF',"", "group");
719     $form->setBloc('am_mobil_voyage','DF',"", "group");
720     $form->setBloc('am_aire_voyage','DF',"", "group");
721     $form->setBloc('am_rememb_afu','DF',"", "group");
722     $form->setBloc('co_ouvr_infra','DF',"", "group");
723     $form->setBloc('co_ouvr_infra','F');
724    
725     $form->setBloc('am_mob_art','DF',_("Dans un secteur sauvegarde, site classe ou reserve naturelle :"), "group");
726     $form->setBloc('am_modif_voie_esp','DF',"", "group");
727     $form->setBloc('am_plant_voie_esp','DF',"", "group");
728     $form->setBloc('co_ouvr_elec','DF',"", "group");
729     $form->setFieldset('co_ouvr_elec','F','');
730     $form->setBloc('co_ouvr_elec','F');
731     $form->setBloc('am_projet_desc','D',"","col_12");
732     $form->setFieldset('am_projet_desc','D'
733     ,_("Description amenagement"), "startClosed");
734    
735     $form->setBloc('am_projet_desc','DF',"", "group");
736     $form->setBloc('am_terr_surf','DF',"", "alignFormSpec");
737     $form->setBloc('am_tranche_desc','DF',"", "group");
738     $form->setFieldset('am_tranche_desc','F','');
739     $form->setBloc('am_tranche_desc','F');
740     $form->setBloc('am_lot_max_nb','D',"","col_12");
741     $form->setFieldset('am_lot_max_nb','D'
742     ,_("Complement d'amenagement"), "startClosed");
743     // bloc 4.2
744     $form->setBloc('am_lot_max_nb','D',_("Demande concernant un lotissement"),"col_12 alignFormSpec");
745    
746     $form->setBloc('am_lot_max_nb','DF',"", "group");
747     $form->setBloc('am_lot_max_shon','DF',"", "group");
748    
749     $form->setBloc('am_lot_cstr_cos','DF',_("Comment la constructibilite globale sera-t-elle repartie ?"), "group");
750     $form->setBloc('am_lot_cstr_plan','DF',"", "group");
751     $form->setBloc('am_lot_cstr_vente','DF',"", "group");
752     $form->setBloc('am_lot_fin_diff','DF',"", "group");
753    
754     $form->setBloc('am_lot_consign','DF',_("si oui, quelle garantie sera utilisee ?"), "group");
755     $form->setBloc('am_lot_gar_achev','DF',"", "group");
756     $form->setBloc('am_lot_vente_ant','DF',"", "group");
757     $form->setBloc('am_lot_vente_ant','F');
758    
759     // bloc 4.3
760     $form->setBloc('am_exist_agrand','D',_("Amenagement d'un camping ou
761     d'un terrain amenage en vue de l'hebergement
762     touristique"),"col_12");
763    
764     $form->setBloc('am_exist_agrand','DF',"", "alignFormSpec");
765     $form->setBloc('am_exist_date','DF',"", "alignFormSpec-type-date");
766     $form->setBloc('am_exist_num','D',"", "alignFormSpec");
767     $form->setBloc('am_empl_nb','F',"", "");
768    
769     $form->setBloc('am_tente_nb','D',_("Nombre maximum d’emplacements reserves aux :"), "col_12 alignForm");
770     $form->setBloc('am_mobil_nb','F',"", "");
771    
772     $form->setBloc('am_pers_nb','DF',"", "alignFormSpec group");
773    
774     $form->setBloc('am_empl_hll_nb','D',_("Implantation d’habitations legeres de loisirs (HLL) :"), "col_12 alignFormSpec");
775     //$form->setBloc('am_empl_hll_nb','DF',"", "group");
776     $form->setBloc('am_hll_shon','F');
777    
778     $form->setBloc('am_periode_exploit','DF',"", "group");
779    
780     $form->setBloc('am_coupe_bois','D',_("Declaration de coupe et/ou abattage d’arbres :"),"col_12 cerfasubtitle");
781    
782     $form->setBloc('am_coupe_bois','D',_("Courte description du lieu :"), "cerfasubtitle alignForm");
783     $form->setBloc('am_coupe_align','F',"", "");
784    
785     $form->setBloc('am_coupe_ess','D',_("Nature du boisement :"),"col_12 cerfasubtitle alignForm");
786     $form->setBloc('am_coupe_autr','F');
787     $form->setBloc('am_coupe_autr','F');
788    
789     $form->setBloc('am_coupe_autr','F');
790    
791    
792     $form->setFieldset('am_coupe_autr','F','');
793    
794     $form->setBloc('am_coupe_autr','F');
795     $form->setFieldset('am_coupe_autr','F','');
796     $form->setBloc('am_coupe_autr','F');
797     // Fin amménager
798     // Construire
799     $form->setBloc('co_archi_recours','D',"","col_12");
800     $form->setFieldset('co_archi_recours','D'
801     ,_("Construire"), "startClosed");
802     $form->setBloc('co_archi_recours','D', "","col_12");
803     $form->setFieldset('co_archi_recours','D'
804     ,_("Projet construction"), "startClosed");
805    
806     $form->setBloc('co_archi_recours','D',_("Architecte"), "col_12");
807     $form->setBloc('co_archi_recours','DF',"", "alignFormSpec group");
808     $form->setBloc('architecte','DF', "", "group");
809     $form->setBloc('architecte','F');
810    
811     $form->setBloc('co_cstr_nouv','D',_("Nature du projet"), "col_12 alignFormSpec");
812     $form->setBloc('avap_co_elt_pro','DF',"", "group");
813     $form->setBloc('avap_nouv_haut_surf','DF',"", "group");
814     $form->setBloc('co_cloture','F');
815     $form->setBloc('co_projet_desc','DF',"", "group");
816     $form->setBloc('co_elec_tension','DF', "", "alignFormSpec");
817     $form->setFieldset('co_elec_tension','F','');
818     $form->setFieldset('co_tot_log_nb','D'
819     ,_("Complement construction"), "startClosed");
820    
821     $form->setBloc('co_tot_log_nb','D',"", "alignForm");
822     $form->setBloc('co_tot_coll_nb','F',"", "");
823    
824     $form->setBloc('co_mais_piece_nb','D',"", "alignForm");
825     $form->setBloc('co_mais_niv_nb','F',"", "");
826    
827     $form->setBloc('co_fin_lls_nb','D', _("Repartition du nombre total de logement crees par type de financement :"),"col_12");
828     $form->setBloc('co_fin_lls_nb','D',"", "alignForm");
829     $form->setBloc('co_fin_autr_nb','F',"", "");
830    
831     $form->setBloc('co_fin_autr_desc','DF',"", "alignFormSpec group");
832     $form->setBloc('co_mais_contrat_ind','DF',"", "alignFormSpec group");
833     $form->setBloc('co_mais_contrat_ind','F');
834    
835     $form->setBloc('co_uti_pers','D',_("Mode d'utilisation principale des logements :"), "col_12");
836     $form->setBloc('co_uti_pers','D', "", "alignForm");
837     $form->setBloc('co_uti_loc','F',"", "");
838     $form->setBloc('co_uti_loc','F',"", "");
839    
840     $form->setBloc('co_uti_princ','D',_("S’il s’agit d’une occupation personnelle, veuillez preciser :"), "col_12");
841     $form->setBloc('co_uti_princ','D',"", "alignForm");
842     $form->setBloc('co_uti_secon','F',"", "");
843     $form->setBloc('co_uti_secon','F',"", "group");
844    
845     $form->setBloc('co_anx_pisc','D',_("Si le projet porte sur une annexe a l’habitation, veuillez preciser :"), "col_12");
846     $form->setBloc('co_anx_pisc','D',"", "alignForm");
847     $form->setBloc('co_anx_autr_desc','F',"", "");
848     $form->setBloc('co_anx_autr_desc','F',"", "group");
849    
850     $form->setBloc('co_resid_agees','D',_("Si le projet est un foyer ou une residence, a quel titre :"), "col_12 alignForm");
851     $form->setBloc('co_resid_agees','D',"", "alignForm");
852     $form->setBloc('co_resid_hand','F',"", "");
853     $form->setBloc('co_resid_hand','F',"", "group");
854    
855     $form->setBloc('co_resid_autr','DF',"", "group alignFormSpec");
856     $form->setBloc('co_resid_autr_desc','DF',"", "group");
857     $form->setBloc('co_foyer_chamb_nb','DF',"", "group alignFormSpec");
858    
859     $form->setBloc('co_log_1p_nb','D',_("Repartition du nombre de logements crees selon le nombre de pieces :"), "col_12");
860     $form->setBloc('co_log_1p_nb','D', "", "alignForm");
861     $form->setBloc('co_log_6p_nb','F',"", "group");
862     $form->setBloc('co_log_6p_nb','F',"", "group");
863    
864     $form->setBloc('co_bat_niv_nb','DF',"", "alignFormSpec");
865    
866     $form->setBloc('co_trx_exten','D',_("Indiquez si vos travaux comprennent notamment :"), "col_12");
867     $form->setBloc('co_trx_exten','D',"", "alignForm");
868     $form->setBloc('co_trx_nivsup','F',"", "group");
869    
870     $form->setBloc('co_demont_periode','DF', _("Construction periodiquement demontee et re-installee :"),"col_12 group");
871     $form->setBloc('co_demont_periode','F',"", "group");
872    
873     $form->setFieldset('co_demont_periode','F','');
874     $form->setFieldset('tab_surface','D'
875     ,_("Destinations et surfaces des constructions"), "startClosed");
876 softime 4636 $form->setBloc('tab_surface','D', _("Destination des constructions et tableau des surfaces (uniquement à remplir si votre projet de construction est situé dans une commune couverte par un plan local d’urbanisme ou un document en tenant lieu appliquant l’article R.123-9 du code de l’urbanisme dans sa rédaction antérieure au 1er janvier 2016)."),"col_12 group");
877 mbroquet 3730 $form->setBloc('tab_surface','F');
878     $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");
879     $form->setBloc('co_sp_transport','D', "","alignForm");
880     $form->setBloc('co_sp_culture','F', "","");
881     $form->setBloc('co_sp_culture','F', "","");
882 softime 4636
883     $form->setBloc('tab_surface2','DF', _("Destination, sous-destination des constructions et tableau des surfaces (uniquement à remplir si votre projet de construction est situé dans une commune couverte par le règlement national d’urbanisme, une carte communale ou dans une commune non visée à la rubrique précédente"),"col_12 group");
884    
885     $form->setFieldset('tab_surface2','F','');
886 mbroquet 3730 $form->setFieldset('co_statio_avt_nb','D'
887     ,_("Divers construction"), "startClosed");
888    
889     $form->setBloc('co_statio_avt_nb','D', _("Nombre de places de stationnement"),"col_12");
890     $form->setBloc('co_statio_avt_nb','D', "","alignForm");
891     $form->setBloc('co_statio_apr_nb','F', "","");
892     $form->setBloc('co_statio_apr_nb','F', "","");
893    
894     $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");
895     $form->setBloc('co_statio_adr','DF', "","group");
896    
897     $form->setBloc('co_statio_place_nb','D', "","col_12");
898     $form->setBloc('co_statio_place_nb','D', "","alignForm");
899     $form->setBloc('co_statio_tot_shob','F', "","");
900     $form->setBloc('co_statio_tot_shob','F', "","");
901     $form->setBloc('co_statio_tot_shob','F');
902     $form->setBloc('co_statio_comm_cin_surf','D', _("Pour les commerces et cinemas :"),"col_12 alignFormSpec");
903     $form->setBloc('co_perf_energ','F',"", "");
904    
905     $form->setFieldset('co_perf_energ','F','');
906     $form->setBloc('co_perf_energ','F');
907    
908     $form->setFieldset('co_perf_energ','F','');
909    
910     $form->setBloc('co_perf_energ','F');
911     // Fin construire
912    
913     /*Fieldset n°6 Projet necessitant demolitions */
914     $form->setBloc('dm_constr_dates','D',"","col_12");
915     $form->setFieldset('dm_constr_dates','D'
916     ,_("Demolir"), "startClosed");
917     $form->setBloc('dm_constr_dates','DF', "","group");
918     $form->setBloc('dm_total','D', "","alignFormSpec");
919     $form->setBloc('dm_partiel','F');
920     $form->setBloc('dm_projet_desc','DF', "","group");
921     $form->setBloc('dm_tot_log_nb','DF', "","alignFormSpec");
922     $form->setFieldset('dm_tot_log_nb','F','');
923    
924     $form->setBloc('dm_tot_log_nb','F');
925    
926     /*Fieldset n°4 Ouverture de chantier */
927     $form->setBloc('doc_date','D',"","col_12");
928     $form->setFieldset('doc_date','D'
929     ,_("Ouverture de chantier"), "startClosed alignFormSpec");
930     $form->setBloc('doc_date','DF', "","group");
931     $form->setBloc('doc_tot_trav','DF', "","group");
932     $form->setBloc('doc_tranche_trav','DF', "","group");
933     $form->setBloc('doc_tranche_trav_desc','DF', "","group");
934     $form->setBloc('doc_surf','DF', "","group");
935     $form->setBloc('doc_nb_log','DF', "","group");
936     $form->setBloc('doc_nb_log_indiv','DF', "","group");
937     $form->setBloc('doc_nb_log_coll','DF', "","group");
938     //
939     $form->setBloc('doc_nb_log_lls','DF', _("Repartition du nombre de logements commences par type de financement"), "group");
940     $form->setBloc('doc_nb_log_aa','DF', "","group");
941     $form->setBloc('doc_nb_log_ptz','DF', "","group");
942     $form->setBloc('doc_nb_log_autre','DF', "","group");
943     $form->setFieldset('doc_nb_log_autre','F','');
944     $form->setBloc('doc_nb_log_autre','F');
945    
946     /*Fieldset n°4 Achèvement des travaux */
947     $form->setBloc('daact_date','D',"","col_12");
948     $form->setFieldset('daact_date','D'
949     ,_("Achevement des travaux") , "startClosed alignFormSpec");
950     $form->setBloc('daact_date','DF', "","group");
951     $form->setBloc('daact_date_chgmt_dest','DF', "","group");
952     $form->setBloc('daact_tot_trav','DF', "","group");
953     $form->setBloc('daact_tranche_trav','DF', "","group");
954     $form->setBloc('daact_tranche_trav_desc','DF', "","group");
955     $form->setBloc('daact_surf','DF', "","group");
956     $form->setBloc('daact_nb_log','DF', "","group");
957     $form->setBloc('daact_nb_log_indiv','DF', "","group");
958     $form->setBloc('daact_nb_log_coll','DF', "","group");
959     //
960     $form->setBloc('daact_nb_log_lls','DF', _("Repartition du nombre de logements commences par type de financement"), "group");
961     $form->setBloc('daact_nb_log_aa','DF', "","group");
962     $form->setBloc('daact_nb_log_ptz','DF', "","group");
963     $form->setBloc('daact_nb_log_autre','DF', "","group");
964     $form->setFieldset('daact_nb_log_autre','F','');
965     $form->setBloc('daact_nb_log_autre','F');
966    
967 softime 4417 // Début DIA
968     $form->setBloc('dia_imm_non_bati','D',"","col_12");
969 softime 5169 $form->setFieldset('dia_imm_non_bati','D',_("Déclaration d’intention d’aliéner un bien"), "startClosed");
970 softime 4417
971     // Désignation du bien
972     $form->setFieldset('dia_imm_non_bati','D',_("Désignation du bien"), "startClosed");
973    
974     // Immeuble
975 softime 5169 $form->setBloc('dia_imm_non_bati','D', _("Immeuble"),"alignForm group");
976 softime 4417 $form->setBloc('dia_imm_bati_terr_autr_desc','F', "","");
977    
978 softime 5169 // Occupation du sol en superficie
979     $form->setBloc('dia_occ_sol_su_terre','D', _("Occupation du sol en superficie (m²)"),"alignForm group");
980     $form->setBloc('dia_occ_sol_su_sol','F', "","");
981    
982     //
983     $form->setBloc('dia_bati_vend_tot','D', " ","alignForm group");
984     $form->setBloc('dia_bati_vend_tot_txt','F', "","");
985     $form->setBloc('dia_su_co_sol','D', "","alignForm group");
986     $form->setBloc('dia_su_util_hab','F', "","");
987     $form->setBloc('dia_nb_niv','D', _("Nombre de"),"alignForm group");
988     $form->setBloc('dia_nb_autre_loc','F', "","");
989     $form->setBloc('dia_vente_lot_volume','D', " ","alignForm group");
990     $form->setBloc('dia_vente_lot_volume_txt','F', "","");
991    
992 softime 4417 // Copropriété
993 softime 5169 $form->setBloc('dia_bat_copro','D', " ","alignForm group");
994     $form->setBloc('dia_bat_copro_desc','F', "","");
995     // Tableau lot
996     $form->setBloc('dia_lot_numero','D', "","alignForm group");
997     $form->setBloc('dia_lot_nat_su','F', "","");
998     $form->setBloc('dia_lot_bat_achv_plus_10','D', _("Le bâtiment est achevé depuis"),"alignForm group");
999     $form->setBloc('dia_lot_bat_achv_moins_10','F', "","");
1000     $form->setBloc('dia_lot_regl_copro_publ_hypo_plus_10','D', _("Le réglement de copropriété a été publié aux hypothèques depuis"),"alignForm group");
1001     $form->setBloc('dia_lot_regl_copro_publ_hypo_moins_10','F', "","");
1002 softime 4417
1003 softime 5169 //
1004     $form->setBloc('dia_indivi_quote_part','DF', " ","alignFormSpec");
1005     $form->setBloc('dia_design_societe','DF', _("Droits sociaux"),"alignFormSpec group");
1006     $form->setBloc('dia_design_droit','DF', "","alignFormSpec");
1007     $form->setBloc('dia_droit_soc_nat','D', "","alignForm group");
1008     $form->setBloc('dia_droit_soc_num_part','F', "","");
1009 softime 4417
1010 softime 5169 $form->setFieldset('dia_droit_soc_num_part','F','');
1011    
1012 softime 4417 // Usage et occupation
1013     $form->setFieldset('dia_us_hab','D',_("Usage et occupation"), "startClosed");
1014    
1015     // Usage
1016 softime 5169 $form->setBloc('dia_us_hab','D', _("Usage"),"alignForm group");
1017 softime 4417 $form->setBloc('dia_us_autre_prec','F', "","");
1018    
1019     // Occupation
1020 softime 5169 $form->setBloc('dia_occ_prop','D', _("Occupation"),"alignForm group");
1021 softime 4417 $form->setBloc('dia_occ_autre_prec','F', "","");
1022    
1023     $form->setFieldset('dia_occ_autre_prec','F','');
1024    
1025 softime 5169 // Droits réels ou personnels
1026     $form->setFieldset('dia_droit_reel_perso_grevant_bien_oui','D',_("Droits réels ou personnels"), "startClosed");
1027    
1028     //
1029     $form->setBloc('dia_droit_reel_perso_grevant_bien_oui','D', _("Grevant les biens"),"alignForm group");
1030     $form->setBloc('dia_droit_reel_perso_grevant_bien_non','F', "","");
1031    
1032     //
1033     $form->setBloc('dia_droit_reel_perso_nat','D', " ","alignForm group");
1034     $form->setBloc('dia_droit_reel_perso_viag','F', "","");
1035    
1036     $form->setFieldset('dia_droit_reel_perso_viag','F','');
1037    
1038 softime 4417 // Modalités de la cession
1039     $form->setFieldset('dia_mod_cess_prix_vente','D',_("Modalités de la cession"), "startClosed");
1040    
1041     // Vente amiable
1042 softime 5901 $form->setFieldset('dia_mod_cess_prix_vente','D', _("Vente amiable"), "startClosed");
1043    
1044     $form->setBloc('dia_mod_cess_prix_vente','DF', "","alignFormSpec");
1045 softime 5169 $form->setBloc('dia_mod_cess_prix_vente_mob','D', _("Dont éventuellement inclus"),"alignForm group");
1046 softime 4417 $form->setBloc('dia_mod_cess_prix_vente_autre','F', "","");
1047    
1048 softime 5169 //
1049     $form->setBloc('dia_mod_cess_adr','DF', _("Si vente indissociable d'autres biens"),"alignFormSpec");
1050    
1051 softime 4417 // Modalité de paiement
1052 softime 5169 $form->setBloc('dia_mod_cess_sign_act_auth','D', _("Modalités de paiement"),"alignForm group");
1053     $form->setBloc('dia_mod_cess_terme_prec','F', "","");
1054     $form->setBloc('dia_mod_cess_commi','D', "","alignForm group");
1055 softime 4417 $form->setBloc('dia_mod_cess_commi_ht','F', "","");
1056 softime 5169 $form->setBloc('dia_mod_cess_bene_acquereur','D', _("Bénéficiaire"),"alignForm group");
1057     $form->setBloc('dia_mod_cess_bene_vendeur','F', "","");
1058     $form->setBloc('dia_mod_cess_paie_nat','DF', " ","alignFormSpec group");
1059     $form->setBloc('dia_mod_cess_design_contr_alien','DF', "","alignFormSpec group");
1060     $form->setBloc('dia_mod_cess_eval_contr','DF', "","alignFormSpec group");
1061     $form->setBloc('dia_mod_cess_rente_viag','DF', "","alignFormSpec group");
1062     $form->setBloc('dia_mod_cess_mnt_an','D', "","alignForm group");
1063     $form->setBloc('dia_mod_cess_mnt_compt','F', "","");
1064     $form->setBloc('dia_mod_cess_bene_rente','DF', "","alignFormSpec");
1065     $form->setBloc('dia_mod_cess_droit_usa_hab','D', "","alignForm group");
1066     $form->setBloc('dia_mod_cess_droit_usa_hab_prec','F', "","");
1067     $form->setBloc('dia_mod_cess_eval_usa_usufruit','DF', "","alignFormSpec");
1068     $form->setBloc('dia_mod_cess_vente_nue_prop','D', "","alignForm group");
1069     $form->setBloc('dia_mod_cess_vente_nue_prop_prec','F', "","");
1070     $form->setBloc('dia_mod_cess_echange','DF', "","alignFormSpec group");
1071     $form->setBloc('dia_mod_cess_design_bien_recus_ech','DF', "","alignFormSpec group");
1072     $form->setBloc('dia_mod_cess_mnt_soulte','D', "","alignForm group");
1073     $form->setBloc('dia_mod_cess_prop_contre_echan','F', "","");
1074     $form->setBloc('dia_mod_cess_apport_societe','DF', "","alignFormSpec");
1075     $form->setBloc('dia_mod_cess_bene','D', "","alignForm group");
1076     $form->setBloc('dia_mod_cess_esti_bien','F', "","");
1077     $form->setBloc('dia_mod_cess_cess_terr_loc_co','DF', "","alignFormSpec");
1078     $form->setBloc('dia_mod_cess_esti_terr','D', "","alignForm group");
1079     $form->setBloc('dia_mod_cess_esti_loc','F', "","");
1080     $form->setBloc('dia_mod_cess_esti_imm_loca','DF', "","alignFormSpec");
1081 softime 5901
1082     $form->setFieldset('dia_mod_cess_esti_imm_loca','F','');
1083    
1084     // Adjudication
1085     $form->setFieldset('dia_mod_cess_adju_vol','D', _("Adjudication"), "startClosed");
1086    
1087     $form->setBloc('dia_mod_cess_adju_vol','D', "","alignForm group");
1088 softime 5169 $form->setBloc('dia_mod_cess_adju_obl','F', "","");
1089     $form->setBloc('dia_mod_cess_adju_fin_indivi','DF', "","alignFormSpec");
1090     $form->setBloc('dia_mod_cess_adju_date_lieu','D', "","alignForm group");
1091     $form->setBloc('dia_mod_cess_mnt_mise_prix','F', "","");
1092 softime 4417
1093 softime 5901 $form->setFieldset('dia_mod_cess_mnt_mise_prix','F','');
1094    
1095 softime 5169 $form->setFieldset('dia_mod_cess_mnt_mise_prix','F','');
1096 softime 4417
1097     // Les soussignés déclarent
1098 softime 5169 $form->setFieldset('dia_prop_titu_prix_indique','D',_("Les soussignés déclarent"), "startClosed");
1099 softime 4417
1100     //
1101 softime 5169 $form->setBloc('dia_prop_titu_prix_indique','DF', _("Que le(s) propriétaire(s) nommé(s) à la rubrique 1"),"alignFormSpec group");
1102     $form->setBloc('dia_prop_recherche_acqu_prix_indique','DF', "","alignFormSpec group");
1103     $form->setBloc('dia_acquereur_nom_prenom','DF', "","alignFormSpec group");
1104     $form->setBloc('dia_acquereur_prof','DF', "","alignFormSpec group");
1105 softime 4417
1106     // Adresse
1107 softime 5169 $form->setBloc('dia_acquereur_adr_num_voie','D', _("Adresse"),"alignForm group");
1108 softime 4417 $form->setBloc('dia_acquereur_adr_localite','F', "","");
1109    
1110 softime 5169 //
1111     $form->setBloc('dia_indic_compl_ope','DF', " ","alignFormSpec group");
1112     $form->setBloc('dia_vente_adju','DF', "","alignFormSpec groupe");
1113 softime 4417
1114 softime 5169 $form->setFieldset('dia_vente_adju','F','');
1115    
1116 softime 4417 // Observation
1117 softime 5901 $form->setFieldset('dia_observation','D',_("Observations"), "startClosed");
1118 softime 4417
1119     //
1120 softime 5169 $form->setBloc('dia_observation','DF', "","alignFormSpec group");
1121 softime 4417
1122     $form->setFieldset('dia_observation','F','');
1123    
1124     $form->setFieldset('dia_observation','F','');
1125 softime 5169 $form->setBloc('dia_observation','F',"","");
1126 softime 4417 // Fin DIA
1127    
1128 mbroquet 3730 $form->setBloc('code_cnil','D',"","col_12");
1129     $form->setFieldset('code_cnil','D'
1130     ,_("cnil (opposition à l’utilisation des informations du formulaire à des fins commerciales)") , "startClosed alignFormSpec");
1131     $form->setBloc('code_cnil','DF', "","group");
1132     $form->setFieldset('code_cnil','F','');
1133     $form->setBloc('code_cnil','F');
1134    
1135     $form->setBloc('tax_surf_tot_cstr','D',"","col_12");
1136     $form->setFieldset('tax_surf_tot_cstr','D'
1137     ,_("Declaration des elements necessaires au calcul des impositions"), "startClosed");
1138    
1139     $form->setBloc('tax_surf_tot_cstr','D', _("Renseignement"),"col_12");
1140     $form->setBloc('tax_surf_tot_cstr','D', "", "alignFormSpec");
1141     $form->setBloc('tax_surf_suppr_mod','F', "","");
1142     $form->setBloc('tax_surf_suppr_mod','F', "","");
1143    
1144     $form->setBloc('tab_tax_su_princ','D',_("Creation de locaux destines a l’habitation :"),"col_12");
1145     $form->setBloc('tab_tax_su_princ','DF',_("tab_tax_su_princ"), "col_12");
1146     $form->setBloc('tab_tax_su_heber','DF',_("tab_tax_su_heber"), "col_12");
1147     $form->setBloc('tab_tax_su_tot','F', "","");
1148     //
1149     $form->setBloc('tax_ext_pret','DF', _("Extension de l’habitation principale, creation d’un batiment annexe a cette habitation ou d’un garage clos et couvert."), "alignFormSpec");
1150     $form->setBloc('tax_ext_desc','DF', "","group");
1151     $form->setBloc('tax_surf_tax_exist_cons','D', "","alignFormSpec");
1152     $form->setBloc('tax_log_ap_trvx_nb','F');
1153    
1154     //
1155     $form->setBloc('tax_surf_abr_jard_pig_colom','DF', _("Creation d’abris de jardin, de pigeonniers et colombiers"), "col_12");
1156    
1157     $form->setBloc('tax_comm_nb','D', _("Creation ou extension de locaux non destines a l'habitation :"),"col_12");
1158     $form->setBloc('tax_comm_nb','DF', "","col_12 alignFormSpec");
1159     $form->setBloc('tab_tax_su_parc_statio_expl_comm','DF');
1160     $form->setBloc('tax_su_non_habit_abr_jard_pig_colom','F');
1161     //
1162     $form->setBloc('tab_tax_am','DF',_("tab_tax_am"),"col_12");
1163    
1164     $form->setBloc('tax_am_statio_ext_cr','D', _("Autres elements crees soumis à la taxe d’amenagement :"),"col_12");
1165     $form->setBloc('tax_pann_volt_sup_cr','F');
1166    
1167     $form->setBloc('tax_surf_loc_arch','D', _("Redevance d’archeologie preventive"),"col_12 alignFormSpec");
1168     $form->setBloc('tax_surf_loc_arch','D', _("Veuillez preciser la profondeur du(des) terrassement(s) necessaire(s) a la realisation de votre projet"),"");
1169     $form->setBloc('tax_eol_haut_nb_arch','F');
1170     $form->setBloc('tax_eol_haut_nb_arch','F');
1171    
1172     $form->setBloc('tax_trx_presc_ppr','D', _("Cas particuliers"),"col_12 alignFormSpec");
1173     $form->setBloc('tax_monu_hist','F');
1174    
1175     $form->setBloc('vsd_surf_planch_smd','D', _("Versement pour sous-densite (VSD)"),"col_12");
1176     $form->setBloc('vsd_surf_planch_smd','D', "","alignFormSpec");
1177     $form->setBloc('vsd_const_sxist_non_dem_surf','F');
1178    
1179     $form->setBloc('vsd_rescr_fisc','DF',"", "alignFormSpec-type-date");
1180     $form->setBloc('vsd_rescr_fisc','F');
1181    
1182     $form->setBloc('pld_val_terr','D', _("Plafond legal de densite (PLD)"),"col_12 alignFormSpec");
1183     $form->setBloc('pld_const_exist_dem_surf','F');
1184    
1185     $form->setBloc('tax_desc','DF', _("Autres renseignements"),"col_12 alignFormSpec");
1186    
1187     $form->setFieldset('tax_desc','F','');
1188    
1189     $form->setBloc('tax_desc','F');
1190 softime 6565
1191     // Début contentieux
1192     $form->setBloc('ctx_objet_recours','D',"","col_12");
1193     $form->setFieldset('ctx_objet_recours','D',_("Contentieux"), "startClosed alignFormSpec");
1194    
1195     //
1196     $form->setBloc('ctx_objet_recours','DF', "","group");
1197     $form->setBloc('ctx_moyen_souleve','DF', "","group");
1198     $form->setBloc('ctx_moyen_retenu_juge','DF', "","group");
1199     $form->setBloc('ctx_reference_sagace','DF', "","group");
1200     $form->setBloc('ctx_nature_travaux_infra_om_html','DF', "","group");
1201     $form->setBloc('ctx_synthese_nti','DF', "","group");
1202     $form->setBloc('ctx_article_non_resp_om_html','DF', "","group");
1203     $form->setBloc('ctx_synthese_anr','DF', "","group");
1204     $form->setBloc('ctx_reference_parquet','DF', "","group");
1205     $form->setBloc('ctx_element_taxation','DF', "","group");
1206     $form->setBloc('ctx_infraction','DF', "","group");
1207     $form->setBloc('ctx_regularisable','DF', "","group");
1208     $form->setBloc('ctx_reference_courrier','DF', "","group");
1209     $form->setBloc('ctx_date_audience','DF', "","group");
1210     $form->setBloc('ctx_date_ajournement','DF', "","group");
1211    
1212     $form->setFieldset('ctx_date_ajournement','F','');
1213     $form->setBloc('ctx_date_ajournement','F');
1214     // Fin contentieux
1215 mbroquet 3730 }
1216    
1217     /**
1218     * Surcharge de la méthode setOnChange
1219     */
1220     function setOnchange(&$form,$maj){
1221     parent::setOnchange($form,$maj);
1222    
1223     $form->setOnchange("co_tot_ind_nb","sommeChampsCerfa('co_tot_log_nb',['co_tot_ind_nb','co_tot_coll_nb']);");
1224     $form->setOnchange("co_tot_coll_nb","sommeChampsCerfa('co_tot_log_nb',['co_tot_ind_nb','co_tot_coll_nb']);");
1225    
1226     $form->setOnchange("doc_nb_log_indiv","sommeChampsCerfa('doc_nb_log',['doc_nb_log_indiv','doc_nb_log_coll']);");
1227     $form->setOnchange("doc_nb_log_coll","sommeChampsCerfa('doc_nb_log',['doc_nb_log_indiv','doc_nb_log_coll']);");
1228    
1229 softime 4636 $form->setOnchange("su_avt_shon1","calculSurfaceTotal(1);");
1230     $form->setOnchange("su_avt_shon2","calculSurfaceTotal(1);");
1231     $form->setOnchange("su_avt_shon3","calculSurfaceTotal(1);");
1232     $form->setOnchange("su_avt_shon4","calculSurfaceTotal(1);");
1233     $form->setOnchange("su_avt_shon5","calculSurfaceTotal(1);");
1234     $form->setOnchange("su_avt_shon6","calculSurfaceTotal(1);");
1235     $form->setOnchange("su_avt_shon7","calculSurfaceTotal(1);");
1236     $form->setOnchange("su_avt_shon8","calculSurfaceTotal(1);");
1237     $form->setOnchange("su_avt_shon9","calculSurfaceTotal(1);");
1238     $form->setOnchange("su_cstr_shon1","calculSurfaceTotal(1);");
1239     $form->setOnchange("su_cstr_shon2","calculSurfaceTotal(1);");
1240     $form->setOnchange("su_cstr_shon3","calculSurfaceTotal(1);");
1241     $form->setOnchange("su_cstr_shon4","calculSurfaceTotal(1);");
1242     $form->setOnchange("su_cstr_shon5","calculSurfaceTotal(1);");
1243     $form->setOnchange("su_cstr_shon6","calculSurfaceTotal(1);");
1244     $form->setOnchange("su_cstr_shon7","calculSurfaceTotal(1);");
1245     $form->setOnchange("su_cstr_shon8","calculSurfaceTotal(1);");
1246     $form->setOnchange("su_cstr_shon9","calculSurfaceTotal(1);");
1247     $form->setOnchange("su_chge_shon1","calculSurfaceTotal(1);");
1248     $form->setOnchange("su_chge_shon2","calculSurfaceTotal(1);");
1249     $form->setOnchange("su_chge_shon3","calculSurfaceTotal(1);");
1250     $form->setOnchange("su_chge_shon4","calculSurfaceTotal(1);");
1251     $form->setOnchange("su_chge_shon5","calculSurfaceTotal(1);");
1252     $form->setOnchange("su_chge_shon6","calculSurfaceTotal(1);");
1253     $form->setOnchange("su_chge_shon7","calculSurfaceTotal(1);");
1254     $form->setOnchange("su_chge_shon8","calculSurfaceTotal(1);");
1255     $form->setOnchange("su_chge_shon9","calculSurfaceTotal(1);");
1256     $form->setOnchange("su_demo_shon1","calculSurfaceTotal(1);");
1257     $form->setOnchange("su_demo_shon2","calculSurfaceTotal(1);");
1258     $form->setOnchange("su_demo_shon3","calculSurfaceTotal(1);");
1259     $form->setOnchange("su_demo_shon4","calculSurfaceTotal(1);");
1260     $form->setOnchange("su_demo_shon5","calculSurfaceTotal(1);");
1261     $form->setOnchange("su_demo_shon6","calculSurfaceTotal(1);");
1262     $form->setOnchange("su_demo_shon7","calculSurfaceTotal(1);");
1263     $form->setOnchange("su_demo_shon8","calculSurfaceTotal(1);");
1264     $form->setOnchange("su_demo_shon9","calculSurfaceTotal(1);");
1265     $form->setOnchange("su_sup_shon1","calculSurfaceTotal(1);");
1266     $form->setOnchange("su_sup_shon2","calculSurfaceTotal(1);");
1267     $form->setOnchange("su_sup_shon3","calculSurfaceTotal(1);");
1268     $form->setOnchange("su_sup_shon4","calculSurfaceTotal(1);");
1269     $form->setOnchange("su_sup_shon5","calculSurfaceTotal(1);");
1270     $form->setOnchange("su_sup_shon6","calculSurfaceTotal(1);");
1271     $form->setOnchange("su_sup_shon7","calculSurfaceTotal(1);");
1272     $form->setOnchange("su_sup_shon8","calculSurfaceTotal(1);");
1273     $form->setOnchange("su_sup_shon9","calculSurfaceTotal(1);");
1274     $form->setOnchange("su_tot_shon1","calculSurfaceTotal(1);");
1275     $form->setOnchange("su_tot_shon2","calculSurfaceTotal(1);");
1276     $form->setOnchange("su_tot_shon3","calculSurfaceTotal(1);");
1277     $form->setOnchange("su_tot_shon4","calculSurfaceTotal(1);");
1278     $form->setOnchange("su_tot_shon5","calculSurfaceTotal(1);");
1279     $form->setOnchange("su_tot_shon6","calculSurfaceTotal(1);");
1280     $form->setOnchange("su_tot_shon7","calculSurfaceTotal(1);");
1281     $form->setOnchange("su_tot_shon8","calculSurfaceTotal(1);");
1282     $form->setOnchange("su_tot_shon9","calculSurfaceTotal(1);");
1283 mbroquet 3730
1284 softime 4636 // Tableau des sous-destinations
1285     $form->setOnChange("su2_avt_shon1", "calculSurfaceTotal(2);");
1286     $form->setOnChange("su2_avt_shon2", "calculSurfaceTotal(2);");
1287     $form->setOnChange("su2_avt_shon3", "calculSurfaceTotal(2);");
1288     $form->setOnChange("su2_avt_shon4", "calculSurfaceTotal(2);");
1289     $form->setOnChange("su2_avt_shon5", "calculSurfaceTotal(2);");
1290     $form->setOnChange("su2_avt_shon6", "calculSurfaceTotal(2);");
1291     $form->setOnChange("su2_avt_shon7", "calculSurfaceTotal(2);");
1292     $form->setOnChange("su2_avt_shon8", "calculSurfaceTotal(2);");
1293     $form->setOnChange("su2_avt_shon9", "calculSurfaceTotal(2);");
1294     $form->setOnChange("su2_avt_shon10", "calculSurfaceTotal(2);");
1295     $form->setOnChange("su2_avt_shon11", "calculSurfaceTotal(2);");
1296     $form->setOnChange("su2_avt_shon12", "calculSurfaceTotal(2);");
1297     $form->setOnChange("su2_avt_shon13", "calculSurfaceTotal(2);");
1298     $form->setOnChange("su2_avt_shon14", "calculSurfaceTotal(2);");
1299     $form->setOnChange("su2_avt_shon15", "calculSurfaceTotal(2);");
1300     $form->setOnChange("su2_avt_shon16", "calculSurfaceTotal(2);");
1301     $form->setOnChange("su2_avt_shon17", "calculSurfaceTotal(2);");
1302     $form->setOnChange("su2_avt_shon18", "calculSurfaceTotal(2);");
1303     $form->setOnChange("su2_avt_shon19", "calculSurfaceTotal(2);");
1304     $form->setOnChange("su2_avt_shon20", "calculSurfaceTotal(2);");
1305     $form->setOnChange("su2_cstr_shon1", "calculSurfaceTotal(2);");
1306     $form->setOnChange("su2_cstr_shon2", "calculSurfaceTotal(2);");
1307     $form->setOnChange("su2_cstr_shon3", "calculSurfaceTotal(2);");
1308     $form->setOnChange("su2_cstr_shon4", "calculSurfaceTotal(2);");
1309     $form->setOnChange("su2_cstr_shon5", "calculSurfaceTotal(2);");
1310     $form->setOnChange("su2_cstr_shon6", "calculSurfaceTotal(2);");
1311     $form->setOnChange("su2_cstr_shon7", "calculSurfaceTotal(2);");
1312     $form->setOnChange("su2_cstr_shon8", "calculSurfaceTotal(2);");
1313     $form->setOnChange("su2_cstr_shon9", "calculSurfaceTotal(2);");
1314     $form->setOnChange("su2_cstr_shon10", "calculSurfaceTotal(2);");
1315     $form->setOnChange("su2_cstr_shon11", "calculSurfaceTotal(2);");
1316     $form->setOnChange("su2_cstr_shon12", "calculSurfaceTotal(2);");
1317     $form->setOnChange("su2_cstr_shon13", "calculSurfaceTotal(2);");
1318     $form->setOnChange("su2_cstr_shon14", "calculSurfaceTotal(2);");
1319     $form->setOnChange("su2_cstr_shon15", "calculSurfaceTotal(2);");
1320     $form->setOnChange("su2_cstr_shon16", "calculSurfaceTotal(2);");
1321     $form->setOnChange("su2_cstr_shon17", "calculSurfaceTotal(2);");
1322     $form->setOnChange("su2_cstr_shon18", "calculSurfaceTotal(2);");
1323     $form->setOnChange("su2_cstr_shon19", "calculSurfaceTotal(2);");
1324     $form->setOnChange("su2_cstr_shon20", "calculSurfaceTotal(2);");
1325     $form->setOnChange("su2_chge_shon1", "calculSurfaceTotal(2);");
1326     $form->setOnChange("su2_chge_shon2", "calculSurfaceTotal(2);");
1327     $form->setOnChange("su2_chge_shon3", "calculSurfaceTotal(2);");
1328     $form->setOnChange("su2_chge_shon4", "calculSurfaceTotal(2);");
1329     $form->setOnChange("su2_chge_shon5", "calculSurfaceTotal(2);");
1330     $form->setOnChange("su2_chge_shon6", "calculSurfaceTotal(2);");
1331     $form->setOnChange("su2_chge_shon7", "calculSurfaceTotal(2);");
1332     $form->setOnChange("su2_chge_shon8", "calculSurfaceTotal(2);");
1333     $form->setOnChange("su2_chge_shon9", "calculSurfaceTotal(2);");
1334     $form->setOnChange("su2_chge_shon10", "calculSurfaceTotal(2);");
1335     $form->setOnChange("su2_chge_shon11", "calculSurfaceTotal(2);");
1336     $form->setOnChange("su2_chge_shon12", "calculSurfaceTotal(2);");
1337     $form->setOnChange("su2_chge_shon13", "calculSurfaceTotal(2);");
1338     $form->setOnChange("su2_chge_shon14", "calculSurfaceTotal(2);");
1339     $form->setOnChange("su2_chge_shon15", "calculSurfaceTotal(2);");
1340     $form->setOnChange("su2_chge_shon16", "calculSurfaceTotal(2);");
1341     $form->setOnChange("su2_chge_shon17", "calculSurfaceTotal(2);");
1342     $form->setOnChange("su2_chge_shon18", "calculSurfaceTotal(2);");
1343     $form->setOnChange("su2_chge_shon19", "calculSurfaceTotal(2);");
1344     $form->setOnChange("su2_chge_shon20", "calculSurfaceTotal(2);");
1345     $form->setOnChange("su2_demo_shon1", "calculSurfaceTotal(2);");
1346     $form->setOnChange("su2_demo_shon2", "calculSurfaceTotal(2);");
1347     $form->setOnChange("su2_demo_shon3", "calculSurfaceTotal(2);");
1348     $form->setOnChange("su2_demo_shon4", "calculSurfaceTotal(2);");
1349     $form->setOnChange("su2_demo_shon5", "calculSurfaceTotal(2);");
1350     $form->setOnChange("su2_demo_shon6", "calculSurfaceTotal(2);");
1351     $form->setOnChange("su2_demo_shon7", "calculSurfaceTotal(2);");
1352     $form->setOnChange("su2_demo_shon8", "calculSurfaceTotal(2);");
1353     $form->setOnChange("su2_demo_shon9", "calculSurfaceTotal(2);");
1354     $form->setOnChange("su2_demo_shon10", "calculSurfaceTotal(2);");
1355     $form->setOnChange("su2_demo_shon11", "calculSurfaceTotal(2);");
1356     $form->setOnChange("su2_demo_shon12", "calculSurfaceTotal(2);");
1357     $form->setOnChange("su2_demo_shon13", "calculSurfaceTotal(2);");
1358     $form->setOnChange("su2_demo_shon14", "calculSurfaceTotal(2);");
1359     $form->setOnChange("su2_demo_shon15", "calculSurfaceTotal(2);");
1360     $form->setOnChange("su2_demo_shon16", "calculSurfaceTotal(2);");
1361     $form->setOnChange("su2_demo_shon17", "calculSurfaceTotal(2);");
1362     $form->setOnChange("su2_demo_shon18", "calculSurfaceTotal(2);");
1363     $form->setOnChange("su2_demo_shon19", "calculSurfaceTotal(2);");
1364     $form->setOnChange("su2_demo_shon20", "calculSurfaceTotal(2);");
1365     $form->setOnChange("su2_sup_shon1", "calculSurfaceTotal(2);");
1366     $form->setOnChange("su2_sup_shon2", "calculSurfaceTotal(2);");
1367     $form->setOnChange("su2_sup_shon3", "calculSurfaceTotal(2);");
1368     $form->setOnChange("su2_sup_shon4", "calculSurfaceTotal(2);");
1369     $form->setOnChange("su2_sup_shon5", "calculSurfaceTotal(2);");
1370     $form->setOnChange("su2_sup_shon6", "calculSurfaceTotal(2);");
1371     $form->setOnChange("su2_sup_shon7", "calculSurfaceTotal(2);");
1372     $form->setOnChange("su2_sup_shon8", "calculSurfaceTotal(2);");
1373     $form->setOnChange("su2_sup_shon9", "calculSurfaceTotal(2);");
1374     $form->setOnChange("su2_sup_shon10", "calculSurfaceTotal(2);");
1375     $form->setOnChange("su2_sup_shon11", "calculSurfaceTotal(2);");
1376     $form->setOnChange("su2_sup_shon12", "calculSurfaceTotal(2);");
1377     $form->setOnChange("su2_sup_shon13", "calculSurfaceTotal(2);");
1378     $form->setOnChange("su2_sup_shon14", "calculSurfaceTotal(2);");
1379     $form->setOnChange("su2_sup_shon15", "calculSurfaceTotal(2);");
1380     $form->setOnChange("su2_sup_shon16", "calculSurfaceTotal(2);");
1381     $form->setOnChange("su2_sup_shon17", "calculSurfaceTotal(2);");
1382     $form->setOnChange("su2_sup_shon18", "calculSurfaceTotal(2);");
1383     $form->setOnChange("su2_sup_shon19", "calculSurfaceTotal(2);");
1384     $form->setOnChange("su2_sup_shon20", "calculSurfaceTotal(2);");
1385     $form->setOnChange("su2_tot_shon1", "calculSurfaceTotal(2);");
1386     $form->setOnChange("su2_tot_shon2", "calculSurfaceTotal(2);");
1387     $form->setOnChange("su2_tot_shon3", "calculSurfaceTotal(2);");
1388     $form->setOnChange("su2_tot_shon4", "calculSurfaceTotal(2);");
1389     $form->setOnChange("su2_tot_shon5", "calculSurfaceTotal(2);");
1390     $form->setOnChange("su2_tot_shon6", "calculSurfaceTotal(2);");
1391     $form->setOnChange("su2_tot_shon7", "calculSurfaceTotal(2);");
1392     $form->setOnChange("su2_tot_shon8", "calculSurfaceTotal(2);");
1393     $form->setOnChange("su2_tot_shon9", "calculSurfaceTotal(2);");
1394     $form->setOnChange("su2_tot_shon10", "calculSurfaceTotal(2);");
1395     $form->setOnChange("su2_tot_shon11", "calculSurfaceTotal(2);");
1396     $form->setOnChange("su2_tot_shon12", "calculSurfaceTotal(2);");
1397     $form->setOnChange("su2_tot_shon13", "calculSurfaceTotal(2);");
1398     $form->setOnChange("su2_tot_shon14", "calculSurfaceTotal(2);");
1399     $form->setOnChange("su2_tot_shon15", "calculSurfaceTotal(2);");
1400     $form->setOnChange("su2_tot_shon16", "calculSurfaceTotal(2);");
1401     $form->setOnChange("su2_tot_shon17", "calculSurfaceTotal(2);");
1402     $form->setOnChange("su2_tot_shon18", "calculSurfaceTotal(2);");
1403     $form->setOnChange("su2_tot_shon19", "calculSurfaceTotal(2);");
1404     $form->setOnChange("su2_tot_shon20", "calculSurfaceTotal(2);");
1405 mbroquet 3730 }
1406    
1407    
1408     /**
1409     * Surcharge du bouton retour afin de retourner sur le dossier d'instruction selon de cas
1410     */
1411     function retoursousformulaire($idxformulaire, $retourformulaire, $val,
1412     $objsf, $premiersf, $tricolsf, $validation,
1413     $idx, $maj, $retour) {
1414    
1415     $visualisation = $this->getParameter('visualisation');
1416    
1417     if ( $visualisation == "" ){
1418    
1419     // Ajout et consultation, retour dossier
1420     if ( ( $maj == 0 && $validation == 0 ) ||
1421     ( $maj == 3 && $validation == 0 ) ||
1422     ( $maj == 0 && $validation == 1 ) && $retourformulaire == "dossier_instruction" ){
1423    
1424     echo "\n<a class=\"retour\" ";
1425     echo "href=\"#\" ";
1426     echo "onclick=\"redirectPortletAction(1,'main');\" ";
1427     echo ">";
1428     echo _("Retour");
1429     echo "</a>\n";
1430     }
1431     //Sinon affiche un retour normal
1432     else{
1433    
1434     parent::retoursousformulaire($idxformulaire, $retourformulaire, $val,
1435     $objsf, $premiersf, $tricolsf, $validation,
1436     $idx, $maj, $retour);
1437     }
1438     }
1439     }
1440    
1441    
1442     /**
1443     * Retourne le nom et le prénom de l'architecte qui a l'identifiant $id
1444     * @param integer $id
1445     * @param object $db
1446     * @return string
1447     */
1448     function getPrenomNomArchitecte($id){
1449    
1450     $coordonneesArchitecte = "";
1451     if ( $id != '' && is_numeric($id) ){
1452    
1453     $sql = "SELECT
1454     CONCAT(architecte.prenom, ' ', architecte.nom)
1455     FROM
1456     ".DB_PREFIXE."architecte
1457     WHERE
1458     architecte.architecte = ".$id;
1459     $coordonneesArchitecte = $this->db->getOne($sql);
1460     $this->f->addToLog("setSelect() : db->getOne(\"".$sql."\")", VERBOSE_MODE);
1461     if ( database::isError($coordonneesArchitecte)){
1462     $this->f->addToError("", $coordonneesArchitecte, $coordonneesArchitecte);
1463     return false;
1464     }
1465     }
1466     return $coordonneesArchitecte;
1467     }
1468    
1469     /**
1470     * Récupère l'instance de la classe dossier.
1471     *
1472     * @param string $dossier Identifiant
1473     *
1474     * @return object
1475     */
1476     function get_inst_dossier($dossier = null) {
1477     //
1478     if (is_null($this->inst_dossier)) {
1479     //
1480     if (is_null($dossier)) {
1481     $dossier = $this->getVal("dossier_instruction");
1482     }
1483     //
1484     require_once "../obj/dossier.class.php";
1485     $this->inst_dossier = new dossier($dossier);
1486     }
1487     //
1488     return $this->inst_dossier;
1489     }
1490    
1491     /**
1492 softime 6565 * Récupère l'instance de la classe dossier_autorisation.
1493     *
1494     * @param string $dossier_autorisation Identifiant
1495     *
1496     * @return object
1497     */
1498     function get_inst_dossier_autorisation($dossier_autorisation = null) {
1499     //
1500     if (is_null($this->inst_dossier_autorisation)) {
1501     //
1502     if (is_null($dossier_autorisation)) {
1503     $dossier_autorisation = $this->getVal("dossier_autorisation");
1504     }
1505     //
1506     require_once "../obj/dossier_autorisation.class.php";
1507     $this->inst_dossier_autorisation = new dossier_autorisation($dossier_autorisation);
1508     }
1509     //
1510     return $this->inst_dossier_autorisation;
1511     }
1512    
1513     /**
1514     * Récupère l'instance de la classe lot.
1515     *
1516     * @param string $lot Identifiant
1517     *
1518     * @return object
1519     */
1520     function get_inst_lot($lot = null) {
1521     //
1522     if (is_null($this->inst_lot)) {
1523     //
1524     if (is_null($lot)) {
1525     $lot = $this->getVal("lot");
1526     }
1527     //
1528     require_once "../obj/lot.class.php";
1529     $this->inst_lot = new lot($lot);
1530     }
1531     //
1532     return $this->inst_lot;
1533     }
1534    
1535     /**
1536     * Permet d’effectuer des actions après l’insertion des données dans la base.
1537     *
1538     * @param integer $id Identifiant de l'objet.
1539     * @param object &$db Instance de la bdd.
1540     * @param array $val Liste des valeurs.
1541     * @param mixed $DEBUG Debug.
1542     *
1543     * @return boolean
1544     */
1545     public function triggerajouterapres($id, &$db, $val, $DEBUG) {
1546     //
1547     parent::triggerajouterapres($id, $db, $val, $DEBUG);
1548    
1549     // Liaison NaN
1550     foreach ($this->liaisons_nan as $liaison_nan) {
1551     // Si le champ possède une valeur
1552     if (isset($val[$liaison_nan["field"]]) === true) {
1553     // Ajout des liaisons table Nan
1554     $nb_liens = $this->ajouter_liaisons_table_nan(
1555     $liaison_nan["table_l"],
1556     $liaison_nan["table_f"],
1557     $liaison_nan["field"],
1558     $val[$liaison_nan["field"]]
1559     );
1560     // Message de confirmation
1561     if ($nb_liens > 0) {
1562     if ($nb_liens == 1 ){
1563     $this->addToMessage(sprintf(_("Création d'une nouvelle liaison réalisee avec succès.")));
1564     } else {
1565     $this->addToMessage(sprintf(_("Création de %s nouvelles liaisons réalisée avec succès."), $nb_liens));
1566     }
1567     }
1568     }
1569     }
1570    
1571     //
1572     return true;
1573     }
1574    
1575    
1576     /**
1577 mbroquet 3730 * Permet d’effectuer des actions après la modification des données dans la
1578     * base.
1579     *
1580 softime 6565 * @param integer $id Identifiant de l'objet.
1581     * @param object &$db Instance de la bdd.
1582     * @param array $val Liste des valeurs.
1583     * @param mixed $DEBUG Debug.
1584 mbroquet 3730 *
1585     * @return boolean
1586     */
1587 softime 6565 public function triggermodifierapres($id, &$db, $val, $DEBUG) {
1588 mbroquet 3730
1589     // Instance du dossier d'instruction
1590     $dossier = $this->get_inst_dossier();
1591    
1592     // Valeurs pour le calcul
1593     $valF = array();
1594    
1595     // Instance de la taxe d'aménagement
1596     require_once "../obj/taxe_amenagement.class.php";
1597     $inst_taxe_amenagement = new taxe_amenagement(0);
1598     // Récupération des champs nécessaires à la simulation
1599     $list_fields = $inst_taxe_amenagement->get_list_fields_simulation();
1600    
1601     // Pour chaque champ
1602     foreach ($list_fields as $field) {
1603     // Si un seul des champs requis a une valeur
1604 softime 4882 $getVal = $this->valF[$field];
1605 mbroquet 3730 if (!empty($getVal)) {
1606     //
1607     $valF = $val;
1608     }
1609     }
1610    
1611     // Met à jour les montants du dossier
1612     if ($dossier->update_dossier_tax_mtn($dossier->getVal('tax_secteur'), $valF) == false) {
1613     //
1614     $this->addToMessage(_("La mise a jour des montants de la simulation de la taxe d'amenagement a echouee."));
1615     return false;
1616     }
1617    
1618 softime 6565 // Liaisons NaN
1619     foreach ($this->liaisons_nan as $liaison_nan) {
1620     // Suppression des liaisons table NaN
1621     $this->supprimer_liaisons_table_nan($liaison_nan["table_l"]);
1622     // Ajout des liaisons table Nan
1623     $nb_liens = $this->ajouter_liaisons_table_nan(
1624     $liaison_nan["table_l"],
1625     $liaison_nan["table_f"],
1626     $liaison_nan["field"],
1627     $val[$liaison_nan["field"]]
1628     );
1629     // Message de confirmation
1630     if ($nb_liens > 0) {
1631     $this->addToMessage(_("Mise a jour des liaisons realisee avec succes."));
1632     }
1633     }
1634    
1635 mbroquet 3730 return true;
1636     }
1637    
1638 softime 6565
1639 mbroquet 3730 /**
1640 softime 6565 * Permet d’effectuer des actions avant la modification des données dans la
1641     * base.
1642     *
1643     * @param integer $id Identifiant de l'objet.
1644     *
1645     * @return boolean
1646     */
1647     public function triggersupprimer($id) {
1648     //
1649     parent::triggersupprimer($id);
1650    
1651     // Liaisons NaN
1652     foreach ($this->liaisons_nan as $liaison_nan) {
1653     // Suppression des liaisons table NaN
1654     $this->supprimer_liaisons_table_nan($liaison_nan["table_l"]);
1655     }
1656    
1657     //
1658     return true;
1659     }
1660    
1661    
1662     /**
1663 mbroquet 3730 * Récupère toutes les valeurs de l'enregistrement.
1664     *
1665     * @return array
1666     */
1667     function get_form_val() {
1668    
1669     // Initialisation du tableau des résultats
1670     $result = array();
1671    
1672     // Pour chaque champs
1673     foreach ($this->champs as $champ) {
1674     // Récupère sa valeur
1675     $result[$champ] = $this->getVal($champ);
1676     }
1677    
1678     // Retourne le résultat
1679     return $result;
1680     }
1681    
1682 nhaye 4777
1683     /**
1684     * Retourne les données techniques applicables au dossier courant, càd les données
1685     * techniques liées au dossier avec seulement les champs du CERFA associé au type de
1686     * dossier.
1687     *
1688     * @return array $donnees_techniques_applicables Tableau associatif contenant
1689     * seulement les données techniques
1690     * applicables au dossier.
1691     */
1692     public function get_donnees_techniques_applicables() {
1693    
1694     // Récupération du tableau associatif contenant données techniques du dossier
1695     $donnees_techniques_dossier = $this->get_form_val();
1696     // Récupération du tableau associatif contenant les champs du CERFA lié au dossier
1697     $inst_cerfa = $this->getCerfa();
1698     $cerfa_dossier = $inst_cerfa->get_form_val();
1699    
1700     if (file_exists ("../sql/".OM_DB_PHPTYPE."/".$this->table.".form.inc.php")) {
1701     include ("../sql/".OM_DB_PHPTYPE."/".$this->table.".form.inc.php");
1702     }
1703    
1704     // Tableau associatif contenant la liste des champs de DT applicables au dossier
1705     $donnees_techniques_applicables = array();
1706     foreach ($cerfa_dossier as $key => $value) {
1707     // Si le champ du CERFA est préfixé par tab_ il s'agit d'un tableau qui
1708     // contient plusieurs champs, on récupère alors tous les champs du tableau.
1709     if (preg_match("/tab_/", $key)) {
1710     // Contient les champs de données techniques qui composent le tableau tab_
1711     $tableau_donnees_techniques = ${$key};
1712     // Pour chaque champ qui compose le tableau de données techniques
1713 jymadier 4785 if (isset($tableau_donnees_techniques[$inst_cerfa->getVal($key)]['values']) === true) {
1714     foreach ($tableau_donnees_techniques[$inst_cerfa->getVal($key)]['values'] as $key) {
1715     $donnees_techniques_applicables[$key] = $this->getVal($key);
1716     }
1717 nhaye 4777 }
1718     }
1719     // Si le champ est activé dans le CERFA correspond a une donnée technique
1720 jymadier 4785 if ($value === 't' && array_key_exists($key, $donnees_techniques_dossier)) {
1721 nhaye 4777 $donnees_techniques_applicables[$key] = $this->getVal($key);
1722     }
1723     }
1724     return $donnees_techniques_applicables;
1725    
1726     }
1727    
1728    
1729 softime 6565 /**
1730     * Surcharge de la méthode rechercheTable pour éviter de court-circuiter le
1731     * générateur en devant surcharger la méthode cleSecondaire afin de supprimer
1732     * les éléments liés dans les tables NaN.
1733     *
1734     * @param [type] $dnu1 Instance BDD - À ne pas utiliser
1735     * @param [type] $table Table
1736     * @param [type] $field Champ
1737     * @param [type] $id Identifiant
1738     * @param [type] $dnu2 Marqueur de débogage - À ne pas utiliser
1739     * @param string $selection Condition de la requête
1740     *
1741     * @return [type] [description]
1742     */
1743     function rechercheTable(&$dnu1 = null, $table, $field, $id, $dnu2 = null, $selection = "") {
1744     //
1745     if (in_array($table, array_keys($this->liaisons_nan))) {
1746     //
1747     $this->addToLog(__METHOD__."(): On ne vérifie pas la table ".$table." car liaison nan.", EXTRA_VERBOSE_MODE);
1748     return;
1749     }
1750     //
1751     parent::rechercheTable($this->f->db, $table, $field, $id, null, $selection);
1752     }
1753    
1754    
1755     /**
1756     * Récupère l'identifiant des données techniques avec le numéro de dossier.
1757     *
1758     * @param string $dossier Identifiant du dossier.
1759     *
1760     * @return integer
1761     */
1762     public function get_id_by_dossier($dossier) {
1763     //
1764     $sql = 'SELECT donnees_techniques
1765     FROM '.DB_PREFIXE.'donnees_techniques
1766     WHERE dossier_instruction = \''.$dossier.'\'';
1767     // Exécution de la requête
1768     $id = $this->db->getOne($sql);
1769     // Log
1770     $this->addToLog(__METHOD__."() : db->getOne(\"".$sql."\");", VERBOSE_MODE);
1771     // Erreur BDD
1772     $this->f->isDatabaseError($id);
1773    
1774     //
1775     return $dossier;
1776     }
1777    
1778     /*
1779     * CONDITION - can_user_access_dossier_contexte_modification
1780     *
1781     * Vérifie que l'utilisateur a bien accès au dossier lié aux données techniques
1782     * instanciées.
1783     * Cette méthode vérifie que l'utilisateur est lié au groupe du dossier, et si le
1784     * dossier est confidentiel qu'il a accès aux confidentiels de ce groupe.
1785     *
1786     */
1787     function can_user_access_dossier_contexte_modification() {
1788     //
1789     $inst_dossier = $this->get_inst_dossier();
1790     //
1791     if ($inst_dossier->getVal('dossier') !== '') {
1792     return $inst_dossier->can_user_access_dossier();
1793     }
1794     return false;
1795     }
1796    
1797     /*
1798     * CONDITION - can_user_access_dossier_contexte_dossier_autorisation_modification
1799     *
1800     * Vérifie que l'utilisateur a bien accès au dossier d'autorisation lié aux données
1801     * techniques instanciées.
1802     * Cette méthode vérifie que l'utilisateur est lié au groupe du dossier, et si le
1803     * dossier est confidentiel qu'il a accès aux confidentiels de ce groupe.
1804     *
1805     */
1806     function can_user_access_dossier_contexte_dossier_autorisation_modification() {
1807     //
1808     $inst_dossier_autorisation = $this->get_inst_dossier_autorisation();
1809     //
1810     if ($inst_dossier_autorisation->getVal('dossier_autorisation') !== '') {
1811     return $inst_dossier_autorisation->can_user_access_dossier();
1812     }
1813     return false;
1814     }
1815    
1816     /*
1817     * CONDITION - can_user_access_dossier_contexte_lot_modification
1818     *
1819     * Vérifie que l'utilisateur a bien accès au dossier lié aux données techniques
1820     * instanciées.
1821     * Cette méthode vérifie que l'utilisateur est lié au groupe du dossier, et si le
1822     * dossier est confidentiel qu'il a accès aux confidentiels de ce groupe.
1823     *
1824     */
1825     function can_user_access_dossier_contexte_lot_modification() {
1826     //
1827     $inst_lot = $this->get_inst_lot();
1828     $inst_dossier = $this->get_inst_dossier($inst_lot->getVal('dossier'));
1829     //
1830     if ($inst_dossier->getVal('dossier') !== '') {
1831     return $inst_dossier->can_user_access_dossier();
1832     }
1833     return false;
1834     }
1835    
1836    
1837    
1838 mbroquet 3730 }// fin classe
1839     ?>

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26