/[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 429 by nhaye, Mon Sep 24 15:08:54 2012 UTC revision 459 by nhaye, Thu Sep 27 09:06:12 2012 UTC
# Line 26  class consultation extends consultation_ Line 26  class consultation extends consultation_
26      }      }
27    
28      function setType(&$form,$maj) {      function setType(&$form,$maj) {
29            parent::setType($form,$maj);
30          if ($maj < 2) { //ajouter et modifier [add and modify]          if ($maj < 2) { //ajouter et modifier [add and modify]
31              if($maj==0){ // add              if($maj==0){ // add
32                  $form->setType('date_envoi', 'date2');                  $form->setType('date_envoi', 'date2');
# Line 42  class consultation extends consultation_ Line 43  class consultation extends consultation_
43              }              }
44              $form->setType('consultation', 'hiddenstatic');              $form->setType('consultation', 'hiddenstatic');
45              $form->setType('dossier', 'hiddenstatic');              $form->setType('dossier', 'hiddenstatic');
         }else{ // supprimer  
             $form->setType('consultation', 'hiddenstatic');  
             $form->setType('dossier', 'hiddenstatic');  
46          }          }
47      }      }
48    

Legend:
Removed from v.429  
changed lines
  Added in v.459

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26