1 |
fraynaud |
3 |
<?php |
2 |
|
|
//$Id$ |
3 |
|
|
//gen openMairie le 10/02/2011 20:30 |
4 |
|
|
require_once ("../gen/obj/bible.class.php"); |
5 |
|
|
|
6 |
|
|
class bible extends bible_gen { |
7 |
|
|
|
8 |
fraynaud |
4 |
function bible($id,&$db,$debug) { |
9 |
|
|
$this->constructeur($id,$db,$debug); |
10 |
|
|
}// fin constructeur |
11 |
|
|
|
12 |
fraynaud |
3 |
|
13 |
fraynaud |
4 |
function setType(&$form,$maj) { |
14 |
|
|
parent::setType($form,$maj); |
15 |
|
|
if ($maj < 2) { |
16 |
|
|
$form->setType('evenement', 'hiddenstatic'); |
17 |
|
|
$form->setType('complement', 'select'); |
18 |
|
|
$form->setType('automatique', 'select'); |
19 |
|
|
} |
20 |
|
|
} |
21 |
|
|
|
22 |
|
|
function setSelect(&$form, $maj,&$db,$debug) { |
23 |
|
|
parent::setSelect($form, $maj,$db,$debug); |
24 |
|
|
// complement |
25 |
|
|
$contenu=array(); |
26 |
|
|
$contenu[0]=array('1','2','3','4','5','6','7','8','9','10','11'); |
27 |
|
|
$contenu[1]=array($this->lang('complement').' 1', |
28 |
|
|
$this->lang('complement').' 2', |
29 |
|
|
$this->lang('complement').' 3', |
30 |
|
|
$this->lang('complement').' 4', |
31 |
|
|
$this->lang('complement').' 5', |
32 |
|
|
$this->lang('complement').' 6', |
33 |
|
|
$this->lang('complement').' 7', |
34 |
|
|
$this->lang('complement').' 8', |
35 |
|
|
$this->lang('complement').' 9', |
36 |
|
|
$this->lang('complement').' 10', |
37 |
|
|
$this->lang('complement').' 11', |
38 |
|
|
); |
39 |
|
|
$form->setSelect("complement",$contenu); |
40 |
|
|
// automatique |
41 |
|
|
$contenu=array(); |
42 |
|
|
$contenu[0]=array('Non','Oui'); |
43 |
|
|
$contenu[1]=array($this->lang('Non'),$this->lang('Oui')); |
44 |
|
|
$form->setSelect("automatique",$contenu); |
45 |
|
|
} |
46 |
|
|
|
47 |
nhaye |
402 |
|
48 |
fraynaud |
3 |
}// fin classe |
49 |
|
|
?> |