diff options
| author | Simon | 2011-04-26 18:28:23 +0200 |
|---|---|---|
| committer | Simon | 2011-04-26 18:28:23 +0200 |
| commit | 99f2486c1a5637173d526e2a0beaeba9d2fc7229 (patch) | |
| tree | b583fc7335e0f48b91c1f5db32cbcc0447d1b99b /application/modules/user/layouts | |
| parent | Filterfix (diff) | |
| download | pbs2-99f2486c1a5637173d526e2a0beaeba9d2fc7229.tar.gz pbs2-99f2486c1a5637173d526e2a0beaeba9d2fc7229.tar.xz pbs2-99f2486c1a5637173d526e2a0beaeba9d2fc7229.zip | |
Added Group-Description in Layout
Diffstat (limited to 'application/modules/user/layouts')
| -rw-r--r-- | application/modules/user/layouts/user.phtml | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/application/modules/user/layouts/user.phtml b/application/modules/user/layouts/user.phtml index 5942725..526345e 100644 --- a/application/modules/user/layouts/user.phtml +++ b/application/modules/user/layouts/user.phtml @@ -90,7 +90,7 @@ echo $this->headScript()."\n"; <div id="head-titlebar"> <div style='float: right'><?php if(Zend_Auth::getInstance()->hasIdentity()){ - echo 'Angemeldet als '; + echo 'Logged in as'; $userIDsNamespace = Zend_Session::namespaceGet('userIDs'); if(isset($userIDsNamespace['membershipID'])){ @@ -105,13 +105,20 @@ echo $this->headScript()."\n"; echo "<b><i>".$person->getFirstname()." ".$person->getName()."</i></b>"; } if(isset($userIDsNamespace['roleID'])){ - echo " in der Rolle "; + echo " in role "; $role = new Application_Model_Role(); $roleMapper = new Application_Model_RoleMapper(); $role = $roleMapper->find($userIDsNamespace['roleID']); echo "<b><i>".$role->getTitle()."</i></b>"; } + if(isset($userIDsNamespace['groupID'])){ + echo " in group "; + $group = new Application_Model_Group(); + $groupMapper = new Application_Model_GroupMapper(); + $group = $groupMapper->find($userIDsNamespace['groupID']); + echo "<b><i>".$group->getTitle()."</i></b>"; + } } ?> </div> |
