blob: a62557b83bc2233aed0d2ac6d70c354a7d7fa48a (
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
|
<h1>Person</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/personID/' . $this->personID . '"',
'class' => 'rightbutton')) ?>
<?php if($this->deleteRight === true) echo $this->formButton('deleteperson', 'Delete', array(
'onclick' => 'self.location="/user/auth/delete/personID/' . $this->personID . '"',
'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>
<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='title'><?php echo $group['title']; ?></div>
<div class='subtitle'><?php echo $group['description']; ?> </div>
</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='title'><?php echo $group->getTitle(); ?></div>
<div class='subtitle'><?php echo $group->getDescription(); ?> </div>
</div>
<div class='clear'></div>
</div>
<?php
endforeach
?>
</div>
<?php
}
?>
|