<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Generate Student Printout</title>
</head>
<body>
    <h2>Generate Student Printout</h2>

    <form action="generate-printout.php" method="POST">
        <label for="sort_method">Sort By:</label><br>
        <select name="sort_method" id="sort_method" required>
            <option value="by_name">Student Last Name (A–Z)</option>
            <option value="by_section">Section Number</option>
            <option value="by_control">Control Number</option>
        </select>
        <br><br>

        <label for="start_date">Start Date:</label><br>
        <input type="date" name="start_date" id="start_date" required>
        <br><br>

        <label for="end_date">End Date:</label><br>
        <input type="date" name="end_date" id="end_date" required>
        <br><br>

        <label for="output_format">Output Format:</label><br>
        <select name="output_format" id="output_format" required>
            <option value="excel">Excel (.xlsx)</option>
            <option value="pdf">PDF (.pdf)</option>
        </select>
        <br><br>

        <input type="submit" value="Generate Printout">
    </form>
</body>
</html>

