                <!-- Content Header (Page header) -->
                <section class="content-header">
                    <h1>
                      Daya Tampung Periode Perkuliahan
                    </h1>
                    <ol class="breadcrumb">
                        <li><a href="<?=base_index();?>"><i class="fa fa-dashboard"></i> Home</a></li>
                        <li><a href="<?=base_index();?>daya-tampung">Daya Tampung  Periode Perkuliahan</a></li>
                        <li class="active">Edit Daya Tampung  Periode Perkuliahan</li>
                    </ol>
                </section>

                <!-- Main content -->
                <section class="content">
<div class="row">
    <div class="col-lg-12">
        <div class="box box-solid box-primary">
                                   <div class="box-header">
                                    <h3 class="box-title">Edit Daya Tampung Periode Perkuliahan</h3>
                                    <div class="box-tools pull-right">
                                        <button class="btn btn-info btn-sm" data-widget="collapse"><i class="fa fa-minus"></i></button>
                                        <button class="btn btn-info btn-sm" data-widget="remove"><i class="fa fa-times"></i></button>
                                    </div>
                                </div>

                  <div class="box-body">
                     <form id="update" method="post" class="form-horizontal" action="<?=base_admin();?>modul/daya_tampung/daya_tampung_action.php?act=up">
                      <div class="form-group">
                        <label for="Semester" class="control-label col-lg-2">Semester</label>
                        <div class="col-lg-10">
                          <input type="text" name="semester" value="<?=$data_edit->semester;?>" class="form-control" required> 
                        </div>
                      </div><!-- /.form-group -->
<div class="form-group">
                        <label for="Jalur Pendaftaran" class="control-label col-lg-2">Jalur Pendaftaran</label>
                        <div class="col-lg-10">
                          <select name="id_jalur_masuk" data-placeholder="Pilih Jalur Pendaftaran..." class="form-control chzn-select" tabindex="2" >
               <option value=""></option>
               <?php foreach ($db->fetch_all("jalur_masuk") as $isi) {

                  if ($data_edit->id_jalur_masuk==$isi->id) {
                    echo "<option value='$isi->id' selected>$isi->jalur</option>";
                  }
               } ?>
              </select>
                        </div>
                      </div><!-- /.form-group -->
<div class="form-group">
                        <label for="Target Mahasiswa Baru" class="control-label col-lg-2">Nama Jalur Pendaftaran</label>
                        <div class="col-lg-10">
                          <input type="text" name="nm_jalur_masuk" value="<?=$data_edit->nm_jalur_masuk;?>" class="form-control" > 
                        </div>
                      </div><!-- /.form-group -->
<div class="form-group">
                        <label for="Target Mahasiswa Baru" class="control-label col-lg-2">Target Mahasiswa Baru</label>
                        <div class="col-lg-10">
                          <input type="text" name="target_mhs_baru" value="<?=$data_edit->target_mhs_baru;?>" class="form-control" > 
                        </div>
                      </div><!-- /.form-group -->
<div class="form-group">
                        <label for="Pendaftar Ikut Seleksi" class="control-label col-lg-2">Pendaftar Ikut Seleksi</label>
                        <div class="col-lg-10">
                          <input type="text" name="calon_ikut_seleksi" value="<?=$data_edit->calon_ikut_seleksi;?>" class="form-control" > 
                        </div>
                      </div><!-- /.form-group -->
<div class="form-group">
                        <label for="Pendaftar Lulus Seleksi" class="control-label col-lg-2">Pendaftar Lulus Seleksi</label>
                        <div class="col-lg-10">
                          <input type="text" name="calon_lulus_seleksi" value="<?=$data_edit->calon_lulus_seleksi;?>" class="form-control" > 
                        </div>
                      </div><!-- /.form-group -->
<div class="form-group">
                        <label for="Daftar Ulang" class="control-label col-lg-2">Daftar Ulang</label>
                        <div class="col-lg-10">
                          <input type="text" name="daftar_sbg_mhs" value="<?=$data_edit->daftar_sbg_mhs;?>" class="form-control" > 
                        </div>
                      </div><!-- /.form-group -->
<div class="form-group">
                        <label for="Mengundurkan Diri" class="control-label col-lg-2">Mengundurkan Diri</label>
                        <div class="col-lg-10">
                          <input type="text" name="pst_undur_diri" value="<?=$data_edit->pst_undur_diri;?>" class="form-control" > 
                        </div>
                      </div><!-- /.form-group -->
<div class="form-group">
                        <label for="Jurusan" class="control-label col-lg-2">Prodi</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 kode_jurusan='".$_SESSION['jurusan']."'");
}
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">
                          <input type="submit" class="btn btn-primary btn-flat" value="submit">
                        </div>
                      </div><!-- /.form-group -->
                    </form>
                    <a href="<?=base_index();?>daya-tampung" class="btn btn-success btn-flat"><i class="fa fa-step-backward"></i> Kembali</a>
          
                  </div>
                  </div>
              </div>
</div>
                  
                </section><!-- /.content -->
        
 