Citation :
<HTML>
<HEAD>
<TITLE>Texte de remplacement</TITLE>
<script type="text/javascript" src="date_heure.js"></script>
<BODY>
<P>Gestion Automatisée de la piscine
<P><IMG src="images/logo-visual.jpg" alt="Image Commandes">
<span id="date_heure"></span>
<script type="text/javascript">window.onload = date_heure('date_heure');</script>
<script type="text/javascript">
function ClicBouton1On(){
{ var x = new XMLHttpRequest();
x.open("GET","pompe1ON.php",true);
x.send();
return false;
}
}
function ClicBouton1Off(){
{var x = new XMLHttpRequest();
x.open("GET","pompe1OFF.php",true);
x.send();
return false;}
}
function ClicBouton2On(){
{ var x = new XMLHttpRequest();
x.open("GET","pompe2ON.php",true);
x.send();
return false;
}
}
function ClicBouton2Off(){
{var x = new XMLHttpRequest();
x.open("GET","pompe2OFF.php",true);
x.send();
return false;}
}
</script>
</script> <P>Pompe du chauffage : <button onclick="ClicBouton1On();">Allumer</button>
<button onclick="ClicBouton1Off();">Eteindre</button>
<P>Pompe de la filtration : <button onclick="ClicBouton2On();">Allumer</button>
<button onclick="ClicBouton2Off();">Eteindre</button>
|