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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3513 - (hide annotations)
Wed Jun 24 16:30:11 2015 UTC (9 years, 7 months ago) by softime
File size: 2278 byte(s)
* Amélioration - Le délai sur les services peut désormais être défini en jour.
1 fraynaud 3 <?php
2     //$Id$
3     //gen openMairie le 10/02/2011 20:36
4     require_once ("../gen/obj/service.class.php");
5    
6     class service extends service_gen {
7    
8 fraynaud 10 function service($id,&$db,$debug) {
9     $this->constructeur($id,$db,$debug);
10     }// fin constructeur
11    
12     function setType(&$form,$maj) {
13     parent::setType($form,$maj);
14     if ($maj < 2) {
15 vpihour 502 $form->setType('type_consultation', 'select');
16 vpihour 2621 $form->setType('edition', 'select');
17 softime 3513 $form->setType('delai_type', 'select');
18 fraynaud 10 }
19     }
20 fraynaud 3
21 fraynaud 10 function setSelect(&$form, $maj,$db,$debug) {
22 vpihour 555 parent::setSelect($form, $maj, $db, $debug) ;
23 softime 3513
24 fraynaud 10 $contenu=array();
25 nhaye 2316
26     $contenu[0]=array(
27     'avec_avis_attendu',
28     'pour_conformite',
29     'pour_information',
30     );
31    
32     $contenu[1]=array(
33     _('Avec avis attendu'),
34     _('Pour conformite'),
35     _('Pour information'),
36    
37     );
38 vpihour 502 $form->setSelect("type_consultation",$contenu);
39 softime 3513
40     //
41     $contenu = array();
42     $contenu[0] = array('mois','jour');
43     $contenu[1] = array(_('mois'), _('jour'));
44     $form->setSelect("delai_type", $contenu);
45 fraynaud 10 }
46 vpihour 502
47     function setVal(&$form,$maj,$validation){
48 fraynaud 10
49 softime 3513 if (($maj == 0 || $maj == 1) && $validation == 0) {
50     $form->setVal('om_collectivite', $_SESSION['collectivite']);
51     }
52    
53 vpihour 502 if ($maj > 1){
54 vpihour 507 //Traitement des données pour l'affichage du select
55 vpihour 502 $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 nhaye 579 $temp = _('Pour conformite');
68 vpihour 502
69     }
70    
71     $form->setVal('type_consultation', $temp);
72     }
73     }
74    
75 vpihour 2631 function setLib(&$form,$maj) {
76     //
77     parent::setLib($form, $maj);
78     $form->setLib("edition",_("type d'edition de la consultation"));
79     }
80 fraynaud 3 }// fin classe
81     ?>

Properties

Name Value
svn:keywords Id

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26