summaryrefslogtreecommitdiffstats
path: root/application/modules/user/views/scripts/person
diff options
context:
space:
mode:
authorSimon2011-04-07 11:31:34 +0200
committerSimon2011-04-07 11:31:34 +0200
commit7aa366700dc1e4d4b36ee7cc10d33823b2b3d74d (patch)
tree8cc19767031b7ede7ef39cc9cedfc8f0e562ff39 /application/modules/user/views/scripts/person
parentLayout bei "Members in Group" (diff)
downloadpbs2-7aa366700dc1e4d4b36ee7cc10d33823b2b3d74d.tar.gz
pbs2-7aa366700dc1e4d4b36ee7cc10d33823b2b3d74d.tar.xz
pbs2-7aa366700dc1e4d4b36ee7cc10d33823b2b3d74d.zip
Layout in Person und Group
Diffstat (limited to 'application/modules/user/views/scripts/person')
-rw-r--r--application/modules/user/views/scripts/person/showall.phtml224
1 files changed, 110 insertions, 114 deletions
diff --git a/application/modules/user/views/scripts/person/showall.phtml b/application/modules/user/views/scripts/person/showall.phtml
index 893e95b..f20f490 100644
--- a/application/modules/user/views/scripts/person/showall.phtml
+++ b/application/modules/user/views/scripts/person/showall.phtml
@@ -1,121 +1,117 @@
<h1>Persons Overview</h1>
-<br />
-<br />
<?php echo $this->searchform; ?>
-<table>
- <tr>
- <th>Title <span class='code'>title</span></th>
- <th>Name <span class='code'>name</span></th>
- <th>Firstname <span class='code'>firstname</span></th>
- <th>Email <span class='code'>email</span></th>
- <?php
- if($this->showRight === true || $this->editRight === true || $this->deleteRight === true) {
- ?>
- <th colspan=3>Actions</th>
- <?php
- }
- ?>
- </tr>
- <?php
- if(count($this->personList) > 0) {
- foreach($this->personList as $person) {
- ?>
- <tr
- <?php if($person->getID() == $this->userIDsNamespace['personID']) echo 'class="selectedEntry"'; else echo 'class="entry"'; ?>>
- <td><?php echo $person->getTitle(); ?></td>
- <td><?php echo $person->getName(); ?></td>
- <td><?php echo $person->getFirstname(); ?></td>
- <td><?php echo $person->getEmail(); ?></td>
- <?php
+<div class='searchvars'>
+ <div class='head'>Available searchfilter:</div>
+ <div class='code'>title</div>
+ <div class='code'>name</div>
+ <div class='code'>firstname</div>
+ <div class='code'>email</div>
+</div>
+
+<div class='listelement'>
+ <?php if(count($this->personList)==0)
+ echo "There are no Sessions to display." ?>
+ <?php foreach ($this->personList as $person): ?>
+ <div class='element'>
+ <div class='content'>
+ <div class='actions'>
+ <?php
if($person->getID() == $this->userIDsNamespace['personID']) {
if($this->showRight === true) {
?>
- <td class='action'><a
- href="<?php echo $this->url(
- array(
- 'module' => 'user',
- 'controller' => 'person',
- 'action' => 'index'
- ),
- 'default',
- true);?>"> <img src='/media/img/show.png' alt='Show Person' /></a></td>
- <?php
- }
- if($this->editRight === true) { ?>
- <td class='action'><a
- href="<?php echo $this->url(
- array(
- 'module' => 'user',
- 'controller' => 'person',
- 'action' => 'edit'
- ),
- 'default',
- true);?>"> <img src='/media/img/edit.png' alt='Edit Person' /></a></td>
- <?php
- }
- if($this->deleteRight === true) { ?>
- <td class='action'><a
- href="<?php echo $this->url(
- array(
- 'module' => 'user',
- 'controller' => 'auth',
- 'action' => 'delete'
- ),
- 'default',
- true);?>"> <img src='/media/img/delete.png' alt='Delete Account' /></a></td>
- <?php
- }
- } else {
- if($this->showOtherRight === true) {
- ?>
- <td class='action'><a
- href=" <?php echo $this->url(
- array(
- 'module' => 'user',
- 'controller' => 'person',
- 'action' => 'show',
- 'personID' => $person->getID()
- ),
- 'default',
- true); ?>"> <img src='/media/img/show.png' alt='Show Person' /></a></td>
- <?php
+ <a href="<?php echo $this->url(
+ array(
+ 'module' => 'user',
+ 'controller' => 'person',
+ 'action' => 'index'
+ ),
+ 'default',
+ true);?>"> <img src='/media/img/show.png' alt='Show Person' /></a>
+ <?php
+ }
+ if($this->editRight === true) { ?>
+ <a href="<?php echo $this->url(
+ array(
+ 'module' => 'user',
+ 'controller' => 'person',
+ 'action' => 'edit'
+ ),
+ 'default',
+ true);?>"> <img src='/media/img/edit.png' alt='Edit Person' /></a>
+ <?php
+ }
+ if($this->deleteRight === true) { ?>
+ <a href="<?php echo $this->url(
+ array(
+ 'module' => 'user',
+ 'controller' => 'auth',
+ 'action' => 'delete'
+ ),
+ 'default',
+ true);?>"> <img src='/media/img/delete.png' alt='Delete Account' /></a>
+ <?php
+ }
+ } else {
+ if($this->showOtherRight === true) {
+ ?>
+ <a href=" <?php echo $this->url(
+ array(
+ 'module' => 'user',
+ 'controller' => 'person',
+ 'action' => 'show',
+ 'personID' => $person->getID()
+ ),
+ 'default',
+ true); ?>"> <img src='/media/img/show.png' alt='Show Person' /></a>
+ <?php
+ }
+ if($this->editOtherRight === true) {
+ ?>
+ <a href=" <?php echo $this->url(
+ array(
+ 'module' => 'user',
+ 'controller' => 'person',
+ 'action' => 'edit',
+ 'personID' => $person->getID()
+ ),
+ 'default',
+ true); ?>"> <img src='/media/img/edit.png' alt='Edit Person' /></a>
+ <?php
+ }
+ if($this->deleteOtherRight === true) {
+ ?>
+ <a href=" <?php echo $this->url(
+ array(
+ 'module' => 'user',
+ 'controller' => 'auth',
+ 'action' => 'delete',
+ 'personID' => $person->getID()
+ ),
+ 'default',
+ true); ?>"> <img src='/media/img/delete.png' alt='Delete Account' /></a>
+ <?php
+ }
}
- if($this->editOtherRight === true) {
- ?>
- <td class='action'><a
- href=" <?php echo $this->url(
- array(
- 'module' => 'user',
- 'controller' => 'person',
- 'action' => 'edit',
- 'personID' => $person->getID()
- ),
- 'default',
- true); ?>"> <img src='/media/img/edit.png' alt='Edit Person' /></a></td>
- <?php
- }
- if($this->deleteOtherRight === true) {
- ?>
- <td class='action'><a
- href=" <?php echo $this->url(
- array(
- 'module' => 'user',
- 'controller' => 'auth',
- 'action' => 'delete',
- 'personID' => $person->getID()
- ),
- 'default',
- true); ?>"> <img src='/media/img/delete.png' alt='Delete Account' /></a></td>
- <?php
- }
- }
- ?>
- </tr>
- <?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>
+ </div>
+ <div class='clear'></div>
+ </div>
+ <?php endforeach ?>
+</div>
+
+<?php echo $this->pagination; ?>
+
+<script>
+$(document).ready(function(){
+ if($('.element').find('.dispnone').length >= 1){
+ $(this).find('.title').css('cursor','pointer');
+
+ $('.title').click(function(){
+ $(this).siblings('.dispnone').toggle();
+ });
}
- ?>
-</table>
- <?php echo $this->pagination; ?>
-<br />
-<br />
+});
+</script>