'div', 'class' => 'field')), array('Label'), ); public $buttonDecorators = array( 'ViewHelper' ); public function init() { $this->setName('recherche'); $this->setAction('/recherche/liste'); $this->setMethod('post'); $this->addElement('text', 'siret', array( 'filters' => array('StringTrim'), 'label' => 'SIREN', 'required' => 'true', 'decorators' => $this->elementDecorators, 'attribs' => array( 'size' => 30, 'maxlength' => 20, ), )); $this->addElement('hidden', 'type', array( 'value' => 'ent', 'decorators' => array('ViewHelper'), )); $this->addElement('text', 'raisonSociale', array( 'filters' => array('StringTrim'), 'label' => 'RAISON SOCIALE / ENSEIGNE / SIGLE ', 'required' => 'true', 'decorators' => $this->elementDecorators, 'attribs' => array( 'size' => 30, 'maxlength' => 20, ), )); $this->addElement('text', 'numero', array( 'filters' => array('StringTrim'), 'label' => 'N° & Voie', 'required' => 'true', 'decorators' => $this->elementDecorators, 'attribs' => array( 'size' => 2, 'maxlength' => 4, ), )); $this->addElement('text', 'voie', array( 'filters' => array('StringTrim'), 'label' => '', 'required' => 'true', 'decorators' => $this->elementDecorators, 'attribs' => array( 'size' => 20, 'maxlength' => 100, ), )); $this->addElement('text', 'cpVille', array( 'filters' => array('StringTrim'), 'label' => 'CP OU DÉP. / VILLE', 'required' => 'true', 'decorators' => $this->elementDecorators, 'attribs' => array( 'size' => 30, 'maxlength' => 30, ), )); $this->addElement('text', 'telFax', array( 'filters' => array('StringTrim'), 'label' => 'TÉL / FAX', 'required' => 'true', 'decorators' => $this->elementDecorators, 'attribs' => array( 'size' => 30, 'maxlength' => 30, ), )); $this->addElement('text', 'naf', array( 'filters' => array('StringTrim'), 'label' => 'NAF', 'required' => 'true', 'decorators' => $this->elementDecorators, 'attribs' => array( 'size' => 30, 'maxlength' => 30, ), )); $this->addElement('select', 'pays', array( 'decorators' => $this->elementDecorators, 'label' => 'Pays', 'required' => true, 'multiOptions' => array( '' => '', 'FR' => 'France', 'BE' => 'Belgique', 'ES' => 'Espagne', 'UK' => 'United Kingdom', 'NL' => 'Pays-Bas'), )); $this->addElement('submit', 'submit', array( 'label' => 'Recherche', 'ignore' => true, 'class' => 'button', 'decorators' => $this->buttonDecorators, )); $this->addElement('reset', 'reset', array( 'label' => 'Effacer', 'ignore' => true, 'class' => 'button', 'decorators' => $this->buttonDecorators, )); } }