9 |
$this->constructeur($id,$db,$debug); |
$this->constructeur($id,$db,$debug); |
10 |
}// fin constructeur |
}// fin constructeur |
11 |
|
|
|
|
|
12 |
function setValsousformulaire(&$form,$maj,$validation,$idxformulaire,$retourformulaire,$typeformulaire){ |
function setValsousformulaire(&$form,$maj,$validation,$idxformulaire,$retourformulaire,$typeformulaire){ |
13 |
if ($validation==0) { |
if ($validation==0) { |
14 |
if ($maj == 0){ |
if ($maj == 0){ |
16 |
} |
} |
17 |
} |
} |
18 |
} |
} |
19 |
|
|
20 |
function setType(&$form,$maj) { |
function setType(&$form,$maj) { |
21 |
|
parent::setType($form,$maj); |
22 |
if ($maj < 2) { |
if ($maj < 2) { |
|
$form->setType('blocnote', 'hidden'); |
|
23 |
$form->setType('categorie', 'select'); |
$form->setType('categorie', 'select'); |
|
$form->setType('note', 'textarea'); |
|
24 |
$form->setType('dossier', 'hiddenstatic'); |
$form->setType('dossier', 'hiddenstatic'); |
|
if($maj==0) |
|
|
$form->setType('blocnote', 'hidden'); |
|
|
else |
|
|
$form->setType('blocnote', 'hiddenstatic'); |
|
25 |
}else{ |
}else{ |
26 |
$form->setType('blocnote', 'hiddenstatic'); |
$form->setType('blocnote', 'hiddenstatic'); |
27 |
$form->setType('destination', 'hiddenstatic'); |
$form->setType('destination', 'hiddenstatic'); |