32 |
|
|
33 |
function setvalF($val) { |
function setvalF($val) { |
34 |
parent::setValF($val); |
parent::setValF($val); |
35 |
if($this->maj==0) { |
if($this->getParameter('maj')==0) { |
36 |
$this->valF["date_reception"]=$this->valF["date_envoi"]; |
$this->valF["date_reception"]=$this->valF["date_envoi"]; |
37 |
} |
} |
38 |
|
|
39 |
// Si un retour d'avis est modifie on passe "lu" a false |
// Si un retour d'avis est modifie on passe "lu" a false |
40 |
if($this->maj==1 AND ($this->val[array_search("avis_consultation",$this->champs)] != $val["avis_consultation"] OR |
if($this->getParameter('maj')==1 AND ( |
41 |
$this->val[array_search("date_retour",$this->champs)] != $val["date_retour"] OR |
$this->val[array_search("avis_consultation",$this->champs)] != $val["avis_consultation"] OR |
42 |
$this->val[array_search("motivation",$this->champs)] != $val["motivation"] OR |
$this->val[array_search("date_retour",$this->champs)] != $val["date_retour"] OR |
43 |
$this->val[array_search("fichier",$this->champs)] != $val["fichier"])) { |
$this->val[array_search("motivation",$this->champs)] != $val["motivation"] OR |
44 |
$this->valF["lu"]=FALSE; |
$this->val[array_search("fichier",$this->champs)] != $val["fichier"] |
45 |
|
) |
46 |
|
) { |
47 |
|
$this->valF["lu"]=false; |
48 |
} |
} |
|
|
|
49 |
} |
} |
50 |
|
|
51 |
function setType(&$form,$maj) { |
function setType(&$form,$maj) { |