extranet/library/Web/forms/RechercheEntreprise.php
2011-04-01 12:14:40 +00:00

104 lines
2.7 KiB
PHP

<?php
class Form_RechercheEntreprise 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/list');
$this->setMethod('post');
$this->addElement('text', 'siren', array(
'filters' => array('StringTrim'),
'label' => 'SIREN',
'required' => 'true',
'decorators' => $this->elementDecorators,
'attribs' => array(
'size' => 30,
'maxlength' => 20,
),
));
$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('submit', 'submit', array(
'label' => 'Recherche',
'ignore' => true,
'decorators' => $this->buttonDecorators,
));
$this->addElement('reset', 'reset', array(
'label' => 'Effacer',
'ignore' => true,
'decorators' => $this->buttonDecorators,
));
}
}