<div class="row mb-3">
    <div class="col-lg-12">
        <h3 class="page-header"><strong>Input Data Siswa</strong></h3>
    </div>
</div>

<div class="row">
    <div class="col-lg-12">
        <div class="panel panel-primary">
            <div class="panel-heading">Form Input Data Siswa</div>
            <div class="panel-body">
                <form method="post" action="./module/simpan.php?act=input_siswa">
                    
                    <div class="form-group">
                        <label>NIS</label>
                        <input type="text" name="nis" class="form-control" required placeholder="Nomor Induk Siswa">
                    </div>

                    <div class="form-group">
                        <label>Nama Lengkap</label>
                        <input type="text" name="nama" class="form-control" required placeholder="Nama Siswa">
                    </div>

                    <div class="form-group">
                        <label>Jenis Kelamin</label><br>
                        <label class="radio-inline">
                            <input type="radio" name="jk" value="L" checked> Laki - Laki
                        </label>
                        <label class="radio-inline">
                            <input type="radio" name="jk" value="P"> Perempuan
                        </label>
                    </div>

                    <div class="form-group">
                        <label>Alamat</label>
                        <textarea name="alamat" class="form-control" rows="3"></textarea>
                    </div>

                    <div class="form-group">
                        <label>Kelas</label>
                        <select name="kelas" class="form-control" required>
                            <option value="">-- Pilih Kelas --</option>
                            <?php
                            $sqlKelas = mysqli_query($koneksi, "SELECT * FROM kelas ORDER BY nama ASC");
                            while($k = mysqli_fetch_array($sqlKelas)){
                                echo "<option value='$k[idk]'>$k[nama]</option>";
                            }
                            ?>
                        </select>
                    </div>

                    <div class="form-group">
                        <label>No. Telepon</label>
                        <input type="text" name="tlp" class="form-control" placeholder="Contoh: 08123456789">
                    </div>

                    <hr>

                    <div class="row">
                        <div class="col-md-6">
                            <div class="form-group">
                                <label>Nama Ayah</label>
                                <input type="text" name="bapak" class="form-control">
                            </div>
                            <div class="form-group">
                                <label>Pekerjaan Ayah</label>
                                <input type="text" name="k_bapak" class="form-control">
                            </div>
                        </div>
                        <div class="col-md-6">
                            <div class="form-group">
                                <label>Nama Ibu</label>
                                <input type="text" name="ibu" class="form-control">
                            </div>
                            <div class="form-group">
                                <label>Pekerjaan Ibu</label>
                                <input type="text" name="k_ibu" class="form-control">
                            </div>
                        </div>
                    </div>

                    <div class="form-group">
                        <label>Password Login</label>
                        <input type="text" name="password" class="form-control" required placeholder="Masukkan Password Siswa">
                    </div>

                    <button type="submit" class="btn btn-success">Simpan Data</button>
                    <button type="reset" class="btn btn-danger">Batal</button>
                </form>
            </div>
        </div>
    </div>
</div>