Folge dem Video um zu sehen, wie unsere Website als Web-App auf dem Startbildschirm installiert werden kann.
Anmerkung: Diese Funktion ist in einigen Browsern möglicherweise nicht verfügbar.
<html>
<body>
<?php
if ($_POST["switch"])
{
$zahl = 0;
$newcheck = "";
if ($C1 == "ON") {
$zahl = $zahl + 1;
$newcheck = $newcheck."checked,";
} else {
$newcheck = $newcheck." ,";
}
if ($C2 == "ON") {
$zahl = $zahl + 2;
$newcheck = $newcheck."checked,";
} else {
$newcheck = $newcheck." ,";
}
if ($C3 == "ON") {
$zahl = $zahl + 4;
$newcheck = $newcheck."checked,";
} else {
$newcheck = $newcheck." ,";
}
if ($C4 == "ON") {
$zahl = $zahl + 8;
$newcheck = $newcheck."checked,";
} else {
$newcheck = $newcheck." ,";
}
if ($C5 == "ON") {
$zahl = $zahl + 16;
$newcheck = $newcheck."checked,";
} else {
$newcheck = $newcheck." ,";
}
if ($C6 == "ON") {
$zahl = $zahl + 32;
$newcheck = $newcheck."checked,";
} else {
$newcheck = $newcheck." ,";
}
if ($C7 == "ON") {
$zahl = $zahl + 64;
$newcheck = $newcheck."checked,";
} else {
$newcheck = $newcheck." ,";
}
if ($C8 == "ON") {
$zahl = $zahl + 128;
$newcheck = $newcheck."checked";
} else {
$newcheck = $newcheck." ";
}
$file = ("dosen_check.txt");
$fp = fopen($file, "w");
fwrite($fp, $newcheck);
fclose($fp);
$command="E:\Programme\z-parswitch\Z-ParSwitch.exe -schalt 888 ".$zahl." 1000 0";
exec($command);
}
$file = ("dosen_check.txt");
$fp = fopen($file, "r");
$checkcode = fgets($fp);
fclose($fp);
$cC = split("[,]", $checkcode);
echo ("<form method='post' action='dosen.php'>
<input type='checkbox' name='C1' value='ON' ".$cC[0].">Dose1</p>
<input type='checkbox' name='C2' value='ON' ".$cC[1].">Dose2</p>
<input type='checkbox' name='C3' value='ON' ".$cC[2].">Dose3</p>
<input type='checkbox' name='C4' value='ON' ".$cC[3].">Dose4</p>
<input type='checkbox' name='C5' value='ON' ".$cC[4].">Dose5</p>
<input type='checkbox' name='C6' value='ON' ".$cC[5].">Dose6</p>
<input type='checkbox' name='C7' value='ON' ".$cC[6].">Dose7</p>
<input type='checkbox' name='C8' value='ON' ".$cC[7].">Dose8</p>
<button type='submit' name='switch' value='yes'>Abschicken</button>
</form>");
?>
</body>
</html>
<head>
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="pragma" content="no-cache">
</head>
<html>
<body>