/[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 587 by nhaye, Fri Nov 2 17:44:04 2012 UTC revision 591 by nhaye, Mon Nov 5 10:05:15 2012 UTC
# Line 29  class consultation extends consultation_ Line 29  class consultation extends consultation_
29    
30      function setvalF($val) {      function setvalF($val) {
31          parent::setValF($val);          parent::setValF($val);
32          if($maj==0) {          if($this->maj==0) {
33              $this->valF["date_reception"]=$this->valF["date_envoi"];              $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
# Line 65  class consultation extends consultation_ Line 65  class consultation extends consultation_
65                      $form->setType('date_reception', 'hidden');                      $form->setType('date_reception', 'hidden');
66                      $form->setType('date_limite', 'hidden');                      $form->setType('date_limite', 'hidden');
67                      $form->setType('lu', 'hidden');                      $form->setType('lu', 'hidden');
68                        $form->setType('fichier', 'upload2');
69                  } else {                  } else {
70                        $form->setType('dossier', 'hiddenstatic');
71                      $form->setType('date_envoi', 'hiddenstaticdate');                      $form->setType('date_envoi', 'hiddenstaticdate');
72                      $form->setType('date_limite', 'hiddenstaticdate');                      $form->setType('date_limite', 'hiddenstaticdate');
73                      $form->setType('date_reception', 'hiddenstaticdate');                      $form->setType('date_reception', 'hiddenstaticdate');
# Line 73  class consultation extends consultation_ Line 75  class consultation extends consultation_
75                      $form->setType('date_retour', 'date2');                      $form->setType('date_retour', 'date2');
76                      $form->setType('avis_consultation', 'select');                      $form->setType('avis_consultation', 'select');
77                      $form->setType('motivation', 'textarea');                      $form->setType('motivation', 'textarea');
78                      $form->setType('fichier', 'upload2');                      if(!isset($this->parameters['retourformulaire'])) {
79                            $form->setType('fichier', 'upload');
80                        } else {
81                            $form->setType('fichier', 'upload2');
82                        }
83                      //Affichage du champ en modification pour le prifil instructeur                      //Affichage du champ en modification pour le prifil instructeur
84                      if(!$this->f->isAccredited('consultation_modifier_lu')) {                      if(!$this->f->isAccredited('consultation_modifier_lu')) {
85                          $form->setType('lu', 'hidden');                          $form->setType('lu', 'hidden');
86                      }                      }
87                  }                  }
88              }              }
             $form->setType('dossier', 'hiddenstatic');  
89          }          }
90          $form->setType('consultation', 'hidden');          $form->setType('consultation', 'hidden');
91          //setType pour  profil service          //setType pour  profil service

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26