Update manage_incident.php
This commit is contained in:
@@ -133,6 +133,25 @@ if(isset($_GET["add_todoitem"])){
|
|||||||
echo("</tr>");
|
echo("</tr>");
|
||||||
if ($result_entries->num_rows > 0) {
|
if ($result_entries->num_rows > 0) {
|
||||||
// Output data of each entry
|
// Output data of each entry
|
||||||
|
echo("<tr>");
|
||||||
|
//display status
|
||||||
|
if($entry["done"]==1)
|
||||||
|
echo("<td><input class='form-check-input' type='checkbox' id='flexCheckDefault' onclick='myFunction()' checked></td>");
|
||||||
|
else
|
||||||
|
echo("<td><input class='form-check-input' type='checkbox' id='flexCheckDefault' onclick='myFunction()'></td>");
|
||||||
|
//display text
|
||||||
|
echo("<td>".$entry["text"]."</td>");
|
||||||
|
//display user who checked it
|
||||||
|
$sql="SELECT username FROM users WHERE id=?";
|
||||||
|
$stmt->bind_param("i", $entry["done_by"]);
|
||||||
|
$stmt->execute();
|
||||||
|
$user = $result_lists->fetch_assoc();
|
||||||
|
if($entry["done"]==1)
|
||||||
|
echo("<td>".$user["username"]."</td>");
|
||||||
|
else
|
||||||
|
echo("<td></td>");
|
||||||
|
echo("</tr>");
|
||||||
|
|
||||||
echo "<ul>";
|
echo "<ul>";
|
||||||
while($entry = $result_entries->fetch_assoc()) {
|
while($entry = $result_entries->fetch_assoc()) {
|
||||||
echo "<li>" . $entry["text"] . " (Done: " . $entry["done"] . ", Done By: " . $entry["done_by"] . ")</li>";
|
echo "<li>" . $entry["text"] . " (Done: " . $entry["done"] . ", Done By: " . $entry["done_by"] . ")</li>";
|
||||||
|
|||||||
Reference in New Issue
Block a user