From ac54f5224d4470de9d8ae088e1338dea52668c9d Mon Sep 17 00:00:00 2001 From: Ludovic Pouzenc Date: Thu, 5 Jul 2018 00:25:51 +0200 Subject: Renommage beta_accents -> final pour diffs --- beta_accents/app/script.js | 340 --------------------------------------------- 1 file changed, 340 deletions(-) delete mode 100644 beta_accents/app/script.js (limited to 'beta_accents/app/script.js') diff --git a/beta_accents/app/script.js b/beta_accents/app/script.js deleted file mode 100644 index c8c0a06..0000000 --- a/beta_accents/app/script.js +++ /dev/null @@ -1,340 +0,0 @@ -function isNotEmpty (idInput) -{ - if (document.getElementById(idInput).value.length > 0) { return (true);} else {return (false);} -} - -function addPers(form) -{ - if(form.contactDispo) - { - if(form.contactDispo.options.selectedIndex>=0) - { - var oValue = form.contactDispo.options[form.contactDispo.options.selectedIndex].value; - - var exist = false; - var i = 0; - while (i=0) - { - - setActiveStyleSheet(listCSS.options[listCSS.options.selectedIndex].value); - } - } - -} - -function addAllPers(form) -{ - if(form.contactDispo) - { - for (var j=0;j=0)&&(mail.indexOf(".")>=0)) return true; else return false; -} - - -function removePers(form) -{ - if (form.participants.options.selectedIndex>=0) - { - var i = form.participants.options.selectedIndex; - form.participants.options[form.participants.options.selectedIndex]=null; - if (parseInt(i) > 0) {form.participants.options.selectedIndex=parseInt(i)-1;} else {form.participants.options.selectedIndex=0;} - } - else - { - alert("Suppression impossible : aucune ligne sélectionnée"); - } -} - -function loadid(url,id,isPop) { - if (isPop) - document.getElementById('msg').innerHTML = "Chargement en cours ...Fermer"; - else - document.getElementById('msg').innerHTML = "Chargement en cours ..."; - - document.getElementById(id).innerHTML = ""; - document.getElementById('msg').style.display='block'; - - var http_request = false; - - if (window.XMLHttpRequest) { // Mozilla, Safari,... - http_request = new XMLHttpRequest(); - if (http_request.overrideMimeType) { - http_request.overrideMimeType('text/xml'); - } - } else if (window.ActiveXObject) { // IE - try { - http_request = new ActiveXObject("Msxml2.XMLHTTP"); - } catch (e) { - try { - http_request = new ActiveXObject("Microsoft.XMLHTTP"); - } catch (e) {} - } - } - - if (!http_request) { - alert('Abandon : Impossible de créer une instance XMLHTTP'); - return false; - } - - http_request.onreadystatechange = function(){ - - if (http_request.readyState == 4) { - if (http_request.status == 200) { - document.getElementById(id).innerHTML = http_request.responseText; - document.getElementById('msg').style.display='none'; - document.getElementById('msg').innerHTML = ""; - - } else { - if (isPop) - document.getElementById('msg').innerHTML = "Un problème est survenu ...Réessayer - Fermer"; - else - document.getElementById('msg').innerHTML = "Un problème est survenu ...Réessayer"; - } - } - }; - - http_request.open('GET', url, true); - http_request.send(null); -} - -function popon (id) -{ - var thisPopup = document.getElementById(id); - thisPopup.style.display='block'; - //var thisMasque = document.getElementById('masque'); - //thisMasque.style.display='block'; -} - -function popoff (id) -{ - var thisPopup = document.getElementById(id); - thisPopup.style.display='none'; - //var thisMasque = document.getElementById('masque'); - //thisMasque.style.display='none'; -} - -function addcreneau(form) -{ - if(form.day.options.selectedIndex>=0 && form.month.options.selectedIndex>=0 && form.year.options.selectedIndex>=0 && form.hourStart.options.selectedIndex>=0 && form.minuteStart.options.selectedIndex>=0 && form.hourEnd.options.selectedIndex>=0 && form.minuteEnd.options.selectedIndex>=0) - { - if (verifDate(form.day.options[form.day.options.selectedIndex].value,form.month.options[form.month.options.selectedIndex].value,form.year.options[form.year.options.selectedIndex].value)) - { - //Création de la valeur - var oValue = form.hourStart.options[form.hourStart.options.selectedIndex].value + form.minuteStart.options[form.minuteStart.options.selectedIndex].value + "." + form.hourEnd.options[form.hourEnd.options.selectedIndex].value + form.minuteEnd.options[form.minuteEnd.options.selectedIndex].value; - oValue = oValue + "." + form.day.options[form.day.options.selectedIndex].value + "." + form.month.options[form.month.options.selectedIndex].value + "." + form.year.options[form.year.options.selectedIndex].value; - - //Test si la valeur est déja dans la liste - var exist = false; - var i = 0; - while (i " + form.hourEnd.options[form.hourEnd.options.selectedIndex].value + ":" + form.minuteEnd.options[form.minuteEnd.options.selectedIndex].value; - oText = oText + " " + form.day.options[form.day.options.selectedIndex].value + "/" + form.month.options[form.month.options.selectedIndex].value + "/" + form.year.options[form.year.options.selectedIndex].value; - var o = new Option(oText,oValue); - form.creneaux.options[form.creneaux.options.length]=o; - } - } - } -} - -function removecreneau(form) -{ - if (form.creneaux.options.selectedIndex>=0) - { - var i = form.creneaux.options.selectedIndex; - form.creneaux.options[form.creneaux.options.selectedIndex]=null; - if (parseInt(i) > 0) {form.creneaux.options.selectedIndex=parseInt(i)-1;} else {form.creneaux.options.selectedIndex=0;} - } - else - { - alert("Suppression impossible : aucune ligne sélectionnée"); - } -} - -function dataListe(idSelect,idInput) -{ - var liste = document.getElementById(idSelect); - if (liste) - { - for (var i=0;i