/[openfoncier]/trunk/obj/parametre.class.php
ViewVC logotype

Contents of /trunk/obj/parametre.class.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 195 - (show annotations)
Fri Oct 14 20:54:31 2011 UTC (13 years, 3 months ago) by fraynaud
File size: 1418 byte(s)
Mise au point du parametrage de sitadel
table parametre



1 <?php
2 //$Id$
3 //gen openMairie le 04/10/2011 17:45
4 require_once ("../gen/obj/parametre.class.php");
5
6 class parametre extends parametre_gen {
7
8 function parametre($id,&$db,$debug) {
9 $this->constructeur($id,$db,$debug);
10 }// fin constructeur
11
12 function setvalF($val){
13 parent::setvalF($val);
14 if(!is_numeric($val['delai'])) unset ($this->valF['delai']);
15 if(!is_numeric($val['longueur_champ'])) unset ($this->valF['longueur_champ']);
16 }
17
18 function setType(&$form,$maj) {
19 parent :: setType($form,$maj);
20 if ($maj < 2) { //ajouter et modifier
21 $form->setType('sitadel', 'checkbox');
22 $form->setType('actif', 'checkbox');
23 $form->setType('type_champ', 'select');
24 }
25 }
26
27 function setMax(&$form,$maj){
28 parent :: setMax($form,$maj);
29 $form->setMax('libelle', 50);
30 $form->setMax('valeur_autorisee', 50);
31 }
32
33 function setTaille(&$form,$maj){
34 parent :: setTaille($form,$maj);
35 $form->setTaille('libelle', 50);
36 $form->setTaille('valeur_autorisee', 50);
37 }
38
39 function setSelect(&$form, $maj,&$db,$debug) {
40 parent:: setSelect($form, $maj,$db,$debug) ;
41 $contenu=array();
42 $contenu[0]=array('text','numeric','select');
43 $contenu[1]=array('text','numeric','select');
44 $form->setSelect("type_champ",$contenu);
45 }
46 }// fin classe
47 ?>

Properties

Name Value
svn:executable *

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26