extranet/library/Application/Form/RechercheActionnaire.php
2013-05-17 07:06:21 +00:00

108 lines
2.5 KiB
PHP

<?php
class Application_Form_RechercheActionnaire 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/liste');
$this->setMethod('post');
$this->addElement('hidden', 'type', array(
'value' => 'act',
'decorators' => array('ViewHelper'),
));
$this->addElement('text', 'siret', array(
'filters' => array('StringTrim'),
'label' => 'SIREN',
'required' => 'true',
'decorators' => $this->elementDecorators,
'attribs' => array(
'size' => 30,
'maxlength' => 30,
),
));
$this->addElement('text', 'actNomRs', array(
'filters' => array('StringTrim'),
'label' => 'RAISON SOCIAL / NOM',
'required' => 'true',
'decorators' => $this->elementDecorators,
'attribs' => array(
'size' => 30,
'maxlength' => 30,
),
));
$this->addElement('text', 'cpVille', array(
'filters' => array('StringTrim'),
'label' => 'CP OU DEP./VILLE',
'required' => 'true',
'decorators' => $this->elementDecorators,
'attribs' => array(
'size' => 30,
'maxlength' => 30,
),
));
$this->addElement('text', 'pays', array(
'filters' => array('StringTrim'),
'label' => 'PAYS',
'required' => 'true',
'decorators' => $this->elementDecorators,
'attribs' => array(
'size' => 30,
'maxlength' => 30,
),
));
$this->addElement('text', 'pctMin', array(
'filters' => array('StringTrim'),
'label' => 'PAR ACTION, DE',
'required' => 'true',
'decorators' => $this->elementDecorators,
'attribs' => array(
'size' => 3,
'maxlength' => 3,
),
));
$this->addElement('text', 'pctMax', array(
'filters' => array('StringTrim'),
'label' => ' A ',
'required' => 'true',
'decorators' => $this->elementDecorators,
'attribs' => array(
'size' => 3,
'maxlength' => 3,
),
));
$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,
));
}
}