<h3 class="box-title">Tambah Matakuliah Kurikulum</h3>
                  <div class="box-body">
                     <form id="input" method="post" class="form-horizontal foto_banyak" action="<?=base_admin();?>modul/kurikulum/matakuliah/action.php?act=in">
                      <div class="form-group">
                        <label for="Kode Matakuliah" class="control-label col-lg-2">Mulai SMT Kurikulum</label>
                        <div class="col-lg-10">
                          <input type="text" name="tahun" placeholder="20201" maxlength="5" class="form-control" required> 
                        </div>
                        </div>
<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" placeholder="Kode Matakuliah" 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" placeholder="Nama Matakuliah" 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) {
      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) {
                  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" placeholder="SKS Tatap Muka" 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" placeholder="SKS Praktikum" 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" placeholder="SKS Praktek Lapangan" 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" placeholder="SKS Simulasi" 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"  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"  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" 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-2">
                          <input type="text" name="semester" placeholder="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-5">
                               <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) {
                    echo "<option value='$isi->kode_jurusan' selected>$isi->jenjang $isi->nama_jurusan</option>";
               } ?>
              </select>
                        </div>
                      </div><!-- /.form-group -->

                      
                      <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>