14 |
if ($maj < 2) { //ajouter et modifier |
if ($maj < 2) { //ajouter et modifier |
15 |
$form->setType('sitadel', 'checkbox'); |
$form->setType('sitadel', 'checkbox'); |
16 |
$form->setType('actif', 'checkbox'); |
$form->setType('actif', 'checkbox'); |
17 |
|
$form->setType('type_champ', 'select'); |
18 |
} |
} |
19 |
} |
} |
20 |
|
|
21 |
|
|
22 |
|
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 |
}// fin classe |
}// fin classe |
30 |
?> |
?> |