26 |
} |
} |
27 |
|
|
28 |
function setType(&$form,$maj) { |
function setType(&$form,$maj) { |
29 |
|
parent::setType($form,$maj); |
30 |
if ($maj < 2) { //ajouter et modifier [add and modify] |
if ($maj < 2) { //ajouter et modifier [add and modify] |
31 |
if($maj==0){ // add |
if($maj==0){ // add |
32 |
$form->setType('date_envoi', 'date2'); |
$form->setType('date_envoi', 'date2'); |
43 |
} |
} |
44 |
$form->setType('consultation', 'hiddenstatic'); |
$form->setType('consultation', 'hiddenstatic'); |
45 |
$form->setType('dossier', 'hiddenstatic'); |
$form->setType('dossier', 'hiddenstatic'); |
|
}else{ // supprimer |
|
|
$form->setType('consultation', 'hiddenstatic'); |
|
|
$form->setType('dossier', 'hiddenstatic'); |
|
46 |
} |
} |
47 |
} |
} |
48 |
|
|