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=" ! "; |
15 |
fraynaud |
116 |
$imgv="<img src='../app/img/punaise.png' style='vertical-align:middle' hspace='2' border='0'>"; |
16 |
fraynaud |
4 |
if ($this->valF['contenu']==""){ |
17 |
|
|
$this->correct=false; |
18 |
|
|
$this->msg= $this->msg.$imgv. |
19 |
fraynaud |
8 |
_("contenu")." ". |
20 |
|
|
_("obligatoire").$f; |
21 |
fraynaud |
4 |
} |
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 |
|
|
} |
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 |
fraynaud |
3 |
}// fin classe |
60 |
|
|
?> |