summaryrefslogtreecommitdiffstats
path: root/application/modules/dev/views/scripts/person/show.phtml
blob: 945bb61543eb6cce89a9568b8b71e1f5be18c241 (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
<div align="right">
<button onclick="location.href='/dev/person/edit'">Edit</button>
</div>
<table>
	<tr>
		<td><b>Title:</b></td>
		<td><?php echo $this->person->getTitle(); ?></td>
	</tr>
	<tr>
		<td><b>Name:</b></td>
		<td><?php echo $this->person->getName(); ?></td>
	</tr>
	<tr>
		<td><b>Firstname:</b></td>
		<td><?php echo $this->person->getFirstname(); ?></td>
	</tr>
	<tr>
		<td><b>Street:</b></td>
		<td><?php echo $this->person->getStreet(); ?></td>
	</tr>
	<tr>
		<td><b>Housenumber:</b></td>
		<td><?php echo $this->person->getHousenumber(); ?></td>
	</tr>
	<tr>
		<td><b>City:</b></td>
		<td><?php echo $this->person->getCity(); ?></td>
	</tr>
	<tr>
		<td><b>Postalcode:</b></td>
		<td><?php echo $this->person->getPostalcode(); ?></td>
	</tr>
	<tr>
		<td><b>Email:</b></td>
		<td><?php echo $this->person->getEmail(); ?></td>
	</tr>
	<tr>
		<td><b>Last Login Date:</b></td>
		<td><?php if( $this->person->getLogindate()) echo date ('d. F Y - H:i', $this->person->getLogindate()); ?> Uhr</td>
	</tr>
	<tr>
		<td><b>Register Date:</b></td>
		<td><?php echo date ('d. F Y - H:i', $this->person->getRegisterdate()); ?> Uhr</td>
	</tr>
</table>
<?php
if(isset($this->groups)) {
	?>
<br />
<div>Member in the following Groups:</div>
<br />
<table>
<?php
foreach($this->groups as $group) {
	?>
	<tr>
		<th>Title</th>
		<th>Functions</th>
	</tr>
	<tr>
		<td><?php echo $group['title']; ?></td>
		<td>
		<form name="leaveGroup<?php echo $group['id']; ?>"
			action="/dev/person/leave/" method="post"><input type="hidden"
			name="groupID" value="<?php echo $group['id']; ?>" /> <a
			href="javascript:document.leaveGroup<?php echo $group['id']; ?>.submit();">Remove
		Membership</a></form>
		</td>
	</tr>
	<?php
}
}
?>
</table>
<br />
<div>
<button onclick="location.href='/dev/person/request'">Add to additional
Groups</button>
</div>