summaryrefslogtreecommitdiffstats
path: root/application/views/scripts/group/index.phtml
blob: b8178dc236b2613baaa9680c12b18a97fec36939 (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
<table>
	<tr>
		<th>Title:</th>
		<th>Functions:</th>
	</tr>
	<?php
	$count = 0;
	foreach($this->groupList as $group) {
		?>
	<tr>
		<td><?php echo $group->getTitle(); ?></td>
		<td>
		<form name="show<?php echo $count; ?>" action="/group/show"
			method="post"><input type="hidden" name="groupID"
			value="<?php echo $group->getID(); ?>" /><a
			href="javascript:document.show<?php echo $count; ?>.submit();">Details</a></form>
		<form name="edit<?php echo $count; ?>" action="/group/edit"
			method="post"><input type="hidden" name="groupID"
			value="<?php echo $group->getID(); ?>" /><a
			href="javascript:document.edit<?php echo $count; ?>.submit();">Edit</a></form>
		<form name="delete<?php echo $count; ?>" action="/group/delete"
			method="post"><input type="hidden" name="groupID"
			value="<?php echo $group->getID(); ?>" /><a
			href="javascript:document.delete<?php echo $count; ?>.submit();">Delete</a></form>
		</td>
	</tr>
	<?php
	$count++;
	}
	?>
</table>
<br />
<div>
<button onclick="location.href='/group/link'">Link Groups</button>
</div>