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

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

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

revision 502 by vpihour, Mon Oct 15 16:22:36 2012 UTC revision 579 by nhaye, Fri Nov 2 13:36:51 2012 UTC
# Line 18  class service extends service_gen { Line 18  class service extends service_gen {
18      }      }
19    
20      function setSelect(&$form, $maj,$db,$debug) {      function setSelect(&$form, $maj,$db,$debug) {
21          parent::setSelect($form, $maj,$db,$debug) ;          parent::setSelect($form, $maj, $db, $debug) ;
22          $contenu=array();          $contenu=array();
23          $contenu[0]=array('0','1','2','3',          $contenu[0]=array('0','1','2','3',
24                            '4','5','6',                            '4','5','6',
# Line 44  class service extends service_gen { Line 44  class service extends service_gen {
44          $form->setSelect("delai",$contenu);          $form->setSelect("delai",$contenu);
45                    
46          $contenu=array();          $contenu=array();
47          $contenu[0]=array('pour_information',          $contenu[0]=array('avec_avis_attendu',
48                            'avec_avis_attendu',                            'pour_information',
49                            'pour_conformite');                            'pour_conformite');
50          $contenu[1]=array(_('Pour information'),          $contenu[1]=array(_('Avec avis attendu'),
51                            _('Avec avis attendu'),                            _('Pour information'),
52                            _('Pour conformite'));                            _('Pour conformite'));
53          $form->setSelect("type_consultation",$contenu);          $form->setSelect("type_consultation",$contenu);
54      }      }
# Line 56  class service extends service_gen { Line 56  class service extends service_gen {
56      function setVal(&$form,$maj,$validation){      function setVal(&$form,$maj,$validation){
57    
58          if ($maj > 1){          if ($maj > 1){
59              //Traitement des données pour l'affichage              //Traitement des données pour l'affichage du select
60              $temp = $this->val[array_search('type_consultation', array_keys($form->val))];              $temp = $this->val[array_search('type_consultation', array_keys($form->val))];
61                            
62              if ( strcmp($temp, 'pour_information') == 0 ){              if ( strcmp($temp, 'pour_information') == 0 ){
# Line 69  class service extends service_gen { Line 69  class service extends service_gen {
69                                    
70              }elseif( strcmp($temp, 'pour_conformite') == 0 ) {              }elseif( strcmp($temp, 'pour_conformite') == 0 ) {
71                                    
72                  $temp = _('Pour conformité');                  $temp = _('Pour conformite');
73                                    
74              }              }
75                            
# Line 77  class service extends service_gen { Line 77  class service extends service_gen {
77          }          }
78      }      }
79            
80      //Formatage des intitulés des champs.      
     function setLib(&$form,$maj) {  
         parent::setLib($form,$maj);  
         $form->setLib('abrege','Abrégé');  
         $form->setLib('libelle','Libellé');  
         $form->setLib('adresse','Adresse');  
         $form->setLib('adresse2','Complément d\'adresse');  
         $form->setLib('cp','Code postal');  
         $form->setLib('ville','Ville');  
         $form->setLib('email','Email');  
         $form->setLib('type_consultation','Type de consultation');  
         $form->setLib('type_consultation','Type de consultation');  
         $form->setLib('consultation_papier','Consultation papier');  
         $form->setLib('om_validite_debut','Debut de validité');  
         $form->setLib('om_validite_fin','Fin de validité');  
     }  
81  }// fin classe  }// fin classe
82  ?>  ?>

Legend:
Removed from v.502  
changed lines
  Added in v.579

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26