summaryrefslogtreecommitdiffstats
path: root/application/modules/dev/forms/PoolClient.php
diff options
context:
space:
mode:
authormichael pereira2011-03-15 11:35:00 +0100
committermichael pereira2011-03-15 11:35:00 +0100
commit3f9700079f95c7fb715e5c9363e48dce6c7c627f (patch)
tree17fe70fcfbe651a9c52194423a67bac5a9c692e9 /application/modules/dev/forms/PoolClient.php
parentRessource Controller (diff)
parentlinks korrigiert, dev ist nun lauffähig (diff)
downloadpbs2-3f9700079f95c7fb715e5c9363e48dce6c7c627f.tar.gz
pbs2-3f9700079f95c7fb715e5c9363e48dce6c7c627f.tar.xz
pbs2-3f9700079f95c7fb715e5c9363e48dce6c7c627f.zip
Ressource gelöscht
Diffstat (limited to 'application/modules/dev/forms/PoolClient.php')
-rw-r--r--application/modules/dev/forms/PoolClient.php32
1 files changed, 32 insertions, 0 deletions
diff --git a/application/modules/dev/forms/PoolClient.php b/application/modules/dev/forms/PoolClient.php
new file mode 100644
index 0000000..884f7e7
--- /dev/null
+++ b/application/modules/dev/forms/PoolClient.php
@@ -0,0 +1,32 @@
+<?php
+
+class dev_Form_PoolClient extends Zend_Form
+{
+ private $clients;
+
+ public function init()
+ {
+ $this->setName("addClientToPool");
+ $this->setMethod('post');
+
+ $clientfield = $this->createElement('select','clientID');
+ $clientfield ->setLabel('Client:');
+ print_a($this->clients);
+ foreach($this->clients as $c){
+ $clientfield->addMultiOption($c['clientID'],$c['macadress']." - ".$c['hardwarehash']);
+ }
+ $this->addElement($clientfield);
+
+ $this->addElement('submit', 'add', array(
+ 'required' => false,
+ 'ignore' => true,
+ 'label' => 'Save',
+ ));
+ }
+ public function setClients($clients){
+ $this->clients = $clients;
+ return $this;
+ }
+
+}
+