/** * */ function option($value, $caption = NULL, $selected = NULL) { $result = ' <option' . Form::attribute("value", $value); if ($value == $selected) { $result .= ' selected'; } if ($caption == NULL) { $caption = $value; } $result .= '>' . $caption . "</option>\n"; return $result; }
function _tipAttributes($tip) { if (USE_OVERLIB && $tip != NULL) { return Form::attribute("onmouseover", "return overlib('" . str_replace("'", "\\'", $tip) . "');") . Form::attribute("onmouseout", "return nd();"); } }