1 |
fraynaud |
11 |
<?php |
2 |
|
|
/* $Id: DP.class.php,v 1.6 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 DP extends dossier{ |
8 |
|
|
|
9 |
|
|
var $nature="DP"; |
10 |
|
|
var $acces_sig='Non'; |
11 |
|
|
|
12 |
|
|
function DP($id,&$db,$DEBUG) { |
13 |
|
|
$this->constructeur($id,$db,$DEBUG); |
14 |
|
|
} // fin constructeur |
15 |
|
|
function setvalF($val){ |
16 |
|
|
parent::setvalF($val); |
17 |
|
|
|
18 |
|
|
$this->valF['hauteur'] = $val['hauteur']; |
19 |
|
|
$this->valF['shon'] = $val['shon']; |
20 |
|
|
$this->valF['shon_calcul'] = $val['shon_calcul']; |
21 |
|
|
$this->valF['shob'] = $val['shob']; |
22 |
|
|
} |
23 |
|
|
|
24 |
|
|
function setType(&$form,$maj) { |
25 |
|
|
parent::setType($form,$maj); |
26 |
|
|
// terrain |
27 |
|
|
if($maj<2){ |
28 |
|
|
$form->setType('shon','text'); |
29 |
|
|
$form->setType('shon_calcul','hiddenstatic'); |
30 |
|
|
$form->setType('shob','text'); |
31 |
|
|
$form->setType('hauteur','text'); |
32 |
|
|
} |
33 |
|
|
} |
34 |
|
|
|
35 |
|
|
function setLib(&$form,$maj) { |
36 |
|
|
parent::setLib($form,$maj); |
37 |
|
|
$form->setLib('travaux',$this->lang('travaux').' : '); |
38 |
|
|
$form->setLib('hauteur',$this->lang('hauteur').' : '); |
39 |
|
|
$form->setLib('shon',$this->lang('shon').' : '); |
40 |
|
|
$form->setLib('shon_calcul',$this->lang('shon_calcul').' : '); |
41 |
|
|
$form->setLib('shob',$this->lang('shob').' : '); |
42 |
|
|
} |
43 |
|
|
function setTaille(&$form,$maj){ |
44 |
|
|
parent::setTaille($form,$maj); |
45 |
|
|
$form->setTaille('hauteur','3'); |
46 |
|
|
} |
47 |
|
|
function setVal(&$form,$maj,$validation){ |
48 |
|
|
parent::setVal($form,$maj,$validation); |
49 |
|
|
if ($validation==0) { |
50 |
|
|
if ($maj == 0){ |
51 |
|
|
// $form->setVal('delai','1'); |
52 |
|
|
|
53 |
|
|
}}} |
54 |
|
|
|
55 |
|
|
function setGroupe(&$form,$maj){ |
56 |
|
|
parent::setGroupe($form,$maj); |
57 |
|
|
|
58 |
|
|
|
59 |
|
|
$form->setGroupe('architecte','D'); |
60 |
|
|
$form->setGroupe('architecte_nom','G'); |
61 |
|
|
$form->setGroupe('saisie_architecte','G'); |
62 |
|
|
$form->setGroupe('travaux','F'); |
63 |
|
|
|
64 |
|
|
$form->setGroupe('hauteur','D'); |
65 |
|
|
$form->setGroupe('shon','G'); |
66 |
|
|
$form->setGroupe('shon_calcul','G'); |
67 |
|
|
$form->setGroupe('shob','F'); |
68 |
|
|
} |
69 |
|
|
function setRegroupe(&$form,$maj){ |
70 |
|
|
parent::setRegroupe($form,$maj); |
71 |
|
|
|
72 |
|
|
|
73 |
|
|
$form->setRegroupe('hauteur','D',$this->lang('description')); |
74 |
|
|
|
75 |
|
|
$form->setRegroupe('shon','G',' SHON '); |
76 |
|
|
$form->setRegroupe('shon_calcul','G',' SHON '); |
77 |
|
|
$form->setRegroupe('shob','F',''); |
78 |
|
|
} |
79 |
|
|
}// fin de classe |
80 |
|
|
?> |