diff options
| author | Björn Geiger | 2011-04-13 15:05:53 +0200 |
|---|---|---|
| committer | Björn Geiger | 2011-04-13 15:05:53 +0200 |
| commit | 63b4fb51d481e4376f60f188c171d57970abbd46 (patch) | |
| tree | 0c5ef7afcae61c36d1b0cb2657598bf2d381b5af /application/modules/user/views/scripts | |
| parent | Zweiter Teil der Rechte in Group Controller (diff) | |
| download | pbs2-63b4fb51d481e4376f60f188c171d57970abbd46.tar.gz pbs2-63b4fb51d481e4376f60f188c171d57970abbd46.tar.xz pbs2-63b4fb51d481e4376f60f188c171d57970abbd46.zip | |
Suspend und Resume Account
Diffstat (limited to 'application/modules/user/views/scripts')
3 files changed, 82 insertions, 34 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(); ?> <?php echo $person->getFirstname(); ?> <?php echo $person->getName(); ?></div> <div class='subtitle'><?php echo $person->getEmail(); ?></div> diff --git a/application/modules/user/views/scripts/person/owndetails.phtml b/application/modules/user/views/scripts/person/owndetails.phtml index db9221d..dc6e9aa 100644 --- a/application/modules/user/views/scripts/person/owndetails.phtml +++ b/application/modules/user/views/scripts/person/owndetails.phtml @@ -1,27 +1,40 @@ <h1>Own Details</h1> <style> -label{width:150px !important;} +label { + width: 150px !important; +} </style> <?php if($this->editRight === true) echo $this->formButton('editperson', 'Edit', array( 'onclick' => 'self.location="/user/person/edit/"', 'class' => 'rightbutton'))?> <div class='listelement'> <div class='element'> - <div class='content'> - <div class='title'><?php echo $this->person->getTitle()." ".$this->person->getFirstname()." ".$this->person->getName(); ?></div> - <div class='subtitle'><?php echo $this->person->getEmail(); ?></div> - <div class='details'> - <label>Street:</label><div class='item'><?php echo $this->person->getStreet(); ?> </div> - <label>Housenumber:</label><div class='item'><?php echo $this->person->getHousenumber(); ?> </div> - <label>City:</label><div class='item'><?php echo $this->person->getCity(); ?> </div> - <label>Postalcode:</label><div class='item'><?php echo $this->person->getPostalcode(); ?> </div> - <label>Email:</label><div class='item'><?php echo $this->person->getEmail(); ?> </div> - <label>Last Login:</label><div class='item'><?php if( $this->person->getLogindate()) echo date ('d. F Y - H:i', $this->person->getLogindate()) . " Uhr"; ?> </div> - <label>Register Date:</label><div class='item'><?php echo date ('d. F Y - H:i', $this->person->getRegisterdate()) . ' Uhr'; ?> </div> - </div> - </div> - <div class='clear'> +<div class='content'> +<div class='title'><?php echo $this->person->getTitle()." ".$this->person->getFirstname()." ".$this->person->getName(); ?></div> +<div class='subtitle'><?php echo $this->person->getEmail(); ?></div> +<div class='details'><label>Street:</label> +<div class='item'><?php echo $this->person->getStreet(); ?> </div> +<label>Housenumber:</label> +<div class='item'><?php echo $this->person->getHousenumber(); ?> </div> +<label>City:</label> +<div class='item'><?php echo $this->person->getCity(); ?> </div> +<label>Postalcode:</label> +<div class='item'><?php echo $this->person->getPostalcode(); ?> </div> +<label>Email:</label> +<div class='item'><?php echo $this->person->getEmail(); ?> </div> +<label>Last Login:</label> +<div class='item'><?php if( $this->person->getLogindate()) echo date ('d. F Y - H:i', $this->person->getLogindate()) . " Uhr"; ?> </div> +<label>Register Date:</label> +<div class='item'><?php echo date ('d. F Y - H:i', $this->person->getRegisterdate()) . ' Uhr'; ?> </div> +<?php if($this->suspendRight === true) +{ + ?> <label>Suspended:</label> +<div class='item'><?php if($this->person->getSuspended() == 1) echo "yes"; else echo "no"; ?></div> + <?php +} +?></div> </div> +<div class='clear'></div> </div> <br /> <h2>Member in the following Groups:</h2> @@ -65,8 +78,7 @@ $class= 'highlight checked'; <?php endforeach ?></div> <?php echo $this->pagination; if(isset($this->groupRequestList)) { - ?> -<br /> + ?> <br /> <h2>Requests:</h2> <div class='listelement'><?php foreach($this->groupRequestList as $grouprequest) { @@ -103,4 +115,4 @@ foreach($this->groupRequestList as $grouprequest) { ?></div> <?php } - ?> + ?>
\ No newline at end of file diff --git a/application/modules/user/views/scripts/person/show.phtml b/application/modules/user/views/scripts/person/show.phtml index c43bde3..2f2ef56 100644 --- a/application/modules/user/views/scripts/person/show.phtml +++ b/application/modules/user/views/scripts/person/show.phtml @@ -66,7 +66,18 @@ </div> <div class='clear'></div> </div> +<?php if($this->suspendRight === true) +{ + ?> +<div class='element'> +<div class='content'> +<div class="title">Suspended: <span class="noBold"><?php if($this->person->getSuspended() == 1) echo "yes"; else echo "no"; ?></span></div> +</div> +<div class='clear'></div> </div> + <?php +} +?></div> <br /> <h2>Member in the following Groups:</h2> <div class='listelement'><?php if(count($this->groups)==0) @@ -105,18 +116,18 @@ foreach($this->groupRequestList as $grouprequest) { <div class='element'> <div class='content'> <div class='title'><?php echo $group->getTitle(); ?></div> - <?php if($group->getDescription()) { - ?> + <?php if($group->getDescription()) { + ?> <div class='subtitle'><?php echo $group->getDescription(); ?></div> - <?php - } else { - ?> + <?php + } else { + ?> <div class='subtitle'> </div> - <?php - } - ?></div> + <?php + } + ?></div> </div> - <?php + <?php } ?></div> <?php |
