'div', 'class' => 'field')), array('Label'), ); public $buttonDecorators = array( 'ViewHelper' ); public function init() { $this->setName('recherche'); $this->setAction('/recherche/liste'); $this->setMethod('post'); $this->addElement('hidden', 'type', array( 'value' => 'dir', 'decorators' => array('ViewHelper'), )); $this->addElement('text', 'dirNom', array( 'filters' => array('StringTrim'), 'label' => 'NOM', 'required' => 'true', 'decorators' => $this->elementDecorators, 'attribs' => array( 'size' => 20, 'maxlength' => 30, ), )); $this->addElement('text', 'dirPrenom', array( 'filters' => array('StringTrim'), 'label' => 'PRENOM', 'required' => 'true', 'decorators' => $this->elementDecorators, 'attribs' => array( 'size' => 20, 'maxlength' => 30, ), )); $this->addElement('text', 'dirDateNaissJJ', array( 'filters' => array('StringTrim'), 'label' => 'DATE NAISSANCE', 'required' => 'true', 'decorators' => $this->elementDecorators, 'attribs' => array( 'size' => 2, 'maxlength' => 2, ), )); $this->addElement('text', 'dirDateNaissMM', array( 'filters' => array('StringTrim'), 'label' => '', 'required' => 'true', 'decorators' => $this->elementDecorators, 'attribs' => array( 'size' => 2, 'maxlength' => 2, ), )); $this->addElement('text', 'dirDateNaissAAAA', array( 'filters' => array('StringTrim'), 'label' => '', 'required' => 'true', 'decorators' => $this->elementDecorators, 'attribs' => array( 'size' => 4, 'maxlength' => 4, ), )); $this->addElement('text', 'dirCpVille', array( 'filters' => array('StringTrim'), 'label' => 'CP OU DEP. / VILLE DE NAISSANCE', 'required' => 'true', 'decorators' => $this->elementDecorators, 'attribs' => array( 'size' => 20, 'maxlength' => 30, ), )); $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, )); } }