*/
class LSformElement_select extends LSformElement {
/*
* Affiche l'élément
*
* Cette méthode affiche l'élement
*
* @retval void
*/
function display(){
echo "\t
\n";
$this -> displayLabel();
// value
if (!$this -> isFreeze()) {
echo "\t\t\n";
echo "\t\t\t\n";
echo "\t\t | \n";
}
else {
echo "\t\t\n";
echo "\t\t\t\n";
foreach ($params['possible_values'] as $choice_value => $choice_text) {
if (in_array($choice_value, $this -> value)) {
echo "- $choice_text
";
}
else {
echo "- $choice_text
";
}
}
echo "\t\t\t \n";
echo "\t\t | \n";
}
echo "\t
\n";
}
}
?>