diff options
| author | Simon | 2011-03-06 19:56:24 +0100 |
|---|---|---|
| committer | Simon | 2011-03-06 19:56:24 +0100 |
| commit | dee12ef18da0dc4db4f1a87c62aa98d321b76bac (patch) | |
| tree | 3fab7bd3fdc9cc218424e1ec8a97e430e0e7eb2f /application/views/scripts | |
| parent | Client und Pool-Controller hinzugefügt && addclientAction hinzugefügt (diff) | |
| download | pbs2-dee12ef18da0dc4db4f1a87c62aa98d321b76bac.tar.gz pbs2-dee12ef18da0dc4db4f1a87c62aa98d321b76bac.tar.xz pbs2-dee12ef18da0dc4db4f1a87c62aa98d321b76bac.zip | |
clients hinzufügen und entfernen && sql-data erweitert
Diffstat (limited to 'application/views/scripts')
| -rw-r--r-- | application/views/scripts/client/index.phtml | 35 | ||||
| -rw-r--r-- | application/views/scripts/client/removeclient.phtml | 1 |
2 files changed, 35 insertions, 1 deletions
diff --git a/application/views/scripts/client/index.phtml b/application/views/scripts/client/index.phtml index 4f0e6ec..4095a5f 100644 --- a/application/views/scripts/client/index.phtml +++ b/application/views/scripts/client/index.phtml @@ -1 +1,34 @@ -<br /><br /><center>View script for controller <b>Client</b> and script/action name <b>index</b></center>
\ No newline at end of file +<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;?> diff --git a/application/views/scripts/client/removeclient.phtml b/application/views/scripts/client/removeclient.phtml new file mode 100644 index 0000000..7b5f64f --- /dev/null +++ b/application/views/scripts/client/removeclient.phtml @@ -0,0 +1 @@ +<br /><br /><center>View script for controller <b>Client</b> and script/action name <b>deleteclient</b></center>
\ No newline at end of file |
