示例#1
0
文件: Submit.php 项目: dalu/widget
 public function init()
 {
     $this->content = HTML::openTag('button', ['type' => 'submit', 'name' => $this->owner . '_submit']);
     $this->content .= $this->label;
     $this->content .= HTML::closeTag('button');
     return $this;
 }
示例#2
0
 public function __construct($action, $method, $enctype = 'application/x-www-form-urlencoded')
 {
     $this->header = HTML::openTag('form', ['action' => $action, 'method' => $method, 'enctype' => $enctype]);
     $this->footer = HTML::closeTag('form');
     $this->form = new Form('signup');
     $this->form->add(new Text('username'));
     $this->form->add(new Password());
     $this->form->add(new Submit('Sign Up'));
 }