Browse Source

ajout echo

master
BOLLET Corentin 1 year ago
parent
commit
3dc074b163
  1. 8
      index.php

8
index.php

@ -85,12 +85,12 @@ if ($_SERVER["REQUEST_METHOD"] == "POST") {
<form method="post" action="">
<?php
if ($etat_volet === "none") {
<input type="submit" name="ouvrir_volet" value="oui" onclick="document.getElementById('chargement_fermeture_volet').style.display = 'block';document.getElementById('main').style.opacity = '0.5';">
<input type="submit" name="fermer_volet" value="oui" onclick="document.getElementById('chargement_ouverture_volet').style.display = 'block';document.getElementById('main').style.opacity = '0.5';">
echo '<input type="submit" name="ouvrir_volet" value="oui" onclick="document.getElementById(\'chargement_fermeture_volet\').style.display = \'block\';document.getElementById(\'main\').style.opacity = \'0.5\';">'
echo '<input type="submit" name="fermer_volet" value="oui" onclick="document.getElementById(\'chargement_ouverture_volet\').style.display = \'block\';document.getElementById(\'main\').style.opacity = \'0.5\';">'
} elseif ($etat_volet === "ouvert") {
<input type="submit" name="fermer_volet" value="oui" onclick="document.getElementById('chargement_ouverture_volet').style.display = 'block';document.getElementById('main').style.opacity = '0.5';">
echo '<input type="submit" name="fermer_volet" value="oui" onclick="document.getElementById(\'chargement_ouverture_volet\').style.display = \'block\';document.getElementById(\'main\').style.opacity = \'0.5\';">'
} elseif ($etat_volet === "fermé") {
<input type="submit" name="ouvrir_volet" value="oui" onclick="document.getElementById('chargement_fermeture_volet').style.display = 'block';document.getElementById('main').style.opacity = '0.5';">
echo '<input type="submit" name="ouvrir_volet" value="oui" onclick="document.getElementById(\'chargement_fermeture_volet\').style.display = \'block\';document.getElementById(\'main\').style.opacity = \'0.5\';">'
}?>
</form>
</div>

Loading…
Cancel
Save