summaryrefslogtreecommitdiffstats
path: root/application/modules/user/views/scripts/client/index.phtml
blob: 5a757414df93f1d4573c599942f0f5902d2cc9f7 (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
<h1>Clients</h1>
<?php if($this->notification != ''){echo $this->notification;} ?>
<?php echo $this->searchform; ?>
<?php echo $this->formButton('createbootos', 'Create Client', array(
							'onclick' => 'self.location="/user/client/addclient/page/'.$this->page.'"',
							'class' => 'addbutton'))?>

<?php if ($this->clients): ?>
    <table>
        <tr>            
			<th>MAC</th>
			<th>Hardwarehash</th>
 			<th colspan=2>Actions</th>
        </tr>
	<?php foreach ($this->clients as $client): ?>
	 	<tr class=entry>
			<td class='monospace'><?php echo $this->escape($client['macadress']) ?></td>
			<td class='monospace'><?php echo $this->escape($client['hardwarehash']) ?></td>
			<td class='action'><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></td>
			<td class='action'><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></td>
		</tr>
    <?php endforeach ?> 
    </table>
 	<?php echo $this->pagination; ?>
<?php else: ?>
    <p>There are no clients to display.</p> 
<?php endif;?>