示例#1
0
 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;
 }
示例#2
0
文件: Form.php 项目: pscheit/psc-cms
 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;
 }