<!-- // created by : KuduSinau_Hendrik_081275532220 (TERIMAKASIH UNTUK MENDAPATKAN KEBERKAHAN, DENGAN TIDAK MERUBAH NAMA HAK CIPTA, PLAGIAT, DAN TIDAK MEMPERJUALBELIKAN APLIKASI INI, SEMOGA KITA SEMUA MENDAPAT MANFAAT DAN KEBERKAHAN DARI APLIKASI INI)
// created by : KuduSinau_Hendrik_081275532220 (UNTUK MASUKAN DAN SARAN SERTA PENGEMBANGAN BISA MENGHUBUNGI NOMOR) -->

<body class="materialdesign" onload="hide_loading();">
    <div class="loading overlay">
        <div class="lds-spinner">
            <div></div>
            <div></div>
            <div></div>
            <div></div>
            <div></div>
            <div></div>
            <div></div>
            <div></div>
            <div></div>
            <div></div>
            <div></div>
            <div></div>
        </div>
    </div>
    <div class="wrapper-pro">
        <div class="content-inner-all">
            <div class="breadcome-area mg-b-30 small-dn">
                <div class="container-fluid">
                    <div class="row">
                        <div class="col-lg-12">
                            <div class="breadcome-list map-mg-t-40-gl shadow-reset">
                                <div class="row">
                                    <div class="col-lg-6">
                                        <font size="4">
                                            <strong><?= $Lembaga['sgkt_jenjang'] . ' ' . $Lembaga['nm_status'] . ' ' . ucwords(strtolower($Lembaga['nm_lembaga'])); ?></strong>
                                        </font>
                                    </div>
                                    <div class="col-lg-6 text-right">
                                        <?php foreach ($nmTapel as $tp) :
                                            if ($tp['sts_tapel'] == 1) {
                                        ?>
                                                <font size="4">
                                                    <span class="bread-blod">Semester <?= $tp['kd_smstr']; ?> | <?php if ($tp['kd_smstr'] == 'Ganjil') {
                                                                                                                    echo $tp['kd_tahun'] . '/' . ($tp['kd_tahun'] + 1);
                                                                                                                } elseif ($tp['kd_smstr'] == 'Genap') {
                                                                                                                    echo ($tp['kd_tahun'] - 1) . '/' . $tp['kd_tahun'];
                                                                                                                }; ?></span>
                                                </font>
                                        <?php }
                                        endforeach;
                                        ?>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="breadcome-area des-none mg-b-30">
                <div class="container-fluid">
                    <div class="row">
                        <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
                            <div class="breadcome-list map-mg-t-40-gl shadow-reset">
                                <div class="row">
                                    <div class="col-lg-6 col-md-6 col-sm-6 col-xs-6">
                                        <font size="1">
                                            <strong><?= $Lembaga['sgkt_jenjang'] . ' ' . $Lembaga['nm_status'] . ' ' . ucwords(strtolower($Lembaga['nm_lembaga'])); ?></strong>
                                        </font>
                                    </div>
                                    <div class="col-lg-6 col-md-6 col-sm-6 col-xs-6 text-right">
                                        <?php foreach ($nmTapel as $tp) :
                                            if ($tp['sts_tapel'] == 1) {
                                        ?>
                                                <font size="1">
                                                    <span class="bread-blod">Semester <?= $tp['kd_smstr']; ?> | <?php if ($tp['kd_smstr'] == 'Ganjil') {
                                                                                                                    echo $tp['kd_tahun'] . '/' . ($tp['kd_tahun'] + 1);
                                                                                                                } elseif ($tp['kd_smstr'] == 'Genap') {
                                                                                                                    echo ($tp['kd_tahun'] - 1) . '/' . $tp['kd_tahun'];
                                                                                                                }; ?></span>
                                                </font>
                                        <?php }
                                        endforeach;
                                        ?>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="transition-world-area">
                <div class="container-fluid">
                    <div class="row">
                        <div class="col-lg-4">
                            <div class="transition-world-list shadow-reset">
                                <div class="user-profile-area-list">
                                    <div class="user-profile-area">
                                        <div class="row">
                                            <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
                                                <div class="user-profile-wrap shadow-reset">
                                                    <div class="row">
                                                        <div class="col-lg-12">
                                                            <div class="row">
                                                                <div class="col-lg-3">
                                                                    <div class="">
                                                                        <img src="<?= base_url('assets/rapor/img/users/') . $User['image_user']; ?>" class="img-thumbnail" />
                                                                    </div>
                                                                </div>
                                                                <div class="col-lg-9">
                                                                    <div class="user-profile-content">
                                                                        <h5><?= $Guru['gelar_depan'] . ' ' . $Guru['nm_teachers']; ?><?php if (!empty($Guru['gelar_belakang'])) {
                                                                                                                                            echo ', ' . $Guru['gelar_belakang'];
                                                                                                                                        } else {
                                                                                                                                            echo $Guru['gelar_belakang'];
                                                                                                                                        } ?></h5>
                                                                        <h5><?= 'NIP. ' . $Guru['nip_teachers']; ?></h5>
                                                                        <h5><?= $Guru['nuptk_teachers']; ?></h5>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div id="flashsucces" data-flash="<?= $this->session->flashdata('messageSuccess'); ?>"></div>
                        <div id="flashwarning" data-flash="<?= $this->session->flashdata('messageWarning'); ?>"></div>
                        <div id="flashupdate" data-flash="<?= $this->session->flashdata('messageUpdate'); ?>"></div>
                        <div id="flasherror" data-flash="<?= $this->session->flashdata('messageError'); ?>"></div>
                        <div id="flashsave" data-flash="<?= $this->session->flashdata('messageSave'); ?>"></div>
                        <div class="col-lg-8">
                            <form action="" method="post" enctype="multipart/form-data">
                                <div class="admintab-wrap mg-b-40">
                                    <ul class="nav nav-tabs custom-menu-wrap custon-tab-menu-style1">
                                        <li class="active"><a data-toggle="tab" href="#TabProject"><span class="adminpro-icon adminpro-home tab-custon-ic"></span>Identitas Teacher</a>
                                        </li>
                                        <li><a data-toggle="tab" href="#TabDetails"><span class="adminpro-icon adminpro-home tab-custon-ic"></span>Alamat Teacher</a>
                                        </li>
                                        <li><a data-toggle="tab" href="#TabPlan"><span class="adminpro-icon adminpro-home tab-custon-ic"></span>Contact Teacher</a>
                                        </li>
                                    </ul>
                                    <div class="tab-content">
                                        <div id="TabProject" class="tab-pane in active animated flipInX custon-tab-style1">
                                            <div class="row">
                                                <div class="form-group-inner">
                                                    <div class="col-lg-3">
                                                        <img src="<?= base_url('assets/rapor/img/users/') . $User['image_user']; ?>" class="img-thumbnail" /><br><br>
                                                        <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
                                                            <div class="file-upload-inner ts-forms">
                                                                <div class="input prepend-small-btn">
                                                                    <div class="file-button">
                                                                        Browse
                                                                        <input type="file" name='image_user' onchange="document.getElementById('prepend-small-btn').value = this.value;">
                                                                    </div>
                                                                    <input type="text" id="prepend-small-btn" placeholder="image">
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="col-lg-9">
                                                    <div class="user-profile-content">
                                                        <div class="form-group-inner">
                                                            <div class="row">
                                                                <div class="col-lg-3">
                                                                    <label class="login2 pull-right pull-right-pro">NIP</label>
                                                                </div>
                                                                <div class="col-lg-9">
                                                                    <input type="hidden" class="form-control form-control-lg" placeholder="Id Guru" name="id_teachers" aria-describedby="basic-addon1" value="<?= $Guru['id_teachers']; ?>">
                                                                    <input type="text" class=" form-control form-control-lg" placeholder="NIP" name="nip_teachers" aria-describedby="basic-addon1" value="<?= $Guru['nip_teachers']; ?>" readonly>
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="form-group-inner">
                                                            <div class="row">
                                                                <div class="col-lg-3">
                                                                    <label class="login2 pull-right pull-right-pro">NUPTK</label>
                                                                </div>
                                                                <div class="col-lg-9">
                                                                    <input type="text" class="form-control form-control-lg" placeholder="NUPTK/NPK/Peg-ID" name="nuptk_teachers" aria-describedby="basic-addon1" value="<?= $Guru['nuptk_teachers']; ?>" readonly>
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="form-group-inner">
                                                            <div class="row">
                                                                <div class="col-lg-3">
                                                                    <label class="login2 pull-right pull-right-pro">Gelar Depan</label>
                                                                </div>
                                                                <div class="col-lg-9">
                                                                    <input type="text" class="form-control form-control-lg" placeholder="Gelar Depan" name="gelar_depan" aria-describedby="basic-addon1" value="<?= $Guru['gelar_depan']; ?>">
                                                                    <?= form_error('gelar_depan', '<small class="text-white bg-danger"><b>', '</b></small>'); ?>
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="form-group-inner">
                                                            <div class="row">
                                                                <div class="col-lg-3">
                                                                    <label class="login2 pull-right pull-right-pro">Nama Teacher</label>
                                                                </div>
                                                                <div class="col-lg-9">
                                                                    <input type="text" class="form-control form-control-lg" placeholder="Nama guru tanpa gelar" name="nm_teachers" aria-describedby="basic-addon1" value="<?= $Guru['nm_teachers']; ?>" required>
                                                                    <?= form_error('nm_teachers', '<small class="text-white bg-danger"><b>', '</b></small>'); ?>
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="form-group-inner">
                                                            <div class="row">
                                                                <div class="col-lg-3">
                                                                    <label class="login2 pull-right pull-right-pro">Gelar Belakang</label>
                                                                </div>
                                                                <div class="col-lg-9">
                                                                    <input type="text" class="form-control form-control-lg" placeholder="Gelar Belakang" name="gelar_belakang" aria-describedby="basic-addon1" value="<?= $Guru['gelar_belakang']; ?>">
                                                                    <?= form_error('gelar_belakang', '<small class="text-white bg-danger"><b>', '</b></small>'); ?>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div id="TabDetails" class="tab-pane animated flipInX custon-tab-style1">
                                            <div class="form-group-inner">
                                                <div class="row">
                                                    <div class="col-lg-3">
                                                        <label class="login2 pull-right pull-right-pro">Alamat Teacher</label>
                                                    </div>
                                                    <div class="col-lg-9">
                                                        <input type="text" class="form-control form-control-lg" placeholder="Alamat Teacher" name="alamat_teachers" aria-describedby="basic-addon1" value="<?= $Guru['alamat_teachers']; ?>" required>
                                                        <?= form_error('alamat_teachers', '<small class="text-white bg-danger"><b>', '</b></small>'); ?>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="form-group-inner">
                                                <div class="row">
                                                    <div class="col-lg-3">
                                                        <label class="login2 pull-right pull-right-pro">Desa/Kelurahan</label>
                                                    </div>
                                                    <div class="col-lg-9">
                                                        <input type="text" class="form-control form-control-lg" placeholder="Nama Desa/Kelurahan" name="desa_teachers" aria-describedby="basic-addon1" value="<?= $Guru['desa_teachers']; ?>" required>
                                                        <?= form_error('desa_teachers', '<small class="text-white bg-danger"><b>', '</b></small>'); ?>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="form-group-inner">
                                                <div class="row">
                                                    <div class="col-lg-3">
                                                        <label class="login2 pull-right pull-right-pro">Kecamatan</label>
                                                    </div>
                                                    <div class="col-lg-9">
                                                        <input type="text" class="form-control form-control-lg" placeholder="Nama Kecamatan" name="kec_teachers" aria-describedby="basic-addon1" value="<?= $Guru['kec_teachers']; ?>" required>
                                                        <?= form_error('kec_teachers', '<small class="text-white bg-danger"><b>', '</b></small>'); ?>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="form-group-inner">
                                                <div class="row">
                                                    <div class="col-lg-3">
                                                        <label class="login2 pull-right pull-right-pro">Kota/Kabupaten</label>
                                                    </div>
                                                    <div class="col-lg-9">
                                                        <input type="text" class="form-control form-control-lg" placeholder="Nama Kota/Kabupaten" name="kab_teachers" aria-describedby="basic-addon1" value="<?= $Guru['kab_teachers']; ?>" required>
                                                        <?= form_error('kab_teachers', '<small class="text-white bg-danger"><b>', '</b></small>'); ?>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="form-group-inner">
                                                <div class="row">
                                                    <div class="col-lg-3">
                                                        <label class="login2 pull-right pull-right-pro">Provinsi</label>
                                                    </div>
                                                    <div class="col-lg-9">
                                                        <input type="text" class="form-control form-control-lg" placeholder="Nama Provinsi" name="prov_teachers" aria-describedby="basic-addon1" value="<?= $Guru['prov_teachers']; ?>" required>
                                                        <?= form_error('prov_teachers', '<small class="text-white bg-danger"><b>', '</b></small>'); ?>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div id="TabPlan" class="tab-pane animated flipInX custon-tab-style1">
                                            <div class="form-group-inner">
                                                <div class="row">
                                                    <div class="col-lg-3">
                                                        <label class="login2 pull-right pull-right-pro">TMT Teachers</label>
                                                    </div>
                                                    <div class="col-lg-9">
                                                        <div class="date-picker-inner">
                                                            <div class="form-group data-custon-pick" id="data_1">
                                                                <div class="input-group date">
                                                                    <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                                                                    <input name='tmt_teachers' id='tmt_teachers' type="text" class="form-control" value="<?= $Guru['tmt_teachers']; ?>" required>
                                                                    <?= form_error('tmt_teachers', '<small class="text-danger">', '</small>'); ?>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="form-group-inner">
                                                <div class="row">
                                                    <div class="col-lg-3">
                                                        <label class="login2 pull-right pull-right-pro">Email Teachers</label>
                                                    </div>
                                                    <div class="col-lg-9">
                                                        <input type="text" class="form-control form-control-lg" placeholder="Alamat Email" name="email_teachers" aria-describedby="basic-addon1" value="<?= $Guru['email_teachers']; ?>">
                                                        <?= form_error('email_teachers', '<small class="text-white bg-danger"><b>', '</b></small>'); ?>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="form-group-inner">
                                                <div class="row">
                                                    <div class="col-lg-3">
                                                        <label class="login2 pull-right pull-right-pro">Telepon Teachers</label>
                                                    </div>
                                                    <div class="col-lg-9">
                                                        <input type="text" class="form-control form-control-lg" placeholder="Nomor Telepon" name="telp_teachers" aria-describedby="basic-addon1" value="<?= $Guru['telp_teachers']; ?>" required>
                                                        <?= form_error('telp_teachers', '<small class="text-white bg-danger"><b>', '</b></small>'); ?>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="row">
                                                <div class="col-lg-3">
                                                </div>
                                                <div class="col-lg-9">
                                                    <button class="btn btn-sm btn-primary login-submit-cs" type="submit">Save Change</button>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>