                <!-- Content Header (Page header) -->
                <section class="content-header">
                    <h1>
                     Nilai Perkuliahan
                    </h1>
                           <ol class="breadcrumb">
                        <li><a href="<?=base_index();?>"><i class="fa fa-dashboard"></i> Home</a></li>
                        <li><a href="<?=base_index();?>nilai-perkuliahan">Nilai Perkuliahan</a></li>
                        <li class="active">Tambah Nilai 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">Tambah Nilai 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="input" method="post" class="form-horizontal foto_banyak" action="<?=base_admin();?>modul/nilai_perkuliahan/nilai_perkuliahan_action.php?act=in">
                      <div class="form-group">
                        <label for="NIM" class="control-label col-lg-2">NIM</label>
                        <div class="col-lg-10">
                          <input type="text" name="nim" placeholder="NIM" class="form-control" required> 
                        </div>
                      </div><!-- /.form-group -->
<div class="form-group">
                        <label for="Nama" class="control-label col-lg-2">Nama</label>
                        <div class="col-lg-10">
                          <input type="text" name="nama" placeholder="Nama" class="form-control" required> 
                        </div>
                      </div><!-- /.form-group -->
<div class="form-group">
                        <label for="Kode MK" class="control-label col-lg-2">Kode MK</label>
                        <div class="col-lg-10">
                          <input type="text" name="kode_mk" placeholder="Kode MK" class="form-control" required> 
                        </div>
                      </div><!-- /.form-group -->
<div class="form-group">
                        <label for="Nama MK" class="control-label col-lg-2">Nama MK</label>
                        <div class="col-lg-10">
                          <input type="text" name="nama_mk" placeholder="Nama MK" class="form-control" required> 
                        </div>
                      </div><!-- /.form-group -->
<div class="form-group">
                        <label for="Nama Kelas" class="control-label col-lg-2">Nama Kelas</label>
                        <div class="col-lg-10">
                          <input type="text" name="nama_kelas" placeholder="01" class="form-control" required> 
                        </div>
                      </div><!-- /.form-group -->
<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" placeholder="20151" class="form-control" required> 
                        </div>
                      </div><!-- /.form-group -->

<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" placeholder="Nilai Huruf" class="form-control" > 
                        </div>
                      </div><!-- /.form-group -->
<div class="form-group">
                        <label for="Nilai Index" class="control-label col-lg-2">Nilai Index</label>
                        <div class="col-lg-10">
                          <input type="text" name="nilai_indek" placeholder="Nilai Index" class="form-control" > 
                        </div>
                      </div><!-- /.form-group -->
<div class="form-group">
                        <label for="Nilai Index" class="control-label col-lg-2">Nilai Angka</label>
                        <div class="col-lg-10">
                          <input type="text" name="nilai_angka" placeholder="Nilai Angka" class="form-control" > 
                        </div>
                      </div><!-- /.form-group -->
 <div class="form-group">
                        <label for="Jurusan" class="control-label col-lg-2">Prodi Mahasiswa</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) {
                  echo "<option value='$isi->kode_jurusan'>$isi->jenjang $isi->nama_jurusan</option>";
                  
               } ?>
              </select>
                        </div>
                      </div><!-- /.form-group -->    
<div class="form-group">
                        <label for="Jurusan" class="control-label col-lg-2">Prodi Kelas</label>
                        <div class="col-lg-10">
                          <select name="kode_jurusan_kelas" data-placeholder="Pilih Jurusan ..." class="form-control chzn-select" tabindex="2" required>
               <?php 
$jur = $db->fetch_custom("select * from jurusan");
foreach ( $jur as $isi) {
                  echo "<option value='$isi->kode_jurusan'>$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>
                  </div>
              </div>
</div>
                  
                </section><!-- /.content -->
        
            