Example #1
0
 /**
  * 
  */
 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;
 }
Example #2
0
 function _tipAttributes($tip)
 {
     if (USE_OVERLIB && $tip != NULL) {
         return Form::attribute("onmouseover", "return overlib('" . str_replace("'", "\\'", $tip) . "');") . Form::attribute("onmouseout", "return nd();");
     }
 }