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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 402 - (show annotations)
Thu Sep 20 14:36:44 2012 UTC (12 years, 4 months ago) by nhaye
File size: 1698 byte(s)
Ajout de champs obligatoire sur la table bible,
régénération et suppression de surcharge

1 <?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 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 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
48 }// fin classe
49 ?>

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26