From e30767a8f83df955fec83d2a2e459a5a8f18193f Mon Sep 17 00:00:00 2001 From: Björn Geiger Date: Fri, 8 Apr 2011 10:25:29 +0200 Subject: Eigener Menüpunkt für Person- und Grouplist --- .../modules/user/controllers/PersonController.php | 2 - application/modules/user/layouts/user.phtml | 14 ++++-- .../modules/user/views/scripts/group/show.phtml | 55 ++++++++++------------ .../modules/user/views/scripts/person/index.phtml | 48 ++++++++----------- .../modules/user/views/scripts/person/show.phtml | 3 -- 5 files changed, 53 insertions(+), 69 deletions(-) (limited to 'application/modules') diff --git a/application/modules/user/controllers/PersonController.php b/application/modules/user/controllers/PersonController.php index c1e76d3..ff5517c 100644 --- a/application/modules/user/controllers/PersonController.php +++ b/application/modules/user/controllers/PersonController.php @@ -63,7 +63,6 @@ class user_PersonController extends Zend_Controller_Action $this->view->groupRequestRight = Pbs_Acl::checkRight('grm'); $this->view->editRight = Pbs_Acl::checkRight('peoa'); $this->view->leaveRight = Pbs_Acl::checkRight('gl'); - $this->view->overviewRight = Pbs_Acl::checkRight('pso'); $this->view->userIDsNamespace = Zend_Session::namespaceGet('userIDs'); } @@ -340,7 +339,6 @@ class user_PersonController extends Zend_Controller_Action $this->view->personID = $personID; $this->view->editRight = Pbs_Acl::checkRight('peoa'); $this->view->deleteRight = Pbs_Acl::checkRight('pd'); - $this->view->overviewRight = Pbs_Acl::checkRight('pso'); $this->view->userIDsNamespace = Zend_Session::namespaceGet('userIDs'); } else { $this->_helper->redirector('', 'person'); diff --git a/application/modules/user/layouts/user.phtml b/application/modules/user/layouts/user.phtml index 2fbdabf..edbe209 100644 --- a/application/modules/user/layouts/user.phtml +++ b/application/modules/user/layouts/user.phtml @@ -25,17 +25,21 @@ echo $this->headScript()."\n";
Register Date: person->getRegisterdate()) . ' Uhr'; ?>
overviewRight === true) echo $this->formButton('showallperson', 'Show Personlist', array( - 'onclick' => 'self.location="/user/person/showall/"', - 'class' => 'rightbutton')); if(isset($this->groups)) { ?>

Member in the following Groups:

-
- groups)==0) - echo "You are in no group." ?> - groups as $group): ?> - userIDsNamespace['membershipID']) - $class= 'highlight checked'; - ?> -
- +
- pagination; - if($this->groupRequestRight === true) echo $this->formButton('addtogroup', 'Add to additional +
+ pagination; + if($this->groupRequestRight === true) echo $this->formButton('addtogroup', 'Add to additional Groups', array( 'onclick' => 'self.location="/user/person/request/"', 'class' => 'addbutton')); diff --git a/application/modules/user/views/scripts/person/show.phtml b/application/modules/user/views/scripts/person/show.phtml index be973b9..8ebb371 100644 --- a/application/modules/user/views/scripts/person/show.phtml +++ b/application/modules/user/views/scripts/person/show.phtml @@ -18,9 +18,6 @@
Last Login Date: person->getLogindate()) echo date ('d. F Y - H:i', $this->person->getLogindate()) . " Uhr"; ?>
Register Date: person->getRegisterdate()) . ' Uhr'; ?>
overviewRight === true) echo $this->formButton('showallperson', 'Show Personlist', array( - 'onclick' => 'self.location="/user/person/showall/"', - 'class' => 'rightbutton')); if(isset($this->groups)) { ?>
-- cgit v1.2.3-55-g7522