<?php
//form edit open

      $id = $_SESSION['userid'];
      $peserta = $this->biodata_model->user2($id);
      echo form_open(base_url('biodata/edit/'.$peserta->no_pendaftaran));
?>

<!-- Main content -->
<section class="content">
  <div class="container-fluid">
    <div class="row">
      <div class="col-12">
        <!-- Default box -->
        <div class="card">
          <div class="card-header">
            <h3 class="card-title"><b>A. IDENTITAS SISWA</b></h3>
            <div class="card-tools">
              <button type="button" class="btn btn-tool" data-card-widget="collapse" title="Collapse">
                <i class="fas fa-minus"></i>
              </button>
            </div>
          </div>

          <div class="card-body">
            <div class="form-group row">
              <label for="no_pendaftaran" class="col-sm-2 col-form-label">No. Pendaftaran</label>:
              <div class="col-sm-9">
                <input type="text" name="no_pendaftaran" class="form-control" placeholder="No. Pendaftaran" value="<?php echo $peserta->no_pendaftaran?>" onkeypress="return event.charCode >= 48 && event.charCode <=57" disabled>
              </div>
            </div>

            <div class="form-group row">
              <label for="nama_lengkap" class="col-sm-2 col-form-label">Nama Lengkap</label>:
              <div class="col-sm-9">
                <input type="text" name="nama_lengkap" class="form-control" placeholder="Nama Lengkap" value="<?php echo $peserta->nama_lengkap?>" onkeyup="this.value = this.value.toUpperCase()" required >
              </div>
            </div>

            <div class="form-group row">
              <label for="nama_panggilan" class="col-sm-2 col-form-label">Nama Panggilan</label>:
              <div class="col-sm-3">
                <input type="text" name="nama_panggilan" class="form-control" placeholder="Nama Panggilan" value="<?php echo $peserta->nama_panggilan?>" onkeyup="this.value = this.value.toUpperCase()"   >
              </div>
              <label for="jkelamin" class="col-sm-2 col-form-label">Jenis Kelamin</label>:
              <div class="col-sm-3">
                <select name="jkelamin" class="form-control">       
                  <option value="Laki-laki" <?php if($peserta->jkelamin=="Laki-laki") { echo "selected"; } ?>>
                  Laki-laki</option>
                  <option value="Perempuan" <?php if($peserta->jkelamin=="Perempuan") { echo "selected"; } ?>>
                  Perempuan</option>
                </select>
              </div>
            </div>

            <div class="form-group row">
              <label for="nik" class="col-sm-2 col-form-label">NIK</label>:
              <div class="col-sm-3">
                <input type="text" name="nik" class="form-control" placeholder="NIK" value="<?php echo $peserta->nik?>" onkeypress="return event.charCode >= 48 && event.charCode <=57"   >
              </div>
              <label for="nisn" class="col-sm-2 col-form-label">NISN</label>:
              <div class="col-sm-3">
                <input type="text" name="nisn" class="form-control" placeholder="NISN" value="<?php echo $peserta->nisn?>" onkeypress="return event.charCode >= 48 && event.charCode <=57"   >
              </div>
            </div>

            <div class="form-group row">
              <label for="tempat_lahir" class="col-sm-2 col-form-label">Tempat Lahir</label>:
              <div class="col-sm-3">
                <input type="text" name="tempat_lahir" class="form-control" placeholder="Tempat Lahir" value="<?php echo $peserta->tempat_lahir?>"   >
              </div>
              <label for="tgl_lahir" class="col-sm-2 col-form-label">Tanggal Lahir<small> [Hari-Bulan-Tahun]</small></label>:
              <div class="col-sm-3">
                <input type="text" name="tgl_lahir" class="form-control tanggal" placeholder="Tanggal Lahir" value="<?php echo date('d-m-Y',strtotime($peserta->tgl_lahir))?>" maxlength="10"  >
              </div>
            </div>

            <div class="form-group row">
              <label for="agama" class="col-sm-2 col-form-label">Agama</label>:
              <div class="col-sm-3">
                <select name="agama" class="form-control"> 
                  <option value="-" <?php if($peserta->agama=="-") { echo "selected"; } ?>>
                  -</option>      
                  <option value="Islam" <?php if($peserta->agama=="Islam") { echo "selected"; } ?>>
                  Islam</option>
                  <option value="Kristen" <?php if($peserta->agama=="Kristen") { echo "selected"; } ?>>
                  Kristen</option>
                  <option value="Katolik" <?php if($peserta->agama=="Katolik") { echo "selected"; } ?>>
                  Katolik</option>
                  <option value="Hindu" <?php if($peserta->agama=="Hindu") { echo "selected"; } ?>>
                  Hindu</option>
                  <option value="Budha" <?php if($peserta->agama=="Budha") { echo "selected"; } ?>>
                  Budha</option>
                  <option value="Konghucu" <?php if($peserta->agama=="Konghucu") { echo "selected"; } ?>>
                  Konghucu</option>
                </select>
              </div>
              <label for="kewarganegaraana" class="col-sm-2 col-form-label">Kewarganegaraan</label>:
              <div class="col-sm-3">
                <select name="kewarganegaraan" class="form-control">   
                  <option value="-" <?php if($peserta->kewarganegaraan=="-") { echo "selected"; } ?>>
                  -</option>     
                  <option value="Indonesia" <?php if($peserta->kewarganegaraan=="Indonesia") { echo "selected"; } ?>>
                  Indonesia</option>
                  <option value="Malaysia" <?php if($peserta->kewarganegaraan=="Malaysia") { echo "selected"; } ?>>
                  Malaysia</option>
                </select>
              </div>
            </div>

            <div class="form-group row">
              <label for="anak_ke" class="col-sm-2 col-form-label">Anak Ke</label>:
              <div class="col-sm-3">
               <input type="text" name="anak_ke" class="form-control" placeholder="Anak Ke" value="<?php echo $peserta->anak_ke?>" onkeypress="return event.charCode >= 48 && event.charCode <=57"   >
             </div>
             <label for="jml_saudara" class="col-sm-2 col-form-label">Jumlah Saudara</label>:
             <div class="col-sm-3">
               <input type="text" name="jml_saudara" class="form-control" placeholder="Jumlah Saudara" value="<?php echo $peserta->jml_saudara?>" onkeypress="return event.charCode >= 48 && event.charCode <=57"   >
             </div>
           </div>    

           <div class="form-group row">
            <label for="kandung" class="col-sm-2 col-form-label">Jumlah Saudara Kandung</label>:
            <div class="col-sm-3">
             <input type="text" name="kandung" class="form-control" placeholder="Jumlah Saudara Kandung" value="<?php echo $peserta->kandung?>" onkeypress="return event.charCode >= 48 && event.charCode <=57"   >
           </div>
           <label for="tiri" class="col-sm-2 col-form-label">Jumlah Saudara Tiri</label>:
           <div class="col-sm-3">
             <input type="text" name="tiri" class="form-control" placeholder="Jumlah Saudara Tiri" value="<?php echo $peserta->tiri?>" onkeypress="return event.charCode >= 48 && event.charCode <=57"   >
           </div>    
         </div>    

         <div class="form-group row">    
          <label for="angkat" class="col-sm-2 col-form-label">Jumlah Saudara Angkat</label>:
          <div class="col-sm-3">
           <input type="text" name="angkat" class="form-control" placeholder="Jumlah Saudara Angkat" value="<?php echo $peserta->angkat?>" onkeypress="return event.charCode >= 48 && event.charCode <=57"   >
         </div>
         <label for="status_keluarga" class="col-sm-2 col-form-label">Status Siswa</label>:
         <div class="col-sm-3">
          <select name="status_keluarga" class="form-control">   
            <option value="-" <?php if($peserta->status_keluarga=="-") { echo "selected"; } ?>>
            -</option>       
            <option value="Kandung" <?php if($peserta->status_keluarga=="Kandung") { echo "selected"; } ?>>
            Kandung</option>
            <option value="Yatim/Piatu" <?php if($peserta->status_keluarga=="Yatim/Piatu") { echo "selected"; } ?>>
            Yatim/Piatu</option>
            <option value="Lainnya" <?php if($peserta->status_keluarga=="Lainnya") { echo "selected"; } ?>>
            Lainnya</option>
          </select>
        </div>
      </div>    

      <div class="form-group row">
        <label for="kemeja" class="col-sm-2 col-form-label">Ukuran Kemeja</label>:    
        <div class="col-sm-3">
          <select name="kemeja" class="form-control"> 
            <option value="-" <?php if($peserta->kemeja=="-") { echo "selected"; } ?>>
            -</option>      
            <option value="S" <?php if($peserta->kemeja=="S") { echo "selected"; } ?>>
            S</option>
            <option value="M" <?php if($peserta->kemeja=="M") { echo "selected"; } ?>>
            M</option>
            <option value="L" <?php if($peserta->kemeja=="L") { echo "selected"; } ?>>
            L</option>
            <option value="XL" <?php if($peserta->kemeja=="XL") { echo "selected"; } ?>>
            XL</option>
            <option value="XXL" <?php if($peserta->kemeja=="XXL") { echo "selected"; } ?>>
            XXL</option>
            <option value="XXXL" <?php if($peserta->kemeja=="XXXL") { echo "selected"; } ?>>
            XXXL</option>
            <option value="XXXXL" <?php if($peserta->kemeja=="XXXXL") { echo "selected"; } ?>>
            XXXXL</option>
            <option value="5L" <?php if($peserta->kemeja=="5L") { echo "selected"; } ?>>
            5L</option>
            <option value="6L" <?php if($peserta->kemeja=="6L") { echo "selected"; } ?>>
            6L</option>
          </select>
        </div>
        <label for="celana" class="col-sm-2 col-form-label">Ukuran Celana/Rok</label>:    
        <div class="col-sm-3">
          <select name="celana" class="form-control"> 
            <option value="-" <?php if($peserta->celana=="-") { echo "selected"; } ?>>
            -</option>      
            <option value="S" <?php if($peserta->celana=="S") { echo "selected"; } ?>>
            S</option>
            <option value="M" <?php if($peserta->celana=="M") { echo "selected"; } ?>>
            M</option>
            <option value="L" <?php if($peserta->celana=="L") { echo "selected"; } ?>>
            L</option>
            <option value="XL" <?php if($peserta->celana=="XL") { echo "selected"; } ?>>
            XL</option>
            <option value="XXL" <?php if($peserta->celana=="XXL") { echo "selected"; } ?>>
            XXL</option>
            <option value="XXXL" <?php if($peserta->celana=="XXXL") { echo "selected"; } ?>>
            XXXL</option>
            <option value="XXXXL" <?php if($peserta->celana=="XXXXL") { echo "selected"; } ?>>
            XXXXL</option>
            <option value="5L" <?php if($peserta->celana=="5L") { echo "selected"; } ?>>
            5L</option>
            <option value="6L" <?php if($peserta->celana=="6L") { echo "selected"; } ?>>
            6L</option>
          </select>
        </div>
      </div>    

      <div class="form-group row">
        <label for="bhs_dirumah" class="col-sm-2 col-form-label">Bahasa di Rumah</label>:     
        <div class="col-sm-9">
          <select name="bhs_dirumah" class="form-control"> 
            <option value="-" <?php if($peserta->bhs_dirumah=="-") { echo "selected"; } ?>>
            -</option>      
            <option value="Indonesia" <?php if($peserta->bhs_dirumah=="Indonesia") { echo "selected"; } ?>>
            Indonesia</option>
            <option value="Sunda" <?php if($peserta->bhs_dirumah=="Sunda") { echo "selected"; } ?>>
            Sunda</option>
            <option value="Jawa" <?php if($peserta->bhs_dirumah=="Jawa") { echo "selected"; } ?>>
            Jawa</option>
            <option value="Inggris" <?php if($peserta->bhs_dirumah=="Inggris") { echo "selected"; } ?>>
            Inggris</option>
            <option value="Lainnya" <?php if($peserta->bhs_dirumah=="Lainnya") { echo "selected"; } ?>>
            Lainnya</option>
          </select>
        </div>
      </div>

      <div class="form-group row">
        <label for="kd_kompetensi" class="col-sm-2 col-form-label">Kompetensi Keahlian</label>:
        <div class="col-sm-9">
          <select name="kd_kompetensi" class="form-control" disabled>       
            <option value="MPLB" <?php if($peserta->kd_kompetensi=="MPLB") { echo "selected"; } ?>>
            Manajemen Perkantoran dan Layanan Bisnis</option>
            <option value="TJKT" <?php if($peserta->kd_kompetensi=="TJKT") { echo "selected"; } ?>>
            Teknik Jaringan Komputer & Telekomunikasi</option>
          </select>
        </div>
      </div>
    </div><!-- /.card -->
  </div>
</div>
</div>
</div>
</section><!-- /.content -->

<!-- Main content -->
<section class="content">
  <div class="container-fluid">
    <div class="row">
      <div class="col-12">
        <!-- Default box -->
        <div class="card">
          <div class="card-header">
            <h3 class="card-title"><b>B. TEMPAT TINGGAL & KONTAK</b></h3>
            <div class="card-tools">
              <button type="button" class="btn btn-tool" data-card-widget="collapse" title="Collapse">
                <i class="fas fa-minus"></i>
              </button>
            </div>
          </div>
          <div class="card-body">
            <div class="form-group row">    
              <label for="alamat_siswa" class="col-sm-2 col-form-label">Alamat Siswa Jalan</label>:
              <div class="col-sm-9">
                <input type="text" name="alamat_siswa" class="form-control" placeholder="Alamat Siswa" value="<?php echo $peserta->alamat_siswa?>" required >
              </div>
            </div>

            <div class="form-group row">    
              <label for="no_rmh" class="col-sm-2 col-form-label">Nomor Rumah</label>:
              <div class="col-sm-3">
                <input type="text" name="no_rmh" class="form-control" placeholder="Nomor Rumah" value="<?php echo $peserta->no_rmh?>"   >
              </div>
              <label for="rt" class="col-sm-2 col-form-label">RT</label>:
              <div class="col-sm-3">
                <input type="text" name="rt" class="form-control" placeholder="RT" value="<?php echo $peserta->rt?>" onkeypress="return event.charCode >= 48 && event.charCode <=57"   >
              </div>
            </div>

            <div class="form-group row">    
              <label for="rw" class="col-sm-2 col-form-label">RW</label>:
              <div class="col-sm-3">
                <input type="text" name="rw" class="form-control" placeholder="RW" value="<?php echo $peserta->rw?>" onkeypress="return event.charCode >= 48 && event.charCode <=57"   >
              </div>
              <label for="kelurahan" class="col-sm-2 col-form-label">Kelurahan/Desa</label>:
              <div class="col-sm-3">
                <input type="text" name="kelurahan" class="form-control" placeholder="Kelurahan/Desa" value="<?php echo $peserta->kelurahan?>"   >
                <small class="form-text text-muted"><i>Silahkan diketik Kelurahan/Desa, Cth : Kel. Cipayung</i></small>
              </div>
            </div>

            <div class="form-group row">    
              <label for="kecamatan" class="col-sm-2 col-form-label">Kecamatan</label>:
              <div class="col-sm-3">
                <input type="text" name="kecamatan" class="form-control" placeholder="Kecamatan" value="<?php echo $peserta->kecamatan?>"   >
                <small class="form-text text-muted"><i>Silahkan diketik Kecamatan, Cth : Kec. Cipayung</i></small>
              </div>
              <label for="kota" class="col-sm-2 col-form-label">Kabupaten/Kota</label>:
              <div class="col-sm-3">
                <input type="text" name="kota" class="form-control" placeholder="Kabupaten/Kota" value="<?php echo $peserta->kota?>"   >
                <small class="form-text text-muted"><i>Silahkan diketik Kabupaten/Kota, Cth : Kota Depok</i></small>
              </div>
            </div>

            <div class="form-group row">    
              <label for="provinsi" class="col-sm-2 col-form-label">Provinsi</label>:
              <div class="col-sm-3">
                <input type="text" name="provinsi" class="form-control" placeholder="Provinsi" value="<?php echo $peserta->provinsi?>"   >
              </div>
              <label for="kode_pos" class="col-sm-2 col-form-label">Kode Pos</label>:
              <div class="col-sm-3">
                <input type="text" name="kode_pos" class="form-control" placeholder="Kode Pos" value="<?php echo $peserta->kode_pos?>" onkeypress="return event.charCode >= 48 && event.charCode <=57"   >
              </div>
            </div>

            <div class="form-group row">
              <label for="email" class="col-sm-2 col-form-label">e-Mail</label>:
              <div class="col-sm-3">
                <input type="text" name="email" class="form-control" placeholder="e-Mail" value="<?php echo $peserta->email?>"   >
              </div>
              <label for="no_tlp_rmh" class="col-sm-2 col-form-label">Nomor Telepon Rumah</label>:
              <div class="col-sm-3">
                <input type="text" name="no_tlp_rmh" class="form-control" placeholder="Nomor Telepon Rumah" value="<?php echo $peserta->no_tlp_rmh?>" onkeypress="return event.charCode >= 48 && event.charCode <=57"   >
              </div>
            </div>

            <div class="form-group row">    
              <label for="no_hp" class="col-sm-2 col-form-label">Nomor HP Siswa</label>:
              <div class="col-sm-3">
                <input type="text" name="no_hp" class="form-control" placeholder="Nomor HP Siswa" value="<?php echo $peserta->no_hp?>" onkeypress="return event.charCode >= 48 && event.charCode <=57" required  >
              </div>
              <label for="tinggal_dengan" class="col-sm-2 col-form-label">Tinggal Dengan</label>:
              <div class="col-sm-3">
                <select name="tinggal_dengan" class="form-control">   
                  <option value="-" <?php if($peserta->tinggal_dengan=="-") { echo "selected"; } ?>>
                  -</option>  
                  <option value="Orang Tua" <?php if($peserta->tinggal_dengan=="Orang Tua") { echo "selected"; } ?>>
                  Orang Tua</option>
                  <option value="Kakek/Nenek" <?php if($peserta->tinggal_dengan=="Kakek/Nenek") { echo "selected"; } ?>>
                  Kakek/Nenek</option>
                  <option value="Kakak" <?php if($peserta->tinggal_dengan=="Kakak") { echo "selected"; } ?>>
                  Kakak</option>
                  <option value="Saudara" <?php if($peserta->tinggal_dengan=="Saudara") { echo "selected"; } ?>>
                  Saudara</option>
                  <option value="Lainnya" <?php if($peserta->tinggal_dengan=="Lainnya") { echo "selected"; } ?>>
                  Lainnya</option>
                </select>
              </div>
            </div>

            <div class="form-group row">  
              <label for="sekolah_dengan" class="col-sm-2 col-form-label">Ke Sekolah Dengan</label>:
              <div class="col-sm-3">
                <select name="sekolah_dengan" class="form-control">    
                  <option value="-" <?php if($peserta->sekolah_dengan=="-") { echo "selected"; } ?>>
                  -</option>    
                  <option value="Berjalan Kaki" <?php if($peserta->sekolah_dengan=="Berjalan Kaki") { echo "selected"; } ?>>
                  Berjalan Kaki</option>
                  <option value="Motor" <?php if($peserta->sekolah_dengan=="Motor") { echo "selected"; } ?>>
                  Motor</option>
                  <option value="Antar Jemput" <?php if($peserta->sekolah_dengan=="Antar Jemput") { echo "selected"; } ?>>
                  Antar Jemput</option>
                  <option value="Angkot" <?php if($peserta->sekolah_dengan=="Angkot") { echo "selected"; } ?>>
                  Angkot</option>
                  <option value="Lainnya" <?php if($peserta->sekolah_dengan=="Lainnya") { echo "selected"; } ?>>
                  Lainnya</option>        
                </select>
              </div>
              <label for="jarak_rmh_kesekolah" class="col-sm-2 col-form-label">Jarak Rumah Ke Sekolah (Km)</label>:
              <div class="col-sm-3">
                <input type="text" name="jarak_rmh_kesekolah" class="form-control" placeholder="Jarak Rumah Ke Sekolah" value="<?php echo $peserta->jarak_rmh_kesekolah?>" onkeypress="return event.charCode >= 48 && event.charCode <=57"   >
              </div>
            </div>

          </div><!-- /.card -->
        </div>
      </div>
    </div>
  </div>
</section><!-- /.content -->  

<!-- Main content -->
<section class="content">
  <div class="container-fluid">
    <div class="row">
      <div class="col-12">
        <!-- Default box -->
        <div class="card">
          <div class="card-header">
            <h3 class="card-title"><b>C. JASMANI DAN KESEHATAN</b></h3>
            <div class="card-tools">
              <button type="button" class="btn btn-tool" data-card-widget="collapse" title="Collapse">
                <i class="fas fa-minus"></i>
              </button>
            </div>
          </div>
          <div class="card-body">
            <div class="form-group row">    
              <label for="berat_badani" class="col-sm-2 col-form-label">Berat Badan (Kg)</label>:
              <div class="col-sm-3">
                <input type="text" name="berat_badan" class="form-control" placeholder="Berat Badan (Kg)" value="<?php echo $peserta->berat_badan?>" onkeypress="return event.charCode >= 48 && event.charCode <=57"   >
              </div>
              <label for="tinggi_badan" class="col-sm-2 col-form-label">Tinggi Badan (cm)</label>:
              <div class="col-sm-3">
                <input type="text" name="tinggi_badan" class="form-control" placeholder="Tinggi Badan (cm)" value="<?php echo $peserta->tinggi_badan?>" onkeypress="return event.charCode >= 48 && event.charCode <=57"   >
              </div>
            </div>
            <div class="form-group row">    
              <label for="gol_darah" class="col-sm-2 col-form-label">Golongan Darah</label>:
              <div class="col-sm-3">
                <select name="gol_darah" class="form-control"> 
                  <option value="-" <?php if($peserta->gol_darah=="-") { echo "selected"; } ?>>
                  -</option>      
                  <option value="A" <?php if($peserta->gol_darah=="A") { echo "selected"; } ?>>
                  A</option>
                  <option value="B" <?php if($peserta->gol_darah=="B") { echo "selected"; } ?>>
                  B</option> 
                  <option value="AB" <?php if($peserta->gol_darah=="AB") { echo "selected"; } ?>>
                  AB</option>
                  <option value="O" <?php if($peserta->gol_darah=="O") { echo "selected"; } ?>>
                  O</option>
                </select>
              </div>
              <label for="kelainan_jasmani" class="col-sm-2 col-form-label">Kelainan Jasmani</label>:
              <div class="col-sm-3">
                <input type="text" name="kelainan_jasmani" class="form-control" placeholder="Kelainan Jasmani" value="<?php echo $peserta->kelainan_jasmani?>"   >
              </div>
            </div>
            <div class="form-group row">    
              <label for="penyakit" class="col-sm-2 col-form-label">Penyakit Berat Yg Diderita</label>:
              <div class="col-sm-9">
                <input type="text" name="penyakit" class="form-control" placeholder="Penyakit Berat Yang Pernah Diderita" value="<?php echo $peserta->penyakit?>"   >
              </div>
            </div>
            <div class="form-group row">
              <label for="usia_tahun" class="col-sm-2 col-form-label">Usia Masuk Juli (Tahun)</label>:
              <div class="col-sm-3">
                <input type="text" name="usia_tahun" class="form-control" placeholder="Tahun" value="<?php echo $peserta->usia_tahun?>" onkeypress="return event.charCode >= 48 && event.charCode <=57"   >
              </div>
              <label for="usia_bulan" class="col-sm-2 col-form-label">Usia Masuk Juli (Bulan)</label>:
              <div class="col-sm-3">
                <input type="text" name="usia_bulan" class="form-control" placeholder="Bulan" value="<?php echo $peserta->usia_bulan?>" onkeypress="return event.charCode >= 48 && event.charCode <=57"   >
              </div>
            </div>
          </div><!-- /.card -->
        </div>
      </div>
    </div>
  </div>
</section><!-- /.content -->  

<!-- Main content -->
<section class="content">
  <div class="container-fluid">
    <div class="row">
      <div class="col-12">
        <!-- Default box -->
        <div class="card">
          <div class="card-header">
            <h3 class="card-title"><b>D. PENDIDIKAN SMP/MTs</b></h3>
            <div class="card-tools">
              <button type="button" class="btn btn-tool" data-card-widget="collapse" title="Collapse">
                <i class="fas fa-minus"></i>
              </button>
            </div>
          </div>
          <div class="card-body">

            <div class="form-group row">
              <label for="sekolah_asal" class="col-sm-2 col-form-label">Sekolah Asal</label>:
              <div class="col-sm-9">
                <input type="text" name="sekolah_asal" class="form-control" placeholder="Sekolah Asal" value="<?php echo $peserta->sekolah_asal?>" required >
              </div>
            </div>

            <div class="form-group row">
              <label for="npsn2" class="col-sm-2 col-form-label">NPSN</label>:
              <div class="col-sm-3">
                <input type="text" name="npsn2" class="form-control" placeholder="NPSN" value="<?php echo $peserta->npsn2?>" onkeypress="return event.charCode >= 48 && event.charCode <=57"   >
              </div>
              <label for="nisn2" class="col-sm-2 col-form-label">NISN</label>:
              <div class="col-sm-3">
                <input type="text" name="nisn2" class="form-control" placeholder="NISN" value="<?php echo $peserta->nisn2?>" onkeypress="return event.charCode >= 48 && event.charCode <=57"   >
              </div>
            </div>

            <div class="form-group row">
              <label for="sekolah_jln" class="col-sm-2 col-form-label">Alamat Sekolah Asal Jalan</label>:
              <div class="col-sm-9">
                <input type="text" name="sekolah_jln" class="form-control" placeholder="Alamat Sekolah Asal Jalan" value="<?php echo $peserta->sekolah_jln?>"   >
              </div>
            </div>

            <div class="form-group row">    
              <label for="sekolah_kel" class="col-sm-2 col-form-label">Kelurahan/Desa</label>:
              <div class="col-sm-3">
                <input type="text" name="sekolah_kel" class="form-control" placeholder="Kelurahan/Desa" value="<?php echo $peserta->sekolah_kel?>"   >
                <small class="form-text text-muted"><i>Silahkan diketik Kelurahan/Desa, Cth : Kel. Cipayung</i></small>
              </div>
              <label for="sekolah_kec" class="col-sm-2 col-form-label">Kecamatan</label>:
              <div class="col-sm-3">
                <input type="text" name="sekolah_kec" class="form-control" placeholder="Kecamatan" value="<?php echo $peserta->sekolah_kec?>"   >
                <small class="form-text text-muted"><i>Silahkan diketik Kecamatan, Cth : Kec. Cipayung</i></small>
              </div>
            </div>

            <div class="form-group row">    
              <label for="sekolah_kota" class="col-sm-2 col-form-label">Kabupaten/Kota</label>:
              <div class="col-sm-3">
                <input type="text" name="sekolah_kota" class="form-control" placeholder="Kabupaten/Kota" value="<?php echo $peserta->sekolah_kota?>"   >
                <small class="form-text text-muted"><i>Silahkan diketik Kabupaten/Kota, Cth : Kota Depok</i></small>
              </div>
              <label for="sekolah_prov" class="col-sm-2 col-form-label">Provinsi</label>:
              <div class="col-sm-3">
                <input type="text" name="sekolah_prov" class="form-control" placeholder="Provinsi" value="<?php echo $peserta->sekolah_prov?>"   >
              </div>
            </div>

            <div class="form-group row">
              <label for="Ijazah_no" class="col-sm-2 col-form-label">Nomor Ijazah</label>:
              <div class="col-sm-3">
                <input type="text" name="Ijazah_no" class="form-control" placeholder="Nomor Ijazah SMP/MTs" value="<?php echo $peserta->Ijazah_no?>">
              </div>
              <label for="Ijazah_tgl" class="col-sm-2 col-form-label">Tanggal Ijazah<small> [Hari-Bulan-Tahun]</small></label>:
              <div class="col-sm-3">
                <input type="text" name="Ijazah_tgl" class="form-control tanggal" placeholder="Tanggal Ijazah" value="<?php echo date('d-m-Y',strtotime($peserta->Ijazah_tgl))?>" maxlength="10"  >
              </div>
            </div>
          </div><!-- /.card -->
        </div>
      </div>
    </div>
  </div>
</section><!-- /.content -->

<!-- Main content -->
<section class="content">
  <div class="container-fluid">
    <div class="row">
      <div class="col-12">
        <!-- Default box -->
        <div class="card">
          <div class="card-header">
            <h3 class="card-title"><b>E. ORANG TUA/WALI</b></h3>
            <div class="card-tools">
              <button type="button" class="btn btn-tool" data-card-widget="collapse" title="Collapse">
                <i class="fas fa-minus"></i>
              </button>
            </div>
          </div>
          <div class="card-body">
            <h5><b>Identitas Ayah</b></h5>
            <div class="form-group row">    
              <label for="nama_ayah" class="col-sm-2 col-form-label">Nama Ayah</label>:
              <div class="col-sm-9">
                <input type="text" name="nama_ayah" class="form-control" placeholder="Nama Ayah" value="<?php echo $peserta->nama_ayah?>" onkeyup="this.value = this.value.toUpperCase()" required >
              </div>    
            </div>
            <div class="form-group row">  
              <label for="tmpt_lahir_ayah" class="col-sm-2 col-form-label">Tempat Lahir</label>:
              <div class="col-sm-3">
                <input type="text" name="tmpt_lahir_ayah" class="form-control" placeholder="Tempat Lahir" value="<?php echo $peserta->tmpt_lahir_ayah?>"   >
              </div>  
              <label for="tgl_lahir_ayah" class="col-sm-2 col-form-label">Tanggal Lahir<small> [Hari-Bulan-Tahun]</small></label>:
              <div class="col-sm-3">
                <input type="text" name="tgl_lahir_ayah" class="form-control tanggal" placeholder="Tanggal Lahir" value="<?php echo date('d-m-Y',strtotime($peserta->tgl_lahir_ayah))?>" maxlength="10"  >
              </div>    
            </div>
            <div class="form-group row">
              <label for="agama_ayah" class="col-sm-2 col-form-label">Agama</label>:
              <div class="col-sm-3">
                <select name="agama_ayah" class="form-control"> 
                  <option value="-" <?php if($peserta->agama_ayah=="-") { echo "selected"; } ?>>
                  -</option>      
                  <option value="Islam" <?php if($peserta->agama_ayah=="Islam") { echo "selected"; } ?>>
                  Islam</option>
                  <option value="Kristen" <?php if($peserta->agama_ayah=="Kristen") { echo "selected"; } ?>>
                  Kristen</option>
                  <option value="Katolik" <?php if($peserta->agama_ayah=="Katolik") { echo "selected"; } ?>>
                  Katolik</option>
                  <option value="Hindu" <?php if($peserta->agama_ayah=="Hindu") { echo "selected"; } ?>>
                  Hindu</option>
                  <option value="Budha" <?php if($peserta->agama_ayah=="Budha") { echo "selected"; } ?>>
                  Budha</option>
                  <option value="Konghucu" <?php if($peserta->agama_ayah=="Konghucu") { echo "selected"; } ?>>
                  Konghucu</option>
                </select>
              </div>
              <label for="kewarganegaraan_ayah" class="col-sm-2 col-form-label">Kewarganegaraan</label>:
              <div class="col-sm-3">
                <select name="kewarganegaraan_ayah" class="form-control">   
                  <option value="-" <?php if($peserta->kewarganegaraan_ayah=="-") { echo "selected"; } ?>>
                  -</option>     
                  <option value="Indonesia" <?php if($peserta->kewarganegaraan_ayah=="Indonesia") { echo "selected"; } ?>>
                  Indonesia</option>
                  <option value="Malaysia" <?php if($peserta->kewarganegaraan_ayah=="Malaysia") { echo "selected"; } ?>>
                  Malaysia</option>
                </select>
              </div>
            </div>
            <div class="form-group row">
              <label for="pendidikan_ayah" class="col-sm-2 col-form-label">Pendidikan Tertinggi</label>:
              <div class="col-sm-3">
                <select name="pendidikan_ayah" class="form-control"> 
                  <option value="-" <?php if($peserta->pendidikan_ayah=="-") { echo "selected"; } ?>>
                  -</option>      
                  <option value="SD" <?php if($peserta->pendidikan_ayah=="SD") { echo "selected"; } ?>>
                  SD</option>
                  <option value="MI" <?php if($peserta->pendidikan_ayah=="MI") { echo "selected"; } ?>>
                  MI</option>
                  <option value="SMP" <?php if($peserta->pendidikan_ayah=="SMP") { echo "selected"; } ?>>
                  SMP</option>
                  <option value="MTS" <?php if($peserta->pendidikan_ayah=="MTS") { echo "selected"; } ?>>
                  MTS</option>
                  <option value="SMA" <?php if($peserta->pendidikan_ayah=="SMA") { echo "selected"; } ?>>
                  SMA</option>
                  <option value="SMK" <?php if($peserta->pendidikan_ayah=="SMK") { echo "selected"; } ?>>
                  SMK</option>
                  <option value="ALIYAH" <?php if($peserta->pendidikan_ayah=="ALIYAH") { echo "selected"; } ?>>
                  ALIYAH</option>
                  <option value="D1" <?php if($peserta->pendidikan_ayah=="D1") { echo "selected"; } ?>>
                  D1</option>
                  <option value="D2" <?php if($peserta->pendidikan_ayah=="D2") { echo "selected"; } ?>>
                  D2</option>
                  <option value="D3" <?php if($peserta->pendidikan_ayah=="D3") { echo "selected"; } ?>>
                  D3</option>
                  <option value="D4" <?php if($peserta->pendidikan_ayah=="D4") { echo "selected"; } ?>>
                  D4</option>
                  <option value="S1" <?php if($peserta->pendidikan_ayah=="S1") { echo "selected"; } ?>>
                  S1</option>
                  <option value="S2" <?php if($peserta->pendidikan_ayah=="S2") { echo "selected"; } ?>>
                  S2</option>
                  <option value="S3" <?php if($peserta->pendidikan_ayah=="S3") { echo "selected"; } ?>>
                  S3</option>                 
                </select>
              </div>
              <label for="pekerjaan_ayah" class="col-sm-2 col-form-label">Pekerjaan</label>:
              <div class="col-sm-3">
                <select name="pekerjaan_ayah" class="form-control">   
                  <option value="-" <?php if($peserta->pekerjaan_ayah=="-") { echo "selected"; } ?>>
                  -</option>     
                  <option value="Tani" <?php if($peserta->pekerjaan_ayah=="Tani") { echo "selected"; } ?>>
                  Tani</option>
                  <option value="Pedagang" <?php if($peserta->pekerjaan_ayah=="Pedagang") { echo "selected"; } ?>>
                  Pedagang</option>
                  <option value="Supir" <?php if($peserta->pekerjaan_ayah=="Supir") { echo "selected"; } ?>>
                  Supir</option>
                  <option value="Karyawan" <?php if($peserta->pekerjaan_ayah=="Karyawan") { echo "selected"; } ?>>
                  Karyawan</option>
                  <option value="Guru" <?php if($peserta->pekerjaan_ayah=="Guru") { echo "selected"; } ?>>
                  Guru</option>
                  <option value="Buruh" <?php if($peserta->pekerjaan_ayah=="Buruh") { echo "selected"; } ?>>
                  Buruh</option>
                  <option value="Wiraswasta" <?php if($peserta->pekerjaan_ayah=="Wiraswasta") { echo "selected"; } ?>>
                  Wiraswasta</option>
                  <option value="PNS" <?php if($peserta->pekerjaan_ayah=="PNS") { echo "selected"; } ?>>
                  PNS</option>
                  <option value="Polisi" <?php if($peserta->pekerjaan_ayah=="Polisi") { echo "selected"; } ?>>
                  Polisi</option>
                  <option value="TNI" <?php if($peserta->pekerjaan_ayah=="TNI") { echo "selected"; } ?>>
                  TNI</option>
                  <option value="Lainnya" <?php if($peserta->pekerjaan_ayah=="Lainnya") { echo "selected"; } ?>>
                  Lainnya</option>                 
                </select>
              </div>
            </div>            
            <div class="form-group row">    
              <label for="penghasilan_ayah" class="col-sm-2 col-form-label">Penghasilan Per Bulan (Rp.)</label>:
              <div class="col-sm-3">
                <input type="text" name="penghasilan_ayah" class="form-control" placeholder="Penghasilan Per Bulan" value="<?php echo $peserta->penghasilan_ayah?>" onkeypress="return event.charCode >= 48 && event.charCode <=57"   >
              </div>   
              <label for="tlp_ayah" class="col-sm-2 col-form-label">Nomor HP Ayah</label>:
              <div class="col-sm-3">
                <input type="text" name="tlp_ayah" class="form-control" placeholder="Nomor HP Ayah" value="<?php echo $peserta->tlp_ayah?>" onkeypress="return event.charCode >= 48 && event.charCode <=57" required >
              </div>  
            </div>
            <div class="form-group row">    
              <label for="alamat_ayah" class="col-sm-2 col-form-label">Alamat Rumah</label>:
              <div class="col-sm-9">
                <input type="text" name="alamat_ayah" class="form-control" placeholder="Alamat Rumah" value="<?php echo $peserta->alamat_ayah?>"   >
                <small class="form-text text-muted"><i>Silahkan diketik Lengkap, Cth : Jl. Raya Cipayung Jembatan Serong No. 33 RT.06/02 Kel. Cipayung Kec. Cipayung - Depok</i></small>
              </div>    
            </div>

            <br><h5><b>Identitas Ibu</b></h5>
            <div class="form-group row">    
              <label for="nama_ibu" class="col-sm-2 col-form-label">Nama Ibu</label>:
              <div class="col-sm-9">
                <input type="text" name="nama_ibu" class="form-control" placeholder="Nama Ibu" value="<?php echo $peserta->nama_ibu?>" onkeyup="this.value = this.value.toUpperCase()" required   >
              </div>    
            </div>
            <div class="form-group row">  
              <label for="tmpt_lahir_ibu" class="col-sm-2 col-form-label">Tempat Lahir</label>:
              <div class="col-sm-3">
                <input type="text" name="tmpt_lahir_ibu" class="form-control" placeholder="Tempat Lahir" value="<?php echo $peserta->tmpt_lahir_ibu?>"   >
              </div>  
              <label for="tgl_lahir_ibu" class="col-sm-2 col-form-label">Tanggal Lahir<small> [Hari-Bulan-Tahun]</small></label>:
              <div class="col-sm-3">
                <input type="text" name="tgl_lahir_ibu" class="form-control tanggal" placeholder="Tanggal Lahir" value="<?php echo date('d-m-Y',strtotime($peserta->tgl_lahir_ibu))?>" maxlength="10"  >
              </div>    
            </div>
            <div class="form-group row">
              <label for="agama_ibu" class="col-sm-2 col-form-label">Agama</label>:
              <div class="col-sm-3">
                <select name="agama_ibu" class="form-control"> 
                  <option value="-" <?php if($peserta->agama_ibu=="-") { echo "selected"; } ?>>
                  -</option>      
                  <option value="Islam" <?php if($peserta->agama_ibu=="Islam") { echo "selected"; } ?>>
                  Islam</option>
                  <option value="Kristen" <?php if($peserta->agama_ibu=="Kristen") { echo "selected"; } ?>>
                  Kristen</option>
                  <option value="Katolik" <?php if($peserta->agama_ibu=="Katolik") { echo "selected"; } ?>>
                  Katolik</option>
                  <option value="Hindu" <?php if($peserta->agama_ibu=="Hindu") { echo "selected"; } ?>>
                  Hindu</option>
                  <option value="Budha" <?php if($peserta->agama_ibu=="Budha") { echo "selected"; } ?>>
                  Budha</option>
                  <option value="Konghucu" <?php if($peserta->agama_ibu=="Konghucu") { echo "selected"; } ?>>
                  Konghucu</option>
                </select>
              </div>
              <label for="kewarganegaraan_ibu" class="col-sm-2 col-form-label">Kewarganegaraan</label>:
              <div class="col-sm-3">
                <select name="kewarganegaraan_ibu" class="form-control">   
                  <option value="-" <?php if($peserta->kewarganegaraan_ibu=="-") { echo "selected"; } ?>>
                  -</option>     
                  <option value="Indonesia" <?php if($peserta->kewarganegaraan_ibu=="Indonesia") { echo "selected"; } ?>>
                  Indonesia</option>
                  <option value="Malaysia" <?php if($peserta->kewarganegaraan_ibu=="Malaysia") { echo "selected"; } ?>>
                  Malaysia</option>
                </select>
              </div>
            </div>
            <div class="form-group row">
              <label for="pendidikan_ibu" class="col-sm-2 col-form-label">Pendidikan Tertinggi</label>:
              <div class="col-sm-3">
                <select name="pendidikan_ibu" class="form-control"> 
                  <option value="-" <?php if($peserta->pendidikan_ibu=="-") { echo "selected"; } ?>>
                  -</option>      
                  <option value="SD" <?php if($peserta->pendidikan_ibu=="SD") { echo "selected"; } ?>>
                  SD</option>
                  <option value="MI" <?php if($peserta->pendidikan_ibu=="MI") { echo "selected"; } ?>>
                  MI</option>
                  <option value="SMP" <?php if($peserta->pendidikan_ibu=="SMP") { echo "selected"; } ?>>
                  SMP</option>
                  <option value="MTS" <?php if($peserta->pendidikan_ibu=="MTS") { echo "selected"; } ?>>
                  MTS</option>
                  <option value="SMA" <?php if($peserta->pendidikan_ibu=="SMA") { echo "selected"; } ?>>
                  SMA</option>
                  <option value="SMK" <?php if($peserta->pendidikan_ibu=="SMK") { echo "selected"; } ?>>
                  SMK</option>
                  <option value="ALIYAH" <?php if($peserta->pendidikan_ibu=="ALIYAH") { echo "selected"; } ?>>
                  ALIYAH</option>
                  <option value="D1" <?php if($peserta->pendidikan_ibu=="D1") { echo "selected"; } ?>>
                  D1</option>
                  <option value="D2" <?php if($peserta->pendidikan_ibu=="D2") { echo "selected"; } ?>>
                  D2</option>
                  <option value="D3" <?php if($peserta->pendidikan_ibu=="D3") { echo "selected"; } ?>>
                  D3</option>
                  <option value="D4" <?php if($peserta->pendidikan_ibu=="D4") { echo "selected"; } ?>>
                  D4</option>
                  <option value="S1" <?php if($peserta->pendidikan_ibu=="S1") { echo "selected"; } ?>>
                  S1</option>
                  <option value="S2" <?php if($peserta->pendidikan_ibu=="S2") { echo "selected"; } ?>>
                  S2</option>
                  <option value="S3" <?php if($peserta->pendidikan_ibu=="S3") { echo "selected"; } ?>>
                  S3</option>                 
                </select>
              </div>
              <label for="pekerjaan_ibu" class="col-sm-2 col-form-label">Pekerjaan</label>:
              <div class="col-sm-3">
                <select name="pekerjaan_ibu" class="form-control">   
                  <option value="-" <?php if($peserta->pekerjaan_ibu=="-") { echo "selected"; } ?>>
                  -</option>     
                  <option value="Tani" <?php if($peserta->pekerjaan_ibu=="Tani") { echo "selected"; } ?>>
                  Tani</option>
                  <option value="Pedagang" <?php if($peserta->pekerjaan_ibu=="Pedagang") { echo "selected"; } ?>>
                  Pedagang</option>
                  <option value="Karyawati" <?php if($peserta->pekerjaan_ibu=="Karyawati") { echo "selected"; } ?>>                  Karyawati</option>                 
                  <option value="Guru" <?php if($peserta->pekerjaan_ibu=="Guru") { echo "selected"; } ?>>
                  Guru</option>
                  <option value="Buruh" <?php if($peserta->pekerjaan_ibu=="Buruh") { echo "selected"; } ?>>
                  Buruh</option>
                  <option value="Wiraswasta" <?php if($peserta->pekerjaan_ibu=="Wiraswasta") { echo "selected"; } ?>>
                  Wiraswasta</option>
                  <option value="PNS" <?php if($peserta->pekerjaan_ibu=="PNS") { echo "selected"; } ?>>
                  PNS</option>
                  <option value="Polisi" <?php if($peserta->pekerjaan_ibu=="Polisi") { echo "selected"; } ?>>
                  Polisi</option>
                  <option value="TNI" <?php if($peserta->pekerjaan_ibu=="TNI") { echo "selected"; } ?>>
                  TNI</option>
                  <option value="Ibu Rumah Tangga" <?php if($peserta->pekerjaan_ibu=="Ibu Rumah Tangga") { echo "selected"; } ?>>
                  Ibu Rumah Tangga</option>                                
                </select>
              </div>
            </div>  
            <div class="form-group row">    
              <label for="penghasilan_ibu" class="col-sm-2 col-form-label">Penghasilan Per Bulan</label>:
              <div class="col-sm-3">
                <input type="text" name="penghasilan_ibu" class="form-control" placeholder="Penghasilan Per Bulan" value="<?php echo $peserta->penghasilan_ibu?>" onkeypress="return event.charCode >= 48 && event.charCode <=57"   >
              </div>   
              <label for="tlp_ibu" class="col-sm-2 col-form-label">Nomor HP Ibu</label>:
              <div class="col-sm-3">
                <input type="text" name="tlp_ibu" class="form-control" placeholder="Nomor HP Ibu" value="<?php echo $peserta->tlp_ibu?>" onkeypress="return event.charCode >= 48 && event.charCode <=57" required >
              </div>  
            </div>
            <div class="form-group row">    
              <label for="alamat_ibu" class="col-sm-2 col-form-label">Alamat Rumah</label>:
              <div class="col-sm-9">
                <input type="text" name="alamat_ibu" class="form-control" placeholder="Alamat Rumah" value="<?php echo $peserta->alamat_ibu?>"   >
                <small class="form-text text-muted"><i>Silahkan diketik Lengkap, Cth : Jl. Raya Cipayung Jembatan Serong No. 33 RT.06/02 Kel. Cipayung Kec. Cipayung - Depok</i></small>
              </div>    
            </div>

            <br><h5><b>Identitas Wali</b></h5>
            <div class="form-group row">    
              <label for="nama_wali" class="col-sm-2 col-form-label">Nama Wali</label>:
              <div class="col-sm-9">
                <input type="text" name="nama_wali" class="form-control" placeholder="Nama Wali" value="<?php echo $peserta->nama_wali?>" onkeyup="this.value = this.value.toUpperCase()"   >
              </div>    
            </div>
            <div class="form-group row">  
              <label for="tmpt_lahir_wali" class="col-sm-2 col-form-label">Tempat Lahir</label>:
              <div class="col-sm-3">
                <input type="text" name="tmpt_lahir_wali" class="form-control" placeholder="Tempat Lahir" value="<?php echo $peserta->tmpt_lahir_wali?>"   >
              </div>  
              <label for="tgl_lahir_wali" class="col-sm-2 col-form-label">Tanggal Lahir<small> [Hari-Bulan-Tahun]</small></label>:
              <div class="col-sm-3">
                <input type="text" name="tgl_lahir_wali" class="form-control tanggal" placeholder="Tanggal Lahir" value="<?php echo date('d-m-Y',strtotime($peserta->tgl_lahir_wali))?>" maxlength="10"  >
              </div>    
            </div>
            <div class="form-group row">
              <label for="agama_wali" class="col-sm-2 col-form-label">Agama</label>:
              <div class="col-sm-3">
                <select name="agama_wali" class="form-control"> 
                  <option value="-" <?php if($peserta->agama_wali=="-") { echo "selected"; } ?>>
                  -</option>      
                  <option value="Islam" <?php if($peserta->agama_wali=="Islam") { echo "selected"; } ?>>
                  Islam</option>
                  <option value="Kristen" <?php if($peserta->agama_wali=="Kristen") { echo "selected"; } ?>>
                  Kristen</option>
                  <option value="Katolik" <?php if($peserta->agama_wali=="Katolik") { echo "selected"; } ?>>
                  Katolik</option>
                  <option value="Hindu" <?php if($peserta->agama_wali=="Hindu") { echo "selected"; } ?>>
                  Hindu</option>
                  <option value="Budha" <?php if($peserta->agama_wali=="Budha") { echo "selected"; } ?>>
                  Budha</option>
                  <option value="Konghucu" <?php if($peserta->agama_wali=="Konghucu") { echo "selected"; } ?>>
                  Konghucu</option>
                </select>
              </div>
              <label for="kewarganegaraan_wali" class="col-sm-2 col-form-label">Kewarganegaraan</label>:
              <div class="col-sm-3">
                <select name="kewarganegaraan_wali" class="form-control">   
                  <option value="-" <?php if($peserta->kewarganegaraan_wali=="-") { echo "selected"; } ?>>
                  -</option>     
                  <option value="Indonesia" <?php if($peserta->kewarganegaraan_wali=="Indonesia") { echo "selected"; } ?>>
                  Indonesia</option>
                  <option value="Malaysia" <?php if($peserta->kewarganegaraan_wali=="Malaysia") { echo "selected"; } ?>>
                  Malaysia</option>
                </select>
              </div>
            </div>
            <div class="form-group row">
              <label for="pendidikan_wali" class="col-sm-2 col-form-label">Pendidikan Tertinggi</label>:
              <div class="col-sm-3">
                <select name="pendidikan_wali" class="form-control"> 
                  <option value="-" <?php if($peserta->pendidikan_wali=="-") { echo "selected"; } ?>>
                  -</option>      
                  <option value="SD" <?php if($peserta->pendidikan_wali=="SD") { echo "selected"; } ?>>
                  SD</option>
                  <option value="MI" <?php if($peserta->pendidikan_wali=="MI") { echo "selected"; } ?>>
                  MI</option>
                  <option value="SMP" <?php if($peserta->pendidikan_wali=="SMP") { echo "selected"; } ?>>
                  SMP</option>
                  <option value="MTS" <?php if($peserta->pendidikan_wali=="MTS") { echo "selected"; } ?>>
                  MTS</option>
                  <option value="SMA" <?php if($peserta->pendidikan_wali=="SMA") { echo "selected"; } ?>>
                  SMA</option>
                  <option value="SMK" <?php if($peserta->pendidikan_wali=="SMK") { echo "selected"; } ?>>
                  SMK</option>
                  <option value="ALIYAH" <?php if($peserta->pendidikan_wali=="ALIYAH") { echo "selected"; } ?>>
                  ALIYAH</option>
                  <option value="D1" <?php if($peserta->pendidikan_wali=="D1") { echo "selected"; } ?>>
                  D1</option>
                  <option value="D2" <?php if($peserta->pendidikan_wali=="D2") { echo "selected"; } ?>>
                  D2</option>
                  <option value="D3" <?php if($peserta->pendidikan_wali=="D3") { echo "selected"; } ?>>
                  D3</option>
                  <option value="D4" <?php if($peserta->pendidikan_wali=="D4") { echo "selected"; } ?>>
                  D4</option>
                  <option value="S1" <?php if($peserta->pendidikan_wali=="S1") { echo "selected"; } ?>>
                  S1</option>
                  <option value="S2" <?php if($peserta->pendidikan_wali=="S2") { echo "selected"; } ?>>
                  S2</option>
                  <option value="S3" <?php if($peserta->pendidikan_wali=="S3") { echo "selected"; } ?>>
                  S3</option>                 
                </select>
              </div>
              <label for="pekerjaan_wali" class="col-sm-2 col-form-label">Pekerjaan</label>:
              <div class="col-sm-3">
                <select name="pekerjaan_wali" class="form-control">   
                  <option value="-" <?php if($peserta->pekerjaan_wali=="-") { echo "selected"; } ?>>
                  -</option>     
                  <option value="Tani" <?php if($peserta->pekerjaan_wali=="Tani") { echo "selected"; } ?>>
                  Tani</option>
                  <option value="Pedagang" <?php if($peserta->pekerjaan_waliu=="Pedagang") { echo "selected"; } ?>>
                  Pedagang</option>
                  <option value="Karyawan" <?php if($peserta->pekerjaan_wali=="Karyawan") { echo "selected"; } ?>>                  
                  Karyawan</option>                 
                  <option value="Guru" <?php if($peserta->pekerjaan_wali=="Guru") { echo "selected"; } ?>>
                  Guru</option>
                  <option value="Buruh" <?php if($peserta->pekerjaan_wali=="Buruh") { echo "selected"; } ?>>
                  Buruh</option>
                  <option value="Wiraswasta" <?php if($peserta->pekerjaan_wali=="Wiraswasta") { echo "selected"; } ?>>
                  Wiraswasta</option>
                  <option value="PNS" <?php if($peserta->pekerjaan_wali=="PNS") { echo "selected"; } ?>>
                  PNS</option>
                  <option value="Polisi" <?php if($peserta->pekerjaan_wali=="Polisi") { echo "selected"; } ?>>
                  Polisi</option>
                  <option value="TNI" <?php if($peserta->pekerjaan_wali=="TNI") { echo "selected"; } ?>>
                  TNI</option>
                  <option value="Lainnya" <?php if($peserta->pekerjaan_wali=="Lainnya") { echo "selected"; } ?>>
                  Lainnya</option>                                
                </select>
              </div>
            </div>  
            <div class="form-group row">    
              <label for="penghasilan_wali" class="col-sm-2 col-form-label">Penghasilan Per Bulan</label>:
              <div class="col-sm-3">
                <input type="text" name="penghasilan_wali" class="form-control" placeholder="Penghasilan Per Bulan" value="<?php echo $peserta->penghasilan_wali?>" onkeypress="return event.charCode >= 48 && event.charCode <=57"   >
              </div>   
              <label for="tlp_wali" class="col-sm-2 col-form-label">Nomor HP Wali</label>:
              <div class="col-sm-3">
                <input type="text" name="tlp_wali" class="form-control" placeholder="Nomor HP Wali" value="<?php echo $peserta->tlp_wali?>" onkeypress="return event.charCode >= 48 && event.charCode <=57"   >
              </div>  
            </div>
            <div class="form-group row">    
              <label for="alamat_wali" class="col-sm-2 col-form-label">Alamat Rumah</label>:
              <div class="col-sm-9">
                <input type="text" name="alamat_wali" class="form-control" placeholder="Alamat Rumah" value="<?php echo $peserta->alamat_wali?>"   >
                <small class="form-text text-muted"><i>Silahkan diketik Lengkap, Cth : Jl. Raya Cipayung Jembatan Serong No. 33 RT.06/02 Kel. Cipayung Kec. Cipayung - Depok</i></small>
              </div>    
            </div>

          </div><!-- /.card -->
        </div>
      </div>
    </div>
  </div>
</section><!-- /.content -->  

<!-- Main content -->
<section class="content">
  <div class="container-fluid">
    <div class="row">
      <div class="col-12">
        <!-- Default box -->
        <div class="card">
          <div class="card-header">
            <h3 class="card-title"><b>F. INTELEGENSI, KEPRIBADIAN & PRESTASI</b></h3>
            <div class="card-tools">
              <button type="button" class="btn btn-tool" data-card-widget="collapse" title="Collapse">
                <i class="fas fa-minus"></i>
              </button>
            </div>
          </div>
          <div class="card-body">
            <div class="form-group row">    
              <label for="iq" class="col-sm-2 col-form-label">Intelegensi (IQ)</label>:
              <div class="col-sm-3">
                <input type="text" name="iq" class="form-control" placeholder="Intelegensi (IQ)" value="<?php echo $peserta->iq?>" onkeypress="return event.charCode >= 48 && event.charCode <=57"   >
              </div>
              <label for="tgl_tes_iqv" class="col-sm-2 col-form-label">Tes Tanggal<small> [Hari-Bulan-Tahun]</small></label>:
              <div class="col-sm-3">
                <input type="text" name="tgl_tes_iq" class="form-control tanggal" placeholder="Tes Pada Tanggal" value="<?php echo date('d-m-Y',strtotime($peserta->tgl_tes_iq))?>" maxlength="10"  >
              </div>
            </div>
            <div class="form-group row">    
              <label for="disiplin" class="col-sm-2 col-form-label">Disiplin/Ketertiban</label>:
              <div class="col-sm-3">
                <select name="disiplin" class="form-control">
                 <option value="-" <?php if($peserta->disiplin=="-") { echo "selected"; } ?>>
                 -</option>       
                 <option value="Baik" <?php if($peserta->disiplin=="Baik") { echo "selected"; } ?>>
                 Baik</option>
                 <option value="Cukup" <?php if($peserta->disiplin=="Cukup") { echo "selected"; } ?>>
                 Cukup</option>
                 <option value="Kurang" <?php if($peserta->disiplin=="Kurang") { echo "selected"; } ?>>
                 Kurang</option>
               </select>
             </div>
             <label for="prakarsa" class="col-sm-2 col-form-label">Prakarsa/Kreatifitas</label>:
             <div class="col-sm-3">
              <select name="prakarsa" class="form-control"> 
                <option value="-" <?php if($peserta->prakarsa=="-") { echo "selected"; } ?>>
                -</option>      
                <option value="Baik" <?php if($peserta->prakarsa=="Baik") { echo "selected"; } ?>>
                Baik</option>
                <option value="Cukup" <?php if($peserta->prakarsa=="Cukup") { echo "selected"; } ?>>
                Cukup</option>
                <option value="Kurang" <?php if($peserta->prakarsa=="Kurang") { echo "selected"; } ?>>
                Kurang</option>
              </select>
            </div>
          </div>
          <div class="form-group row">    
            <label for="tanggung_jwb" class="col-sm-2 col-form-label">Tanggung Jawab</label>:
            <div class="col-sm-3">
              <select name="tanggung_jwb" class="form-control">
               <option value="-" <?php if($peserta->tanggung_jwb=="-") { echo "selected"; } ?>>
               -</option>       
               <option value="Baik" <?php if($peserta->tanggung_jwb=="Baik") { echo "selected"; } ?>>
               Baik</option>
               <option value="Cukup" <?php if($peserta->tanggung_jwb=="Cukup") { echo "selected"; } ?>>
               Cukup</option>
               <option value="Kurang" <?php if($peserta->tanggung_jwb=="Kurang") { echo "selected"; } ?>>
               Kurang</option>
             </select>
           </div>
           <label for="penyesuaian_diri" class="col-sm-2 col-form-label">Penyesuaian Diri</label>:
           <div class="col-sm-3">
            <select name="penyesuaian_diri" class="form-control"> 
              <option value="-" <?php if($peserta->penyesuaian_diri=="-") { echo "selected"; } ?>>
              -</option>      
              <option value="Baik" <?php if($peserta->penyesuaian_diri=="Baik") { echo "selected"; } ?>>
              Baik</option>
              <option value="Cukup" <?php if($peserta->penyesuaian_diri=="Cukup") { echo "selected"; } ?>>
              Cukup</option>
              <option value="Kurang" <?php if($peserta->penyesuaian_diri=="Kurang") { echo "selected"; } ?>>
              Kurang</option>
            </select>
          </div>
        </div>
        <div class="form-group row">    
          <label for="kemantapan_emosi" class="col-sm-2 col-form-label">Kemantapan Emosi</label>:
          <div class="col-sm-3">
            <select name="kemantapan_emosi" class="form-control">
             <option value="-" <?php if($peserta->kemantapan_emosi=="-") { echo "selected"; } ?>>
             -</option>       
             <option value="Baik" <?php if($peserta->kemantapan_emosi=="Baik") { echo "selected"; } ?>>
             Baik</option>
             <option value="Cukup" <?php if($peserta->kemantapan_emosi=="Cukup") { echo "selected"; } ?>>
             Cukup</option>
             <option value="Kurang" <?php if($peserta->kemantapan_emosi=="Kurang") { echo "selected"; } ?>>
             Kurang</option>
           </select>
         </div>
         <label for="kerjasama" class="col-sm-2 col-form-label">Kerjasama</label>:
         <div class="col-sm-3">
          <select name="kerjasama" class="form-control"> 
            <option value="-" <?php if($peserta->kerjasama=="-") { echo "selected"; } ?>>
            -</option>      
            <option value="Baik" <?php if($peserta->kerjasama=="Baik") { echo "selected"; } ?>>
            Baik</option>
            <option value="Cukup" <?php if($peserta->kerjasama=="Cukup") { echo "selected"; } ?>>
            Cukup</option>
            <option value="Kurang" <?php if($peserta->kerjasama=="Kurang") { echo "selected"; } ?>>
            Kurang</option>
          </select>
        </div>
      </div>

      <br><h5><b>Prestasi & Tingkat</b></h5>
      <div class="form-group row">    
        <label for="iptek" class="col-sm-2 col-form-label">IPTEK</label>:
        <div class="col-sm-3">
          <input type="text" name="iptek" class="form-control" placeholder="IPTEK" value="<?php echo $peserta->iptek?>"   >
        </div>
        <label for="iptek_tingkat" class="col-sm-2 col-form-label">Tingkat IPTEK</label>:
        <div class="col-sm-3">
          <select name="iptek_tingkat" class="form-control"> 
            <option value="-" <?php if($peserta->iptek_tingkat=="-") { echo "selected"; } ?>>
            -</option>      
            <option value="Kelurahan"<?php if($peserta->iptek_tingkat=="Kelurahan") { echo "selected"; } ?>>
            Kelurahan</option>
            <option value="Kecamatan" <?php if($peserta->iptek_tingkat=="Kecamatan") { echo "selected"; } ?>>
            Kecamatan</option>
            <option value="Kota" <?php if($peserta->iptek_tingkat=="Kota") { echo "selected"; } ?>>
            Kota</option>
            <option value="Provinsi" <?php if($peserta->iptek_tingkat=="Provinsi") { echo "selected"; } ?>>
            Provinsi</option>
            <option value="Nasional" <?php if($peserta->iptek_tingkat=="Nasional") { echo "selected"; } ?>>
            Nasional</option>
            <option value="Internasional" <?php if($peserta->iptek_tingkat=="Internasional") { echo "selected"; } ?>>
            Internasional</option>
          </select>
        </div>           
      </div>
      <div class="form-group row">           
        <label for="olahraga" class="col-sm-2 col-form-label">Olahraga</label>:
        <div class="col-sm-3">
          <input type="text" name="olahraga" class="form-control" placeholder="Olahraga" value="<?php echo $peserta->olahraga?>"   >
        </div>
        <label for="olahraga_tingkat" class="col-sm-2 col-form-label">Tingkat Olahraga</label>:
        <div class="col-sm-3">
          <select name="olahraga_tingkat" class="form-control"> 
            <option value="-" <?php if($peserta->olahraga_tingkat=="-") { echo "selected"; } ?>>
            -</option>      
            <option value="Kelurahan" <?php if($peserta->olahraga_tingkat=="Kelurahan") { echo "selected"; } ?>>
            Kelurahan</option>
            <option value="Kecamatan" <?php if($peserta->olahraga_tingkat=="Kecamatan") { echo "selected"; } ?>>
            Kecamatan</option>
            <option value="Kota" <?php if($peserta->olahraga_tingkat=="Kota") { echo "selected"; } ?>>
            Kota</option>
            <option value="Provinsi" <?php if($peserta->olahraga_tingkat=="Provinsi") { echo "selected"; } ?>>
            Provinsi</option>
            <option value="Nasional" <?php if($peserta->olahraga_tingkat=="Nasional") { echo "selected"; } ?>>
            Nasional</option>
            <option value="Internasional" <?php if($peserta->olahraga_tingkat=="Internasional") { echo "selected"; } ?>>
            Internasional</option>
          </select>
        </div>           
      </div>
      <div class="form-group row">    
        <label for="kesenian" class="col-sm-2 col-form-label">Kesenian</label>:
        <div class="col-sm-3">
          <input type="text" name="kesenian" class="form-control" placeholder="Kesenian" value="<?php echo $peserta->kesenian?>"   >
        </div>  
        <label for="kesenian_tingkat" class="col-sm-2 col-form-label">Tingkat Kesenian</label>:
        <div class="col-sm-3">
          <select name="kesenian_tingkat" class="form-control"> 
            <option value="-" <?php if($peserta->kesenian_tingkat=="-") { echo "selected"; } ?>>
            -</option>      
            <option value="Kelurahan" <?php if($peserta->kesenian_tingkat=="Kelurahan") { echo "selected"; } ?>>
            Kelurahan</option>
            <option value="Kecamatan" <?php if($peserta->kesenian_tingkat=="Kecamatan") { echo "selected"; } ?>>
            Kecamatan</option>
            <option value="Kota" <?php if($peserta->kesenian_tingkat=="Kota") { echo "selected"; } ?>>
            Kota</option>
            <option value="Provinsi" <?php if($peserta->kesenian_tingkat=="Provinsi") { echo "selected"; } ?>>
            Provinsi</option>
            <option value="Nasional" <?php if($peserta->kesenian_tingkat=="Nasional") { echo "selected"; } ?>>
            Nasional</option>
            <option value="Internasional" <?php if($peserta->kesenian_tingkat=="Internasional") { echo "selected"; } ?>>
            Internasional</option>
          </select>          
        </div>                     
      </div>
      <div class="form-group row">            
        <label for="keagamaan" class="col-sm-2 col-form-label">Keagamaan</label>:
        <div class="col-sm-3">
          <input type="text" name="keagamaan" class="form-control" placeholder="Keagamaan" value="<?php echo $peserta->keagamaan?>"   >
        </div>
        <label for="keagamaan_tingkat" class="col-sm-2 col-form-label">Tingkat Keagamaan</label>:
        <div class="col-sm-3">
          <select name="keagamaan_tingkat" class="form-control"> 
            <option value="-" <?php if($peserta->keagamaan_tingkat=="-") { echo "selected"; } ?>>
            -</option>      
            <option value="Kelurahan" <?php if($peserta->keagamaan_tingkat=="Kelurahan") { echo "selected"; } ?>>
            Kelurahan</option>
            <option value="Kecamatan" <?php if($peserta->keagamaan_tingkat=="Kecamatan") { echo "selected"; } ?>>
            Kecamatan</option>
            <option value="Kota" <?php if($peserta->keagamaan_tingkat=="Kota") { echo "selected"; } ?>>
            Kota</option>
            <option value="Provinsi" <?php if($peserta->keagamaan_tingkat=="Provinsi") { echo "selected"; } ?>>
            Provinsi</option>
            <option value="Nasional" <?php if($peserta->keagamaan_tingkat=="Nasional") { echo "selected"; } ?>>
            Nasional</option>
            <option value="Internasional" <?php if($peserta->keagamaan_tingkat=="Internasional") { echo "selected"; } ?>>
            Internasional</option>
          </select>
        </div>          
      </div>
      <div class="form-group row">    
        <label for="keterampilan" class="col-sm-2 col-form-label">Keterampilan</label>:
        <div class="col-sm-3">
          <input type="text" name="keterampilan" class="form-control" placeholder="Keterampilan" value="<?php echo $peserta->keterampilan?>"   >
        </div>      
        <label for="keterampilan_tingkat" class="col-sm-2 col-form-label">Tingkat Keterampilan</label>:
        <div class="col-sm-3">
          <select name="keterampilan_tingkat" class="form-control"> 
            <option value="-" <?php if($peserta->keterampilan_tingkat=="-") { echo "selected"; } ?>>
            -</option>      
            <option value="Kelurahan" <?php if($peserta->keterampilan_tingkat=="Kelurahan") { echo "selected"; } ?>>
            Kelurahan</option>
            <option value="Kecamatan" <?php if($peserta->keterampilan_tingkat=="Kecamatan") { echo "selected"; } ?>>
            Kecamatan</option>
            <option value="Kota" <?php if($peserta->keterampilan_tingkat=="Kota") { echo "selected"; } ?>>
            Kota</option>
            <option value="Provinsi" <?php if($peserta->keterampilan_tingkat=="Provinsi") { echo "selected"; } ?>>
            Provinsi</option>
            <option value="Nasional" <?php if($peserta->keterampilan_tingkat=="Nasional") { echo "selected"; } ?>>
            Nasional</option>
            <option value="Internasional" <?php if($peserta->keterampilan_tingkat=="Internasional") { echo "selected"; } ?>>
            Internasional</option>
          </select>          
        </div>                    
      </div>
      <div class="form-group row">           
        <label for="lainnya" class="col-sm-2 col-form-label">Bidang Lain</label>:
        <div class="col-sm-3">
          <input type="text" name="lainnya" class="form-control" placeholder="Bidang Lain" value="<?php echo $peserta->lainnya?>"   >
        </div>
        <label for="lainnya_tingkat" class="col-sm-2 col-form-label">Tingkat Bidang Lain</label>:
        <div class="col-sm-3">
          <select name="lainnya_tingkat" class="form-control"> 
            <option value="-" <?php if($peserta->lainnya_tingkat=="-") { echo "selected"; } ?>>
            -</option>      
            <option value="Kelurahan" <?php if($peserta->lainnya_tingkat=="Kelurahan") { echo "selected"; } ?>>
            Kelurahan</option>
            <option value="Kecamatan" <?php if($peserta->lainnya_tingkat=="Kecamatan") { echo "selected"; } ?>>
            Kecamatan</option>
            <option value="Kota" <?php if($peserta->lainnya_tingkat=="Kota") { echo "selected"; } ?>>
            Kota</option>
            <option value="Provinsi" <?php if($peserta->lainnya_tingkat=="Provinsi") { echo "selected"; } ?>>
            Provinsi</option>
            <option value="Nasional" <?php if($peserta->lainnya_tingkat=="Nasional") { echo "selected"; } ?>>
            Nasional</option>
            <option value="Internasional" <?php if($peserta->lainnya_tingkat=="Internasional") { echo "selected"; } ?>>
            Internasional</option>
          </select>          
        </div>        
      </div>
      <br><h5><b>Beasiswa</b></h5>
      <div class="form-group row">    
        <label for="beasiswa1_thn" class="col-sm-2 col-form-label">Pertama Tahun</label>:
        <div class="col-sm-3">
          <input type="text" name="beasiswa1_thn" class="form-control" placeholder="Pertama Tahun" value="<?php echo $peserta->beasiswa1_thn?>" maxlength="4"   >
        </div>
        <label for="beasiswa1_dari" class="col-sm-2 col-form-label">Pertama Dari</label>:
        <div class="col-sm-3">
          <input type="text" name="beasiswa1_dari" class="form-control" placeholder="Pertama Dari" value="<?php echo $peserta->beasiswa1_dari?>"   >
        </div>
      </div>
      <div class="form-group row">    
        <label for="beasiswa2_thn" class="col-sm-2 col-form-label">Kedua Tahun</label>:
        <div class="col-sm-3">
          <input type="text" name="beasiswa2_thn" class="form-control" placeholder="Kedua Tahun" value="<?php echo $peserta->beasiswa2_thn?>" maxlength="4"   >
        </div>
        <label for="beasiswa2_dari" class="col-sm-2 col-form-label">Kedua Dari</label>:
        <div class="col-sm-3">
          <input type="text" name="beasiswa2_dari" class="form-control" placeholder="Kedua Dari" value="<?php echo $peserta->beasiswa2_dari?>"   >
        </div>
      </div>

      <div class="form-group row">
        <label for="ok" class="col-sm-2 col-form-label"></label>
        <div class="col-sm-9">
         <button type="submit" class="btn btn-primary">
          <i class="fa fa-save"></i> Update Data
        </button>
        <button type="reset" class="btn btn-info">
          <i class="fa fa-times"></i> Reset
        </button>
        <a href="<?php echo base_url('biodata') ?>" class="btn btn-default">
          <i class="fa fa-backward"></i> Kembali        
        </a>
      </div>
    </div>
  </div><!-- /.card -->
</div>
</div>
</div>
</div>
</section><!-- /.content -->  

<?php
//form close
echo form_close();
?>