summaryrefslogtreecommitdiffstats
path: root/application/forms
diff options
context:
space:
mode:
authormichael pereira2011-03-08 19:41:07 +0100
committermichael pereira2011-03-08 19:41:07 +0100
commit6a917fa16d4aabd8e69e1db08867899c860424e1 (patch)
tree5aee03f6bf1810ec340110df55fd1edacf44f592 /application/forms
parentBootOs Name anzeigen & Reihenfolge im BootMenu (diff)
parentansehnlichere oberfläche && Controller auflistung (diff)
downloadpbs2-6a917fa16d4aabd8e69e1db08867899c860424e1.tar.gz
pbs2-6a917fa16d4aabd8e69e1db08867899c860424e1.tar.xz
pbs2-6a917fa16d4aabd8e69e1db08867899c860424e1.zip
Merge branch 'master' of openslx.org:lsfks/master-teamprojekt/pbs2
Diffstat (limited to 'application/forms')
-rw-r--r--application/forms/FilterAdd.php10
-rw-r--r--application/forms/Session.php70
2 files changed, 79 insertions, 1 deletions
diff --git a/application/forms/FilterAdd.php b/application/forms/FilterAdd.php
index 931bfee..af4f9b2 100644
--- a/application/forms/FilterAdd.php
+++ b/application/forms/FilterAdd.php
@@ -21,7 +21,15 @@ class Application_Form_FilterAdd extends Zend_Form
'required' => false,
'label' => 'Description:',
));
- // TODO: Add target of Filter
+
+ $this->addElement('text', 'bootmenuID', array(
+ 'filters' => array('StringTrim'),
+ 'validators' => array(
+ array('StringLength', false, array(0, 50)),
+ ),
+ 'required' => true,
+ 'label' => 'bootmenuID:',
+ ));
$this->addElement('text', 'priority', array(
'filters' => array('StringTrim'),
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',
+ ));
+ }
+
+
+}
+