

                <!-- Content Header (Page header) -->
                <section class="content-header">
                    <h1>
                      Skala Nilai
                    </h1>
                    <ol class="breadcrumb">
                        <li><a href="<?=base_index();?>"><i class="fa fa-dashboard"></i> Home</a></li>
                        <li><a href="<?=base_index();?>skala-nilai">Skala Nilai</a></li>
                        <li class="active">Edit Skala Nilai</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 Skala Nilai</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/skala_nilai/skala_nilai_action.php?act=up">
                      <div class="form-group">
                        <label for="Nilai Huruf" class="control-label col-lg-2">Nilai Huruf</label>
                        <div class="col-lg-10">
                          <input type="text" name="nilai_huruf" value="<?=$data_edit->nilai_huruf;?>" class="form-control" required> 
                        </div>
                      </div><!-- /.form-group -->
<div class="form-group">
                        <label for="Nilai Indeks" class="control-label col-lg-2">Nilai Indeks</label>
                        <div class="col-lg-10">
                          <input type="text" name="nilai_indeks" value="<?=$data_edit->nilai_indeks;?>" class="form-control" required> 
                        </div>
                      </div><!-- /.form-group -->
<div class="form-group">
                        <label for="Bobot Nilai Minimum" class="control-label col-lg-2">Bobot Nilai Minimum</label>
                        <div class="col-lg-10">
                          <input type="text" name="bobot_nilai_min" value="<?=$data_edit->bobot_nilai_min;?>" class="form-control" required> 
                        </div>
                      </div><!-- /.form-group -->
<div class="form-group">
                        <label for="Bobot Nilai Maksimum" class="control-label col-lg-2">Bobot Nilai Maksimum</label>
                        <div class="col-lg-10">
                          <input type="text" name="bobot_nilai_maks" value="<?=$data_edit->bobot_nilai_maks;?>" class="form-control" required> 
                        </div>
                      </div><!-- /.form-group -->
<div class="form-group">
                        <label for="Tanggal Mulai Efektif" class="control-label col-lg-2">Tanggal Mulai Efektif</label>
                        <div class="col-lg-10">
                          <input type="text" name="tgl_mulai_efektif" value="<?=$data_edit->tgl_mulai_efektif;?>" class="form-control" required> 
                        </div>
                      </div><!-- /.form-group -->
<div class="form-group">
                        <label for="Tanggal Akhir Efektif" class="control-label col-lg-2">Tanggal Akhir Efektif</label>
                        <div class="col-lg-10">
                          <input type="text" name="tgl_akhir_efektif" value="<?=$data_edit->tgl_akhir_efektif;?>" class="form-control" required> 
                        </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();?>skala-nilai" class="btn btn-success btn-flat"><i class="fa fa-step-backward"></i> Kembali</a>
          
                  </div>
                  </div>
              </div>
</div>
                  
                </section><!-- /.content -->
        
 