Ordog23

Untitled

Jan 31st, 2013
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.97 KB | None | 0 0
  1.  $this->login_fs = Fieldset::forge();
  2.             $this->login_fs->add('email', '', array(
  3.                 'placeholder' => 'E-Mail',
  4.                 'type' => 'text',
  5.                 'id' => 'email',
  6.                 'name' => 'email'
  7.                     ), array(array('required'), array('valid_email'))
  8.             );
  9.             $this->login_fs->add('password', '', array(
  10.                 'placeholder' => 'Password',
  11.                 'type' => 'password',
  12.                 'id' => 'password',
  13.                 'name' => 'password'
  14.                     ), array(array('required'), array('max_length', array(100)))
  15.             );
  16.             $this->login_fs->add('log_submit', '', array(
  17.                 'type' => 'submit',
  18.                 'value' => 'Sign in'
  19.                     ), array(array('required'), array('max_length', array(100)))
  20.             );
  21.               $this->reg_fs = Fieldset::forge();
  22.             $this->reg_fs->add('reg_email', '', array(
  23.                 'placeholder' => 'E-Mail',
  24.                 'type' => 'text',
  25.                 'id' => 'email',
  26.                 'name' => 'email'
  27.                     ), array(array('required'), array('valid_email'))
  28.             );
  29.             $this->reg_fs->add('reg_password', '', array(
  30.                 'placeholder' => 'Password',
  31.                 'type' => 'password',
  32.                 'id' => 'password',
  33.                 'name' => 'password1'
  34.                     ), array(array('required'), array('max_length', array(100)))
  35.             );
  36.             $this->reg_fs->add('reg_password2', '', array(
  37.                 'placeholder' => 'Repeat',
  38.                 'type' => 'password',
  39.                 'id' => 'password',
  40.                 'name' => 'password2'
  41.                     ), array(array('required'), array('max_length', array(100)))
  42.             );
  43.             $this->reg_fs->add('reg_submit', '', array(
  44.                 'type' => 'submit',
  45.                 'value' => 'Sign in'
  46.                     )
  47.             );
Advertisement
Add Comment
Please, Sign In to add comment