<?php
session_start();
if (!isset($_SESSION["admin_id"])) {
    header("Location: admin.php");
    exit;
}
?>

<!DOCTYPE html>
<html lang="tr">
<head>
    <meta charset="UTF-8">
    <title>Öğrenci Ekle</title>
    <link rel="stylesheet" href="css/admin_dashboard.css">
</head>
<body>

<header>
    👨‍🎓 Yeni Öğrenci Ekle
</header>

<div class="container">
    <form action="ogrenci_ekle_islem.php" method="POST">
        <label>Ad Soyad:</label>
        <input type="text" name="ad" required><br><br>

        <label>Email:</label>
        <input type="email" name="email" required><br><br>

        <label>Öğrenci Numarası:</label>
        <input type="text" name="ogrenci_no" required><br><br>

        <label>Durum:</label>
        <select name="durum">
            <option value="Aktif">Aktif</option>
            <option value="Pasif">Pasif</option>
        </select><br><br>

        <button type="submit">Kaydet</button>
        <a href="admin_dashboard.php" class="back-link">⬅ Geri Dön</a>
    </form>
</div>

</body>
</html>
