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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 7996 - (hide annotations)
Fri Jul 20 17:12:33 2018 UTC (6 years, 6 months ago) by softime
File size: 2220 byte(s)
* Merge de la branche d'intégration 4.7.0 vers le trunk

1 mbroquet 3730 <?php
2 nhaye 5254 /**
3     * DBFORM - 'service' - Surcharge gen.
4     *
5     * Ce script permet de définir la classe 'service'.
6     *
7     * @package openads
8     * @version SVN : $Id$
9     */
10 mbroquet 3730
11 nhaye 5254 require_once "../gen/obj/service.class.php";
12    
13 mbroquet 3730 class service extends service_gen {
14    
15     function setType(&$form,$maj) {
16     parent::setType($form,$maj);
17     if ($maj < 2) {
18     $form->setType('type_consultation', 'select');
19     $form->setType('edition', 'select');
20     $form->setType('delai_type', 'select');
21     }
22     }
23    
24 softime 6929 function setSelect(&$form, $maj, &$db = null, $debug = null) {
25 mbroquet 3730 parent::setSelect($form, $maj, $db, $debug) ;
26    
27     $contenu=array();
28    
29     $contenu[0]=array(
30     'avec_avis_attendu',
31     'pour_conformite',
32     'pour_information',
33     );
34    
35     $contenu[1]=array(
36     _('Avec avis attendu'),
37     _('Pour conformite'),
38     _('Pour information'),
39    
40     );
41     $form->setSelect("type_consultation",$contenu);
42    
43     //
44     $contenu = array();
45     $contenu[0] = array('mois','jour');
46     $contenu[1] = array(_('mois'), _('jour'));
47     $form->setSelect("delai_type", $contenu);
48     }
49    
50 softime 6929 function setVal(&$form, $maj, $validation, &$db = null, $DEBUG = null) {
51     parent::setVal($form, $maj, $validation, $db, $DEBUG);
52 mbroquet 3730
53     if ($maj > 1){
54     //Traitement des données pour l'affichage du select
55     $temp = $this->val[array_search('type_consultation', array_keys($form->val))];
56    
57     if ( strcmp($temp, 'pour_information') == 0 ){
58    
59     $temp = _('Pour information');
60    
61     }elseif( strcmp($temp, 'avec_avis_attendu') == 0 ) {
62    
63     $temp = _('Avec avis attendu');
64    
65     }elseif( strcmp($temp, 'pour_conformite') == 0 ) {
66    
67     $temp = _('Pour conformite');
68    
69     }
70    
71     $form->setVal('type_consultation', $temp);
72     }
73     }
74    
75     function setLib(&$form,$maj) {
76     //
77     parent::setLib($form, $maj);
78     $form->setLib("edition",_("type d'edition de la consultation"));
79     }
80 nhaye 5254
81     }
82    
83 softime 7996

Properties

Name Value
svn:keywords "Id"

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26