tag containing all the appropriate tags, with tags around the tags as required */ function Field() { if($extraClass = trim($this->extraClass())) { $classAttr = "class=\"$extraClass\""; } foreach($this->source as $value => $title) { if(is_array($title)) { $options .= ""; foreach($title as $value2 => $title2) { $selected = $value2 == $this->value ? " selected=\"selected\"" : ""; $options .= "$title2"; } $options .= ""; } else { // Fall back to the standard dropdown field $selected = $value == $this->value ? " selected=\"selected\"" : ""; $options .= "$title"; } } $id = $this->id(); return "name\" id=\"$id\">$options"; } } ?>