1 |
fraynaud |
3 |
<?php |
2 |
|
|
//$Id$ |
3 |
|
|
//gen openMairie le 10/02/2011 20:30 |
4 |
|
|
require_once ("../gen/obj/architecte.class.php"); |
5 |
|
|
|
6 |
|
|
class architecte extends architecte_gen { |
7 |
|
|
|
8 |
fraynaud |
4 |
function architecte($id,&$db,$debug) { |
9 |
|
|
$this->constructeur($id,$db,$debug); |
10 |
|
|
}// fin constructeur |
11 |
fraynaud |
3 |
|
12 |
fraynaud |
4 |
function setType(&$form,$maj) { |
13 |
|
|
parent::setType($form,$maj); |
14 |
|
|
if ($maj < 2) { //ajouter et modifier [add and modify] |
15 |
|
|
$form->setType('email', 'mail'); |
16 |
|
|
} |
17 |
|
|
} |
18 |
|
|
|
19 |
|
|
function setOnchange(&$form,$maj){ |
20 |
|
|
parent::setOnchange($form,$maj); |
21 |
|
|
// mise en majuscule [capital letter] |
22 |
|
|
$form->setOnchange("nom","this.value=this.value.toUpperCase()"); |
23 |
|
|
$form->setOnchange("prenom","this.value=this.value.toUpperCase()"); |
24 |
|
|
$form->setOnchange("ville","this.value=this.value.toUpperCase()"); |
25 |
|
|
$form->setOnchange("pays","this.value=this.value.toUpperCase()"); |
26 |
|
|
} |
27 |
|
|
|
28 |
|
|
function setMax(&$form,$maj){ |
29 |
|
|
$form->setMax('nom', 40); |
30 |
|
|
$form->setMax('prenom', 40); |
31 |
|
|
$form->setMax('adresse1', 40); |
32 |
|
|
$form->setMax('adresse2', 40); |
33 |
|
|
$form->setMax('cp', 5); |
34 |
|
|
$form->setMax('ville', 40); |
35 |
|
|
$form->setMax('pays', 40); |
36 |
|
|
$form->setMax('inscription', 20); |
37 |
|
|
$form->setMax('telephone', 14); |
38 |
|
|
$form->setMax('fax', 14); |
39 |
|
|
$form->setMax('email', 40); |
40 |
|
|
$form->setMax('note', 5); |
41 |
|
|
} |
42 |
|
|
|
43 |
|
|
function setTaille(&$form,$maj){ |
44 |
|
|
$form->setTaille('nom', 40); |
45 |
|
|
$form->setTaille('prenom', 40); |
46 |
|
|
$form->setTaille('adresse1', 40); |
47 |
|
|
$form->setTaille('adresse2', 40); |
48 |
|
|
$form->setTaille('cp', 5); |
49 |
|
|
$form->setTaille('ville', 40); |
50 |
|
|
$form->setTaille('pays', 40); |
51 |
|
|
$form->setTaille('inscription', 20); |
52 |
|
|
$form->setTaille('email', 40); |
53 |
|
|
$form->setTaille('note', 70); |
54 |
|
|
$form->setTaille('telephone', 16); |
55 |
|
|
$form->setTaille('fax', 16); |
56 |
|
|
} |
57 |
|
|
|
58 |
|
|
|
59 |
fraynaud |
3 |
}// fin classe |
60 |
|
|
?> |