<?php
// pai
$paiK4S1 = isset($nilai['paiK4S1']) ? ($nilai['paiK4S1']) : '';
$paiK4S2 = isset($nilai['paiK4S2']) ? ($nilai['paiK4S2']) : '';
$paiK5S1 = isset($nilai['paiK5S1']) ? ($nilai['paiK5S1']) : '';
$paiK5S2 = isset($nilai['paiK5S2']) ? ($nilai['paiK5S2']) : '';
$paiK6S1 = isset($nilai['paiK6S1']) ? ($nilai['paiK6S1']) : '';
// pkn
$pknK4S1 = isset($nilai['pknK4S1']) ? ($nilai['pknK4S1']) : '';
$pknK4S2 = isset($nilai['pknK4S2']) ? ($nilai['pknK4S2']) : '';
$pknK5S1 = isset($nilai['pknK5S1']) ? ($nilai['pknK5S1']) : '';
$pknK5S2 = isset($nilai['pknK5S2']) ? ($nilai['pknK5S2']) : '';
$pknK6S1 = isset($nilai['pknK6S1']) ? ($nilai['pknK6S1']) : '';
// inco
$indoK4S1 = isset($nilai['indoK4S1']) ? ($nilai['indoK4S1']) : '';
$indoK4S2 = isset($nilai['indoK4S2']) ? ($nilai['indoK4S2']) : '';
$indoK5S1 = isset($nilai['indoK5S1']) ? ($nilai['indoK5S1']) : '';
$indoK5S2 = isset($nilai['indoK5S2']) ? ($nilai['indoK5S2']) : '';
$indoK6S1 = isset($nilai['indoK6S1']) ? ($nilai['indoK6S1']) : '';
// mtk
$mtkK4S1 = isset($nilai['mtkK4S1']) ? ($nilai['mtkK4S1']) : '';
$mtkK4S2 = isset($nilai['mtkK4S2']) ? ($nilai['mtkK4S2']) : '';
$mtkK5S1 = isset($nilai['mtkK5S1']) ? ($nilai['mtkK5S1']) : '';
$mtkK5S2 = isset($nilai['mtkK5S2']) ? ($nilai['mtkK5S2']) : '';
$mtkK6S1 = isset($nilai['mtkK6S1']) ? ($nilai['mtkK6S1']) : '';
// ipa
$ipaK4S1 = isset($nilai['ipaK4S1']) ? ($nilai['ipaK4S1']) : '';
$ipaK4S2 = isset($nilai['ipaK4S2']) ? ($nilai['ipaK4S2']) : '';
$ipaK5S1 = isset($nilai['ipaK5S1']) ? ($nilai['ipaK5S1']) : '';
$ipaK5S2 = isset($nilai['ipaK5S2']) ? ($nilai['ipaK5S2']) : '';
$ipaK6S1 = isset($nilai['ipaK6S1']) ? ($nilai['ipaK6S1']) : '';
// ips
$ipsK4S1 = isset($nilai['ipsK4S1']) ? ($nilai['ipsK4S1']) : '';
$ipsK4S2 = isset($nilai['ipsK4S2']) ? ($nilai['ipsK4S2']) : '';
$ipsK5S1 = isset($nilai['ipsK5S1']) ? ($nilai['ipsK5S1']) : '';
$ipsK5S2 = isset($nilai['ipsK5S2']) ? ($nilai['ipsK5S2']) : '';
$ipsK6S1 = isset($nilai['ipsK6S1']) ? ($nilai['ipsK6S1']) : '';
// sbdp
$sbdpK4S1 = isset($nilai['sbdpK4S1']) ? ($nilai['sbdpK4S1']) : '';
$sbdpK4S2 = isset($nilai['sbdpK4S2']) ? ($nilai['sbdpK4S2']) : '';
$sbdpK5S1 = isset($nilai['sbdpK5S1']) ? ($nilai['sbdpK5S1']) : '';
$sbdpK5S2 = isset($nilai['sbdpK5S2']) ? ($nilai['sbdpK5S2']) : '';
$sbdpK6S1 = isset($nilai['sbdpK6S1']) ? ($nilai['sbdpK6S1']) : '';
// pjok
$pjokK4S1 = isset($nilai['pjokK4S1']) ? ($nilai['pjokK4S1']) : '';
$pjokK4S2 = isset($nilai['pjokK4S2']) ? ($nilai['pjokK4S2']) : '';
$pjokK5S1 = isset($nilai['pjokK5S1']) ? ($nilai['pjokK5S1']) : '';
$pjokK5S2 = isset($nilai['pjokK5S2']) ? ($nilai['pjokK5S2']) : '';
$pjokK6S1 = isset($nilai['pjokK6S1']) ? ($nilai['pjokK6S1']) : '';
// sunda
$sundaK4S1 = isset($nilai['sundaK4S1']) ? ($nilai['sundaK4S1']) : '';
$sundaK4S2 = isset($nilai['sundaK4S2']) ? ($nilai['sundaK4S2']) : '';
$sundaK5S1 = isset($nilai['sundaK5S1']) ? ($nilai['sundaK5S1']) : '';
$sundaK5S2 = isset($nilai['sundaK5S2']) ? ($nilai['sundaK5S2']) : '';
$sundaK6S1 = isset($nilai['sundaK6S1']) ? ($nilai['sundaK6S1']) : '';
?>
<div class="container-form-biodata-dioperator akun-container p-5">
    <?= $this->session->flashdata('message') ?>
    <form id="formNilai" method="POST" action="<?= base_url('Operator/simpanDataNilai') ?>" class="mb-5">
        <div class="container-nilai mt-2">
            <hr>
            <div class="card-body">
                <h6>Nilai <?= $pendaftar['nama']; ?></h6>
                <div class="container">
                    <p class="text-danger"> Nilai yang dimasukan adalah nilai Pengetahuan (KI-3) Skala 0-100</p>
                    <table class="table table-responsive">
                        <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>
                        <tbody>
                            <tr class="tr1">
                                <td>1</td>
                                <td>Pend. Agama</td>
                                <td><input type="text" name="paiK4S1" value="<?= set_value('paiK4S1') ?><?= $paiK4S1 ?>" id="paiK4S1" maxLength="4" required><br></td>
                                <td><input type="text" name="paiK4S2" value="<?= set_value('paiK4S2') ?><?= $paiK4S2; ?>" id="paiK4S2" maxLength="4" required><br></td>
                                <td><input type="text" name="paiK5S1" value="<?= set_value('paiK5S1') ?><?= $paiK5S1; ?>" id="paiK5S1" maxLength="4" required><br></td>
                                <td><input type="text" name="paiK5S2" value="<?= set_value('paiK5S2') ?><?= $paiK5S2; ?>" id="paiK5S2" maxLength="4" required><br></td>
                                <td><input type="text" name="paiK6S1" value="<?= set_value('paiK6S1') ?><?= $paiK6S1; ?>" id="paiK6S1" maxLength="4" required><br></td>

                            </tr>
                            <tr>
                                <td>2</td>
                                <td>PPKN</td>
                                <td><input type="text" name="pknK4S1" value="<?= set_value('pknK4S1') ?><?= $pknK4S1; ?>" id="pknK4S1" maxLength="4" required></td>
                                <td><input type="text" name="pknK4S2" value="<?= set_value('pknK4S2') ?><?= $pknK4S2; ?>" id="pknK4S2" maxLength="4" required></td>
                                <td><input type="text" name="pknK5S1" value="<?= set_value('pknK5S1') ?><?= $pknK5S1; ?>" id="pknK5S1" maxLength="4" required></td>
                                <td><input type="text" name="pknK5S2" value="<?= set_value('pknK5S2') ?><?= $pknK5S2; ?>" id="pknK5S2" maxLength="4" required></td>
                                <td><input type="text" name="pknK6S1" value="<?= set_value('pknK6S1') ?><?= $pknK6S1; ?>" id="pknK6S1" maxLength="4" required></td>

                            </tr>


                            <tr class="tr1">
                                <td>3</td>
                                <td>B.Indonesia</td>
                                <td><input type="text" name="indoK4S1" value="<?= set_value('indoK4S1') ?><?= $indoK4S1; ?>" id="indoK4S1" maxLength="4" required></td>
                                <td><input type="text" name="indoK4S2" value="<?= set_value('indoK4S2') ?><?= $indoK4S2; ?>" id="indoK4S2" maxLength="4" required></td>
                                <td><input type="text" name="indoK5S1" value="<?= set_value('indoK5S1') ?><?= $indoK5S1; ?>" id="indoK5S1" maxLength="4" required></td>
                                <td><input type="text" name="indoK5S2" value="<?= set_value('indoK5S2') ?><?= $indoK5S2; ?>" id="indoK5S2" maxLength="4" required></td>
                                <td><input type="text" name="indoK6S1" value="<?= set_value('indoK6S1') ?><?= $indoK6S1; ?>" id="indoK6S1" maxLength="4" required></td>
                            </tr>

                            <tr>
                                <td>4</td>
                                <td>Matematika</td>
                                <td><input type="text" name="mtkK4S1" value="<?= set_value('mtkK4S1') ?><?= $mtkK4S1; ?>" maxLength="4" required></td>
                                <td><input type="text" name="mtkK4S2" value="<?= set_value('mtkK4S2') ?><?= $mtkK4S2; ?>" maxLength="4" required></td>
                                <td><input type="text" name="mtkK5S1" value="<?= set_value('mtkK5S1') ?><?= $mtkK5S1; ?>" maxLength="4" required></td>
                                <td><input type="text" name="mtkK5S2" value="<?= set_value('mtkK5S2') ?><?= $mtkK5S2; ?>" maxLength="4" required></td>
                                <td><input type="text" name="mtkK6S1" value="<?= set_value('mtkK6S1') ?><?= $mtkK6S1; ?>" maxLength="4" required></td>


                            </tr>

                            <tr class="tr1">
                                <td>5</td>
                                <td>IPA</td>
                                <td><input type="text" name="ipaK4S1" value="<?= set_value('ipaK4S1') ?><?= $ipaK4S1; ?>" maxLength="4" required></td>
                                <td><input type="text" name="ipaK4S2" value="<?= set_value('ipaK4S2') ?><?= $ipaK4S2; ?>" maxLength="4" required></td>
                                <td><input type="text" name="ipaK5S1" value="<?= set_value('ipaK5S1') ?><?= $ipaK5S1; ?>" maxLength="4" required></td>
                                <td><input type="text" name="ipaK5S2" value="<?= set_value('ipaK5S2') ?><?= $ipaK5S2; ?>" maxLength="4" required></td>
                                <td><input type="text" name="ipaK6S1" value="<?= set_value('ipaK6S1') ?><?= $ipaK6S1; ?>" maxLength="4" required></td>

                            </tr>

                            <tr>
                                <td>6</td>
                                <td>IPS</td>
                                <td><input type="text" name="ipsK4S1" value="<?= set_value('ipsK4S1') ?><?= $ipsK4S1; ?>" maxLength="4" required></td>
                                <td><input type="text" name="ipsK4S2" value="<?= set_value('ipsK4S2') ?><?= $ipsK4S2; ?>" maxLength="4" required></td>
                                <td><input type="text" name="ipsK5S1" value="<?= set_value('ipsK5S1') ?><?= $ipsK5S1; ?>" maxLength="4" required></td>
                                <td><input type="text" name="ipsK5S2" value="<?= set_value('ipsK5S2') ?><?= $ipsK5S2; ?>" maxLength="4" required></td>
                                <td><input type="text" name="ipsK6S1" value="<?= set_value('ipsK6S1') ?><?= $ipsK6S1; ?>" maxLength="4" required></td>

                            </tr>

                            <tr class="tr1">
                                <td>7</td>
                                <td>SBDP</td>
                                <td><input type="text" name="sbdpK4S1" value="<?= set_value('sbdpK4S1') ?><?= $sbdpK4S1; ?>" id="sbdpK4S1" maxLength="4" required></td>
                                <td><input type="text" name="sbdpK4S2" value="<?= set_value('sbdpK4S2') ?><?= $sbdpK4S2; ?>" id="sbdpK4S2" maxLength="4" required></td>
                                <td><input type="text" name="sbdpK5S1" value="<?= set_value('sbdpK5S1') ?><?= $sbdpK5S1; ?>" id="sbdpK5S1" maxLength="4" required></td>
                                <td><input type="text" name="sbdpK5S2" value="<?= set_value('sbdpK5S2') ?><?= $sbdpK5S2; ?>" id="sbdpK5S2" maxLength="4" required></td>
                                <td><input type="text" name="sbdpK6S1" value="<?= set_value('sbdpK6S1') ?><?= $sbdpK6S1; ?>" id="sbdpK6S1" maxLength="4" required></td>

                            </tr>

                            <tr>
                                <td>8</td>
                                <td>PJOK</td>
                                <td><input type="text" name="pjokK4S1" value="<?= set_value('pjokK4S1') ?><?= $pjokK4S1; ?>" id="pjokK4S1" maxLength="4" required></td>
                                <td><input type="text" name="pjokK4S2" value="<?= set_value('pjokK4S2') ?><?= $pjokK4S2; ?>" id="pjokK4S2" maxLength="4" required></td>
                                <td><input type="text" name="pjokK5S1" value="<?= set_value('pjokK5S1') ?><?= $pjokK5S1; ?>" id="pjokK5S1" maxLength="4" required></td>
                                <td><input type="text" name="pjokK5S2" value="<?= set_value('pjokK5S2') ?><?= $pjokK5S2; ?>" id="pjokK5S2" maxLength="4" required></td>
                                <td><input type="text" name="pjokK6S1" value="<?= set_value('pjokK6S1') ?><?= $pjokK6S1; ?>" id="pjokK6S1" maxLength="4" required></td>

                            </tr>


                            <tr class="tr1">
                                <td>9</td>
                                <td>B.SUNDA</td>
                                <td><input type="text" name="sundaK4S1" value="<?= set_value('sundaK4S1') ?><?= $sundaK4S1; ?>" id="sundaK4S1" maxLength="4" required></td>
                                <td><input type="text" name="sundaK4S2" value="<?= set_value('sundaK4S2') ?><?= $sundaK4S2; ?>" id="sundaK4S2" maxLength="4" required></td>
                                <td><input type="text" name="sundaK5S1" value="<?= set_value('sundaK5S1') ?><?= $sundaK5S1; ?>" id="sundaK5S1" maxLength="4" required></td>
                                <td><input type="text" name="sundaK5S2" value="<?= set_value('sundaK5S2') ?><?= $sundaK5S2; ?>" id="sundaK5S2" maxLength="4" required></td>
                                <td><input type="text" name="sundaK6S1" value="<?= set_value('sundaK6S1') ?><?= $sundaK6S1; ?>" id="sundaK6S1" maxLength="4" required></td>
                            </tr>

                        </tbody>
                    </table>

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