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
|
<h1>Clients</h1>
<?php if($this->notification != ''){echo $this->notification;} ?>
<?php echo $this->searchform; ?>
<?php if(Pbs_Acl::checkRight('cla')): ?>
<?php echo $this->formButton('createbootos', 'Create Client', array(
'onclick' => 'self.location="/user/client/addclient/page/'.$this->page.'"',
'class' => 'addbutton'))?>
<?php endif;?>
<div class='searchvars'>
<div class='head'>Available searchfilter:</div>
<div class='code'>clientID</div>
<div class='code'>macadress</div>
<div class='code'>hardwarehash</div>
</div>
<div class='listelement'>
<?php if(count($this->clients)==0)
echo "There are no Clients to display." ?>
<?php foreach ($this->clients as $client): ?>
<div class='element'>
<div class='number'>
<div class='smallnumber'>Client</div>
<?php echo $this->escape($client['clientID']) ?></div>
<div class='content'>
<div class='actions'>
<?php if(Pbs_Acl::checkRight('cle')): ?>
<a href="<?php echo $this->url(
array(
'module' => 'user',
'controller' => 'client',
'action' => 'editclient',
'clientID' => $client['clientID'],
'page' => $this->page
),
'default',
true) ?>"><img src='/media/img/edit.png' alt='Edit Client'/></a>
<?php endif; ?>
<?php if(Pbs_Acl::checkRight('cld')): ?>
<a href="<?php echo $this->url(
array(
'module' => 'user',
'controller' => 'client',
'action' => 'removeclient',
'clientID' => $client['clientID'],
'page' => $this->page
),
'default',
true) ?>"><img src='/media/img/delete.png' alt='Delete Client'/></a>
<?php endif; ?>
</div>
<!--<div class='title'>Title</div>-->
<!--<div class='subtitle'>Subtitle</div>-->
<div class='details'>
<label>MacAdress</label>
<div class='item'><?php echo $this->escape($client['macadress']) ?></div>
<label>Hardwarehash</label>
<div class='item'><?php echo $this->escape($client['hardwarehash']) ?></div>
</div>
</div>
<div class='clear'></div>
</div>
<?php endforeach ?>
</div>
<?php echo $this->pagination; ?>
<script>
$(document).ready(function(){
if($('.element').find('.dispnone').length >= 1){
$(this).find('.title').css('cursor','pointer');
$('.title').click(function(){
$(this).siblings('.dispnone').toggle();
});
}
});
</script>
|