コード例 #1
0
ファイル: login.php プロジェクト: naujasdizainas/forkcms
 /**
  * Load the form.
  */
 private function loadForm()
 {
     $this->frm = new FrontendForm('login', null, null, 'loginForm');
     $this->frm->addText('email');
     $this->frm->addPassword('password');
     $this->frm->addCheckbox('remember', true);
 }
コード例 #2
0
 /**
  * Load the form.
  */
 private function loadForm()
 {
     $this->frm = new FrontendForm('updatePassword', null, null, 'updatePasswordForm');
     $this->frm->addPassword('old_password');
     $this->frm->addPassword('new_password', null, null, 'inputText showPasswordInput');
     $this->frm->addCheckbox('show_password');
 }
コード例 #3
0
 /**
  * Load the form.
  */
 private function loadForm()
 {
     $this->frm = new FrontendForm('register', null, null, 'registerForm');
     $this->frm->addText('email');
     $this->frm->addPassword('password', null, null, 'inputText showPasswordInput');
     $this->frm->addCheckbox('show_password');
 }
コード例 #4
0
 /**
  * Load the form.
  *
  * @return	void
  */
 private function loadForm()
 {
     // create the form
     $this->frm = new FrontendForm('resetPassword', null, null, 'resetPasswordForm');
     // create & add elements
     $this->frm->addPassword('password', null, null, 'inputText showPasswordInput');
     $this->frm->addCheckbox('show_password');
 }