summaryrefslogtreecommitdiffstats
path: root/application/modules/user/views/scripts/group/index.phtml
blob: 2e376b3224a5f3c9ec5715cbe6e9e9f373f646fd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
<h1>Groups Overview</h1>
<?php echo $this->searchform; ?>
<?php echo $this->formButton('addgroup', 'Add Group', array(
							'onclick' => 'self.location="/user/group/add"',
							'class' => 'addbutton'))
?>

<div class='searchvars'>
<div class='head'>Available searchfilter:</div>
<div class='code'>title</div>
<div class='code'>description</div>
</div>

<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'>
	<div class='smallnumber'>Group</div>
	<?php echo $k+1; ?>
</div>
	<?php
}
?>
<div class='content'>
<div class='actions'><a
	href="<?php if($group->getID() == $this->userIDsNamespace['groupID']) echo $this->url(
					array(
						'module'	=> 'user',
						'controller' => 'group',
						'action'     => 'show'
					),
					'default',
					true); else echo $this->url(
					array(
						'module'	=> 'user',
						'controller' => 'group',
						'action'     => 'show',
						'groupID'   =>  $group->getID()
					),
					'default',
					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',
						'action'     => 'edit'
					),
					'default',
					true); else echo $this->url(
					array(
						'module'	=> 'user',
						'controller' => 'group',
						'action'     => 'edit',
						'groupID'   =>  $group->getID()
					),
					'default',
					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',
						'action'     => 'delete'
					),
					'default',
					true); else echo $this->url(
					array(
						'module'	=> 'user',
						'controller' => 'group',
						'action'     => 'delete',
						'groupID'   =>  $group->getID()
					),
					'default',
					true); ?>"> <img src='/media/img/delete.png' alt='Delete Group' /></a>
</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 />