summaryrefslogtreecommitdiffstats
path: root/application/modules/user/views/scripts/person/index.phtml
diff options
context:
space:
mode:
authorBjörn Geiger2011-04-13 15:05:53 +0200
committerBjörn Geiger2011-04-13 15:05:53 +0200
commit63b4fb51d481e4376f60f188c171d57970abbd46 (patch)
tree0c5ef7afcae61c36d1b0cb2657598bf2d381b5af /application/modules/user/views/scripts/person/index.phtml
parentZweiter Teil der Rechte in Group Controller (diff)
downloadpbs2-63b4fb51d481e4376f60f188c171d57970abbd46.tar.gz
pbs2-63b4fb51d481e4376f60f188c171d57970abbd46.tar.xz
pbs2-63b4fb51d481e4376f60f188c171d57970abbd46.zip
Suspend und Resume Account
Diffstat (limited to 'application/modules/user/views/scripts/person/index.phtml')
-rw-r--r--application/modules/user/views/scripts/person/index.phtml39
1 files changed, 32 insertions, 7 deletions
diff --git a/application/modules/user/views/scripts/person/index.phtml b/application/modules/user/views/scripts/person/index.phtml
index 1304299..93dfd78 100644
--- a/application/modules/user/views/scripts/person/index.phtml
+++ b/application/modules/user/views/scripts/person/index.phtml
@@ -15,14 +15,12 @@ $class='';
if($person->getID() == $this->userIDsNamespace['personID'])
$class= 'highlight checked';
?>
-<div class='element<?php echo " $class";?>'>
-<?php if($person->getID() != $this->userIDsNamespace['personID']) {
+<div class='element<?php echo " $class";?>'><?php if($person->getID() != $this->userIDsNamespace['personID']) {
?>
- <div class='number'>
- <div class='smallnumber'>Person</div>
- <?php echo $k+1; ?>
- </div>
-<?php
+<div class='number'>
+<div class='smallnumber'>Person</div>
+ <?php echo $k+1; ?></div>
+ <?php
}
?>
<div class='content'>
@@ -103,6 +101,33 @@ if($person->getID() == $this->userIDsNamespace['personID']) {
<?php
}
}
+if($this->suspendRight === true) {
+ if($person->getSuspended() == 1) {
+ ?> <a
+ href=" <?php echo $this->url(
+ array(
+ 'module' => 'user',
+ 'controller' => 'person',
+ 'action' => 'resume',
+ 'personID' => $person->getID()
+ ),
+ 'default',
+ true); ?>"> <img src='/media/img/resume.png' alt='Resume Account' /></a>
+ <?php
+ } else {
+ ?> <a
+ href=" <?php echo $this->url(
+ array(
+ 'module' => 'user',
+ 'controller' => 'person',
+ 'action' => 'suspend',
+ 'personID' => $person->getID()
+ ),
+ 'default',
+ true); ?>"> <img src='/media/img/suspend.png'
+ alt='Suspend Account' /></a> <?php
+ }
+}
?></div>
<div class='title'><?php echo $person->getTitle(); ?>&nbsp;<?php echo $person->getFirstname(); ?>&nbsp;<?php echo $person->getName(); ?></div>
<div class='subtitle'><?php echo $person->getEmail(); ?></div>