58 |
* @return string - the text associated |
* @return string - the text associated |
59 |
*/ |
*/ |
60 |
function get_value_text($value) { |
function get_value_text($value) { |
61 |
return $this->_text; |
if ($value != NULL) { |
62 |
|
return $this->_text; |
63 |
|
} else { |
64 |
|
return NULL; |
65 |
|
} |
66 |
} |
} |
67 |
|
|
68 |
/** |
/** |
112 |
} |
} |
113 |
|
|
114 |
$attributes = $this->_build_element_attributes(); |
$attributes = $this->_build_element_attributes(); |
115 |
|
unset( $attributes["name"] ); |
116 |
$c = new DIVtag($attributes); |
$c = new DIVtag($attributes); |
117 |
|
|
118 |
$element_name = $this->get_element_name(); |
$element_name = $this->get_element_name(); |
133 |
$checkbox = new INPUTtag($attributes); |
$checkbox = new INPUTtag($attributes); |
134 |
|
|
135 |
$js_action = "javascript:elements['" . $name . "'].checked=!elements['".$name."'].checked;"; |
$js_action = "javascript:elements['" . $name . "'].checked=!elements['".$name."'].checked;"; |
136 |
$a_attributes = array("href" => "#", |
$a_attributes = array("href" => "javascript:void(0)", |
137 |
"onClick" => $js_action); |
"onClick" => $js_action); |
138 |
$a = new Atag($a_attributes, $text, FALSE); |
$a = new Atag($a_attributes, htmlspecialchars($text), FALSE); |
139 |
|
|
140 |
$check = container( $checkbox, $a ); |
$check = container( $checkbox, $a ); |
141 |
$check->set_collapse(); |
$check->set_collapse(); |