summaryrefslogtreecommitdiffstats
path: root/application/forms/Session.php
diff options
context:
space:
mode:
Diffstat (limited to 'application/forms/Session.php')
-rw-r--r--application/forms/Session.php70
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',
+ ));
+ }
+
+
+}
+