summaryrefslogtreecommitdiffstats
path: root/application/modules/user/views/scripts/group/showall.phtml
diff options
context:
space:
mode:
authormichael pereira2011-04-11 14:29:29 +0200
committermichael pereira2011-04-11 14:29:29 +0200
commit4d63a9525b3601dbd2e24328c1ef250ad605765d (patch)
tree02179f65307191d7ae3997c38a5276ced038b134 /application/modules/user/views/scripts/group/showall.phtml
parentkcl fix im ressource controller (diff)
parentMerge branch 'master' of openslx.org:lsfks/master-teamprojekt/pbs2 (diff)
downloadpbs2-4d63a9525b3601dbd2e24328c1ef250ad605765d.tar.gz
pbs2-4d63a9525b3601dbd2e24328c1ef250ad605765d.tar.xz
pbs2-4d63a9525b3601dbd2e24328c1ef250ad605765d.zip
Merge branch 'master' of openslx.org:lsfks/master-teamprojekt/pbs2
Diffstat (limited to 'application/modules/user/views/scripts/group/showall.phtml')
-rw-r--r--application/modules/user/views/scripts/group/showall.phtml70
1 files changed, 40 insertions, 30 deletions
diff --git a/application/modules/user/views/scripts/group/showall.phtml b/application/modules/user/views/scripts/group/showall.phtml
index 2ed777a..5e53f87 100644
--- a/application/modules/user/views/scripts/group/showall.phtml
+++ b/application/modules/user/views/scripts/group/showall.phtml
@@ -6,26 +6,28 @@
?>
<div class='searchvars'>
- <div class='head'>Available searchfilter:</div>
- <div class='code'>title</div>
- <div class='code'>description</div>
+<div class='head'>Available searchfilter:</div>
+<div class='code'>title</div>
+<div class='code'>description</div>
</div>
-<div class='listelement'>
+<div class='listelement'><?php
+if(count($this->groupList)==0)
+echo "There are no groups" ?> <?php foreach ($this->groupList as $k => $group): ?>
+<?php
+$class='';
+if($group->getID() == $this->userIDsNamespace['groupID'])
+$class= 'highlight checked';
+?>
+<div class='element<?php echo " $class";?>'><?php if($group->getID() != $this->userIDsNamespace['groupID']) {
+ ?>
+<div class='number'><?php echo $k+1; ?></div>
<?php
- $count = 0;
- if(count($this->groupList)==0)
- echo "There are no groups" ?>
- <?php foreach ($this->groupList as $group): ?>
- <?php
- $class='';
- if($group->getID() == $this->userIDsNamespace['groupID'])
- $class= 'highlight checked';
- ?>
- <div class='element<?php echo " $class";?>'>
- <div class='content'>
- <div class='actions'>
- <a href="<?php if($group->getID() == $this->userIDsNamespace['groupID']) echo $this->url(
+}
+?>
+<div class='content'>
+<div class='actions'><a
+ href="<?php if($group->getID() == $this->userIDsNamespace['groupID']) echo $this->url(
array(
'module' => 'user',
'controller' => 'group',
@@ -40,8 +42,9 @@
'groupID' => $group->getID()
),
'default',
- true); ?>"> <img src='/media/img/show.png' alt='Show Group' /></a></td>
- <a href="<?php if($group->getID() == $this->userIDsNamespace['groupID']) echo $this->url(
+ true); ?>"> <img src='/media/img/show.png' alt='Show Group' /></a>
+<a
+ href="<?php if($group->getID() == $this->userIDsNamespace['groupID']) echo $this->url(
array(
'module' => 'user',
'controller' => 'group',
@@ -56,8 +59,9 @@
'groupID' => $group->getID()
),
'default',
- true); ?>"> <img src='/media/img/edit.png' alt='Edit Group' /></a></td>
- <a href="<?php if($group->getID() == $this->userIDsNamespace['groupID']) echo $this->url(
+ true); ?>"> <img src='/media/img/edit.png' alt='Edit Group' /></a>
+<a
+ href="<?php if($group->getID() == $this->userIDsNamespace['groupID']) echo $this->url(
array(
'module' => 'user',
'controller' => 'group',
@@ -73,20 +77,26 @@
),
'default',
true); ?>"> <img src='/media/img/delete.png' alt='Delete Group' /></a>
- </div>
- <div class='title'><?php echo $group->getTitle(); ?></div>
- <div class='subtitle'><?php echo $group->getDescription(); ?></div>
- </div>
- <div class='clear'></div>
- </div>
- <?php $count++; ?>
- <?php endforeach ?>
</div>
+<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'>&nbsp;</div>
+ <?php
+ }
+ ?></div>
+<div class='clear'></div>
+</div>
+<?php endforeach ?></div>
<?php echo $this->pagination; ?>
<?php echo $this->formButton('linkgroups', 'Link Groups', array(
'onclick' => 'self.location="/user/group/link"',
'class' => 'addbutton'))
- ?>
+?>
<br />
<br />