<?php
require_once('source/session.php');
require_once('source/error.php');
require_once('source/dbconfig.php');
require_once('source/function.php');
require_once('source/restrict_admin.php');

if ($_SERVER["REQUEST_METHOD"] == "POST") {
    // Process the form submission and delete the lesson plan
    // ...

    // After processing, redirect to the lesson plan list page
    header("Location: lesson_plan_list.php");
    exit();
}

// Display a warning message and confirmation form for deleting the lesson plan
// ...
?>

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Delete Lesson Plan</title>
    <link rel="stylesheet" href="styles.css">
</head>

<body>
    <div class="container">
        <h2>Delete Lesson Plan</h2>
        <!-- Your HTML for the warning and confirmation form goes here -->
    </div>
</body>

</html>
