<?php
//$Id$
//gen openMairie le 18/10/2011 11:58
require_once ("../obj/inhumation.class.php");

class inhumation_terraincommunal extends inhumation {

    //var $db;
    var $categorie= 'inhumation';

    function inhumation_terraincommunal($id,&$db,$DEBUG) {
        $this->constructeur($id,$db,$DEBUG);
    }

    function setSelect(&$form, $maj,&$db,$debug) {
        parent::setSelect($form, $maj,$db,$debug);
        if($maj<2){
            $contenu="";
            $contenu[0][0]="emplacement";
            $contenu[0][1]="emplacement";
            $contenu[1][0]="famille";
            $contenu[1][1]="famille";
            $contenu[2][0]="nature";
            $contenu[2][1]="terraincommunal";
            $form->setSelect("emplacement",$contenu);

            $contenu="";
            $contenu[0][0]="emplacement";
            $contenu[0][1]="famille";
            $contenu[1][0]="emplacement";
            $contenu[1][1]="emplacement";
            $contenu[2][0]="nature";
            $contenu[2][1]="terraincommunal";
            $form->setSelect("famille",$contenu);

            //nature
            $contenu=array();
            $contenu[0]=array('cercueil','zinc');
            $contenu[1]=array(_('cercueil'),_("cercueil_zinc"));
            $form->setSelect("defunt_nature",$contenu);
        }
    }

}// fin classe
?>