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.'"' )); } }