131 lines
3.3 KiB
PHP
131 lines
3.3 KiB
PHP
<?php
|
|
class Form_RechercheEnquete extends Zend_Form
|
|
{
|
|
|
|
public $elementDecorators = array(
|
|
'ViewHelper',
|
|
'Errors',
|
|
array('HtmlTag', array('tag' => 'div', 'class' => 'field')),
|
|
array('Label'),
|
|
);
|
|
|
|
public $buttonDecorators = array(
|
|
'ViewHelper'
|
|
);
|
|
|
|
public function init()
|
|
{
|
|
$this->setName('recherche');
|
|
$this->setAction('/recherche/enquete');
|
|
$this->setMethod('post');
|
|
|
|
$this->addElement('text', 'siret', array(
|
|
'filters' => array('StringTrim'),
|
|
'label' => 'Identifiant (SIREN, R.N.A.)',
|
|
'decorators' => $this->elementDecorators,
|
|
'attribs' => array(
|
|
'size' => 30,
|
|
'maxlength' => 20,
|
|
),
|
|
));
|
|
|
|
$this->addElement('text', 'raisonSociale', array(
|
|
'filters' => array('StringTrim'),
|
|
'validators' => array('NotEmpty'),
|
|
'required' => true,
|
|
'label' => 'Raison Sociale, Enseigne, Sigle ou Nom & Prénom',
|
|
'decorators' => $this->elementDecorators,
|
|
'attribs' => array(
|
|
'size' => 30,
|
|
'maxlength' => 100,
|
|
),
|
|
));
|
|
|
|
$this->addElement('textarea', 'adresse', array(
|
|
'filters' => array('StringTrim'),
|
|
'label' => 'Adresse complète',
|
|
'decorators' => $this->elementDecorators,
|
|
'attribs' => array(
|
|
'rows' => 3,
|
|
'cols' => 24,
|
|
),
|
|
));
|
|
|
|
$this->addElement('text', 'cpVille', array(
|
|
'filters' => array('StringTrim'),
|
|
'validators' => array('NotEmpty'),
|
|
'required' => true,
|
|
'label' => 'Code Postal / Ville',
|
|
'required' => true,
|
|
'decorators' => $this->elementDecorators,
|
|
'attribs' => array(
|
|
'size' => 30,
|
|
'maxlength' => 100,
|
|
),
|
|
));
|
|
|
|
$this->addElement('text', 'telFax', array(
|
|
'filters' => array('StringTrim'),
|
|
'label' => 'Téléphone / Fax',
|
|
'decorators' => $this->elementDecorators,
|
|
'attribs' => array(
|
|
'size' => 30,
|
|
'maxlength' => 100,
|
|
),
|
|
));
|
|
|
|
$this->addElement('text', 'activite', array(
|
|
'filters' => array('StringTrim'),
|
|
'label' => 'Activité (NAF ou libellé)',
|
|
'decorators' => $this->elementDecorators,
|
|
'attribs' => array(
|
|
'size' => 20,
|
|
'maxlength' => 100,
|
|
),
|
|
));
|
|
|
|
$this->addElement('text', 'categorieJur', array(
|
|
'filters' => array('StringTrim'),
|
|
'label' => 'Catégorie juridique',
|
|
'decorators' => $this->elementDecorators,
|
|
'attribs' => array(
|
|
'size' => 30,
|
|
'maxlength' => 100,
|
|
),
|
|
));
|
|
|
|
$this->addElement('textarea', 'remarque', array(
|
|
'filters' => array('StringTrim'),
|
|
'validators' => array('NotEmpty'),
|
|
'required' => true,
|
|
'label' => 'Remarque ou commentaire à destination de l\'enquéteur',
|
|
'decorators' => $this->elementDecorators,
|
|
'attribs' => array(
|
|
'rows' => 3,
|
|
'cols' => 24,
|
|
),
|
|
));
|
|
|
|
$this->addElement('text', 'email', array(
|
|
'filters' => array('StringTrim'),
|
|
'validators' => array('NotEmpty','EmailAddress'),
|
|
'required' => true,
|
|
'label' => 'Votre email pour la réception de l\'investigation ',
|
|
'decorators' => $this->elementDecorators,
|
|
'attribs' => array(
|
|
'size' => 30,
|
|
'maxlength' => 100,
|
|
),
|
|
));
|
|
|
|
$this->addElement('submit', 'submit', array(
|
|
'label' => 'Envoyer',
|
|
'ignore' => true,
|
|
'class' => 'button',
|
|
'decorators' => $this->buttonDecorators,
|
|
));
|
|
|
|
}
|
|
|
|
}
|