15 |
$form->setVal("dossier", $idxformulaire); |
$form->setVal("dossier", $idxformulaire); |
16 |
$form->setVal("date_envoi",date('d/m/Y')); |
$form->setVal("date_envoi",date('d/m/Y')); |
17 |
} |
} |
18 |
|
if($maj == 1) { |
19 |
|
$form->setVal("date_retour",date('d/m/Y')); |
20 |
|
} |
21 |
|
} |
22 |
|
} |
23 |
|
|
24 |
|
function setVal(&$form, $maj, $validation, &$db) { |
25 |
|
if($maj == 1) { |
26 |
|
$form->setVal("date_retour",date('d/m/Y')); |
27 |
} |
} |
28 |
} |
} |
29 |
|
|
30 |
function setvalF($val) { |
function setvalF($val) { |
31 |
parent::setValF($val); |
parent::setValF($val); |
32 |
|
if($maj==0) { |
33 |
|
$this->valF["date_reception"]=$this->valF["date_envoi"]; |
34 |
|
} |
35 |
// Si un retour d'avis est modifie on passe "lu" a false |
// Si un retour d'avis est modifie on passe "lu" a false |
36 |
if($this->maj==1 AND ($this->val[array_search("avis_consultation",$this->champs)] != $val["avis_consultation"] OR |
if($this->maj==1 AND ($this->val[array_search("avis_consultation",$this->champs)] != $val["avis_consultation"] OR |
37 |
$this->val[array_search("date_retour",$this->champs)] != $val["date_retour"] OR |
$this->val[array_search("date_retour",$this->champs)] != $val["date_retour"] OR |
68 |
} else { |
} else { |
69 |
$form->setType('date_envoi', 'hiddenstaticdate'); |
$form->setType('date_envoi', 'hiddenstaticdate'); |
70 |
$form->setType('date_limite', 'hiddenstaticdate'); |
$form->setType('date_limite', 'hiddenstaticdate'); |
71 |
|
$form->setType('date_reception', 'hiddenstaticdate'); |
72 |
$form->setType('service', 'selecthiddenstatic'); |
$form->setType('service', 'selecthiddenstatic'); |
73 |
$form->setType('date_retour', 'date2'); |
$form->setType('date_retour', 'date2'); |
74 |
$form->setType('avis_consultation', 'select'); |
$form->setType('avis_consultation', 'select'); |