<?php
//$Id$ 
//gen openMairie le 10/05/2013 09:23

require_once ("../gen/obj/elu.class.php");

class elu extends elu_gen {

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

    function setVal(&$form,$maj,$validation){
        if ($validation==0) {
            if ($maj == 0){
              include ("../dyn/var.inc");
              $form->setVal('cp', $client_cp);
              $form->setVal('ville', $client_ville);
            }
        }
    }
    
    function setOnchange(&$form,$maj){
        parent::setOnchange($form, $maj);
        $form->setOnchange("nom","this.value=this.value.toUpperCase()");
        $form->setOnchange("ville","this.value=this.value.toUpperCase()");
    }
    

}// fin classe
?>