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 6f574a2..3dd0620 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 @@ -39,6 +39,18 @@ if(isset($_GET["add_todolist"])){ $stmt->execute(); $stmt->close(); } + +if(isset($_GET["add_todoitem"])){ + $todoitem=htmlspecialchars($_POST["todoitem"]); + $list_id=htmlspecialchars($_GET["list_id"]); + $sql="INSERT INTO todo_items (text,done_by,done,belongs_to_list) VALUES(?,0,0,?)"; + $stmt = $conn->prepare($sql); + $stmt->bind_param("si", $todoitem,$list_id); + $todoitem=htmlspecialchars($_POST["todoitem"]); + $list_id=htmlspecialchars($_GET["list_id"]); + $stmt->execute(); + $stmt->close(); +} ?> @@ -116,6 +128,9 @@ if(isset($_GET["add_todolist"])){ echo(""); echo(""); //display form to add a todo entry + echo(""); + echo(""); + echo(""); if ($result_entries->num_rows > 0) { // Output data of each entry echo "
DoneEntryDone By