diff options
| author | Simon | 2011-01-31 10:41:11 +0100 |
|---|---|---|
| committer | Simon | 2011-01-31 10:41:11 +0100 |
| commit | 3bb5c88b7c1df8e7694fa7ae0559f9dbaff7bc4c (patch) | |
| tree | b9017b4fa4d9a1af37788f5769da2cc69e0e0fec /application/forms/AuthLogin.php | |
| parent | Merge branch 'master' of openslx.org:lsfks/master-teamprojekt/pbs2 (diff) | |
| download | pbs2-3bb5c88b7c1df8e7694fa7ae0559f9dbaff7bc4c.tar.gz pbs2-3bb5c88b7c1df8e7694fa7ae0559f9dbaff7bc4c.tar.xz pbs2-3bb5c88b7c1df8e7694fa7ae0559f9dbaff7bc4c.zip | |
AuthLogin Formular hinzugefügt
Diffstat (limited to 'application/forms/AuthLogin.php')
| -rw-r--r-- | application/forms/AuthLogin.php | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/application/forms/AuthLogin.php b/application/forms/AuthLogin.php new file mode 100644 index 0000000..a5b872b --- /dev/null +++ b/application/forms/AuthLogin.php @@ -0,0 +1,38 @@ +<?php + +class Application_Form_AuthLogin extends Zend_Form +{ + + public function init() + { + $this->setName("Login"); + $this->setMethod('post'); + + $this->addElement('text', 'email', array( + 'filters' => array('StringTrim', 'StringToLower'), + 'validators' => array( + array('StringLength', false, array(0, 50)), + ), + 'required' => true, + 'label' => 'E-Mail:', + )); + + $this->addElement('password', 'password', array( + 'filters' => array('StringTrim'), + 'validators' => array( + array('StringLength', false, array(0, 50)), + ), + 'required' => true, + 'label' => 'Password:', + )); + + $this->addElement('submit', 'login', array( + 'required' => false, + 'ignore' => true, + 'label' => 'Login', + )); + } + + +} + |
