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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 6 - (hide annotations)
Sun Feb 13 21:52:57 2011 UTC (13 years, 11 months ago) by fraynaud
File size: 2355 byte(s)
upgrade 3.00


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     function verifier($val,&$db,$DEBUG) {
13     parent::verifier($val,$db,$DEBUG);
14     $f="&nbsp!&nbsp;&nbsp;&nbsp;&nbsp;";
15     $imgv="<img src='../img/punaise.png' style='vertical-align:middle' hspace='2' border='0'>";
16     if ($this->valF['contenu']==""){
17     $this->correct=false;
18     $this->msg= $this->msg.$imgv.
19     $this->lang("contenu")."&nbsp;".
20     $this->lang("obligatoire").$f;
21     }
22     }
23 fraynaud 3
24 fraynaud 4 function setType(&$form,$maj) {
25     parent::setType($form,$maj);
26     if ($maj < 2) {
27     $form->setType('evenement', 'hiddenstatic');
28     $form->setType('complement', 'select');
29     $form->setType('automatique', 'select');
30 fraynaud 6 $form->setType('service', 'hidden');
31 fraynaud 4 if ($maj==1){
32     $form->setType('bible', 'hiddenstatic');
33     }else
34     $form->setType('bible', 'hidden');
35     }
36     }
37    
38     function setSelect(&$form, $maj,&$db,$debug) {
39     parent::setSelect($form, $maj,$db,$debug);
40     // complement
41     $contenu=array();
42     $contenu[0]=array('1','2','3','4','5','6','7','8','9','10','11');
43     $contenu[1]=array($this->lang('complement').' 1',
44     $this->lang('complement').' 2',
45     $this->lang('complement').' 3',
46     $this->lang('complement').' 4',
47     $this->lang('complement').' 5',
48     $this->lang('complement').' 6',
49     $this->lang('complement').' 7',
50     $this->lang('complement').' 8',
51     $this->lang('complement').' 9',
52     $this->lang('complement').' 10',
53     $this->lang('complement').' 11',
54     );
55     $form->setSelect("complement",$contenu);
56     // automatique
57     $contenu=array();
58     $contenu[0]=array('Non','Oui');
59     $contenu[1]=array($this->lang('Non'),$this->lang('Oui'));
60     $form->setSelect("automatique",$contenu);
61     }
62    
63    
64 fraynaud 3 }// fin classe
65     ?>

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26