1 |
<?php |
2 |
/* $Id: PD.class.php,v 1.9 2009-03-28 15:44:04 fraynaud1 Exp $ |
3 |
*/ |
4 |
require_once ("dossier.class.php"); |
5 |
require_once ($path_om."formulairedyn.class.php"); |
6 |
|
7 |
class PD extends dossier{ |
8 |
|
9 |
var $nature="PD"; |
10 |
var $acces_sig='Non'; |
11 |
|
12 |
function PD($id,&$db,$DEBUG) { |
13 |
$this->constructeur($id,$db,$DEBUG); |
14 |
} // fin constructeur |
15 |
|
16 |
function setvalF($val){ |
17 |
parent::setvalF($val); |
18 |
|
19 |
$this->valF['batiment_nombre'] = $val['batiment_nombre']; |
20 |
$this->valF['logement_nombre'] = $val['logement_nombre']; |
21 |
$this->valF['hauteur'] = $val['hauteur']; |
22 |
$this->valF['piece_nombre'] = $val['piece_nombre']; |
23 |
|
24 |
$this->valF['shon'] = $val['shon']; |
25 |
$this->valF['shon_calcul'] = $val['shon_calcul']; |
26 |
$this->valF['shob'] = $val['shob']; |
27 |
} |
28 |
|
29 |
function setType(&$form,$maj) { |
30 |
parent::setType($form,$maj); |
31 |
// terrain |
32 |
if($maj<2){ |
33 |
|
34 |
$form->setType('batiment_nombre','text'); |
35 |
$form->setType('logement_nombre','text'); |
36 |
$form->setType('shon','text'); |
37 |
$form->setType('shob','text'); |
38 |
$form->setType('hauteur','text'); |
39 |
$form->setType('piece_nombre','text'); |
40 |
} |
41 |
} |
42 |
|
43 |
function setLib(&$form,$maj) { |
44 |
parent::setLib($form,$maj); |
45 |
$form->setLib('batiment_nombre',' '.$this->lang('batiment_nombre').' : '); |
46 |
$form->setLib('logement_nombre',' '.$this->lang('logement_nombre').' : '); |
47 |
$form->setLib('hauteur',' '.$this->lang('hauteur').' : '); |
48 |
$form->setLib('piece_nombre',' '.$this->lang('piece_nombre').' : '); |
49 |
$form->setLib('shon',' '.$this->lang('shon').' : '); |
50 |
$form->setLib('shon_calcul',' '.$this->lang('shon_calcul').' : '); |
51 |
$form->setLib('shob',' '.$this->lang('shob').' : '); |
52 |
} |
53 |
|
54 |
function setTaille(&$form,$maj){ |
55 |
parent::setTaille($form,$maj); |
56 |
$form->setTaille('hauteur','3'); |
57 |
} |
58 |
|
59 |
function setVal(&$form,$maj,$validation){ |
60 |
parent::setVal($form,$maj,$validation); |
61 |
if ($validation==0) { |
62 |
if ($maj == 0){ |
63 |
$form->setVal('delai','1'); |
64 |
|
65 |
}}} |
66 |
|
67 |
function setGroupe(&$form,$maj){ |
68 |
parent::setGroupe($form,$maj); |
69 |
|
70 |
$form->setGroupe('batiment_nombre','D'); |
71 |
$form->setGroupe('logement_nombre','G'); |
72 |
$form->setGroupe('hauteur','G'); |
73 |
$form->setGroupe('piece_nombre','F'); |
74 |
|
75 |
$form->setGroupe('shon','D'); |
76 |
$form->setGroupe('shon_calcul','G'); |
77 |
$form->setGroupe('shob','F'); |
78 |
|
79 |
$form->setGroupe('architecte','D'); |
80 |
$form->setGroupe('architecte_nom','G'); |
81 |
$form->setGroupe('saisie_architecte','G'); |
82 |
$form->setGroupe('travaux','F'); |
83 |
} |
84 |
function setRegroupe(&$form,$maj){ |
85 |
parent::setRegroupe($form,$maj); |
86 |
|
87 |
$form->setRegroupe('batiment_nombre','D',$this->lang('description')); |
88 |
$form->setRegroupe('logement_nombre','G',''); |
89 |
$form->setRegroupe('hauteur','G',''); |
90 |
$form->setRegroupe('piece_nombre','G',''); |
91 |
|
92 |
$form->setRegroupe('shon','G',' SHON '); |
93 |
$form->setRegroupe('shon_calcul','G',''); |
94 |
$form->setRegroupe('shob','F',''); |
95 |
} |
96 |
|
97 |
}// fin de classe |
98 |
?> |