summaryrefslogtreecommitdiffstats
path: root/application/modules/user/views/scripts/person/showall.phtml
blob: d9f4cf90f5a7a5fe546c704ca3418b40bdaf5137 (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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
<h1>Persons Overview</h1>
<br />
<br />
<?php echo $this->searchform; ?>
<table>
	<tr>
		<th>Title</th>
		<th>Name</th>
		<th>Firstname</th>
		<th>Email</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
		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
			}
			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
		}
	}
	?>
</table>
	<?php echo $this->pagination; ?>
<br />
<br />