summaryrefslogtreecommitdiffstats
path: root/application/views
diff options
context:
space:
mode:
authorSimon2011-03-08 14:43:06 +0100
committerSimon2011-03-08 14:43:06 +0100
commit0954a80dac370c9fe8c66b8855d13acd3483e42a (patch)
tree07de0d71f8fe9125f8dffb2a7488d97f1dcea969 /application/views
parentapplication.ini entfernt (diff)
downloadpbs2-0954a80dac370c9fe8c66b8855d13acd3483e42a.tar.gz
pbs2-0954a80dac370c9fe8c66b8855d13acd3483e42a.tar.xz
pbs2-0954a80dac370c9fe8c66b8855d13acd3483e42a.zip
pools nun besser bearbeitbar
Diffstat (limited to 'application/views')
-rw-r--r--application/views/scripts/filter/index.phtml3
-rw-r--r--application/views/scripts/pool/index.phtml28
2 files changed, 29 insertions, 2 deletions
diff --git a/application/views/scripts/filter/index.phtml b/application/views/scripts/filter/index.phtml
index a3e6f25..eb459a7 100644
--- a/application/views/scripts/filter/index.phtml
+++ b/application/views/scripts/filter/index.phtml
@@ -103,7 +103,8 @@ tr.filter{background-color:#DDD;}
</tr>
<?php endforeach ?>
</table>
-
+
+
<?php else: ?>
<p>There are no filters to display.</p>
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: ?>