summaryrefslogtreecommitdiffstats
path: root/application/views/scripts/pool/index.phtml
diff options
context:
space:
mode:
Diffstat (limited to 'application/views/scripts/pool/index.phtml')
-rw-r--r--application/views/scripts/pool/index.phtml28
1 files changed, 27 insertions, 1 deletions
diff --git a/application/views/scripts/pool/index.phtml b/application/views/scripts/pool/index.phtml
index 25f1528..c3a6be9 100644
--- a/application/views/scripts/pool/index.phtml
+++ b/application/views/scripts/pool/index.phtml
@@ -79,7 +79,33 @@
</table>
<?php endforeach ?>
</table>
-
+<h2>Free clients</h2>
+<table border=1 >
+<tr><th>ClientID</th><th>MacAdress</th><th>Hardwarehash</th>
+<?php foreach ($this->pools as $pool): ?>
+ <th><?php echo $this->escape($pool->getTitle()) ?></th>
+ <?php endforeach ?>
+</tr>
+<?php
+foreach ($this->freeclients as $client): ?>
+ <tr>
+ <td><?php echo $client['clientID']; ?></td>
+ <td><?php echo $client['macadress']; ?></td>
+ <td><?php echo $client['hardwarehash']; ?></td>
+ <?php foreach ($this->pools as $pool): ?>
+ <td><a href='<?php echo $this->url(
+ array(
+ 'controller' => 'pool',
+ 'action' => 'linkclient',
+ 'clientID' => $client['clientID'],
+ 'poolID' => $pool->getID(),
+ ),
+ 'default',
+ true) ?>'>link</a></td>
+ <?php endforeach ?>
+ </tr>
+<?php endforeach ?>
+</table>
<?php else: ?>