Issue #0001653:
This commit is contained in:
parent
18e8a54f05
commit
45d674df48
@ -8,9 +8,9 @@ $form = $this->form;
|
||||
method="<?php echo $form->getMethod()?>" action="<?php echo $form->getAction()?>">
|
||||
<?php echo $form->type?>
|
||||
|
||||
<div class="row"><?php echo $form->dirNom?></div>
|
||||
<div class="row"><?php echo $form->dirPrenom?></div>
|
||||
<div class="row"><?php echo $form->dirType?></div>
|
||||
<div class="row" id='nom'><?php echo $form->dirNom?></div>
|
||||
<div class="row" id='prenom'><?php echo $form->dirPrenom?></div>
|
||||
|
||||
<div class="row submit">
|
||||
<?php echo $form->submit?>
|
||||
@ -18,4 +18,23 @@ $form = $this->form;
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
function formElements()
|
||||
{
|
||||
if ($('select[name=dirType] option:selected').text()=='Individual')
|
||||
{
|
||||
$('div#prenom').show();
|
||||
}
|
||||
else
|
||||
{
|
||||
$('div#prenom').hide();
|
||||
}
|
||||
}
|
||||
$('document').ready(function(e){
|
||||
formElements();
|
||||
});
|
||||
$('select[name=dirType]').change(function(e){
|
||||
formElements();
|
||||
});
|
||||
</script>
|
||||
|
@ -22,7 +22,16 @@ class Application_Form_RechercheWorldcheck extends Zend_Form
|
||||
'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',
|
||||
@ -44,17 +53,6 @@ class Application_Form_RechercheWorldcheck extends Zend_Form
|
||||
'maxlength' => 30,
|
||||
),
|
||||
));
|
||||
|
||||
$this->addElement('select', 'dirType', array(
|
||||
'decorators' => $this->elementDecorators,
|
||||
'label' => 'Type',
|
||||
'style' => 'width:175px;',
|
||||
'required' => true,
|
||||
'multiOptions' => array(
|
||||
'' => '',
|
||||
'INDIVIDUAL' => 'Individual',
|
||||
'ORGANISATION' => 'Organisation'),
|
||||
));
|
||||
|
||||
$this->addElement('submit', 'submit', array(
|
||||
'label' => 'Recherche',
|
||||
|
@ -1,10 +1,10 @@
|
||||
CREATE TABLE IF NOT EXISTS `worldcheck` (
|
||||
CREATE TABLE IF NOT EXISTS `worldcheckqw` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`idClient` char(5) NOT NULL,
|
||||
`login` char(25) NOT NULL,
|
||||
`nameIdentifier` varchar(23) NOT NULL,
|
||||
`name` varchar(50) NOT NULL,
|
||||
`nameType` varchar(12) NOT NULL,
|
||||
`nameType` enum('INDIVIDUAL', 'ORGANISATION') NOT NULL,
|
||||
`matchCount` int(4) DEFAULT NULL,
|
||||
`dateInsert` date NOT NULL,
|
||||
PRIMARY KEY (`id`)
|
||||
|
Loading…
Reference in New Issue
Block a user