summaryrefslogblamecommitdiffstats
path: root/application/modules/dev/forms/PoolClient.php
blob: 884f7e770ad4287217d0bafe1fa6e2ecbb47402e (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13

     
                                           









                                                                         
                                        

















                                                                                                              
<?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;
	}
	
}