/[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 591 by nhaye, Mon Nov 5 10:05:15 2012 UTC revision 597 by nhaye, Mon Nov 5 14:53:03 2012 UTC
# Line 16  class consultation extends consultation_ Line 16  class consultation extends consultation_
16                  $form->setVal("date_envoi",date('d/m/Y'));                  $form->setVal("date_envoi",date('d/m/Y'));
17              }              }
18              if($maj == 1) {              if($maj == 1) {
19                   $form->setVal("date_retour",date('d/m/Y'));                  if($this->f->isAccredited('consultation_retour_avis_suivi') OR
20                        $this->f->isAccredited('consultation_retour_avis_service')) {
21                        $form->setVal("date_retour",date('d/m/Y'));
22                    }
23              }              }
24          }          }
25      }      }
# Line 38  class consultation extends consultation_ Line 41  class consultation extends consultation_
41             $this->val[array_search("motivation",$this->champs)] != $val["motivation"] OR             $this->val[array_search("motivation",$this->champs)] != $val["motivation"] OR
42             $this->val[array_search("fichier",$this->champs)] != $val["fichier"])) {             $this->val[array_search("fichier",$this->champs)] != $val["fichier"])) {
43              $this->valF["lu"]=FALSE;              $this->valF["lu"]=FALSE;
             $this->valF["date_retour"]=$this->dateDB(date('d/m/Y'));  
44          }          }
45                    
46      }      }
# Line 70  class consultation extends consultation_ Line 72  class consultation extends consultation_
72                      $form->setType('dossier', 'hiddenstatic');                      $form->setType('dossier', 'hiddenstatic');
73                      $form->setType('date_envoi', 'hiddenstaticdate');                      $form->setType('date_envoi', 'hiddenstaticdate');
74                      $form->setType('date_limite', 'hiddenstaticdate');                      $form->setType('date_limite', 'hiddenstaticdate');
75                      $form->setType('date_reception', 'hiddenstaticdate');                      if($this->f->isAccredited('consultation_modifier_date_reception')) {
76                            $form->setType('date_reception', 'hiddenstaticdate');
77                        } else {
78                            $form->setType('date_reception', 'date2');
79                        }
80                      $form->setType('service', 'selecthiddenstatic');                      $form->setType('service', 'selecthiddenstatic');
81                      $form->setType('date_retour', 'date2');                      $form->setType('date_retour', 'date2');
82                      $form->setType('avis_consultation', 'select');                      $form->setType('avis_consultation', 'select');
# Line 209  class consultation extends consultation_ Line 215  class consultation extends consultation_
215              }              }
216          }          }
217      }      }
218    
219        /** Surcharge de la methode retour afin de retourner sur la page de saisie de
220        * code barre si besoin
221        **/
222        function retour($premier = 0, $recherche = "", $tricol = "") {
223            $params ="obj=".get_class($this);
224            if($this->getParameter("retour")=="form") {
225                $params .= "&idx=".$this->getParameter("idx");
226                $params .= "&action=3";
227            }
228            $params .= "&premier=".$this->getParameter("premier");
229            $params .= "&tricol=".$this->getParameter("tricol");
230            $params .= "&recherche=".$this->getParameter("recherche");
231            $params .= "&selectioncol=".$this->getParameter("selectioncol");
232            $params .= "&advs_id=".$this->getParameter("advs_id");
233            $params .= "&valide=".$this->getParameter("valide");
234            echo "\n<a class=\"retour\" ";
235            echo "href=\"";
236            //
237    
238            if($this->getParameter("retour")=="form" AND !($this->getParameter("validation")>0 AND $this->getParameter("maj")==2 AND $this->correct)) {
239                echo "form.php?".$params;
240            } elseif($this->getParameter("retour")=="avis_code_barre") {
241                echo "../app/avis_code_barre.php";
242            } else {
243                echo "tab.php?".$params;
244            }
245            //
246            echo "\"";
247            echo ">";
248            //
249            echo _("Retour");
250            //
251            echo "</a>\n";
252    
253        }
254            
255  }// fin classe  }// fin classe
256  ?>  ?>

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26