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/user/forms/PoolClient.php | 92 +++++++++++++-------------- 1 file changed, 45 insertions(+), 47 deletions(-) (limited to 'application/modules/user/forms/PoolClient.php') diff --git a/application/modules/user/forms/PoolClient.php b/application/modules/user/forms/PoolClient.php index 9acf21b..17b8ae8 100644 --- a/application/modules/user/forms/PoolClient.php +++ b/application/modules/user/forms/PoolClient.php @@ -1,53 +1,51 @@ -buttontext = $v; - } - public function setClients($clients){ - $this->clients = $clients; - return $this; - } - public function setPage($page){ - $this->page = $page; - } - - public function init() - { - $this->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', - )); - $this->addElement('button', 'Cancel', array( - 'onclick' => 'self.location="/user/filter/index/page/'.$this->page.'"' - )); +class user_Form_PoolClient extends Zend_Form { + private $clients; + private $page; + private $buttontext = 'Save'; + + function setButtontext($v) { + $this->buttontext = $v; + } + public function setClients($clients) { + $this->clients = $clients; + return $this; + } + public function setPage($page) { + $this->page = $page; + } + + public function init() { + $this->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', + )); + $this->addElement('button', 'Cancel', array( + 'onclick' => 'self.location="/user/filter/index/page/'.$this->page.'"' + )); + } + } -- cgit v1.2.3-55-g7522