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/GroupLink.php | 55 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 application/forms/GroupLink.php (limited to 'application/forms/GroupLink.php') diff --git a/application/forms/GroupLink.php b/application/forms/GroupLink.php new file mode 100644 index 0000000..231c4a7 --- /dev/null +++ b/application/forms/GroupLink.php @@ -0,0 +1,55 @@ +grouplist = $grouplist; + + } + + public function init() + { + $this->setName("GroupLink"); + $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); + + $groupfield1 = $this->createElement('select','superordinatedGroupID'); + $groupfield1 ->setLabel('superordinated Group:'); + + if(count($this->grouplist)>0){ + foreach($this->grouplist as $group => $g){ + $groupfield1->addMultiOption($g->getID(), $g->getTitle()); + } + } + $groupfield1->setRegisterInArrayValidator(false); + $this->addElement($groupfield1); + + $this->addElement('submit', 'link', array( + 'required' => false, + 'ignore' => true, + 'label' => 'Link', + )); + + $this->addElement('button', 'cancel', array( + 'required' => false, + 'ignore' => true, + 'label' => 'Cancel', + 'onclick' => 'location.href="/group/show"', + )); + } + + +} + -- cgit v1.2.3-55-g7522