summaryrefslogtreecommitdiffstats
path: root/application/modules/user/layouts
diff options
context:
space:
mode:
authorSimon2011-03-30 16:30:31 +0200
committerSimon2011-03-30 16:30:31 +0200
commit429b206f63a4612d8b9a108ca5bf717ee3ba1935 (patch)
tree5d3e838926751a25f0d2518823b72db65e9b1430 /application/modules/user/layouts
parentFilter können auf höher gelegene BootMenus verweisen (diff)
downloadpbs2-429b206f63a4612d8b9a108ca5bf717ee3ba1935.tar.gz
pbs2-429b206f63a4612d8b9a108ca5bf717ee3ba1935.tar.xz
pbs2-429b206f63a4612d8b9a108ca5bf717ee3ba1935.zip
'angemeldet als' hinzugefügt
Diffstat (limited to 'application/modules/user/layouts')
-rw-r--r--application/modules/user/layouts/user.phtml25
1 files changed, 24 insertions, 1 deletions
diff --git a/application/modules/user/layouts/user.phtml b/application/modules/user/layouts/user.phtml
index 143f56e..e2e424d 100644
--- a/application/modules/user/layouts/user.phtml
+++ b/application/modules/user/layouts/user.phtml
@@ -74,7 +74,30 @@ echo $this->headScript()."\n";
</div>
</div>
<div id="logo-bar-red"></div>
-<div id="head-titlebar"><?php
+<div id="head-titlebar">
+<div style='float:right'><?php
+if(Zend_Auth::getInstance()->hasIdentity()){
+ echo 'Angemeldet als: ';
+ $userIDsNamespace = Zend_Session::namespaceGet('userIDs');
+ $membershipMapper = new Application_Model_MembershipMapper();
+ $membership = new Application_Model_Membership();
+ $membershipMapper->find($userIDsNamespace['membershipID'],$membership);
+
+ $person = new Application_Model_Person();
+ $personMapper = new Application_Model_PersonMapper();
+ $personMapper->find($userIDsNamespace['personID'],$person);
+ echo "<b><i>".$person->getFirstname()." ".$person->getName()."</i></b>";
+
+ echo " in der Rolle ";
+
+ $role = new Application_Model_Role();
+ $roleMapper = new Application_Model_RoleMapper();
+ $role = $roleMapper->find($userIDsNamespace['roleID']);
+ echo "<b><i>".$role->getTitle()."</i></b>";
+}
+?>
+</div>
+<?php
echo ucwords($request->getControllerName()) . " > " . ucwords($request->getActionName());
?></div>
<div id="content"><?php echo $this->layout()->content; ?></div>