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

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

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

revision 431 by nhaye, Mon Sep 24 16:29:46 2012 UTC revision 450 by nhaye, Wed Sep 26 08:49:40 2012 UTC
# Line 9  class blocnote extends blocnote_gen { Line 9  class blocnote extends blocnote_gen {
9          $this->constructeur($id,$db,$debug);          $this->constructeur($id,$db,$debug);
10      }// fin constructeur      }// fin constructeur
11    
   
12      function setValsousformulaire(&$form,$maj,$validation,$idxformulaire,$retourformulaire,$typeformulaire){      function setValsousformulaire(&$form,$maj,$validation,$idxformulaire,$retourformulaire,$typeformulaire){
13          if ($validation==0) {          if ($validation==0) {
14              if ($maj == 0){              if ($maj == 0){
# Line 17  class blocnote extends blocnote_gen { Line 16  class blocnote extends blocnote_gen {
16              }              }
17          }          }
18      }      }
19        
20      function setType(&$form,$maj) {      function setType(&$form,$maj) {
21            parent::setType($form,$maj);
22          if ($maj < 2) {          if ($maj < 2) {
             $form->setType('blocnote', 'hidden');  
23              $form->setType('categorie', 'select');              $form->setType('categorie', 'select');
             $form->setType('note', 'textarea');  
24              $form->setType('dossier', 'hiddenstatic');              $form->setType('dossier', 'hiddenstatic');
             if($maj==0)  
                 $form->setType('blocnote', 'hidden');  
         else  
             $form->setType('blocnote', 'hiddenstatic');  
25          }else{          }else{
26               $form->setType('blocnote', 'hiddenstatic');               $form->setType('blocnote', 'hiddenstatic');
27               $form->setType('destination', 'hiddenstatic');               $form->setType('destination', 'hiddenstatic');

Legend:
Removed from v.431  
changed lines
  Added in v.450

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26