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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 147 - (show annotations)
Wed Sep 28 20:10:23 2011 UTC (13 years, 4 months ago) by fraynaud
File size: 1159 byte(s)
mise a niveau gestion sig independante


1 <?php
2 //$Id$
3 //gen openMairie le 28/09/2011 19:43
4 require_once ("../gen/obj/parcelle_lot.class.php");
5
6 class parcelle_lot extends parcelle_lot_gen {
7
8 function parcelle_lot($id,&$db,$debug) {
9 $this->constructeur($id,$db,$debug);
10 }// fin constructeur
11
12 function setvalF($val){
13 parent::setvalF($val);
14 // enlever les valeurs a ne pas saisir
15 unset ($this->valF['geom']);
16 // colone numerique
17 if(!is_numeric($val['surface'])) unset ($this->valF['surface']);
18 }
19
20 function setType(&$form,$maj) {
21 parent::setType($form,$maj);
22 if ($maj < 2) { //ajouter et modifier
23 $form->setType('geom', 'hidden');
24 }
25 }
26
27 function setTaille(&$form, $maj) {
28 $form->setTaille('numero',16);
29 $form->setTaille('lotissement',50);
30 }
31
32 function setMax(&$form, $maj) {
33 $form->setMax('numero',20);
34 $form->setMax('lotissement',50);
35 }
36
37 function setOnchange(&$form,$maj){
38 parent::setOnchange($form,$maj);
39 // mise en majuscule
40 $form->setOnchange("lotissement","this.value=this.value.toUpperCase()");
41 }
42
43 }// fin classe
44 ?>

Properties

Name Value
svn:executable *

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26