From 90daca1a5ec239dfb7f44e54f1c22cf299181143 Mon Sep 17 00:00:00 2001 From: Simon Date: Tue, 8 Mar 2011 16:40:30 +0100 Subject: create, edit, delete session - fehlt noch mit selectboxen && sql-data abgeändert --- application/forms/Session.php | 70 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 application/forms/Session.php (limited to 'application/forms/Session.php') 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 @@ +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', + )); + } + + +} + -- cgit v1.2.3-55-g7522