diff --git a/src/server/cyberhex-code/system/secure_zone/php/manage_incident.php b/src/server/cyberhex-code/system/secure_zone/php/manage_incident.php
index f01cac6..8a3e4ac 100644
--- a/src/server/cyberhex-code/system/secure_zone/php/manage_incident.php
+++ b/src/server/cyberhex-code/system/secure_zone/php/manage_incident.php
@@ -76,7 +76,41 @@ include "../../../api/php/log/add_server_entry.php"; //to log things
+ !!Add todo list!!
+ list each entry of each todo
+
+
+ $sql_lists = "SELECT id, name FROM todo_lists";
+ $result_lists = $conn->query($sql_lists);
+
+ if ($result_lists->num_rows > 0) {
+ // Output data of each to-do list
+ while($list = $result_lists->fetch_assoc()) {
+ echo "
" . $list["name"] . "
";
+
+ $list_id = $list["id"];
+ $sql_entries = "SELECT * FROM entries WHERE belongs_to_list = $list_id";
+ $result_entries = $conn->query($sql_entries);
+
+ if ($result_entries->num_rows > 0) {
+ // Output data of each entry
+ echo "
";
+ while($entry = $result_entries->fetch_assoc()) {
+ echo "- " . $entry["text"] . " (Done: " . $entry["done"] . ", Done By: " . $entry["done_by"] . ")
";
+ }
+ echo "
";
+ } else {
+ echo "No entries for this list.";
+ }
+ }
+ } else {
+ echo "No to-do lists found.";
+ }
+ ?>