From 7be4355001156faed62c71492234cba2c5bf96b4 Mon Sep 17 00:00:00 2001 From: Björn Geiger Date: Thu, 10 Mar 2011 22:10:05 +0100 Subject: Benutzervewaltung, Gruppenverwaltung, Membershipverwaltung und noch leerer RoleController --- application/forms/GroupRequest.php | 42 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 application/forms/GroupRequest.php (limited to 'application/forms/GroupRequest.php') diff --git a/application/forms/GroupRequest.php b/application/forms/GroupRequest.php new file mode 100644 index 0000000..ec717de --- /dev/null +++ b/application/forms/GroupRequest.php @@ -0,0 +1,42 @@ +grouplist = $grouplist; + + } + + public function getGrouplist(){ + return $this->grouplist; + } + + public function init() + { + $this->setName("GroupRequest"); + $this->setMethod('post'); + + $groupfield = $this->createElement('select','groupID'); + $groupfield ->setLabel('Group:'); + + if(count($this->grouplist)>0){ + foreach($this->grouplist as $group => $g){ + $groupfield->addMultiOption($g->getID(), $g->getTitle()); + } + } + + $groupfield->setRegisterInArrayValidator(false); + $this->addElement($groupfield); + + $this->addElement('submit', 'request', array( + 'required' => false, + 'ignore' => true, + 'label' => 'Request Membership', + )); + + } + +} + -- cgit v1.2.3-55-g7522