var dsListeMembre=new Spry.Data.JSONDataSet("../JSON/rsColComMembres.php",{method:"POST",postData:"action=listeMembre",subPaths:"results"});var dsColProfil=new Spry.Data.JSONDataSet("../JSON/rsColComMembres.php",{method:"POST",postData:"action=showMembre",subPaths:"results"});
var dsColAttente=new Spry.Data.JSONDataSet("../JSON/rsColComMembres.php",{ method:"POST",postData:"action=showMembreAttente",subPaths:"results"});var dsColPref=new Spry.Data.JSONDataSet("../JSON/rsColComMembres.php",{ method:"POST",postData:"action=showMembrePref",subPaths:"results"});function updatePageMembre(page){var params=Spry.Utils.getURLParamsAsObject(dsListeMembre.getURL());var rechercheUrl=params.recherche;if(rechercheUrl!=undefined){dsListeMembre.setURL("../JSON/rsColComMembres.php?recherche="+rechercheUrl,{ method:"POST",postData:"action=listeMembre&page="+page});}else{dsListeMembre.setURL("../JSON/rsColComMembres.php",{ method:"POST",postData:"action=listeMembre&page="+page});}dsListeMembre.loadData();}function updateColMembre(ID){dsColProfil.setURL("../JSON/rsColComMembres.php?ID="+ID,{method:"POST",postData:"action=showMembre",subPaths:"results"});dsColProfil.loadData();dsColAttente.setURL("../JSON/rsColComMembres.php?ID="+ID,{method:"POST",postData:"action=showMembreAttente",subPaths:"results"});dsColAttente.loadData();dsColPref.setURL("../JSON/rsColComMembres.php?ID="+ID,{method:"POST",postData:"action=showMembrePref",subPaths:"results"});dsColPref.loadData();}function FilterMembre(){var tf=document.getElementById("rechercheMembre");var params_recherche=Spry.Utils.getURLParamsAsObject(dsListeMembre.getURL());if(!tf.value){dsListeMembre.setURL("../JSON/rsColComMembres.php",{method:"POST",postData:"action=listeMembre"});dsListeMembre.loadData();return;}var regExpStr=tf.value;var regExp=new RegExp(regExpStr,"i");dsListeMembre.setURL("../JSON/rsColComMembres.php?recherche="+regExpStr,{method:"POST",postData:"action=listeMembre"});dsListeMembre.loadData();}function StartFilterMembreTimer(){if(StartFilterMembreTimer.timerID)clearTimeout(StartFilterMembreTimer.timerID);StartFilterMembreTimer.timerID=setTimeout(function(){StartFilterMembreTimer.timerID=null;FilterMembre();},100);}
