/[openfoncier]/branches/3.14.x/obj/bible.class.php
ViewVC logotype

Annotation of /branches/3.14.x/obj/bible.class.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3651 - (hide annotations)
Tue Sep 22 16:01:56 2015 UTC (9 years, 4 months ago) by nmeucci
File size: 1570 byte(s)
Correction : lorsque l'on créait/modifiait une bible on ne pouvait pas la lier à un événement d'instruction.

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 nmeucci 3651 // En modes "ajouter" et "modifier"
16     if ($maj == 0 || $maj == 1) {
17 fraynaud 4 $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 fmichon 3177 $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 fraynaud 4 );
39     $form->setSelect("complement",$contenu);
40     // automatique
41     $contenu=array();
42     $contenu[0]=array('Non','Oui');
43 fmichon 3177 $contenu[1]=array(_('Non'),_('Oui'));
44 fraynaud 4 $form->setSelect("automatique",$contenu);
45     }
46    
47 nhaye 402
48 fraynaud 3 }// fin classe
49     ?>

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26