summaryrefslogtreecommitdiffstats
path: root/application/views/scripts/person/index.phtml
blob: aa89e37b30ff58226f3e65f745eafbe01e25a1ac (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
<h1>Own Details</h1>
<style type="text/css">
label {
	width: 150px !important;
}
</style>
<div class='listelement'>
	<div class='element'>
		<div class='content'>
			<div class='title'><?php echo $this->person->getTitle()." ".$this->person->getFirstname()." ".$this->person->getName(); ?></div>
			<div class='subtitle'><?php echo $this->person->getEmail(); ?></div>
			<div class='details'><label>Street:</label>
				<div class='item'><?php echo $this->person->getStreet(); ?>&nbsp;</div>
				<label>Housenumber:</label>
				<div class='item'><?php echo $this->person->getHousenumber(); ?>&nbsp;</div>
				<label>City:</label>
				<div class='item'><?php echo $this->person->getCity(); ?>&nbsp;</div>
				<label>Postalcode:</label>
				<div class='item'><?php echo $this->person->getPostalcode(); ?>&nbsp;</div>
				<label>Email:</label>
				<div class='item'><?php echo $this->person->getEmail(); ?>&nbsp;</div>
				<label>Last Login:</label>
				<div class='item'><?php if( $this->person->getLogindate()) echo date ('d. F Y - H:i', $this->person->getLogindate()) . " Uhr"; ?>&nbsp;</div>
				<label>Register Date:</label>
				<div class='item'><?php echo date ('d. F Y - H:i', $this->person->getRegisterdate()) . ' Uhr'; ?>&nbsp;</div>
				<?php if($this->suspendRight === true)
				{
					?> <label>Suspended:</label>
				<div class='item'><?php if($this->person->getSuspend() == 1) echo "yes"; else echo "no"; ?></div>
					<?php
				}
			?>
			</div>
		</div>
	<div class='clear'></div>
	</div>
</div>
<br />
<h2>Member in the following Groups:</h2>
<div class='listelement'>
<?php 
if(count($this->groups)==0)
	echo "You are in no group." ?> 
<?php foreach ($this->groups as $group): ?>
	<?php
	$class='';
	if(isset($this->userIDsNamespace['membershipID'])) {
		if($group['membershipID'] == $this->userIDsNamespace['membershipID'])
			$class= 'highlight checked';
	}
	?>
	<div class='element<?php echo " $class";?>'>
		<div class='content'>
			<div class='title'><?php echo $group['title']; ?></div>
			<div class='subtitle'><?php echo $group['description']; ?>&nbsp;</div>
			<div class='details'>
				<label>Role</label>
					<div class='item'><?php echo $group['role']; ?>&nbsp;</div>
			</div>
			<?php if(isset($this->apikeys[$group['groupID']]) && $this->apikeys[$group['groupID']] != null):?>
				<div class='details'>
					<label>API-Key</label>
	  					<div class='item'><?php echo $this->apikeys[$group['groupID']]; ?>&nbsp;</div>
	  			</div>
	  		<?php endif;?>
		</div>
		<div class='clear'></div>		
	</div>
	<?php endforeach ?>
</div>
<?php echo $this->pagination;