summaryrefslogtreecommitdiffstats
path: root/application/modules/user/views/scripts/person
diff options
context:
space:
mode:
authorBjörn Geiger2011-04-08 10:25:29 +0200
committerBjörn Geiger2011-04-08 10:25:29 +0200
commite30767a8f83df955fec83d2a2e459a5a8f18193f (patch)
treeb6d6e169d2c60c1ee78e278c45d371cc70b888bf /application/modules/user/views/scripts/person
parentdefaultbootmenu fertig (diff)
downloadpbs2-e30767a8f83df955fec83d2a2e459a5a8f18193f.tar.gz
pbs2-e30767a8f83df955fec83d2a2e459a5a8f18193f.tar.xz
pbs2-e30767a8f83df955fec83d2a2e459a5a8f18193f.zip
Eigener Menüpunkt für Person- und Grouplist
Diffstat (limited to 'application/modules/user/views/scripts/person')
-rw-r--r--application/modules/user/views/scripts/person/index.phtml48
-rw-r--r--application/modules/user/views/scripts/person/show.phtml3
2 files changed, 20 insertions, 31 deletions
diff --git a/application/modules/user/views/scripts/person/index.phtml b/application/modules/user/views/scripts/person/index.phtml
index a4d3a3d..7c6fc8d 100644
--- a/application/modules/user/views/scripts/person/index.phtml
+++ b/application/modules/user/views/scripts/person/index.phtml
@@ -15,28 +15,22 @@
<div class="personColorDiv"><span class="bold">Last Login Date:</span>&nbsp;<?php if( $this->person->getLogindate()) echo date ('d. F Y - H:i', $this->person->getLogindate()) . " Uhr"; ?></div>
<div class="personDiv"><span class="bold">Register Date:</span>&nbsp;<?php echo date ('d. F Y - H:i', $this->person->getRegisterdate()) . ' Uhr'; ?></div>
<?php
-if($this->overviewRight === true) echo $this->formButton('showallperson', 'Show Personlist', array(
- 'onclick' => 'self.location="/user/person/showall/"',
- 'class' => 'rightbutton'));
if(isset($this->groups)) {
?>
<br />
<h2>Member in the following Groups:</h2>
-<div class='listelement'>
- <?php if(count($this->groups)==0)
- echo "You are in no group." ?>
- <?php foreach ($this->groups as $group): ?>
- <?php
- $class='';
- if($group['membershipID'] == $this->userIDsNamespace['membershipID'])
- $class= 'highlight checked';
- ?>
- <div class='element<?php echo " $class";?>'>
- <div class='content'>
- <div class='actions'>
- <?php if($this->leaveRight === true): ?>
- <a href="<?php echo $this->url(
+<div class='listelement'><?php if(count($this->groups)==0)
+echo "You are in no group." ?> <?php foreach ($this->groups as $group): ?>
+<?php
+$class='';
+if($group['membershipID'] == $this->userIDsNamespace['membershipID'])
+$class= 'highlight checked';
+?>
+<div class='element<?php echo " $class";?>'>
+<div class='content'>
+<div class='actions'><?php if($this->leaveRight === true): ?> <a
+ href="<?php echo $this->url(
array(
'module' => 'user',
'controller' => 'person',
@@ -44,18 +38,16 @@ if(isset($this->groups)) {
'membershipID' => $group['membershipID']
),
'default',
- true) ?>"> <img src='/media/img/delete.png' alt='Delete Group' /></a>
- <?php endif; ?>
- </div>
- <div class='title'><?php echo $group['title']; ?></div>
- <div class='subtitle'><?php echo $group['description']; ?></div>
- </div>
- <div class='clear'></div>
- </div>
- <?php endforeach ?>
+ true) ?>"> <img src='/media/img/delete.png' alt='Delete Group' /></a>
+ <?php endif; ?></div>
+<div class='title'><?php echo $group['title']; ?></div>
+<div class='subtitle'><?php echo $group['description']; ?></div>
+</div>
+<div class='clear'></div>
</div>
- <?php echo $this->pagination;
- if($this->groupRequestRight === true) echo $this->formButton('addtogroup', 'Add to additional
+ <?php endforeach ?></div>
+ <?php echo $this->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 @@
<div class="personColorDiv"><span class="bold">Last Login Date:</span>&nbsp;<?php if( $this->person->getLogindate()) echo date ('d. F Y - H:i', $this->person->getLogindate()) . " Uhr"; ?></div>
<div class="personDiv"><span class="bold">Register Date:</span>&nbsp;<?php echo date ('d. F Y - H:i', $this->person->getRegisterdate()) . ' Uhr'; ?></div>
<?php
-if($this->overviewRight === true) echo $this->formButton('showallperson', 'Show Personlist', array(
- 'onclick' => 'self.location="/user/person/showall/"',
- 'class' => 'rightbutton'));
if(isset($this->groups)) {
?>
<br />