From fca04a6dab252eb9e8c0a92ce3b7e14b32e68d1e Mon Sep 17 00:00:00 2001 From: Sebastian Schmelzer Date: Wed, 11 Jan 2012 14:36:35 +0100 Subject: format source files --- application/modules/dev/forms/PoolClient.php | 68 ++++++++++++++-------------- 1 file changed, 33 insertions(+), 35 deletions(-) (limited to 'application/modules/dev/forms/PoolClient.php') diff --git a/application/modules/dev/forms/PoolClient.php b/application/modules/dev/forms/PoolClient.php index 434343a..a9dc880 100644 --- a/application/modules/dev/forms/PoolClient.php +++ b/application/modules/dev/forms/PoolClient.php @@ -1,42 +1,40 @@ -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 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']); } - public function setClients($clients){ - $this->clients = $clients; - return $this; - } - + $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