/[openfoncier]/branches/3.14.x/obj/bible.class.php
ViewVC logotype

Diff of /branches/3.14.x/obj/bible.class.php

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

revision 6 by fraynaud, Sun Feb 13 21:52:57 2011 UTC revision 402 by nhaye, Thu Sep 20 14:36:44 2012 UTC
# Line 9  class bible extends bible_gen { Line 9  class bible extends bible_gen {
9          $this->constructeur($id,$db,$debug);          $this->constructeur($id,$db,$debug);
10      }// fin constructeur      }// fin constructeur
11            
     function verifier($val,&$db,$DEBUG) {  
         parent::verifier($val,$db,$DEBUG);  
         $f="&nbsp!    ";  
         $imgv="<img src='../img/punaise.png' style='vertical-align:middle' hspace='2' border='0'>";  
         if ($this->valF['contenu']==""){  
            $this->correct=false;  
            $this->msg= $this->msg.$imgv.  
                     $this->lang("contenu")."&nbsp;".  
                     $this->lang("obligatoire").$f;  
         }  
     }  
12    
13      function setType(&$form,$maj) {      function setType(&$form,$maj) {
14          parent::setType($form,$maj);          parent::setType($form,$maj);
# Line 27  class bible extends bible_gen { Line 16  class bible extends bible_gen {
16              $form->setType('evenement', 'hiddenstatic');              $form->setType('evenement', 'hiddenstatic');
17              $form->setType('complement', 'select');              $form->setType('complement', 'select');
18              $form->setType('automatique', 'select');              $form->setType('automatique', 'select');
             $form->setType('service', 'hidden');  
             if ($maj==1){  
                $form->setType('bible', 'hiddenstatic');  
         }else  
             $form->setType('bible', 'hidden');  
19          }          }
20      }      }
21            

Legend:
Removed from v.6  
changed lines
  Added in v.402

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26