Web-UI: Added buttons for ON/OFF & LCDON/LCDOFF
This commit is contained in:
parent
8a7d7a4980
commit
5edb208e01
3 changed files with 37 additions and 0 deletions
|
@ -16,6 +16,18 @@ switch ($_POST["cmd"]) {
|
|||
case "cls":
|
||||
fwrite($f, "CLS");
|
||||
break;
|
||||
case "on":
|
||||
fwrite($f, "ON");
|
||||
break;
|
||||
case "off":
|
||||
fwrite($f, "OFF");
|
||||
break;
|
||||
case "lcdon":
|
||||
fwrite($f, "LCDON");
|
||||
break;
|
||||
case "lcdoff":
|
||||
fwrite($f, "LCDOFF");
|
||||
break;
|
||||
case "line":
|
||||
fwrite($f, "LINE ");
|
||||
fwrite($f, $_POST["line"]);
|
||||
|
|
|
@ -26,6 +26,26 @@ $Title = "MAPID-FIFO Web-UI";
|
|||
<button type="submit">Clear</button>
|
||||
</form>
|
||||
</section>
|
||||
<section>
|
||||
<form action="command.php" method="POST">
|
||||
<input type="hidden" name="cmd" value="on">
|
||||
<button type="submit">LED On</button>
|
||||
</form>
|
||||
<form action="command.php" method="POST">
|
||||
<input type="hidden" name="cmd" value="off">
|
||||
<button type="submit">LED Off</button>
|
||||
</form>
|
||||
</section>
|
||||
<section>
|
||||
<form action="command.php" method="POST">
|
||||
<input type="hidden" name="cmd" value="lcdon">
|
||||
<button type="submit">Display On</button>
|
||||
</form>
|
||||
<form action="command.php" method="POST">
|
||||
<input type="hidden" name="cmd" value="lcdoff">
|
||||
<button type="submit">Display Off</button>
|
||||
</form>
|
||||
</section>
|
||||
<section>
|
||||
<form action="command.php" method="POST">
|
||||
<input type="hidden" name="cmd" value="line">
|
||||
|
|
|
@ -20,6 +20,11 @@ section {
|
|||
margin: 0 0 2em;
|
||||
}
|
||||
|
||||
form {
|
||||
display: inline-block;
|
||||
margin-right: .5em;
|
||||
}
|
||||
|
||||
input, select {
|
||||
border-radius: 6px;
|
||||
padding: 6px 14px;
|
||||
|
|
Loading…
Reference in a new issue