Added Status Update from to progressinfo
Signed-off-by: fly <merspieler@airmail.cc>
This commit is contained in:
parent
f37009e869
commit
d82e36878e
1 changed files with 23 additions and 1 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue