issue #0001350 : Prise en compte des doublons (test)

This commit is contained in:
Michael RICOIS 2013-01-25 11:16:20 +00:00
parent 4a4798cf49
commit 8b3a2e6311
2 changed files with 19 additions and 6 deletions

View File

@ -138,4 +138,13 @@ class ProfilController extends Zend_Controller_Action
}
}
public function helpAction()
{
}
}

View File

@ -86,10 +86,10 @@ input[type="text"] {
<div style="clear:both;">
Clé de dédoublonnage : <br/>
<input type="checkbox" name="doublon[]" value="siret" <?php if(in_array('siret', $this->doublon)) echo ' checked';?>/> SIRET<br/>
<input type="checkbox" name="doublon[]" value="siren" <?php if(in_array('siren', $this->doublon)) echo ' checked';?>/> SIREN<br/>
<input type="checkbox" name="doublon[]" value="nic" <?php if(in_array('nic', $this->doublon)) echo ' checked';?>/> NIC<br/>
<input type="checkbox" name="doublon[]" value="ref" <?php if(in_array('ref', $this->doublon)) echo ' checked';?>/> REF<br/>
<input type="checkbox" name="doublon" value="siret" <?php if(in_array('siret', $this->doublon)) echo ' checked';?>/> SIRET<br/>
<input type="checkbox" name="doublon" value="siren" <?php if(in_array('siren', $this->doublon)) echo ' checked';?>/> SIREN<br/>
<input type="checkbox" name="doublon" value="nic" <?php if(in_array('nic', $this->doublon)) echo ' checked';?>/> NIC<br/>
<input type="checkbox" name="doublon" value="ref" <?php if(in_array('ref', $this->doublon)) echo ' checked';?>/> REF<br/>
</div>
<div style="clear:both;">
@ -153,9 +153,13 @@ $(function() {
});
var ref = $('input[name=profil]').val();
if (ref!='') {
$.post(url, { reference: ref, criteres: list }, function(data){
var doublon = $('input[name=doublon]:checkbox:checked').map(function () {
return this.value;
}).get();
console.log(doublon);
/*$.post(url, { reference: ref, criteres: list, doublon: doublon }, function(data){
if (data!='Erreur'){ window.location.href = '/'; }
}, 'json');
}, 'json');*/
}
});