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
122
123
124
125
126
|
<h1>Own Details</h1>
<style type="text/css">
label {
width: 150px !important;
}
</style>
<?php if($this->editRight === true) echo $this->formButton('editperson', 'Edit', array(
'onclick' => 'self.location="/user/person/edit/"',
'class' => 'rightbutton'))?>
<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(); ?> </div>
<label>Housenumber:</label>
<div class='item'><?php echo $this->person->getHousenumber(); ?> </div>
<label>City:</label>
<div class='item'><?php echo $this->person->getCity(); ?> </div>
<label>Postalcode:</label>
<div class='item'><?php echo $this->person->getPostalcode(); ?> </div>
<label>Email:</label>
<div class='item'><?php echo $this->person->getEmail(); ?> </div>
<label>Last Login:</label>
<div class='item'><?php if( $this->person->getLogindate()) echo date ('d. F Y - H:i', $this->person->getLogindate()) . " Uhr"; ?> </div>
<label>Register Date:</label>
<div class='item'><?php echo date ('d. F Y - H:i', $this->person->getRegisterdate()) . ' Uhr'; ?> </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>
<?php if($this->groupRequestRight === true)
echo $this->formButton('addtogroup', 'Add to additional Groups', array(
'onclick' => 'self.location="/user/person/request/"',
'class' => 'addbutton')); ?>
<div class='listelement'>
<?php
if(count($this->groups)==0)
echo "You are in no group." ?>
<?php foreach ($this->groups as $group): ?>
<?php
$class='';
if($group['membershipID'] == $this->userIDsNamespace['membershipID'])
$class= 'highlight checked';
?>
<div class='element<?php echo " $class";?>'>
<div class='content'>
<div class='actions'><?php if($this->leaveRight === true): ?>
<a href="<?php echo $this->url(
array(
'module' => 'user',
'controller' => 'person',
'action' => 'leave',
'membershipID' => $group['membershipID']
),
'default',
true) ?>"><img src='/media/img/delete.png' alt='Delete Group' /></a>
<?php endif; ?>
</div>
<div class='title'><?php echo $group['title']; ?></div>
<div class='subtitle'><?php echo $group['description']; ?> </div>
<div class='details'>
<label>Role</label>
<div class='item'><?php echo $group['role']; ?> </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']]; ?> </div>
</div>
<?php endif;?>
</div>
<div class='clear'></div>
</div>
<?php endforeach ?>
</div>
<?php echo $this->pagination;
if(isset($this->groupRequestList)) {
?>
<br />
<h2>Requests:</h2>
<div class='listelement'>
<?php
foreach($this->groupRequestList as $grouprequest):
$grouprequestID = $grouprequest['grouprequestID'];
$group = $grouprequest['group'];
?>
<div class='element'>
<div class='content'>
<div class='actions'>
<a href="<?php echo $this->url(
array(
'module' => 'user',
'controller' => 'person',
'action' => 'deleterequest',
'grouprequestID' => $grouprequestID
),
'default',
true) ?>"><img src='/media/img/delete.png' alt='Delete Request' /></a>
</div>
<div class='title'><?php echo $group->getTitle(); ?></div>
<div class='subtitle'><?php echo $group->getDescription(); ?> </div>
</div>
<div class='clear'></div>
</div>
<?php
endforeach
?>
</div>
<?php
}
?>
|