diff options
author | Björn Geiger | 2011-04-13 16:32:27 +0200 |
---|---|---|
committer | Björn Geiger | 2011-04-13 16:32:27 +0200 |
commit | eefbdc02309e29e5993d376c968bbf279715fba0 (patch) | |
tree | b770c67ec194c8cac8a7ff22e8556b7ec15b845f | |
parent | Suspend auf 0 gesetzt in Membership (diff) | |
download | pbs2-eefbdc02309e29e5993d376c968bbf279715fba0.tar.gz pbs2-eefbdc02309e29e5993d376c968bbf279715fba0.tar.xz pbs2-eefbdc02309e29e5993d376c968bbf279715fba0.zip |
Bei Details anderer Personen gleiches Layout wie bei OwnDetails
-rw-r--r-- | application/modules/user/views/scripts/person/owndetails.phtml | 4 | ||||
-rw-r--r-- | application/modules/user/views/scripts/person/show.phtml | 181 |
2 files changed, 69 insertions, 116 deletions
diff --git a/application/modules/user/views/scripts/person/owndetails.phtml b/application/modules/user/views/scripts/person/owndetails.phtml index 0430623..74d00cf 100644 --- a/application/modules/user/views/scripts/person/owndetails.phtml +++ b/application/modules/user/views/scripts/person/owndetails.phtml @@ -33,7 +33,8 @@ label { <?php } ?> - </div> + </div> + </div> <div class='clear'></div> </div> </div> @@ -74,7 +75,6 @@ if(count($this->groups)==0) </div> <?php endforeach ?> </div> -</div> <?php echo $this->pagination; if(isset($this->groupRequestList)) { diff --git a/application/modules/user/views/scripts/person/show.phtml b/application/modules/user/views/scripts/person/show.phtml index 2f2ef56..e82c4d9 100644 --- a/application/modules/user/views/scripts/person/show.phtml +++ b/application/modules/user/views/scripts/person/show.phtml @@ -5,131 +5,84 @@ <?php if($this->deleteRight === true) echo $this->formButton('deleteperson', 'Delete', array( 'onclick' => 'self.location="/user/auth/delete/personID/' . $this->personID . '"', 'class' => 'rightbutton')) ?> -<div class='detailelement'> -<div class='element'> -<div class='content'> -<div class="title">Title: <span class="noBold"><?php echo $this->person->getTitle(); ?></span></div> +<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> + <?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> </div> -<div class='clear'></div> -</div> -<div class='element'> -<div class='content'> -<div class="title">Name: <span class="noBold"><?php echo $this->person->getName(); ?></span></div> -</div> -<div class='clear'></div> -</div> -<div class='element'> -<div class='content'> -<div class="title">Firstname: <span class="noBold"><?php echo $this->person->getFirstname(); ?></span></div> -</div> -<div class='clear'></div> -</div> -<div class='element'> -<div class='content'> -<div class="title">Street: <span class="noBold"><?php echo $this->person->getStreet(); ?></span></div> -</div> -<div class='clear'></div> -</div> -<div class='element'> -<div class='content'> -<div class="title">Housenumber: <span class="noBold"><?php echo $this->person->getHousenumber(); ?></span></div> -</div> -<div class='clear'></div> -</div> -<div class='element'> -<div class='content'> -<div class="title">City: <span class="noBold"><?php echo $this->person->getCity(); ?></span></div> -</div> -<div class='clear'></div> -</div> -<div class='element'> -<div class='content'> -<div class="title">Postalcode: <span class="noBold"><?php echo $this->person->getPostalcode(); ?></span></div> -</div> -<div class='clear'></div> -</div> -<div class='element'> -<div class='content'> -<div class="title">Email: <span class="noBold"><?php echo $this->person->getEmail(); ?></span></div> -</div> -<div class='clear'></div> -</div> -<div class='element'> -<div class='content'> -<div class="title">Last Login Date: <span class="noBold"><?php if( $this->person->getLogindate()) echo date ('d. F Y - H:i', $this->person->getLogindate()) . " Uhr"; ?></span></div> -</div> -<div class='clear'></div> -</div> -<div class='element'> -<div class='content'> -<div class="title">Register Date: <span class="noBold"><?php echo date ('d. F Y - H:i', $this->person->getRegisterdate()) . ' Uhr'; ?></span></div> -</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) -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='title'><?php echo $group['title']; ?></div> -<?php if($group['description']) { - ?> -<div class='subtitle'><?php echo $group['description']; ?></div> +<div class='listelement'> +<?php +if(count($this->groups)==0) + echo "You are in no group." ?> + <?php foreach ($this->groups as $group): ?> <?php -} else { + $class=''; + if($group['membershipID'] == $this->userIDsNamespace['membershipID']) + $class= 'highlight checked'; ?> -<div class='subtitle'> </div> - <?php -} -?></div> -<div class='clear'></div> + <div class='element<?php echo " $class";?>'> + <div class='content'> + <div class='title'><?php echo $group['title']; ?></div> + <div class='subtitle'><?php echo $group['description']; ?> </div> + </div> + <div class='clear'></div> + </div> + <?php endforeach ?> </div> -<?php endforeach ?></div> <?php echo $this->pagination; + + if(isset($this->groupRequestList)) { - ?> +?> <br /> + <h2>Requests:</h2> -<div class='listelement'><?php -foreach($this->groupRequestList as $grouprequest) { - $grouprequestID = $grouprequest['grouprequestID']; - $group = $grouprequest['group']; +<div class='listelement'> +<?php + foreach($this->groupRequestList as $grouprequest): + $grouprequestID = $grouprequest['grouprequestID']; + $group = $grouprequest['group']; ?> -<div class='element'> -<div class='content'> -<div class='title'><?php echo $group->getTitle(); ?></div> - <?php if($group->getDescription()) { - ?> -<div class='subtitle'><?php echo $group->getDescription(); ?></div> - <?php - } else { - ?> -<div class='subtitle'> </div> - <?php - } - ?></div> + <div class='element'> + <div class='content'> + <div class='title'><?php echo $group->getTitle(); ?></div> + <div class='subtitle'><?php echo $group->getDescription(); ?> </div> + </div> + <div class='clear'></div> + </div> +<?php +endforeach +?> </div> - <?php -} -?></div> + <?php } -?>
\ No newline at end of file +?> |