summaryrefslogtreecommitdiffstats
path: root/application/views/scripts/client/index.phtml
blob: e9de06bc595683fdcad33894365c02de9fa918d4 (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
<h1>Clients</h1>
<?php echo $this->formButton('createbootos', 'Create Client', array(
							'onclick' => 'self.location="/client/addclient"',
							'class' => 'addbutton'))?>

<?php if ($this->clients): ?>
    <table>
        <tr>
            <th>clientID</th>
			<th>MAC</th>
			<th>Hardwarehash</th>
        </tr>
	<?php foreach ($this->clients as $client): ?>
	 	<tr class='client'>
			<td><?php echo $this->escape($client->getID()) ?></td>
			<td class='monospace'><?php echo $this->escape($client->getMacadress()) ?></td>
			<td class='monospace'><?php echo $this->escape($client->getHardwarehash()) ?></td>
			<td><a href="<?php echo $this->url(
						array(
							'controller' => 'client',
							'action'     => 'editclient',
							'clientID'	=> $client->getID()
						),
						'default',
						true) ?>">edit client</a></td>
			<td><a href="<?php echo $this->url(
						array(
							'controller' => 'client',
							'action'     => 'removeclient',
							'clientID'	=> $client->getID()
						),
						'default',
						true) ?>">remove client</a></td>
		</tr>
    <?php endforeach ?> 
    </table>
 
<?php else: ?>

 
    <p>There are no clients to display.</p>
 
<?php endif;?>