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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 116 - (show annotations)
Fri Sep 2 08:43:32 2011 UTC (13 years, 5 months ago) by fraynaud
File size: 2147 byte(s)
remplacement image app et om-css



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 function verifier($val,&$db,$DEBUG) {
13 parent::verifier($val,$db,$DEBUG);
14 $f="&nbsp!&nbsp;&nbsp;&nbsp;&nbsp;";
15 $imgv="<img src='../app/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 _("contenu")."&nbsp;".
20 _("obligatoire").$f;
21 }
22 }
23
24 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 }
31 }
32
33 function setSelect(&$form, $maj,&$db,$debug) {
34 parent::setSelect($form, $maj,$db,$debug);
35 // complement
36 $contenu=array();
37 $contenu[0]=array('1','2','3','4','5','6','7','8','9','10','11');
38 $contenu[1]=array($this->lang('complement').' 1',
39 $this->lang('complement').' 2',
40 $this->lang('complement').' 3',
41 $this->lang('complement').' 4',
42 $this->lang('complement').' 5',
43 $this->lang('complement').' 6',
44 $this->lang('complement').' 7',
45 $this->lang('complement').' 8',
46 $this->lang('complement').' 9',
47 $this->lang('complement').' 10',
48 $this->lang('complement').' 11',
49 );
50 $form->setSelect("complement",$contenu);
51 // automatique
52 $contenu=array();
53 $contenu[0]=array('Non','Oui');
54 $contenu[1]=array($this->lang('Non'),$this->lang('Oui'));
55 $form->setSelect("automatique",$contenu);
56 }
57
58
59 }// fin classe
60 ?>

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26