1 |
mbroquet |
3730 |
<?php |
2 |
nhaye |
5254 |
/** |
3 |
|
|
* DBFORM - 'bible' - Surcharge gen. |
4 |
|
|
* |
5 |
|
|
* Ce script permet de définir la classe 'bible'. |
6 |
|
|
* |
7 |
|
|
* @package openads |
8 |
|
|
* @version SVN : $Id$ |
9 |
|
|
*/ |
10 |
mbroquet |
3730 |
|
11 |
nhaye |
5254 |
require_once "../gen/obj/bible.class.php"; |
12 |
|
|
|
13 |
mbroquet |
3730 |
class bible extends bible_gen { |
14 |
|
|
|
15 |
nhaye |
5254 |
/** |
16 |
|
|
* Constructeur. |
17 |
|
|
*/ |
18 |
|
|
function __construct($id, &$dnu1 = null, $dnu2 = null) { |
19 |
|
|
$this->constructeur($id); |
20 |
|
|
} |
21 |
mbroquet |
3730 |
|
22 |
|
|
function setType(&$form,$maj) { |
23 |
|
|
parent::setType($form,$maj); |
24 |
|
|
// En modes "ajouter" et "modifier" |
25 |
|
|
if ($maj == 0 || $maj == 1) { |
26 |
|
|
$form->setType('complement', 'select'); |
27 |
|
|
$form->setType('automatique', 'select'); |
28 |
|
|
} |
29 |
|
|
} |
30 |
|
|
|
31 |
|
|
function setSelect(&$form, $maj,&$db,$debug) { |
32 |
|
|
parent::setSelect($form, $maj,$db,$debug); |
33 |
|
|
// complement |
34 |
|
|
$contenu=array(); |
35 |
|
|
$contenu[0]=array('1','2','3','4','5','6','7','8','9','10','11'); |
36 |
|
|
$contenu[1]=array(_('complement').' 1', |
37 |
|
|
_('complement').' 2', |
38 |
|
|
_('complement').' 3', |
39 |
|
|
_('complement').' 4', |
40 |
|
|
_('complement').' 5', |
41 |
|
|
_('complement').' 6', |
42 |
|
|
_('complement').' 7', |
43 |
|
|
_('complement').' 8', |
44 |
|
|
_('complement').' 9', |
45 |
|
|
_('complement').' 10', |
46 |
|
|
_('complement').' 11', |
47 |
|
|
); |
48 |
|
|
$form->setSelect("complement",$contenu); |
49 |
|
|
// automatique |
50 |
|
|
$contenu=array(); |
51 |
|
|
$contenu[0]=array('Non','Oui'); |
52 |
|
|
$contenu[1]=array(_('Non'),_('Oui')); |
53 |
|
|
$form->setSelect("automatique",$contenu); |
54 |
|
|
} |
55 |
|
|
|
56 |
nhaye |
5254 |
} |
57 |
mbroquet |
3730 |
|
58 |
nhaye |
5254 |
?> |