Added Status Update from to progressinfo

Signed-off-by: fly <merspieler@airmail.cc>
This commit is contained in:
fly 2023-01-23 12:53:49 +01:00
parent f37009e869
commit d82e36878e

View file

@ -113,8 +113,30 @@
echo '<tr style="background-color: ' . $row["color"] . '"><td>' . $row["status"] . '</td><td>' . $row["sCount"] . '</td></tr>';
}
}
echo '</table>';
// if (isset($_POST["form"]))
// {
echo '<form method="post" action="api.php" target="_blank">
<label>Update Area</label>
<input type="text" name="auth" placeholder="Token"/><br/>
<input type="hidden" name="action" value="set"/>
<input type="hidden" name="area" value="' . $_GET["minor"] . '"/>
<select name="status">';
$sql = "SELECT name FROM status ORDER BY priority";
$ret = $con->query($sql)->fetch_all(MYSQLI_ASSOC);
if ($ret != False)
{
foreach($ret as $row)
{
echo '<option value="' . $row["name"] . '">' . $row["name"] . '</option>';
}
}
echo '</select>
<input type="submit" value="Update"/>
</form>';
// }
}
echo '</table></div>';
echo '</div>';
}
?>
</body>