diff options
| author | Simon | 2011-03-14 16:09:03 +0100 |
|---|---|---|
| committer | Simon | 2011-03-14 16:09:03 +0100 |
| commit | b5cbdd6b400aa1ec77c9846e9cc8d4257f437e3c (patch) | |
| tree | fcef50ad1ddf831f457d6aecd83e7fdc63297a1c /application/modules/dev/views/scripts/client | |
| parent | footer bleibt am fensterbottom (diff) | |
| download | pbs2-b5cbdd6b400aa1ec77c9846e9cc8d4257f437e3c.tar.gz pbs2-b5cbdd6b400aa1ec77c9846e9cc8d4257f437e3c.tar.xz pbs2-b5cbdd6b400aa1ec77c9846e9cc8d4257f437e3c.zip | |
Application in 3 Modules gesplittet, Dev = unsere entwicklungsumgebung, user = die weboberfläche fr anwender mit acl etc, fbgui = für die fbgui truppe - links in dev müssen noch angepasst werden
Diffstat (limited to 'application/modules/dev/views/scripts/client')
4 files changed, 51 insertions, 0 deletions
diff --git a/application/modules/dev/views/scripts/client/addclient.phtml b/application/modules/dev/views/scripts/client/addclient.phtml new file mode 100644 index 0000000..e5b0bcf --- /dev/null +++ b/application/modules/dev/views/scripts/client/addclient.phtml @@ -0,0 +1,3 @@ +<?php + +echo $this->addclient; diff --git a/application/modules/dev/views/scripts/client/editclient.phtml b/application/modules/dev/views/scripts/client/editclient.phtml new file mode 100644 index 0000000..94d6b34 --- /dev/null +++ b/application/modules/dev/views/scripts/client/editclient.phtml @@ -0,0 +1,3 @@ +<?php + +echo $this->editclient; diff --git a/application/modules/dev/views/scripts/client/index.phtml b/application/modules/dev/views/scripts/client/index.phtml new file mode 100644 index 0000000..fd7725c --- /dev/null +++ b/application/modules/dev/views/scripts/client/index.phtml @@ -0,0 +1,44 @@ +<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>ID</th> + <th>MAC</th> + <th>Hardwarehash</th> + <th colspan=2>Actions</th> + </tr> + <?php foreach ($this->clients as $client): ?> + <tr class=entry> + <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 class='action'><a href="<?php echo $this->url( + array( + 'controller' => 'client', + 'action' => 'editclient', + 'clientID' => $client->getID() + ), + 'default', + true) ?>"><img src='/media/img/edit.png' alt='Edit Client'/></a></td> + <td class='action'><a href="<?php echo $this->url( + array( + 'controller' => 'client', + 'action' => 'removeclient', + 'clientID' => $client->getID() + ), + 'default', + true) ?>"><img src='/media/img/delete.png' alt='Delete Client'/></a></td> + </tr> + <?php endforeach ?> + </table> + +<?php else: ?> + + + <p>There are no clients to display.</p> + +<?php endif;?> diff --git a/application/modules/dev/views/scripts/client/removeclient.phtml b/application/modules/dev/views/scripts/client/removeclient.phtml new file mode 100644 index 0000000..7b5f64f --- /dev/null +++ b/application/modules/dev/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 |
