

                <!-- Content Header (Page header) -->
                <section class="content-header">
                    <h1>
                      Prestasi Mahasiswa
                    </h1>
                    <ol class="breadcrumb">
                        <li><a href="<?=base_index();?>"><i class="fa fa-dashboard"></i> Home</a></li>
                        <li><a href="<?=base_index();?>prestasi-mahasiswa">Prestasi Mahasiswa</a></li>
                        <li class="active">Edit Prestasi Mahasiswa</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 Prestasi Mahasiswa</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/prestasi_mahasiswa/prestasi_mahasiswa_action.php?act=up">
                      <div class="form-group">
                        <label for="NIM/NIPD" class="control-label col-lg-2">NIM/NIPD</label>
                        <div class="col-lg-10">
                          <input type="text" name="nipd" value="<?=$data_edit->nipd;?>" class="form-control" required> 
                        </div>
                      </div><!-- /.form-group -->
                       <div class="form-group">
                        <label for="NIM/NIPD" class="control-label col-lg-2">Nama Mahasiswa</label>
                        <div class="col-lg-10">
                          <input type="text" name="nama" value="<?=$data_edit->nama;?>" class="form-control"> 
                        </div>
                      </div><!-- /.form-group -->
<div class="form-group">
                        <label for="Jenis Prestasi" class="control-label col-lg-2">Jenis Prestasi</label>
                        <div class="col-lg-10">
                          <select name="id_jns_prestasi" data-placeholder="Pilih Jenis Prestasi..." class="form-control chzn-select" tabindex="2" required>
               <option value=""></option>
               <?php foreach ($db->fetch_all("jenis_prestasi") as $isi) {

                  if ($data_edit->id_jns_prestasi==$isi->id_jns_prestasi) {
                    echo "<option value='$isi->id_jns_prestasi' selected>$isi->nm_jns_prestasi</option>";
                  } else {
                  echo "<option value='$isi->id_jns_prestasi'>$isi->nm_jns_prestasi</option>";
                    }
               } ?>
              </select>
                        </div>
                      </div><!-- /.form-group -->
<div class="form-group">
                        <label for="Tingkat Prestasi" class="control-label col-lg-2">Tingkat Prestasi</label>
                        <div class="col-lg-10">
                          <select name="id_tkt_prestasi" data-placeholder="Pilih Tingkat Prestasi..." class="form-control chzn-select" tabindex="2" required>
               <option value=""></option>
               <?php foreach ($db->fetch_all("tingkat_prestasi") as $isi) {

                  if ($data_edit->id_tkt_prestasi==$isi->id_tkt_prestasi) {
                    echo "<option value='$isi->id_tkt_prestasi' selected>$isi->nm_tkt_prestasi</option>";
                  } else {
                  echo "<option value='$isi->id_tkt_prestasi'>$isi->nm_tkt_prestasi</option>";
                    }
               } ?>
              </select>
                        </div>
                      </div><!-- /.form-group -->
<div class="form-group">
                        <label for="Nama Prestasi" class="control-label col-lg-2">Nama Prestasi</label>
                        <div class="col-lg-10">
                          <input type="text" name="nm_prestasi" value="<?=$data_edit->nm_prestasi;?>" class="form-control" required> 
                        </div>
                      </div><!-- /.form-group -->
<div class="form-group">
                        <label for="Tahun" class="control-label col-lg-2">Tahun</label>
                        <div class="col-lg-10">
                          <input type="text" data-rule-number="true" name="thn_prestasi" value="<?=$data_edit->thn_prestasi;?>" class="form-control" required> 
                        </div>
                      </div><!-- /.form-group -->
<div class="form-group">
                        <label for="Penyelenggara" class="control-label col-lg-2">Penyelenggara</label>
                        <div class="col-lg-10">
                          <input type="text" name="penyelenggara" value="<?=$data_edit->penyelenggara;?>" class="form-control" > 
                        </div>
                      </div><!-- /.form-group -->
<div class="form-group">
                        <label for="Peringkat" class="control-label col-lg-2">Peringkat</label>
                        <div class="col-lg-10">
                          <input type="text" data-rule-number="true" name="peringkat" value="<?=$data_edit->peringkat;?>" class="form-control" > 
                        </div>
                      </div><!-- /.form-group -->
                      <div class="form-group">
                        <label for="Semester" class="control-label col-lg-2">ID Aktivitas</label>
                        <div class="col-lg-10">
                          <input type="text" name="id_aktivitas" value="<?=$data_edit->id_aktivitas;?>" 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>
               <option value=""></option>
               <?php foreach ($db->fetch_all("jurusan") 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();?>prestasi-mahasiswa" class="btn btn-success btn-flat"><i class="fa fa-step-backward"></i> Kembali</a>
          
                  </div>
                  </div>
              </div>
</div>
                  
                </section><!-- /.content -->
        
 