/[openfoncier]/trunk/obj/consultation.class.php
ViewVC logotype

Diff of /trunk/obj/consultation.class.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 585 by nhaye, Fri Nov 2 17:16:05 2012 UTC revision 587 by nhaye, Fri Nov 2 17:44:04 2012 UTC
# Line 15  class consultation extends consultation_ Line 15  class consultation extends consultation_
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
# Line 56  class consultation extends consultation_ Line 68  class consultation extends consultation_
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');

Legend:
Removed from v.585  
changed lines
  Added in v.587

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26