2010-01-14 11:29:30 +00:00
|
|
|
$(document).ready(function()
|
2010-02-23 15:27:18 +00:00
|
|
|
{
|
|
|
|
//Gestion boite dialog mandataire
|
|
|
|
$('.lienMandataire').live('click', function(){
|
|
|
|
var title = $(this).attr('title');
|
|
|
|
var href = $(this).attr('href');
|
|
|
|
var dialogOpts = {
|
|
|
|
bgiframe: true,
|
|
|
|
title: title,
|
2010-03-04 10:05:38 +00:00
|
|
|
width: 650,
|
2010-03-09 08:45:41 +00:00
|
|
|
height: 530,
|
2010-02-23 15:27:18 +00:00
|
|
|
modal: true,
|
|
|
|
open: function(event, ui) {
|
|
|
|
$(this).html('Chargement...');
|
|
|
|
$(this).load(href);
|
|
|
|
},
|
2010-03-09 08:45:41 +00:00
|
|
|
buttons: {
|
|
|
|
'Enregistrer': function() {
|
|
|
|
var href = $('#frmCreateMandataires').attr('action');
|
|
|
|
var data = $('#frmCreateMandataires').serialize();
|
2010-03-09 10:28:44 +00:00
|
|
|
$('#dMessage').replaceWith('<div id="dMessage">Enregistrement en cours...</div>');
|
|
|
|
$('#frmCreateMandataires').css('display', 'none');
|
2010-03-09 08:45:41 +00:00
|
|
|
$.post(href, data, function(data, textStatus) {
|
2010-03-09 10:28:44 +00:00
|
|
|
if(data==''){
|
2010-03-09 09:11:05 +00:00
|
|
|
$('#dialogmand').remove();
|
2010-03-09 08:45:41 +00:00
|
|
|
}else{
|
2010-03-09 10:28:44 +00:00
|
|
|
$('#dMessage').replaceWith('<div id="dMessage">'+data+'</div>');
|
|
|
|
$('#frmCreateMandataires').css('display', 'block');
|
2010-03-09 08:45:41 +00:00
|
|
|
}
|
|
|
|
});
|
|
|
|
},
|
|
|
|
'Annuler': function() { $(this).dialog('close'); }
|
|
|
|
},
|
2010-02-23 15:27:18 +00:00
|
|
|
close: function() { $('#dialogmand').remove(); }
|
|
|
|
};
|
|
|
|
$('<div id="dialogmand"></div>').dialog(dialogOpts);
|
|
|
|
return false;
|
|
|
|
});
|
|
|
|
|
2010-05-28 08:44:46 +00:00
|
|
|
//Obtention informations de l'etablissement
|
2010-02-23 15:27:18 +00:00
|
|
|
$('#etabnic').live('click',function(){
|
|
|
|
var siret = $(this).attr('title');
|
|
|
|
$('#infoetabnic').html('Lecture des informations...');
|
2010-06-18 14:52:53 +00:00
|
|
|
$.post('index.php', {page:'saisieajax', q: 'etabnic/'+siret},
|
2010-02-23 15:27:18 +00:00
|
|
|
function(data, status){
|
|
|
|
$('#infoetabnic').html('');
|
|
|
|
if(data != null){
|
|
|
|
$('#infoetabnic').html(data);
|
|
|
|
$('input[name=etabnic]').attr('value',data);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
return false;
|
|
|
|
});
|
|
|
|
|
2010-05-28 08:44:46 +00:00
|
|
|
//Affiche formulaire suivant evenement sélectionné
|
|
|
|
$('#jugement').change(function(){
|
2010-06-18 14:52:53 +00:00
|
|
|
if( $(this).val()!='0000' ){
|
|
|
|
var tribunal = $('#tribunal option:selected').val();
|
|
|
|
var siren = $('input[name=siren]').val();
|
|
|
|
var nic = $('input[name=nic]').val();
|
2010-03-09 08:45:41 +00:00
|
|
|
loadFormSaisie($(this).val(),
|
|
|
|
{tribunal: tribunal, siren: siren, nic: nic });
|
2010-02-23 15:27:18 +00:00
|
|
|
}
|
2009-03-13 14:58:10 +00:00
|
|
|
});
|
|
|
|
|
2010-05-28 08:44:46 +00:00
|
|
|
//Traitement des dates pour simplification saisie
|
|
|
|
$('.date').live('focusout', function(){
|
2009-03-17 14:16:38 +00:00
|
|
|
//Test du format date
|
2009-03-13 14:58:10 +00:00
|
|
|
$(this).val(dateInputFormat($(this).val()));
|
2010-02-10 17:27:03 +00:00
|
|
|
//Test spécifique
|
2009-03-17 14:16:38 +00:00
|
|
|
if( $(this).attr('name')=='jugement[dateJuge]' ){
|
|
|
|
if (ctrlDateJugement($(this).val())==false){ $(this).val(''); }
|
|
|
|
}
|
|
|
|
if( $(this).attr('name')=='jugement[datePaie]' ){
|
|
|
|
if (ctrlDatePaiement($(this).val())==false){ $(this).val(''); }
|
|
|
|
}
|
2009-03-13 14:58:10 +00:00
|
|
|
});
|
|
|
|
|
2010-03-09 08:45:41 +00:00
|
|
|
$('[name=jugement[source]]').change(function(){ displayFormSource(); });
|
2009-03-17 10:16:49 +00:00
|
|
|
|
2010-05-28 08:44:46 +00:00
|
|
|
//Préselection majoritaire/minoritaire
|
|
|
|
$('[name=actionnaire[pct]]').blur(function(){
|
2009-03-18 10:47:46 +00:00
|
|
|
if($(this).val()>=50){
|
|
|
|
$('[name=actionnaire[majMin]]').val(['maj']);
|
|
|
|
}else{
|
|
|
|
$('[name=actionnaire[majMin]]').val(['min']);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
2010-06-23 08:57:28 +00:00
|
|
|
//Préselection majoritaire/minoritaire
|
|
|
|
$('[name=particip[pct]]').blur(function (){
|
|
|
|
if($(this).val()>=50){
|
|
|
|
$('particip[majMin]').val(['maj']);
|
|
|
|
}else{
|
|
|
|
$('particip[majMin]').val(['min']);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
2010-06-18 14:52:53 +00:00
|
|
|
$('#dFormParticipation').live('click', function(e){
|
|
|
|
displayBlock('#formParticipation');
|
|
|
|
e.preventDefault();
|
|
|
|
});
|
|
|
|
|
|
|
|
$('#dFormActionnaire').live('click', function(e){
|
|
|
|
displayBlock('#formActionnaire');
|
|
|
|
e.preventDefault();
|
|
|
|
});
|
|
|
|
|
2010-06-23 08:57:28 +00:00
|
|
|
//Gestion affichage logo
|
2010-06-18 14:52:53 +00:00
|
|
|
$('#dFormLogo').live('click', function(e){
|
2010-06-23 08:57:28 +00:00
|
|
|
$('#formLogo').html('Chargement...');
|
|
|
|
var siren = $('input:hidden[name=siren]').val();
|
|
|
|
$.post('index.php',
|
|
|
|
{ page: 'saisieajax', q: 'logo', siren: siren},
|
|
|
|
function(data){ $('#formLogo').html(data); }
|
|
|
|
);
|
2010-06-18 14:52:53 +00:00
|
|
|
e.preventDefault();
|
|
|
|
});
|
|
|
|
|
2010-06-23 08:57:28 +00:00
|
|
|
$('#logo_delete').live('click', function(e){
|
|
|
|
e.preventDefault();
|
|
|
|
var file = $(this).attr('alt');
|
|
|
|
var c = confirm("Supprimer le logo ?");
|
|
|
|
if (c){
|
|
|
|
$.post('index.php',
|
|
|
|
{ page: 'saisieajax', q: 'logo/delete', file: file},
|
|
|
|
function(data){ $('#formLogo').html(data); }
|
|
|
|
);
|
2009-03-18 10:47:46 +00:00
|
|
|
}
|
|
|
|
});
|
|
|
|
|
2010-06-23 08:57:28 +00:00
|
|
|
$('#logo_default').live('click', function(e){
|
|
|
|
e.preventDefault();
|
|
|
|
$('#formLogo').html('Chargement...');
|
|
|
|
var siren = $('input:hidden[name=siren]').val();
|
|
|
|
$.post('index.php',
|
|
|
|
{ page: 'saisieajax', q: 'logo', siren: siren},
|
|
|
|
function(data){ $('#formLogo').html(data); }
|
|
|
|
);
|
|
|
|
});
|
|
|
|
|
|
|
|
$('#logo_upload').live('click', function(e){
|
|
|
|
e.preventDefault();
|
|
|
|
var href = $(this).attr('href');
|
|
|
|
$('#formLogo').html('Chargement...').load(href);
|
|
|
|
});
|
|
|
|
|
2010-06-23 12:55:28 +00:00
|
|
|
$('#logo_url').live('click', function(e){
|
|
|
|
e.preventDefault();
|
|
|
|
var href = $(this).attr('href');
|
|
|
|
$('#formLogo').html('Chargement...').load(href);
|
|
|
|
});
|
|
|
|
|
2010-06-23 08:57:28 +00:00
|
|
|
$('#logo_crop').live('click', function(e){
|
|
|
|
e.preventDefault();
|
|
|
|
var title = $(this).attr('title');
|
|
|
|
var href = $(this).attr('href');
|
|
|
|
var dialogOpts = {
|
|
|
|
bgiframe: true,
|
|
|
|
title: title,
|
|
|
|
width: 700,
|
|
|
|
height: 600,
|
|
|
|
modal: true,
|
|
|
|
open: function(event, ui) {
|
|
|
|
$(this).html('Chargement...');
|
|
|
|
$(this).load(href);
|
|
|
|
},
|
|
|
|
close: function() { $('#dialogcrop').remove(); }
|
|
|
|
};
|
|
|
|
$('<div id="dialogcrop"></div>').dialog(dialogOpts);
|
|
|
|
});
|
|
|
|
|
2010-05-28 08:44:46 +00:00
|
|
|
//Affichage form opposition Insee
|
|
|
|
$('[name=oppositionInsee]').change(function(){
|
|
|
|
if($(this).attr('checked')==1) {
|
2010-06-17 15:34:56 +00:00
|
|
|
$('#divOppositionInsee').load('./?page=saisieajax&q=oppositioninsee');
|
2010-05-28 08:44:46 +00:00
|
|
|
} else { $('#divOppositionInsee').html(''); }
|
2010-01-14 11:29:30 +00:00
|
|
|
});
|
|
|
|
|
2010-05-28 08:44:46 +00:00
|
|
|
//Information mandataire
|
2010-03-16 16:06:50 +00:00
|
|
|
$('#getInfo_sirenGrp').live('click', function(e){
|
|
|
|
e.preventDefault();
|
2010-03-09 08:45:41 +00:00
|
|
|
var siren = $('input[name=tabMandataires[sirenGrp]]').val();
|
|
|
|
getInfo(siren);
|
|
|
|
});
|
2010-05-28 08:44:46 +00:00
|
|
|
//Information mandataire
|
2010-03-16 16:06:50 +00:00
|
|
|
$('#getInfo_sirenMand').live('click', function(e){
|
|
|
|
e.preventDefault();
|
2010-03-09 08:45:41 +00:00
|
|
|
var siren = $('input[name=tabMandataires[sirenMand]]').val();
|
|
|
|
getInfo(siren);
|
|
|
|
});
|
2010-05-28 08:44:46 +00:00
|
|
|
//Information mandataire
|
2010-03-16 16:06:50 +00:00
|
|
|
$('#getInfo_nom').live('click', function(e){
|
|
|
|
e.preventDefault();
|
2010-03-09 08:45:41 +00:00
|
|
|
var siren = $('input[name=tabMandataires[Nom]]').val().split(' , ')[1];
|
|
|
|
getInfo(siren);
|
|
|
|
});
|
2010-05-28 08:44:46 +00:00
|
|
|
|
|
|
|
//Autocomplete champs mandataire, administrateur, opposition
|
|
|
|
$('input.searchMandataires').live('focus',function(){
|
2010-06-18 14:52:53 +00:00
|
|
|
var tribunal = $('#tribunal option:selected').val();
|
2010-05-28 08:44:46 +00:00
|
|
|
var name = $(this).attr('name');
|
|
|
|
$(this).autocomplete({
|
|
|
|
delay: 1000,
|
|
|
|
minLength:3,
|
|
|
|
source: function(request, response) {
|
2010-06-18 14:52:53 +00:00
|
|
|
$.getJSON('./?page=saisieajax',
|
|
|
|
{ q: 'mandataire/search', search: request.term },
|
|
|
|
function(data) { response(data); }
|
2010-05-28 08:44:46 +00:00
|
|
|
);
|
|
|
|
},
|
2010-08-17 13:18:12 +00:00
|
|
|
search: function() {
|
|
|
|
var style = {
|
|
|
|
'background-image' : 'url(img/ajax/2-1.gif)',
|
|
|
|
'background-repeat' : 'no-repeat',
|
|
|
|
'background-position' : 'right'
|
|
|
|
}
|
|
|
|
$('input[name='+name+']').css(style);
|
|
|
|
},
|
|
|
|
open: function() {
|
|
|
|
$('input[name='+name+']').css('background-image', '');
|
|
|
|
},
|
2010-05-28 08:44:46 +00:00
|
|
|
select: function(event, ui) {
|
|
|
|
var idMandataire = ui.item.id;
|
|
|
|
$("input[name=jugement["+name+"]]").val(idMandataire);
|
|
|
|
switch(name){
|
|
|
|
case 'mand': var lien = 'Mandataire'; break;
|
|
|
|
case 'oppo': var lien = 'Opposition'; break;
|
|
|
|
case 'admin': var lien = 'Administrateur'; break;
|
|
|
|
}
|
|
|
|
$('#lien'+lien+'Edit').attr('href',
|
2010-06-18 14:52:53 +00:00
|
|
|
'./?page=saisieajax&q=mandataire/edit/'+
|
|
|
|
tribunal+'/'+idMandataire);
|
2010-05-28 08:44:46 +00:00
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
2010-03-09 08:45:41 +00:00
|
|
|
|
2009-03-17 10:16:49 +00:00
|
|
|
//Initialisation
|
|
|
|
displayFormSource();
|
2009-03-13 14:58:10 +00:00
|
|
|
});
|
|
|
|
|
2010-05-28 08:44:46 +00:00
|
|
|
/**
|
|
|
|
* Affiche/Masque dateParution, numParution
|
|
|
|
* @return void
|
|
|
|
*/
|
2009-03-17 10:16:49 +00:00
|
|
|
function displayFormSource(){
|
|
|
|
var value = $("[name=jugement[source]] option:selected").val();
|
|
|
|
//Tribunal via CCI
|
2010-05-28 08:44:46 +00:00
|
|
|
if (value=='TS'){
|
2010-06-18 14:52:53 +00:00
|
|
|
$('#dateParution').css('display','none');
|
|
|
|
$('#numParution').css('display','none');
|
2010-05-28 08:44:46 +00:00
|
|
|
} else {
|
2010-06-18 14:52:53 +00:00
|
|
|
$('#dateParution').css('display','block');
|
|
|
|
$('#numParution').css('display','block');
|
2010-05-28 08:44:46 +00:00
|
|
|
}
|
2009-03-17 10:16:49 +00:00
|
|
|
}
|
|
|
|
|
2010-05-28 08:44:46 +00:00
|
|
|
/**
|
|
|
|
* Affiche/Masque suivant la propriété d'affichage précédente du bloc
|
|
|
|
* @param block
|
|
|
|
* @return
|
|
|
|
*/
|
2009-03-13 14:58:10 +00:00
|
|
|
function displayBlock(block){
|
|
|
|
var display = $(block).css('display');
|
|
|
|
if(display=='none'){
|
|
|
|
$(block).css('display','block');
|
|
|
|
}else if(display=='block'){
|
|
|
|
$(block).css('display','none');
|
|
|
|
}
|
2010-06-18 14:52:53 +00:00
|
|
|
return false;
|
2009-03-13 14:58:10 +00:00
|
|
|
}
|
|
|
|
|
2010-05-28 08:44:46 +00:00
|
|
|
/**
|
|
|
|
* Affichage du formulaire correspondant à l'événement sélectionné
|
|
|
|
* @param eventValue
|
|
|
|
* @param params
|
|
|
|
* @return
|
|
|
|
*/
|
2009-03-13 14:58:10 +00:00
|
|
|
function loadFormSaisie(eventValue, params){
|
2010-05-28 08:44:46 +00:00
|
|
|
$('#subFormSaisie').html('<p>Chargement...</p>');
|
2009-03-13 14:58:10 +00:00
|
|
|
if(params!=''){
|
2010-06-18 14:52:53 +00:00
|
|
|
$('#subFormSaisie').load('./?page=saisieajax&q=event/'+eventValue, params);
|
2009-03-13 14:58:10 +00:00
|
|
|
}else{
|
2010-06-18 14:52:53 +00:00
|
|
|
$('#subFormSaisie').load('./?page=saisieajax&q=event/'+eventValue);
|
2009-03-13 14:58:10 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2010-05-28 08:44:46 +00:00
|
|
|
/**
|
|
|
|
* Controle de la date saisie
|
|
|
|
* @param value
|
|
|
|
* @return
|
|
|
|
*/
|
2009-03-13 14:58:10 +00:00
|
|
|
function dateInputFormat(value){
|
|
|
|
var returnDate='';
|
2010-02-10 17:27:03 +00:00
|
|
|
/*Check si on a tapé 8 caractères*/
|
2009-03-13 14:58:10 +00:00
|
|
|
if (value.length==8 && value.charAt(3)!='/'){
|
2010-05-28 08:44:46 +00:00
|
|
|
returnDate = value.substring(0,2)+'/'+value.substring(2,4)+'/'+
|
|
|
|
value.substring(4,8);
|
2009-03-13 14:58:10 +00:00
|
|
|
}else{
|
2010-05-28 08:44:46 +00:00
|
|
|
returnDate = value;
|
2009-03-13 14:58:10 +00:00
|
|
|
}
|
|
|
|
return returnDate;
|
|
|
|
}
|
|
|
|
|
2010-05-28 08:44:46 +00:00
|
|
|
/**
|
|
|
|
* Controle de la date de jugement
|
|
|
|
* @param value
|
|
|
|
* @return
|
|
|
|
*/
|
2009-03-17 14:16:38 +00:00
|
|
|
function ctrlDateJugement(value){
|
2010-02-10 17:27:03 +00:00
|
|
|
/*Check si on a tapé 10 caractères*/
|
2009-03-17 14:16:38 +00:00
|
|
|
if (value.length==10 && value.charAt(3)!='/'){
|
|
|
|
var currentTime=new Date();
|
|
|
|
var day = value.substring(0,2);
|
2009-03-24 08:10:48 +00:00
|
|
|
var month = value.substring(3,5);
|
|
|
|
var year = value.substring(6,10);
|
2009-03-17 14:16:38 +00:00
|
|
|
if(year>currentTime.getFullYear()){
|
2010-02-10 17:27:03 +00:00
|
|
|
alert("Année - Vérifier votre date");
|
2009-03-24 08:10:48 +00:00
|
|
|
return false;
|
2010-05-28 08:44:46 +00:00
|
|
|
}else if(year==currentTime.getFullYear() &&
|
|
|
|
month>currentTime.getMonth()+1){
|
2010-02-10 17:27:03 +00:00
|
|
|
alert("Mois - Vérifier votre date");
|
2009-03-24 08:10:48 +00:00
|
|
|
return false;
|
2010-05-28 08:44:46 +00:00
|
|
|
}else if(year==currentTime.getFullYear() &&
|
|
|
|
month==currentTime.getMonth()+1 && day>currentTime.getDate() ){
|
2010-02-10 17:27:03 +00:00
|
|
|
alert("Jour - Vérifier votre date");
|
2009-03-17 14:16:38 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2010-05-28 08:44:46 +00:00
|
|
|
/**
|
|
|
|
* Controle de la date de paiement
|
|
|
|
* @param value
|
|
|
|
* @return
|
|
|
|
*/
|
2009-03-17 14:16:38 +00:00
|
|
|
function ctrlDatePaiement(value){
|
2010-02-10 17:27:03 +00:00
|
|
|
/*Check si on a tapé 10 caractères*/
|
2009-03-17 14:16:38 +00:00
|
|
|
if (value.length==10 && value.charAt(3)!='/'){
|
|
|
|
var currentTime=new Date();
|
|
|
|
var day = value.substring(0,2);
|
2009-03-24 08:10:48 +00:00
|
|
|
var month = value.substring(3,5);
|
|
|
|
var year = value.substring(6,10);
|
2010-05-28 08:44:46 +00:00
|
|
|
if(year>currentTime.getFullYear() || year<currentTime.getFullYear()-10){
|
2010-02-10 17:27:03 +00:00
|
|
|
alert("Année - Vérifier votre date");
|
2009-03-24 08:10:48 +00:00
|
|
|
return false;
|
2010-05-28 08:44:46 +00:00
|
|
|
}else if(year==currentTime.getFullYear() &&
|
|
|
|
month>currentTime.getMonth()+1){
|
2010-02-10 17:27:03 +00:00
|
|
|
alert("Mois - Vérifier votre date");
|
2009-03-24 08:10:48 +00:00
|
|
|
return false;
|
2010-05-28 08:44:46 +00:00
|
|
|
}else if(year==currentTime.getFullYear() &&
|
|
|
|
month==currentTime.getMonth()+1 && day>currentTime.getDate() ){
|
2010-02-10 17:27:03 +00:00
|
|
|
alert("Jour - Vérifier votre date");
|
2009-03-17 14:16:38 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
return true;
|
|
|
|
}
|
2009-03-13 14:58:10 +00:00
|
|
|
}
|
|
|
|
|
2010-05-28 08:44:46 +00:00
|
|
|
/**
|
|
|
|
* Retourne la date du jour
|
|
|
|
* @return date au format dd/mm/yy
|
|
|
|
*/
|
2009-03-13 14:58:10 +00:00
|
|
|
function dateNow(){
|
|
|
|
var currentTime=new Date();
|
|
|
|
var day=currentTime.getDate();
|
|
|
|
var month=currentTime.getMonth()+1;
|
|
|
|
month=''+month;
|
|
|
|
if (month.length==1){month='0'+month;}
|
|
|
|
var year=currentTime.getFullYear();
|
2009-03-17 14:16:38 +00:00
|
|
|
return day+'/'+month+'/'+year;
|
2009-03-13 14:58:10 +00:00
|
|
|
}
|
|
|
|
|
2010-05-28 08:44:46 +00:00
|
|
|
/**
|
|
|
|
* Retourne les informations d'un mandataire au format json
|
|
|
|
* @param siren
|
|
|
|
* @return
|
|
|
|
*/
|
2010-03-09 08:45:41 +00:00
|
|
|
function getInfo(siren)
|
|
|
|
{
|
2010-03-16 16:53:16 +00:00
|
|
|
if(siren.length>=14){
|
2010-06-18 14:52:53 +00:00
|
|
|
$.post('index.php',
|
|
|
|
{ page: 'saisieajax', q: 'mandataire/get', siren: siren },
|
2010-03-09 08:45:41 +00:00
|
|
|
function success(data){
|
2010-03-16 16:06:50 +00:00
|
|
|
if( $('input[name=tabMandataires[sirenGrp]]').val()=='' ||
|
|
|
|
$('input[name=tabMandataires[sirenMand]]').val()=='' ){
|
|
|
|
$('input[name=tabMandataires[sirenGrp]]').val(data.Siret);
|
|
|
|
$('input[name=tabMandataires[sirenMand]]').val(data.Siret);
|
2010-03-09 08:45:41 +00:00
|
|
|
}
|
2010-03-16 16:06:50 +00:00
|
|
|
$('input[name=tabMandataires[Nom]]').val(data.Nom);
|
|
|
|
$('input[name=tabMandataires[Prenom]]').val(data.Prenom);
|
2010-03-23 18:06:13 +00:00
|
|
|
$('select[name=tabMandataires[Statut]]').val(data.FJ);
|
2010-03-16 16:06:50 +00:00
|
|
|
$('textarea[name=tabMandataires[adresse]]').val(data.Adresse);
|
|
|
|
$('input[name=tabMandataires[adresseComp]]').val(data.Adresse2);
|
|
|
|
$('input[name=tabMandataires[cp]]').val(data.CP);
|
|
|
|
$('input[name=tabMandataires[ville]]').val(data.Ville);
|
|
|
|
$('input[name=tabMandataires[tel]]').val(data.Tel);
|
|
|
|
$('input[name=tabMandataires[fax]]').val(data.Fax);
|
|
|
|
$('input[name=tabMandataires[email]]').val(data.Mail);
|
|
|
|
$('input[name=tabMandataires[web]]').val(data.Web);
|
|
|
|
}, 'json');
|
|
|
|
}else{
|
2010-06-18 14:52:53 +00:00
|
|
|
alert('Nécessite un Siret (14 caractères)');
|
2010-03-16 16:06:50 +00:00
|
|
|
return false;
|
|
|
|
}
|
2010-03-09 08:45:41 +00:00
|
|
|
}
|