diff options
| author | Simon | 2011-04-01 14:10:15 +0200 |
|---|---|---|
| committer | Simon | 2011-04-01 14:10:15 +0200 |
| commit | 8fa0353205b9622b778bcb084732d276fcf6fd5f (patch) | |
| tree | d33688a9d479661f9a33c48d1a864104af44d555 /application/modules/user/forms/Bootmenu.php | |
| parent | user-layout geändert, Menü nur wenn rolle ausgewählt wurde (diff) | |
| parent | Merge branch 'master' of openslx.org:lsfks/master-teamprojekt/pbs2 (diff) | |
| download | pbs2-8fa0353205b9622b778bcb084732d276fcf6fd5f.tar.gz pbs2-8fa0353205b9622b778bcb084732d276fcf6fd5f.tar.xz pbs2-8fa0353205b9622b778bcb084732d276fcf6fd5f.zip | |
Merge branch 'master' of openslx.org:lsfks/master-teamprojekt/pbs2
Diffstat (limited to 'application/modules/user/forms/Bootmenu.php')
| -rw-r--r-- | application/modules/user/forms/Bootmenu.php | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/application/modules/user/forms/Bootmenu.php b/application/modules/user/forms/Bootmenu.php new file mode 100644 index 0000000..67c76d8 --- /dev/null +++ b/application/modules/user/forms/Bootmenu.php @@ -0,0 +1,59 @@ +<?php + +class user_Form_Bootmenu extends Zend_Form +{ + private $action; + private $rights; + + public function setRights($rights){ + $this->rights = $rights; + } + public function setAction($action){ + $this->action = $action; + + } + + public function setGrouplist($grouplist){ + $this->grouplist = $grouplist; + + } + + public function init() + { + $this->setName($this->action); + $this->setMethod('post'); + + if ($this->rights == "meta") + $meta = true; + else + $meta = null; + + $this->addElement('text', 'title', array( + 'filters' => array('StringTrim'), + 'validators' => array( + array('StringLength', false, array(0, 50)), + ), + 'required' => true, + 'label' => 'Title:', + )); + + if($this->action == "createbootmenu") + $label = "Create Bootmenu"; + else + $label = "Edit Bootmenu"; + + $this->addElement('submit', $this->action, array( + 'required' => false, + 'ignore' => true, + 'label' => $label, + )); + + $this->addElement('button', 'Cancel', array( + 'onclick' => 'self.location="/user/bootmenu"' + )); + + } + + +} + |
