summaryrefslogblamecommitdiffstats
path: root/application/views/scripts/client/index.phtml
blob: 4095a5f39509a5527a239f5c0678d46a5f5e6f90 (plain) (tree)

































                                                                                           
<h1>Clients</h1>

<?php if ($this->clients): ?>
 
    <!-- A table of filters. -->
    <table border=1>
        <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><?php echo $this->escape($client->getMacadress()) ?></td>
			<td><?php echo $this->escape($client->getHardwarehash()) ?></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;?>