public static function select($name, $options = array(), $selected = null, $attributes = array())
{
$attributes['name'] = $name;
$html = array();
foreach ($options as $value => $display) {
if (is_array($display)) {
$html[] = static::optgroup($display, $value, $selected);
} else {
$html[] = static::option($value, $display, $selected);
}
}
return Html::element('select', implode('', $html), $attributes);
}