diff options
| author | michael pereira | 2011-03-15 11:35:00 +0100 |
|---|---|---|
| committer | michael pereira | 2011-03-15 11:35:00 +0100 |
| commit | 3f9700079f95c7fb715e5c9363e48dce6c7c627f (patch) | |
| tree | 17fe70fcfbe651a9c52194423a67bac5a9c692e9 /application/modules/dev/forms/PoolClient.php | |
| parent | Ressource Controller (diff) | |
| parent | links korrigiert, dev ist nun lauffähig (diff) | |
| download | pbs2-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.php | 32 |
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; + } + +} + |
