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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 407 - (hide annotations)
Thu Sep 20 16:39:06 2012 UTC (12 years, 4 months ago) by nhaye
File size: 853 byte(s)
Régénération et suppression de surcharges suite à la maj OM 4.3.0

1 fraynaud 168 <?php
2     //$Id$
3 fraynaud 170 //gen openMairie le 04/10/2011 17:45
4 fraynaud 168 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 fraynaud 170 function setType(&$form,$maj) {
13     parent :: setType($form,$maj);
14     if ($maj < 2) { //ajouter et modifier
15     $form->setType('sitadel', 'checkbox');
16     $form->setType('actif', 'checkbox');
17 fraynaud 195 $form->setType('type_champ', 'select');
18 fraynaud 170 }
19     }
20    
21    
22 fraynaud 195 function setSelect(&$form, $maj,&$db,$debug) {
23     parent:: setSelect($form, $maj,$db,$debug) ;
24     $contenu=array();
25     $contenu[0]=array('text','numeric','select');
26     $contenu[1]=array('text','numeric','select');
27     $form->setSelect("type_champ",$contenu);
28     }
29 fraynaud 168 }// fin classe
30     ?>

Properties

Name Value
svn:executable *

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26