diff options
| author | Simon | 2011-03-08 16:40:30 +0100 |
|---|---|---|
| committer | Simon | 2011-03-08 16:40:30 +0100 |
| commit | 90daca1a5ec239dfb7f44e54f1c22cf299181143 (patch) | |
| tree | a8e91fd36e90e8a5dcedfcaeaa92099b5ca962f8 /application/forms/Session.php | |
| parent | session hinzugefügt (diff) | |
| download | pbs2-90daca1a5ec239dfb7f44e54f1c22cf299181143.tar.gz pbs2-90daca1a5ec239dfb7f44e54f1c22cf299181143.tar.xz pbs2-90daca1a5ec239dfb7f44e54f1c22cf299181143.zip | |
create, edit, delete session - fehlt noch mit selectboxen && sql-data abgeändert
Diffstat (limited to 'application/forms/Session.php')
| -rw-r--r-- | application/forms/Session.php | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/application/forms/Session.php b/application/forms/Session.php new file mode 100644 index 0000000..f094676 --- /dev/null +++ b/application/forms/Session.php @@ -0,0 +1,70 @@ +<?php + +class Application_Form_Session extends Zend_Form +{ + + public function init() + { + $this->setName("session"); + $this->setMethod('post'); + + $this->addElement('text', 'clientID', array( + 'filters' => array('StringTrim'), + 'validators' => array( + array('StringLength', false, array(0, 50)), + ), + 'required' => true, + 'label' => 'clientID:', + )); + + $this->addElement('text', 'bootosID', array( + 'filters' => array('StringTrim'), + 'validators' => array( + array('StringLength', false, array(0, 50)), + ), + 'required' => true, + 'label' => 'bootosID:', + )); +$this->addElement('text', 'bootisoID', array( + 'filters' => array('StringTrim'), + 'validators' => array( + array('StringLength', false, array(0, 50)), + ), + 'required' => true, + 'label' => 'bootisoID:', + )); +$this->addElement('text', 'time', array( + 'filters' => array('StringTrim'), + 'validators' => array( + array('StringLength', false, array(0, 50)), + ), + 'required' => true, + 'label' => 'time:', + )); +$this->addElement('text', 'ip', array( + 'filters' => array('StringTrim'), + 'validators' => array( + array('StringLength', false, array(0, 50)), + ), + 'required' => false, + 'label' => 'ip:', + )); +$this->addElement('text', 'ip6', array( + 'filters' => array('StringTrim'), + 'validators' => array( + array('StringLength', false, array(0, 50)), + ), + 'required' => false, + 'label' => 'ip6:', + )); + + $this->addElement('submit', 'add', array( + 'required' => false, + 'ignore' => true, + 'label' => 'Save', + )); + } + + +} + |
