<form id="formBerkas" class="formBerkas mb-5" method="POST" action="<?= base_url('Akun/saveDaftar')?>" enctype="multipart/form-data">
    <div class="container-berkas mt-2">
        <div class="container my-5">
            <div class="row my-3">
                <div class="col">
                    <label for="jalurPpdb">Pilih Jalur PPDB</label>
                    <select name="jalurPpdb" id="jalurPpdb" class="jalurPpdb form-control form-control-sm">
                        <option value="">--Pilih Jalur</option>
                        <?php foreach ($jalur as $j) : ?>
                            <option value="<?= $j['id'] ?>"> <?= $j['ppdb'] ?></option>
                        <?php endforeach ?>
                    </select>
                </div>
            </div>
            <div class="content-syarat-khusus">
                <!-- Div avirmasi konten -->
                <div class="afirmasi">
                    <div class="afirmasi-main">
                        <div class="row my-3 .namaAfirmasi">
                        <div class="col my3">
                            <label for="namaAfirmasi">Pilih Nama Afirmasi</label>
                            <select name="namaAfirmasi" id="namaAfirmasi" class="namaAfirmasi form-control form-control-sm">
                                
                            </select>
                        </div>
                    </div>
                    </div>
                    <div class="afirmasi-item1"></div>
                    <div class="afirmasi-item2"></div>
                    <div class="afirmasi-item3"></div>
                    <div class="afirmasi-item4"></div>
                </div>
                <!-- end div avirmasi conten -->
                 <!-- section unntuk jarur Kejuaran -->
             <div class="kejuaraan">
                <div class="kejuaraan-main">
                    <div class="row my-3 .penyelengara">
                        <div class="col my3">
                            <label for="penyelengara">Pilih Penyelengara Kejuaraan</label>
                            <select name="penyelengara" id="penyelengara" class="penyelengara form-control form-control-sm">
                                
                            </select>
                        </div>
                    </div>
                </div>
                <div class="kejuaraan-item1">
                  
                </div>
                <div class="kejuaraan-item2"></div>
                <div class="kejuaraan-item3"></div>
                <div class="kejuaraan-item4"></div>
            </div>
            <!-- end section untuk jalur Kejuaran -->
                 
                <!-- section jalur laport -->
                <div class="raport">
                    <div class="raport-main container-nilai">
                        <!-- star card body nilai -->
                        <div class="card-body">
                            <!-- start containe nilai -->
                            <div class="container">
                                 <p class="text-danger"> Nilai yang dimasukan adalah nilai Pengetahuan (KI-3) Skala 0-100</p>
                                 <!-- start table resposive -->
                                 <table class="table table-responsive">
                                    <!-- star thead -->
                                    <thead>
                                         <tr>
                                            <td rowspan="2" align="center">No</td>
                                            <td rowspan="2" align="center">Mapel</td>
                                            <td colspan="2" align="center">Kelas 4</td>
                                            <td colspan="2" align="center">Kelas 5</td>
                                            <td colspan="2" align="center">Kelas 6</td>
                                        </tr>
                                         <tr>
                                            <td align="center">Semester 1</td>
                                            <td align="center">Semester 2</td>
                                            <td align="center">Semester 1</td>
                                            <td align="center">Semester 2</td>
                                            <td align="center">Semester 1</td>
                                        </tr>
                                    </thead>
                                    <!-- end thead -->
                                    <!-- start body table -->
                                    <tbody>
                                        <!-- Agama -->
                                         <tr class="tr1">
                                            <td>1</td>
                                            <td>Pend. Agama</td>
                                            <td><input type="text" name="paiK4S1" value="<?= set_value('paiK4S1') ?><?= isset( $nilai['paiK4S1']) ? $nilai['paiK4S1']:''; ?>" id="paiK4S1" maxLength="4" required><br></td>
                                            <td><input type="text" name="paiK4S2" value="<?= set_value('paiK4S2') ?><?= isset($nilai['paiK4S2'])?$nilai['paiK4S2'] : '' ?>" id="paiK4S2" maxLength="4" required><br></td>
                                            <td><input type="text" name="paiK5S1" value="<?= set_value('paiK5S1') ?><?= isset($nilai['paiK5S1'])?$nilai['paiK5S1']:''; ?>" id="paiK5S1" maxLength="4" required><br></td>
                                            <td><input type="text" name="paiK5S2" value="<?= set_value('paiK5S2') ?><?= isset($nilai['paiK5S2'])?$nilai['paiK5S2']:''; ?>" id="paiK5S2" maxLength="4" required><br></td>
                                            <td><input type="text" name="paiK6S1" value="<?= set_value('paiK6S1') ?><?= isset($nilai['paiK6S1'])?$nilai['paiK6S1']:''; ?>" id="paiK6S1" maxLength="4" required><br></td>
                                        </tr>
                                        <!-- end agama -->
                                        <!-- pkn -->
                                         <tr>
                                            <td>2</td>
                                            <td>PPKN</td>
                                            <td><input type="text" name="pknK4S1" value="<?= set_value('pknK4S1') ?><?= isset( $nilai['pknK4S1']) ? $nilai['pknK4S1']:''; ?>" id="pknK4S1" maxLength="4" required><br></td>
                                            <td><input type="text" name="pknK4S2" value="<?= set_value('pknK4S2') ?><?= isset($nilai['pknK4S2'])?$nilai['pknK4S2'] : '' ?>" id="pknK4S2" maxLength="4" required><br></td>
                                            <td><input type="text" name="pknK5S1" value="<?= set_value('pknK5S1') ?><?= isset($nilai['pknK5S1'])?$nilai['pknK5S1']:''; ?>" id="pknK5S1" maxLength="4" required><br></td>
                                            <td><input type="text" name="pknK5S2" value="<?= set_value('pknK5S2') ?><?= isset($nilai['pknK5S2'])?$nilai['pknK5S2']:''; ?>" id="pknK5S2" maxLength="4" required><br></td>
                                            <td><input type="text" name="pknK6S1" value="<?= set_value('pknK6S1') ?><?= isset($nilai['pknK6S1'])?$nilai['pknK6S1']:''; ?>" id="pknK6S1" maxLength="4" required><br></td>
                                        </tr>
                                        <!-- end pkn -->
                                        <!-- b.indo -->
                                         <tr class="tr1">
                                            <td>3</td>
                                            <td>B. Indonesia</td>
                                            <td><input type="text" name="indoK4S1" value="<?= set_value('indoK4S1') ?><?= isset( $nilai['indoK4S1']) ? $nilai['indoK4S1']:''; ?>" id="indoK4S1" maxLength="4" required><br></td>
                                            <td><input type="text" name="indoK4S2" value="<?= set_value('indoK4S2') ?><?= isset($nilai['indoK4S2'])?$nilai['indoK4S2'] : '' ?>" id="indoK4S2" maxLength="4" required><br></td>
                                            <td><input type="text" name="indoK5S1" value="<?= set_value('indoK5S1') ?><?= isset($nilai['indoK5S1'])?$nilai['indoK5S1']:''; ?>" id="indoK5S1" maxLength="4" required><br></td>
                                            <td><input type="text" name="indoK5S2" value="<?= set_value('indoK5S2') ?><?= isset($nilai['indoK5S2'])?$nilai['indoK5S2']:''; ?>" id="indoK5S2" maxLength="4" required><br></td>
                                            <td><input type="text" name="indoK6S1" value="<?= set_value('indoK6S1') ?><?= isset($nilai['indoK6S1'])?$nilai['indoK6S1']:''; ?>" id="indoK6S1" maxLength="4" required><br></td>
                                        </tr>
                                        <!-- end b.indo -->

                                        <!-- matematika -->
                                         <tr>
                                            <td>4</td>
                                            <td>Matematika</td>
                                            <td><input type="text" name="mtkK4S1" value="<?= set_value('mtkK4S1') ?><?= isset( $nilai['mtkK4S1']) ? $nilai['mtkK4S1']:''; ?>" id="mtkK4S1" maxLength="4" required><br></td>
                                            <td><input type="text" name="mtkK4S2" value="<?= set_value('mtkK4S2') ?><?= isset($nilai['mtkK4S2'])?$nilai['mtkK4S2'] : '' ?>" id="mtkK4S2" maxLength="4" required><br></td>
                                            <td><input type="text" name="mtkK5S1" value="<?= set_value('mtkK5S1') ?><?= isset($nilai['mtkK5S1'])?$nilai['mtkK5S1']:''; ?>" id="mtkK5S1" maxLength="4" required><br></td>
                                            <td><input type="text" name="mtkK5S2" value="<?= set_value('mtkK5S2') ?><?= isset($nilai['mtkK5S2'])?$nilai['mtkK5S2']:''; ?>" id="mtkK5S2" maxLength="4" required><br></td>
                                            <td><input type="text" name="mtkK6S1" value="<?= set_value('mtkK6S1') ?><?= isset($nilai['mtkK6S1'])?$nilai['mtkK6S1']:''; ?>" id="mtkK6S1" maxLength="4" required><br></td>
                                        </tr>
                                        <!-- end matematika -->
                                        <!-- Ipa -->
                                         <tr class="tr1">
                                            <td>5</td>
                                            <td>IPA</td>
                                            <td><input type="text" name="ipaK4S1" value="<?= set_value('ipaK4S1') ?><?= isset( $nilai['ipaK4S1']) ? $nilai['ipaK4S1']:''; ?>" id="ipaK4S1" maxLength="4" required><br></td>
                                            <td><input type="text" name="ipaK4S2" value="<?= set_value('ipaK4S2') ?><?= isset($nilai['ipaK4S2'])?$nilai['ipaK4S2'] : '' ?>" id="ipaK4S2" maxLength="4" required><br></td>
                                            <td><input type="text" name="ipaK5S1" value="<?= set_value('ipaK5S1') ?><?= isset($nilai['ipaK5S1'])?$nilai['ipaK5S1']:''; ?>" id="ipaK5S1" maxLength="4" required><br></td>
                                            <td><input type="text" name="ipaK5S2" value="<?= set_value('ipaK5S2') ?><?= isset($nilai['ipaK5S2'])?$nilai['ipaK5S2']:''; ?>" id="ipaK5S2" maxLength="4" required><br></td>
                                            <td><input type="text" name="ipaK6S1" value="<?= set_value('ipaK6S1') ?><?= isset($nilai['ipaK6S1'])?$nilai['ipaK6S1']:''; ?>" id="ipaK6S1" maxLength="4" required><br></td>
                                        </tr>
                                        <!-- end ipa -->

                                        <!-- ips -->
                                         <tr>
                                            <td>6</td>
                                            <td>IPS</td>
                                            <td><input type="text" name="ipsK4S1" value="<?= set_value('ipsK4S1') ?><?= isset( $nilai['ipsK4S1']) ? $nilai['ipsK4S1']:''; ?>" id="ipsK4S1" maxLength="4" required><br></td>
                                            <td><input type="text" name="ipsK4S2" value="<?= set_value('ipsK4S2') ?><?= isset($nilai['ipsK4S2'])?$nilai['ipsK4S2'] : '' ?>" id="ipsK4S2" maxLength="4" required><br></td>
                                            <td><input type="text" name="ipsK5S1" value="<?= set_value('ipsK5S1') ?><?= isset($nilai['ipsK5S1'])?$nilai['ipsK5S1']:''; ?>" id="ipsK5S1" maxLength="4" required><br></td>
                                            <td><input type="text" name="ipsK5S2" value="<?= set_value('ipsK5S2') ?><?= isset($nilai['ipsK5S2'])?$nilai['ipsK5S2']:''; ?>" id="ipsK5S2" maxLength="4" required><br></td>
                                            <td><input type="text" name="ipsK6S1" value="<?= set_value('ipsK6S1') ?><?= isset($nilai['ipsK6S1'])?$nilai['ipsK6S1']:''; ?>" id="ipsK6S1" maxLength="4" required><br></td>
                                        </tr>
                                        <!-- end ipaK4S1 -->

                                        <!-- sbdp -->
                                         <tr class="tr1">
                                            <td>7</td>
                                            <td>SBDP</td>
                                            <td><input type="text" name="sbdpK4S1" value="<?= set_value('sbdpK4S1') ?><?= isset( $nilai['sbdpK4S1']) ? $nilai['sbdpK4S1']:''; ?>" id="sbdpK4S1" maxLength="4" required><br></td>
                                            <td><input type="text" name="sbdpK4S2" value="<?= set_value('sbdpK4S2') ?><?= isset($nilai['sbdpK4S2'])?$nilai['sbdpK4S2'] : '' ?>" id="sbdpK4S2" maxLength="4" required><br></td>
                                            <td><input type="text" name="sbdpK5S1" value="<?= set_value('sbdpK5S1') ?><?= isset($nilai['sbdpK5S1'])?$nilai['sbdpK5S1']:''; ?>" id="sbdpK5S1" maxLength="4" required><br></td>
                                            <td><input type="text" name="sbdpK5S2" value="<?= set_value('sbdpK5S2') ?><?= isset($nilai['sbdpK5S2'])?$nilai['sbdpK5S2']:''; ?>" id="sbdpK5S2" maxLength="4" required><br></td>
                                            <td><input type="text" name="sbdpK6S1" value="<?= set_value('sbdpK6S1') ?><?= isset($nilai['sbdpK6S1'])?$nilai['sbdpK6S1']:''; ?>" id="sbdpK6S1" maxLength="4" required><br></td>
                                        </tr>
                                        <!-- end sbdp -->

                                        <!-- pjok -->
                                         <tr class="tr1">
                                            <td>8</td>
                                            <td>PJOK</td>
                                            <td><input type="text" name="pjokK4S1" value="<?= set_value('pjokK4S1') ?><?= isset( $nilai['pjokK4S1']) ? $nilai['pjokK4S1']:''; ?>" id="pjokK4S1" maxLength="4" required><br></td>
                                            <td><input type="text" name="pjokK4S2" value="<?= set_value('pjokK4S2') ?><?= isset($nilai['pjokK4S2'])?$nilai['pjokK4S2'] : '' ?>" id="pjokK4S2" maxLength="4" required><br></td>
                                            <td><input type="text" name="pjokK5S1" value="<?= set_value('pjokK5S1') ?><?= isset($nilai['pjokK5S1'])?$nilai['pjokK5S1']:''; ?>" id="pjokK5S1" maxLength="4" required><br></td>
                                            <td><input type="text" name="pjokK5S2" value="<?= set_value('pjokK5S2') ?><?= isset($nilai['pjokK5S2'])?$nilai['pjokK5S2']:''; ?>" id="pjokK5S2" maxLength="4" required><br></td>
                                            <td><input type="text" name="pjokK6S1" value="<?= set_value('pjokK6S1') ?><?= isset($nilai['pjokK6S1'])?$nilai['pjokK6S1']:''; ?>" id="pjokK6S1" maxLength="4" required><br></td>
                                        </tr>
                                        <!-- end pjok -->

                                        <!-- bahsa sunda -->
                                         <tr class="tr1">
                                            <td>9</td>
                                            <td>Bahasa Sunda</td>
                                            <td><input type="text" name="sundaK4S1" value="<?= set_value('sundaK4S1') ?><?= isset( $nilai['sundaK4S1']) ? $nilai['sundaK4S1']:''; ?>" id="sundaK4S1" maxLength="4" required><br></td>
                                            <td><input type="text" name="sundaK4S2" value="<?= set_value('sundaK4S2') ?><?= isset($nilai['sundaK4S2'])?$nilai['sundaK4S2'] : '' ?>" id="sundaK4S2" maxLength="4" required><br></td>
                                            <td><input type="text" name="sundaK5S1" value="<?= set_value('sundaK5S1') ?><?= isset($nilai['sundaK5S1'])?$nilai['sundaK5S1']:''; ?>" id="sundaK5S1" maxLength="4" required><br></td>
                                            <td><input type="text" name="sundaK5S2" value="<?= set_value('sundaK5S2') ?><?= isset($nilai['sundaK5S2'])?$nilai['sundaK5S2']:''; ?>" id="sundaK5S2" maxLength="4" required><br></td>
                                            <td><input type="text" name="sundaK6S1" value="<?= set_value('sundaK6S1') ?><?= isset($nilai['sundaK6S1'])?$nilai['sundaK6S1']:''; ?>" id="sundaK6S1" maxLength="4" required><br></td>
                                        </tr>
                                        <!-- end bahasa sunda -->
                                        
                                    </tbody>
                                    <!-- end body table -->
                                 </table>
                                 <!-- end table responsive -->
                            </div>
                            <!-- end container nilai -->

                        </div>
                        <!-- end card body nilai -->
                    </div>
                    <div class="raport-item1"></div>
                    <div class="raport-item2"></div>
                    <div class="raport-item3"></div>
                    <div class="raport-item4"></div>
                </div>
                <!-- section end jalur raport -->
             

            </div>
        </div>
        <a href="<?= base_url('Akun/wali') ?>" class="btn-prev">Sebelumnya</a>
        <button type="submit" class="btn-next">Berikutnya</button>
    </div>




</form>