protected function buildExtraElements() { $pricesTable = new Refprice(); logfire('$this->_business->getBusinessTypeId()', $this->_business->getBusinessTypeId()); $prices = $pricesTable->getPriceOptions($this->_business->getBusinessTypeId(), $this->_location->getSearchRules()->currency); $min = new Zend_Form_Element_Select('min'); $min->setLabel('Min'); $min->setAttrib('class', 'refineformmoneyselect'); $min->addMultiOptions($prices); $this->addElement($min); $max = new Zend_Form_Element_Select('max'); $max->setLabel('Max'); $max->setAttrib('class', 'refineformmoneyselect'); $max->addMultiOptions($prices); $this->addElement($max); $facilifies = array('Any' => 'Any', '-1' => 'NA', '1' => '1', '2' => '2', '3' => '3', '4' => '4', '5' => '5', '100' => '6+'); $bedOptions = array('Any' => 'Any', '-1' => 'NA', '0' => 'Studio', '1' => '1', '2' => '2', '3' => '3', '4' => '4', '5' => '5', '100' => '6+'); $bed = new Zend_Form_Element_Select('bed'); $bed->setLabel('Bed'); $bed->setAttrib('class', 'refineformmoneyselect'); $bed->addMultiOptions($bedOptions); $this->addElement($bed); $cars = new Zend_Form_Element_Select('cars'); $cars->setLabel('Cars'); $cars->setAttrib('class', 'refineformmoneyselect'); $cars->addMultiOptions($facilifies); $this->addElement($cars); $bath = new Zend_Form_Element_Select('bath'); $bath->setLabel('Bath'); $bath->setAttrib('class', 'refineformmoneyselect'); $bath->addMultiOptions($facilifies); $this->addElement($bath); return parent::buildExtraElements(); }
protected function buildExtraElements() { $pricesTable = new Refprice(); logfire('$this->_business->getBusinessTypeId()', $this->_business->getBusinessTypeId()); $prices = $pricesTable->getPriceOptions($this->_business->getBusinessTypeId(), $this->_location->getSearchRules()->currency); $min = new Zend_Form_Element_Select('min'); $min->setLabel('Min'); $min->setAttrib('class', 'refineformmoneyselect'); $min->addMultiOptions($prices); $this->addElement($min); $max = new Zend_Form_Element_Select('max'); $max->setLabel('Max'); $max->setAttrib('class', 'refineformmoneyselect'); $max->addMultiOptions($prices); $this->addElement($max); return parent::buildExtraElements(); }