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 |
|
|
$form->setType('delai', 'select'); |
16 |
|
|
} |
17 |
|
|
} |
18 |
fraynaud |
3 |
|
19 |
fraynaud |
10 |
function setSelect(&$form, $maj,$db,$debug) { |
20 |
|
|
parent::setSelect($form, $maj,$db,$debug) ; |
21 |
|
|
$contenu=array(); |
22 |
|
|
$contenu[0]=array('0','1','2','3', |
23 |
|
|
'4','5','6', |
24 |
|
|
'7','8','9',' |
25 |
|
|
10','11','12', |
26 |
|
|
'18','24'); |
27 |
|
|
$contenu[1]=array('sans', |
28 |
|
|
'1 '._('mois'), |
29 |
|
|
'2 '._('mois'), |
30 |
|
|
'3 '._('mois'), |
31 |
|
|
'4 '._('mois'), |
32 |
|
|
'5 '._('mois'), |
33 |
|
|
'6 '._('mois'), |
34 |
|
|
'7 '._('mois'), |
35 |
|
|
'8 '._('mois'), |
36 |
|
|
'9 '._('mois'), |
37 |
|
|
'10 '._('mois'), |
38 |
|
|
'11'._('mois'), |
39 |
|
|
'12 '._('mois'), |
40 |
|
|
'18 '._('mois'), |
41 |
|
|
'24 '._('mois') |
42 |
|
|
); |
43 |
|
|
$form->setSelect("delai",$contenu); |
44 |
|
|
} |
45 |
|
|
|
46 |
fraynaud |
3 |
}// fin classe |
47 |
|
|
?> |