From a5bc7b270c6aa78aa281068499cfa748c160fc99 Mon Sep 17 00:00:00 2001 From: Björn Geiger Date: Tue, 5 Jul 2011 14:01:57 +0200 Subject: Layout angepasst --- application/layouts/default.phtml | 98 ++++++++++++++++++++++++++------------- 1 file changed, 65 insertions(+), 33 deletions(-) (limited to 'application/layouts/default.phtml') diff --git a/application/layouts/default.phtml b/application/layouts/default.phtml index 550ce8a..e1a3312 100644 --- a/application/layouts/default.phtml +++ b/application/layouts/default.phtml @@ -1,8 +1,6 @@ doctype(); ?> - - getRequest(); $this->headTitle()->append(ucwords($request->getControllerName())); @@ -13,14 +11,18 @@ echo $this->headStyle()."\n"; echo $this->headLink()."\n"; echo $this->headScript()."\n"; ?> - - - + + + + +
- -
+ +
-
+
-
+

pbs2

+

Rechenzentrum Universität Freiburg

+
+
+
hasIdentity()){ + echo 'Logged in as'; + $userIDsNamespace = Zend_Session::namespaceGet('userIDs'); + + if(isset($userIDsNamespace['membershipID'])){ + $membershipMapper = new Application_Model_MembershipMapper(); + $membership = new Application_Model_Membership(); + $membershipMapper->find($userIDsNamespace['membershipID'],$membership); + } + if(isset($userIDsNamespace['personID'])){ + $person = new Application_Model_Person(); + $personMapper = new Application_Model_PersonMapper(); + $personMapper->find($userIDsNamespace['personID'],$person); + echo "".$person->getFirstname()." ".$person->getName().""; + } + if(isset($userIDsNamespace['roleID'])){ + echo " in role "; + + $role = new Application_Model_Role(); + $roleMapper = new Application_Model_RoleMapper(); + $role = $roleMapper->find($userIDsNamespace['roleID']); + echo "".$role->getTitle().""; + } + if(isset($userIDsNamespace['groupID'])){ + echo " in group "; + $group = new Application_Model_Group(); + $groupMapper = new Application_Model_GroupMapper(); + $group = $groupMapper->find($userIDsNamespace['groupID']); + echo "".$group->getTitle().""; + } + } + ?> +
getControllerName()) . " > " . ucwords($request->getActionName()); ?>
-
- layout()->content; ?> -
- - - +
down
- - - + + -- cgit v1.2.3-55-g7522