public function getInnerHTML() { $select = fHTML::select($this->getFormName(), $this->getValuesWithLabel(), $this->getFormValue(), array('class' => array('text', 'ui-widget-content', 'ui-corner-all'))); \Psc\UI\Form::attachLabel($select, $this->getFormLabel()); return $select; }
public static function select($label, $name, $values, $selected = NULL, $id = NULL) { list($label, $name, $id) = self::expand($label, $name, $id); // deprecated if ($selected instanceof \Psc\CMS\TabsContentItem) { list($type, $selected) = $selected->getTabsId(); } $select = fHTML::select($name, $values, $selected, array('class' => array('text', 'ui-widget-content', 'ui-corner-all'), 'id' => $id)); self::attachLabel($select, $label); return $select; }