Files
controls-web/OLD/controlsdev/overviews/select.php
2026-02-17 09:29:34 -06:00

48 lines
1.3 KiB
PHP

<?php
$check_General = "";
$check_Mills = "";
$check_Levels = "";
if (isset($_POST['General']) && intval($_POST['General']) == 1) { $check_General = "checked";}
if (isset($_POST['Mills']) && intval($_POST['Mills']) == 1) { $check_Mills = "checked";}
if (isset($_POST['Levels']) && intval($_POST['Levels']) == 1) { $check_Levels = "checked";}
?>
<form id="e-d-check" method="post" type="submit" name="Submit" value="Submit!">
<input type="checkbox" name="General" value="1" onclick="submit()" <?php echo htmlspecialchars($check_General); ?>>General</input>
<input type="checkbox" name="Mills" value="1" onclick="submit()" <?php echo htmlspecialchars($check_Mills); ?>>Mills</input>
<input type="checkbox" name="Levels" value="1" onclick="submit()" <?php echo htmlspecialchars($check_Levels); ?>>Tank Levels</input>
</form>
<?php include("data/header.php");?>
<?php
if(intval($_POST['General']) == 1){
echo 'Disabled General';
}else{
include'general.php';
}
if(intval($_POST['Mills']) == 1){
echo 'Disabled Mills';
}else{
include'boiler.php';
}
if(intval($_POST['Levels']) == 1){
echo 'Disabled Tank Levels';
}else{
include'tanklevels.php';
}
?>
<?php
// starting the session
session_start();
if (isset($_POST['Submit'])) {
$_SESSION['General'] = $_POST['General'];
}
?>
<strong><?php echo $_SESSION['picturenum'];?></strong>