73 lines
1.8 KiB
PHP
73 lines
1.8 KiB
PHP
<?php
|
|
class Application_Form_RechercheWorldcheck 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' => 'wcheck',
|
|
'decorators' => array('ViewHelper'),
|
|
));
|
|
|
|
$this->addElement('select', 'dirType', array(
|
|
'decorators' => $this->elementDecorators,
|
|
'label' => 'TYPE',
|
|
'style' => 'width:175px;',
|
|
'required' => true,
|
|
'multiOptions' => array(
|
|
'INDIVIDUAL' => 'Individual',
|
|
'ORGANISATION' => 'Organisation'),
|
|
));
|
|
$this->addElement('text', 'dirNom', array(
|
|
'filters' => array('StringTrim'),
|
|
'label' => 'NOM',
|
|
'required' => 'true',
|
|
'decorators' => $this->elementDecorators,
|
|
'attribs' => array(
|
|
'size' => 30,
|
|
'maxlength' => 30,
|
|
),
|
|
));
|
|
|
|
$this->addElement('text', 'dirPrenom', array(
|
|
'filters' => array('StringTrim'),
|
|
'label' => 'PRENOM',
|
|
'required' => 'true',
|
|
'decorators' => $this->elementDecorators,
|
|
'attribs' => array(
|
|
'size' => 30,
|
|
'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,
|
|
));
|
|
}
|
|
|
|
}
|