summaryrefslogtreecommitdiffstats
path: root/application/views
diff options
context:
space:
mode:
authorSimon2011-03-07 16:23:57 +0100
committerSimon2011-03-07 16:23:57 +0100
commit813b2381138772ecc74674a177984fe31a852f8d (patch)
tree680dabb94c434132680c6e49e2f34146db086f98 /application/views
parentAlle mapper mit findBy(criteria, value) ausgestattet && clients zu pool hinzu... (diff)
downloadpbs2-813b2381138772ecc74674a177984fe31a852f8d.tar.gz
pbs2-813b2381138772ecc74674a177984fe31a852f8d.tar.xz
pbs2-813b2381138772ecc74674a177984fe31a852f8d.zip
filter fertig
Diffstat (limited to 'application/views')
-rw-r--r--application/views/scripts/pool/index.phtml28
1 files changed, 28 insertions, 0 deletions
diff --git a/application/views/scripts/pool/index.phtml b/application/views/scripts/pool/index.phtml
index 1bee0fe..25f1528 100644
--- a/application/views/scripts/pool/index.phtml
+++ b/application/views/scripts/pool/index.phtml
@@ -49,6 +49,34 @@
'default',
true) ?>">link client</a></td>
</tr>
+ <tr>
+ <td>
+ </td>
+ <td colspan=6><table border=1><tr><th>clientID</th><th>mac</th><th>hardwarehash</th></th>
+ <?php
+ $poolentriesMapper = new Application_Model_PoolEntriesMapper();
+ $clients = $poolentriesMapper->findBy('poolID',$pool->getID());
+ foreach ($clients as $client): ?>
+ <tr>
+ <td><?php echo $client['clientID'];?></td>
+ <?php
+ $cli = new Application_Model_Client();
+ $clientMapper = new Application_Model_ClientMapper();
+ $clientMapper->find($client['clientID'],$cli);
+ ?>
+ <td><?php echo ($cli->macAdress); ?></td>
+ <td><?php echo ($cli->hardwarehash); ?></td>
+ <td><a href="<?php echo $this->url(
+ array(
+ 'controller' => 'pool',
+ 'action' => 'unlinkclient',
+ 'poolentriesID' => $client['poolentriesID']
+ ),
+ 'default',
+ true) ?>">unlink client</a></td>
+ </tr>
+ <?php endforeach ?>
+ </table>
<?php endforeach ?>
</table>