
<h3 class="box-title">Edit Matakuliah Kurikulum</h3>
                  <div class="box-body">
                     <form id="update" method="post" class="form-horizontal" action="<?=base_admin();?>modul/kurikulum/matakuliah/action.php?act=up">
                      <div class="form-group">
                        <label for="Kurikulum" class="control-label col-lg-2">SMT Kurikulum</label>
                        <div class="col-lg-10">
                          <input type="text" name="tahun" value="<?=$data_edit->tahun;?>" class="form-control" required> 
                        </div>
                      </div><!-- /.form-group -->
<div class="form-group">
                        <label for="Kode Matakuliah" class="control-label col-lg-2">Kode Matakuliah</label>
                        <div class="col-lg-10">
                          <input type="text" name="kode_mk" value="<?=$data_edit->kode_mk;?>" class="form-control" required> 
                        </div>
                      </div><!-- /.form-group -->
<div class="form-group">
                        <label for="Nama Matakuliah" class="control-label col-lg-2">Nama Matakuliah</label>
                        <div class="col-lg-10">
                          <input type="text" name="nama_mk" value="<?=$data_edit->nama_mk;?>" class="form-control" required> 
                        </div>
                      </div><!-- /.form-group -->
<div class="form-group">
                        <label for="Jenis Mata Kuliah" class="control-label col-lg-2">Jenis Mata Kuliah</label>
                        <div class="col-lg-3">
<select name="jns_mk" class="form-control" tabindex="2" required>

 <?php
foreach ($db->fetch_custom("select * from jenis_mk") as $key) {
    if ($data_edit->jns_mk==$key->id_jns_mk) {
      echo "<option value='$key->id_jns_mk' selected>".$key->nm_jns_mk."</option>";
    } else {
      echo "<option value='$key->id_jns_mk'>".$key->nm_jns_mk."</option>";
    }
 }

?>
</select>

                        </div>
                      </div><!-- /.form-group -->

<div class="form-group">
                        <label for="Pendidikan Ayah" class="control-label col-lg-2">Kelompok Matakuliah</label>
                        <div class="col-lg-10">
                          <select name="kelompok_mk" data-placeholder="Pilih Kelompok Matakuliah..." class="form-control chzn-select" tabindex="2" >
               <option value=""></option>
               <?php foreach ($db->fetch_all("kelompok_mk") as $isi) {

                  if ($data_edit->kelompok_mk==$isi->id_kel_mk) {
                    echo "<option value='$isi->id_kel_mk' selected>$isi->nm_kel_mk</option>";
                  } else {
                  echo "<option value='$isi->id_kel_mk'>$isi->nm_kel_mk</option>";
                    }
               } ?>
              </select>
                        </div>
                      </div><!-- /.form-group -->
<div class="form-group">
                        <label for="SKS Tatap Muka" class="control-label col-lg-2"> SKS Tatap Muka</label>
                        <div class="col-lg-1">
                          <input type="text" name="sks_tm" value="<?=$data_edit->sks_tm;?>" class="form-control" > 
                        </div>
                      </div><!-- /.form-group -->
<div class="form-group">
                        <label for="SKS Praktikum" class="control-label col-lg-2"> SKS Praktikum</label>
                        <div class="col-lg-1">
                          <input type="text" name="sks_prak" value="<?=$data_edit->sks_prak;?>" class="form-control" > 
                        </div>
                      </div><!-- /.form-group -->
<div class="form-group">
                        <label for="SKS Praktek Lapangan" class="control-label col-lg-2"> SKS Praktek Lapangan</label>
                        <div class="col-lg-1">
                          <input type="text" name="sks_prak_lap" value="<?=$data_edit->sks_prak_lap;?>" class="form-control" > 
                        </div>
                      </div><!-- /.form-group -->
<div class="form-group">
                        <label for="SKS Simulasi" class="control-label col-lg-2"> SKS Simulasi</label>
                        <div class="col-lg-1">
                          <input type="text" name="sks_sim" value="<?=$data_edit->sks_sim;?>" class="form-control" > 
                        </div>
                      </div><!-- /.form-group -->
<div class="form-group">
  <label for="Semester" class="control-label col-lg-2">Metode Pembelajaran</label>
  <div class="col-lg-10">
    <input type="text" id="metode_pelaksanaan_kuliah" name="metode_pelaksanaan_kuliah" value="<?=$data_edit->metode_pelaksanaan_kuliah;?>" class="form-control" > 
  </div>
</div><!-- /.form-group -->
<div class="form-group">
                        <label for="Semester" class="control-label col-lg-2">Tanggal Mulai Efektif</label>
                        <div class="col-lg-10">
                          <input type="text" id="tgl1" name="tgl_mulai_efektif" value="<?=$data_edit->tgl_mulai_efektif;?>" class="form-control" > 
                        </div>
                      </div><!-- /.form-group -->
<div class="form-group">
                        <label for="Semester" class="control-label col-lg-2">Tanggal Akhir Efektif</label>
                        <div class="col-lg-10">
                          <input type="text" id="tgl2" name="tgl_akhir_efektif" value="<?=$data_edit->tgl_akhir_efektif;?>" class="form-control" > 
                        </div>
                      </div><!-- /.form-group -->
<div class="form-group">
                        <label for="Semester" class="control-label col-lg-2">Semester</label>
                        <div class="col-lg-1">
                          <input type="number" name="semester" value="<?=$data_edit->semester;?>" class="form-control" > 
                        </div>
                      </div><!-- /.form-group -->

<div class="form-group">
                        <label for="Jurusan" class="control-label col-lg-2">Jurusan</label>
                        <div class="col-lg-10">
                         <select name="kode_jurusan" data-placeholder="Pilih Jurusan..." class="form-control chzn-select" tabindex="2" required>

               <?php 
if ($_SESSION['level']==1) {
  $jur = $db->fetch_custom("select * from jurusan");
} else {
  $jur = $db->fetch_custom("select * from jurusan where id_fakultas='".$_SESSION['fakultas']."'");
}
foreach ($jur as $isi) {

                  if ($data_edit->kode_jurusan==$isi->kode_jurusan) {
                    echo "<option value='$isi->kode_jurusan' selected>$isi->jenjang $isi->nama_jurusan</option>";
                  } else {
                    echo "<option value='$isi->kode_jurusan'>$isi->jenjang $isi->nama_jurusan</option>";
                  }
               } ?>
              </select>
                        </div>
                      </div><!-- /.form-group -->

                      <input type="hidden" name="id" value="<?=$data_edit->id;?>">
                      <div class="form-group">
                        <label for="tags" class="control-label col-lg-2">&nbsp;</label>
                        <div class="col-lg-10">
                         <a onclick="window.history.back(-1)" class="btn btn-success btn-flat"><i class="fa fa-step-backward"></i> Kembali</a>
                            <button type="submit" class="btn btn-primary"><i class="fa fa-save"></i> Simpan</button>
                        </div>
                      </div><!-- /.form-group -->
                    </form>
                   
                  </div>
               