9 |
$this->constructeur($id,$db,$debug); |
$this->constructeur($id,$db,$debug); |
10 |
}// fin constructeur |
}// fin constructeur |
11 |
|
|
|
function verifier($val,&$db,$DEBUG) { |
|
|
parent::verifier($val,$db,$DEBUG); |
|
|
$f=" ! "; |
|
|
$imgv="<img src='../img/punaise.png' style='vertical-align:middle' hspace='2' border='0'>"; |
|
|
if ($this->valF['contenu']==""){ |
|
|
$this->correct=false; |
|
|
$this->msg= $this->msg.$imgv. |
|
|
$this->lang("contenu")." ". |
|
|
$this->lang("obligatoire").$f; |
|
|
} |
|
|
} |
|
12 |
|
|
13 |
function setType(&$form,$maj) { |
function setType(&$form,$maj) { |
14 |
parent::setType($form,$maj); |
parent::setType($form,$maj); |
16 |
$form->setType('evenement', 'hiddenstatic'); |
$form->setType('evenement', 'hiddenstatic'); |
17 |
$form->setType('complement', 'select'); |
$form->setType('complement', 'select'); |
18 |
$form->setType('automatique', 'select'); |
$form->setType('automatique', 'select'); |
|
$form->setType('service', 'hidden'); |
|
|
if ($maj==1){ |
|
|
$form->setType('bible', 'hiddenstatic'); |
|
|
}else |
|
|
$form->setType('bible', 'hidden'); |
|
19 |
} |
} |
20 |
} |
} |
21 |
|
|