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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3513 - (show 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 <?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 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 $form->setType('type_consultation', 'select');
16 $form->setType('edition', 'select');
17 $form->setType('delai_type', 'select');
18 }
19 }
20
21 function setSelect(&$form, $maj,$db,$debug) {
22 parent::setSelect($form, $maj, $db, $debug) ;
23
24 $contenu=array();
25
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 $form->setSelect("type_consultation",$contenu);
39
40 //
41 $contenu = array();
42 $contenu[0] = array('mois','jour');
43 $contenu[1] = array(_('mois'), _('jour'));
44 $form->setSelect("delai_type", $contenu);
45 }
46
47 function setVal(&$form,$maj,$validation){
48
49 if (($maj == 0 || $maj == 1) && $validation == 0) {
50 $form->setVal('om_collectivite', $_SESSION['collectivite']);
51 }
52
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 }// fin classe
81 ?>

Properties

Name Value
svn:keywords Id

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26