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

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

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

revision 1388 by fmichon, Thu Mar 7 11:03:58 2013 UTC revision 1389 by vpihour, Wed Mar 13 14:45:22 2013 UTC
# Line 11  class commission extends commission_gen Line 11  class commission extends commission_gen
11      }// fin constructeur      }// fin constructeur
12    
13      function afterFormSpecificContent() {      function afterFormSpecificContent() {
14          $f = $this->f;          
15          include "../app/manage_commission.php";          //Le sous-formulaire spécifique ne s'affiche qu'en consultation
16            if ( $this->parameters['maj'] == 3 ){
17                $f = $this->f;
18                include "../app/manage_commission.php";
19            }
20        }
21        
22        //Le type de commission n'est pas modifiable une fois la commission ajoutée
23        function setType(&$form,$maj) {
24            parent::setType($form,$maj);
25            
26            if ( $maj > 0 ) {
27                $form->setType('commission_type', 'selectstatic');
28            }
29        }
30    
31        //Action javascript au changement du type de la commission
32        function setOnchange(&$form,$maj){
33            parent::setOnchange($form,$maj);
34            
35            $form->setOnchange("commission_type","chargeDonneesCommissionType(this.value);");
36      }      }
37    
38        // Date du jour par défaut
39        function setVal(&$form, $maj, $validation, &$db) {
40            
41            if( $maj == 0 ) {
42                
43                 $form->setVal("date_commission",date('d/m/Y'));
44            }
45        }
46  }// fin classe  }// fin classe
47  ?>  ?>

Legend:
Removed from v.1388  
changed lines
  Added in v.1389

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26