From 7aa366700dc1e4d4b36ee7cc10d33823b2b3d74d Mon Sep 17 00:00:00 2001 From: Simon Date: Thu, 7 Apr 2011 11:31:34 +0200 Subject: Layout in Person und Group --- .../modules/user/controllers/PersonController.php | 2 +- .../modules/user/views/scripts/group/show.phtml | 18 +- .../user/views/scripts/person/showall.phtml | 224 ++++++++++----------- 3 files changed, 128 insertions(+), 116 deletions(-) (limited to 'application/modules/user') diff --git a/application/modules/user/controllers/PersonController.php b/application/modules/user/controllers/PersonController.php index 71a8c7d..c1e76d3 100644 --- a/application/modules/user/controllers/PersonController.php +++ b/application/modules/user/controllers/PersonController.php @@ -52,7 +52,7 @@ class user_PersonController extends Zend_Controller_Action $this->view->person = $this->person; // Pagination $pagination = new Pbs_Pagination(); - $pagination->setPerPage(1); + $pagination->setPerPage(3); $pagination->setElement($this->groups); $pagination->setRequestPage($this->_request->getParam('page')); $pagination->setPageUrl('/user/person/index' .((isset($this->view->search))?'/search/'.$this->view->search:'')); diff --git a/application/modules/user/views/scripts/group/show.phtml b/application/modules/user/views/scripts/group/show.phtml index 306a279..a869c76 100644 --- a/application/modules/user/views/scripts/group/show.phtml +++ b/application/modules/user/views/scripts/group/show.phtml @@ -111,12 +111,28 @@ if($this->groupID) {
getFirstname(); ?> getName(); ?>
Role: getTitle(); ?>
+
+ +
getEmail(); ?>
+ +
getCity(); ?>
+
- + memberPagination; ?> Persons Overview -
-
searchform; ?> - - - - - - - showRight === true || $this->editRight === true || $this->deleteRight === true) { - ?> - - - - personList) > 0) { - foreach($this->personList as $person) { - ?> - getID() == $this->userIDsNamespace['personID']) echo 'class="selectedEntry"'; else echo 'class="entry"'; ?>> - - - - - +
Available searchfilter:
+
title
+
name
+
firstname
+
email
+ + +
+ personList)==0) + echo "There are no Sessions to display." ?> + personList as $person): ?> +
+
+
+ getID() == $this->userIDsNamespace['personID']) { if($this->showRight === true) { ?> -
- editRight === true) { ?> - - deleteRight === true) { ?> - - showOtherRight === true) { - ?> - - url( + array( + 'module' => 'user', + 'controller' => 'person', + 'action' => 'index' + ), + 'default', + true);?>"> Show Person + editRight === true) { ?> + Edit Person + deleteRight === true) { ?> + Delete Account + showOtherRight === true) { + ?> + Show Person + editOtherRight === true) { + ?> + Edit Person + deleteOtherRight === true) { + ?> + Delete Account + editOtherRight === true) { - ?> - - deleteOtherRight === true) { - ?> - - - - + +
getTitle(); ?> getFirstname(); ?> getName(); ?>
+
getEmail(); ?>
+ +
+ + + + +pagination; ?> + + -- cgit v1.2.3-55-g7522
Title titleName nameFirstname firstnameEmail emailActions
getTitle(); ?>getName(); ?>getFirstname(); ?>getEmail(); ?> Show Person Edit Person Delete Account Show Person Edit Person Delete Account