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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3730 - (show annotations)
Fri Mar 18 11:50:26 2016 UTC (8 years, 10 months ago) by mbroquet
File size: 1622 byte(s)
Actualisation du trunk
1 <?php
2 //$Id: bible.class.php 5182 2015-09-22 16:00:44Z nmeucci $
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 function bible($id,&$db,$debug) {
9 $this->constructeur($id,$db,$debug);
10 }// fin constructeur
11
12
13 function setType(&$form,$maj) {
14 parent::setType($form,$maj);
15 // En modes "ajouter" et "modifier"
16 if ($maj == 0 || $maj == 1) {
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(_('complement').' 1',
28 _('complement').' 2',
29 _('complement').' 3',
30 _('complement').' 4',
31 _('complement').' 5',
32 _('complement').' 6',
33 _('complement').' 7',
34 _('complement').' 8',
35 _('complement').' 9',
36 _('complement').' 10',
37 _('complement').' 11',
38 );
39 $form->setSelect("complement",$contenu);
40 // automatique
41 $contenu=array();
42 $contenu[0]=array('Non','Oui');
43 $contenu[1]=array(_('Non'),_('Oui'));
44 $form->setSelect("automatique",$contenu);
45 }
46
47
48 }// fin classe
49 ?>

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26