5 |
|
|
6 |
class architecte extends architecte_gen { |
class architecte extends architecte_gen { |
7 |
|
|
8 |
function architecte($id,&$db,$debug) { |
function architecte($id,&$db,$debug) { |
9 |
$this->constructeur($id,$db,$debug); |
$this->constructeur($id,$db,$debug); |
10 |
}// fin constructeur |
}// fin constructeur |
11 |
|
|
12 |
|
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 |
}// fin classe |
}// fin classe |
29 |
?> |
?> |