<?php
//$Id$ 
//gen openMairie le 13/02/2015 17:31

require_once "../core/obj/om_utilisateur.class.php";

class om_utilisateur extends om_utilisateur_core {

    function __construct($id, &$dnu1 = null, $dnu2 = null) {
        $this->constructeur($id);
    }

    function setType(&$form,$maj) {
        parent::setType($form, $maj);
        if ($maj < 2 ) {
			$form->setType("coordinates", "hiddenstatic");
			$form->setType("geom", "hidden");
        }
	}

     function setLayout(&$form, $maj) {
        $form->setFieldset('adresse1','D',' '._('base adresse nationale').' ', "collapsible");    
			$form->setBloc('adresse1','D',_("adresse"),"group");
            $form->setBloc('adresse2','F');
            $form->setBloc('cp','D',_("cp").' | '._("ville"),"group");
            $form->setBloc('ville','F');
        $form->setFieldset('ville','F','');            
        
        $form->setFieldset('coordinates','D',' '._('Geo localisation').' ', "collapsible");
            $form->setBloc('coordinates','D','',"group");
            $form->setBloc('geom','F');
        $form->setFieldset('geom','F','');
    }

     function setLib(&$form, $maj) {
		//libelle des champs
		parent::setLib($form, $maj);
        $form->setLib('adresse1','');
        $form->setLib('adresse2','');
        $form->setLib('cp','');
        $form->setLib('ville','');
        $form->setLib('coordinates',_('Lon-Lat'));
		if ($form->val['geom'] != null ) {
			$form->setLib('geom',_('Position (présente)'));
		}else{
			$form->setLib('geom',_('Position (absente)'));
		}
    }



}

?>
