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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 7996 - (show annotations)
Fri Jul 20 17:12:33 2018 UTC (6 years, 6 months ago) by softime
File size: 1556 byte(s)
* Merge de la branche d'intégration 4.7.0 vers le trunk

1 <?php
2 /**
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
11 require_once "../gen/obj/bible.class.php";
12
13 class bible extends bible_gen {
14
15 function setType(&$form,$maj) {
16 parent::setType($form,$maj);
17 // En modes "ajouter" et "modifier"
18 if ($maj == 0 || $maj == 1) {
19 $form->setType('complement', 'select');
20 $form->setType('automatique', 'select');
21 }
22 }
23
24 function setSelect(&$form, $maj, &$db = null, $debug = null) {
25 parent::setSelect($form, $maj,$db,$debug);
26 // complement
27 $contenu=array();
28 $contenu[0]=array('1','2','3','4','5','6','7','8','9','10','11');
29 $contenu[1]=array(_('complement').' 1',
30 _('complement').' 2',
31 _('complement').' 3',
32 _('complement').' 4',
33 _('complement').' 5',
34 _('complement').' 6',
35 _('complement').' 7',
36 _('complement').' 8',
37 _('complement').' 9',
38 _('complement').' 10',
39 _('complement').' 11',
40 );
41 $form->setSelect("complement",$contenu);
42 // automatique
43 $contenu=array();
44 $contenu[0]=array('Non','Oui');
45 $contenu[1]=array(_('Non'),_('Oui'));
46 $form->setSelect("automatique",$contenu);
47 }
48
49 }
50
51

Properties

Name Value
svn:keywords "Id"

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26