Update manage_incident.php
This commit is contained in:
@@ -133,6 +133,7 @@ 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
|
||||||
|
while($entry = $result_entries->fetch_assoc()) {
|
||||||
echo("<tr>");
|
echo("<tr>");
|
||||||
//display status
|
//display status
|
||||||
if($entry["done"]==1)
|
if($entry["done"]==1)
|
||||||
@@ -143,20 +144,17 @@ if(isset($_GET["add_todoitem"])){
|
|||||||
echo("<td>".$entry["text"]."</td>");
|
echo("<td>".$entry["text"]."</td>");
|
||||||
//display user who checked it
|
//display user who checked it
|
||||||
$sql="SELECT username FROM users WHERE id=?";
|
$sql="SELECT username FROM users WHERE id=?";
|
||||||
$stmt->bind_param("i", $entry["done_by"]);
|
$stmt2->bind_param("i", $entry["done_by"]);
|
||||||
$stmt->execute();
|
$stmt2->execute();
|
||||||
$user = $result_lists->fetch_assoc();
|
$result_lists2 = $stmt2->get_result();
|
||||||
|
$user = $result_lists2->fetch_assoc();
|
||||||
if($entry["done"]==1)
|
if($entry["done"]==1)
|
||||||
echo("<td>".$user["username"]."</td>");
|
echo("<td>".$user["username"]."</td>");
|
||||||
else
|
else
|
||||||
echo("<td></td>");
|
echo("<td></td>");
|
||||||
|
$stmt2->close();
|
||||||
echo("</tr>");
|
echo("</tr>");
|
||||||
|
|
||||||
echo "<ul>";
|
|
||||||
while($entry = $result_entries->fetch_assoc()) {
|
|
||||||
echo "<li>" . $entry["text"] . " (Done: " . $entry["done"] . ", Done By: " . $entry["done_by"] . ")</li>";
|
|
||||||
}
|
}
|
||||||
echo "</ul>";
|
|
||||||
}
|
}
|
||||||
echo("</table>");
|
echo("</table>");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user