From 8dcde51a354a3308017564a64ef69e794f430974 Mon Sep 17 00:00:00 2001 From: Simon Date: Mon, 7 Mar 2011 15:51:56 +0100 Subject: Alle mapper mit findBy(criteria, value) ausgestattet && clients zu pool hinzufügen --- application/forms/PoolClient.php | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 application/forms/PoolClient.php (limited to 'application/forms/PoolClient.php') diff --git a/application/forms/PoolClient.php b/application/forms/PoolClient.php new file mode 100644 index 0000000..7bacae0 --- /dev/null +++ b/application/forms/PoolClient.php @@ -0,0 +1,31 @@ +setName("addClientToPool"); + $this->setMethod('post'); + + $clientfield = $this->createElement('select','clientID'); + $clientfield ->setLabel('Client:'); + 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; + } + +} + -- cgit v1.2.3-55-g7522