'; foreach ($errors[$name] as $error) { $html .= '
  • '.escape($error).'
  • '; } $html .= ''; } return $html; } function form_value($values, $name) { if (isset($values->$name)) { return 'value="'.escape($values->$name).'"'; } return isset($values[$name]) ? 'value="'.escape($values[$name]).'"' : ''; } function form_hidden($name, $values = array()) { return ''; } function form_default_select($name, array $options, $values = array(), array $errors = array(), $class = '') { $options = array('' => '?') + $options; return form_select($name, $options, $values, $errors, $class); } function form_select($name, array $options, $values = array(), array $errors = array(), $class = '') { $html = ''; $html .= error_list($errors, $name); return $html; } function form_label($label, $name, $class = '') { return ''; } function form_text($name, $values = array(), array $errors = array(), array $attributes = array(), $class = '') { $class .= error_class($errors, $name); $html = ''; $html .= error_list($errors, $name); return $html; } function form_password($name, $values = array(), array $errors = array(), array $attributes = array(), $class = '') { $class .= error_class($errors, $name); $html = ''; $html .= error_list($errors, $name); return $html; } function form_textarea($name, $values = array(), array $errors = array(), array $attributes = array(), $class = '') { $class .= error_class($errors, $name); $html = ''; $html .= error_list($errors, $name); return $html; }