<?php
//$Id$ 
//gen openMairie le 10/02/2011 20:30 
require_once ("../gen/obj/bible.class.php");

class bible extends bible_gen {

    function bible($id,&$db,$debug) {
        $this->constructeur($id,$db,$debug);
    }// fin constructeur
    

    function setType(&$form,$maj) {
        parent::setType($form,$maj);
        if ($maj < 2) {
            $form->setType('evenement', 'hiddenstatic');
            $form->setType('complement', 'select');
            $form->setType('automatique', 'select');
        }
    }
    
    function setSelect(&$form, $maj,&$db,$debug) {
        parent::setSelect($form, $maj,$db,$debug);
        // complement
        $contenu=array();
        $contenu[0]=array('1','2','3','4','5','6','7','8','9','10','11');
        $contenu[1]=array($this->lang('complement').' 1',
                          $this->lang('complement').' 2',
                          $this->lang('complement').' 3',
                          $this->lang('complement').' 4',
                          $this->lang('complement').' 5',
                          $this->lang('complement').' 6',
                          $this->lang('complement').' 7',
                          $this->lang('complement').' 8',
                          $this->lang('complement').' 9',
                          $this->lang('complement').' 10',
                          $this->lang('complement').' 11',
                           );
        $form->setSelect("complement",$contenu);
        // automatique
        $contenu=array();
        $contenu[0]=array('Non','Oui');
        $contenu[1]=array($this->lang('Non'),$this->lang('Oui'));
        $form->setSelect("automatique",$contenu);
    }


}// fin classe
?>