Example #1
0
 /**
  * 
  */
 public function init()
 {
     $this->setName('searchclient');
     parent::init();
     $mapperEnterprise = new Register_Model_Mapper_Enterprise();
     $rows = $mapperEnterprise->listByFilters();
     $optEnterprise[''] = '';
     foreach ($rows as $row) {
         $optEnterprise[$row->id_fefpenterprise] = $row->enterprise_name;
     }
     $element = $this->createElement('select', 'fk_id_fefpenterprise')->setDecorators($this->getDefaultElementDecorators())->setLabel('Empreza')->addMultiOptions($optEnterprise)->setRequired(true)->setAttrib('class', 'm-wrap span12 chosen');
     $this->addElement($element);
 }
Example #2
0
 /**
  * 
  */
 public function manualAction()
 {
     $this->_helper->layout()->disableLayout();
     $form = new Job_Form_MatchManual();
     $form->setAction($this->_helper->url('list-manual'));
     $form->getElement('fk_id_jobvacancy')->setValue($this->_getParam('id'));
     $this->view->form = $form;
 }