示例#1
0
 public function addControlColumn()
 {
     return $this->createColumn('ctrl', Type::create('String'), self::EMPTY_LABEL, array(), function (Entity $entity) {
         return \Psc\UI\fHTML::checkbox('egp-ctrl[]', FALSE, $entity->getIdentifier())->addClass('\\Psc\\identifier-checkbox');
     });
 }
示例#2
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;
 }
示例#3
0
 public function getInnerHTML()
 {
     $ta = fHTML::textarea($this->getFormName(), $this->getFormValue(), array('class' => array('textarea', 'ui-widget-content', 'ui-corner-all')))->setAttribute('cols', 102)->setAttribute('rows', 6)->setStyle('width', '90%');
     f::attachLabel($ta, $this->getFormLabel());
     return $ta;
 }
示例#4
0
文件: Form.php 项目: pscheit/psc-cms
 public static function hidden($name, $value = '', $id = NULL)
 {
     list($label, $name, $id) = self::expand(NULL, $name, $id);
     return fHTML::hidden($name, $value)->setAttribute('id', $id);
 }