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

class service extends service_gen {

    function service($id,&$db,$debug) {
        $this->constructeur($id,$db,$debug);
    }// fin constructeur
    
    function setType(&$form,$maj) {
        parent::setType($form,$maj);
        if ($maj < 2) {
          $form->setType('delai', 'select');
        }
    }

    function setSelect(&$form, $maj,$db,$debug) {
        parent::setSelect($form, $maj,$db,$debug) ;
        $contenu=array();
        $contenu[0]=array('0','1','2','3',
                          '4','5','6',
                          '7','8','9','
                          10','11','12',
                          '18','24');
        $contenu[1]=array('sans',
                          '1 '._('mois'),
                          '2 '._('mois'),
                          '3 '._('mois'),
                          '4 '._('mois'),
                          '5 '._('mois'),
                          '6 '._('mois'),
                          '7 '._('mois'),
                          '8 '._('mois'),
                          '9 '._('mois'),
                          '10 '._('mois'),
                          '11'._('mois'),
                          '12 '._('mois'),
                          '18 '._('mois'),
                          '24 '._('mois')
                          );
        $form->setSelect("delai",$contenu);
    }

}// fin classe
?>