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

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

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

revision 1057 by fmichon, Thu Dec 6 15:48:07 2012 UTC revision 1058 by vpihour, Thu Dec 13 15:00:27 2012 UTC
# Line 114  class instruction extends instruction_ge Line 114  class instruction extends instruction_ge
114            }            }
115      }      }
116    
117        /*Met des valeurs par défaut dans certains des sous-formulaire*/
118      function setValsousformulaire(&$form,$maj,$validation,$idxformulaire,$retourformulaire,$typeformulaire){      function setValsousformulaire(&$form,$maj,$validation,$idxformulaire,$retourformulaire,$typeformulaire){
119          if ($validation==0 and $maj<2) {          if ($validation==0 and $maj<2) {
120              if ($maj == 0){              if ($maj == 0){
# Line 129  class instruction extends instruction_ge Line 130  class instruction extends instruction_ge
130          $this->idxformulaire=$idxformulaire;          $this->idxformulaire=$idxformulaire;
131      }      }
132    
133        /*Affecte un type à certains champs*/
134      function setType(&$form,$maj) {      function setType(&$form,$maj) {
135          parent::setType($form,$maj);          parent::setType($form,$maj);
136          if ($maj < 2) { //ajouter et modifier          if ($maj < 2) { //ajouter et modifier
# Line 209  class instruction extends instruction_ge Line 211  class instruction extends instruction_ge
211          $form->setType('archive_date_chantier', 'hidden');            $form->setType('archive_date_chantier', 'hidden');  
212      }      }
213            
214        /*Met des valeurs choisies dans certains select du formulaire*/
215      function setSelect(&$form, $maj,&$db,$DEBUG) {      function setSelect(&$form, $maj,&$db,$DEBUG) {
216          if(file_exists ("../sql/".$db->phptype."/".$this->table.".form.inc.php"))          if(file_exists ("../sql/".$db->phptype."/".$this->table.".form.inc.php"))
217              include ("../sql/".$db->phptype."/".$this->table.".form.inc.php");              include ("../sql/".$db->phptype."/".$this->table.".form.inc.php");
# Line 279  class instruction extends instruction_ge Line 282  class instruction extends instruction_ge
282          $form->setRegroupe('bible2','F','');          $form->setRegroupe('bible2','F','');
283      }      }
284            
285        /*Change le libellé de certains champs*/
286      function setLib(&$form,$maj) {      function setLib(&$form,$maj) {
287          parent :: setLib($form,$maj);          parent :: setLib($form,$maj);
288          $form->setLib('libelle',' ');          $form->setLib('libelle',' ');
# Line 290  class instruction extends instruction_ge Line 294  class instruction extends instruction_ge
294      }      }
295    
296      // ==================================================================      // ==================================================================
297      // trigger avant modification données    [trigger before modify data]      // trigger avant modification des données    [trigger before modify data]
298      // ==================================================================      // ==================================================================
299      function triggerajouter($id,&$db,$val,$DEBUG) {      function triggerajouter($id,&$db,$val,$DEBUG) {
300          // mise a jour instruction avec evenement          // mise a jour instruction avec evenement
# Line 630  class instruction extends instruction_ge Line 634  class instruction extends instruction_ge
634    
635      function triggermodifierapres($id,&$db,$val,$DEBUG) {      function triggermodifierapres($id,&$db,$val,$DEBUG) {
636          /*          /*
637           * cette fonction apour objet de permettre de modifier la date courrier           * cette fonction a pour objet de permettre de modifier la date courrier
638          */          */
639          $valF=array();          $valF=array();
640          $sql= "select action from ".DB_PREFIXE."evenement where evenement =".$this->valF['evenement'];          $sql= "select action from ".DB_PREFIXE."evenement where evenement =".$this->valF['evenement'];

Legend:
Removed from v.1057  
changed lines
  Added in v.1058

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26