summaryrefslogtreecommitdiffstats
path: root/application/modules/user/views/scripts/person
diff options
context:
space:
mode:
authormichael pereira2011-04-07 14:45:51 +0200
committermichael pereira2011-04-07 14:45:51 +0200
commit6af094f483774692b0d9178b917abc04fa50d446 (patch)
tree27ba087e16d6fce71ebf499cf2e5a91771ef6f78 /application/modules/user/views/scripts/person
parentMeta Recht geändert (diff)
parentfix der mapper in der fbgui (diff)
downloadpbs2-6af094f483774692b0d9178b917abc04fa50d446.tar.gz
pbs2-6af094f483774692b0d9178b917abc04fa50d446.tar.xz
pbs2-6af094f483774692b0d9178b917abc04fa50d446.zip
Merge branch 'master' of openslx.org:lsfks/master-teamprojekt/pbs2
Diffstat (limited to 'application/modules/user/views/scripts/person')
-rw-r--r--application/modules/user/views/scripts/person/index.phtml69
-rw-r--r--application/modules/user/views/scripts/person/showall.phtml224
2 files changed, 141 insertions, 152 deletions
diff --git a/application/modules/user/views/scripts/person/index.phtml b/application/modules/user/views/scripts/person/index.phtml
index 824e7fb..7505954 100644
--- a/application/modules/user/views/scripts/person/index.phtml
+++ b/application/modules/user/views/scripts/person/index.phtml
@@ -22,45 +22,38 @@ if(isset($this->groups)) {
?>
<br />
<h2>Member in the following Groups:</h2>
-<table>
- <tr>
- <th>Title</th>
- <th>Description</th>
- <?php if($this->leaveRight === true) {
- ?>
- <th>Leave</th>
- <?php
- }
+
+<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';
?>
- </tr>
- <?php
- foreach($this->groups as $group) {
- ?>
- <tr
- <?php if($group['membershipID'] == $this->userIDsNamespace['membershipID']) echo 'class="selectedEntry"'; else echo 'class="entry"'; ?>>
- <td><?php echo $group['title']; ?></td>
- <td><?php echo $group['description']; ?></td>
- <?php if($this->leaveRight === true) {
- ?>
- <td class='action'><a
- href="<?php echo $this->url(
- array(
- 'module' => 'user',
- 'controller' => 'person',
- 'action' => 'leave',
- 'membershipID' => $group['membershipID']
- ),
- 'default',
- true) ?>"> <img src='/media/img/delete.png' alt='Delete Group' /></a>
- </td>
- <?php
- }
- ?>
- </tr>
- <?php
- }
- ?>
-</table>
+ <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',
+ 'action' => 'leave',
+ '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 ?>
+</div>
<?php echo $this->pagination;
if($this->groupRequestRight === true) echo $this->formButton('addtogroup', 'Add to additional
Groups', array(
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>