<script>
    var baseurl = "<?php echo base_url("index.php/"); ?>"; // Buat variabel baseurl    
</script>
<script src="<?php echo base_url("js/jquery.min.js"); ?>"></script> <!-- Load library jquery -->
<script src="<?php echo base_url("js/pengumuman.js"); ?>"></script> <!-- Load file process.js --> 

<SCRIPT LANGUAGE="JavaScript">
</script>
<div class="modal fade" id="modal-default">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
      <h4 class="modal-title">INPUT DATA KELULUSAN CALON PESERTA DIDIK</h4>
      <button type="button" class="close" data-dismiss="modal" aria-label="Close">
        <span aria-hidden="true">&times;</span>
      </button>
</div>
<div class="modal-body">  



<div class="row">  
  <div class="col-md-6">
    <?php echo form_open_multipart(base_url('pengumuman_setting/tambah'),'id="tambah"') ?>    
    
    <h4 class="alert alert-info">Data Peserta</h4>    
    <!-- <div class="form-group row">
      <label class="col-sm-3 control-label text-right">No. Pend <span class="text-danger">*</span></label>
      <div class="col-sm-9">
        <input type="text" name="no_pendaftaran" id="no_pendaftaran" class="form-control" placeholder="Masukkan No. Pendaftaran" required oninvalid="this.setCustomValidity('data tidak boleh kosong, diisi No. Pendaftaran')" oninput="setCustomValidity('')"> <button type="button" name="btn-search" class="btn btn-default" id="btn-search"><i class="fa fa-search"></i> </button> <span id="loading">LOADING...</span>
      </div>
    </div>     -->
    <div class="form-group row">
      <label class="col-sm-3 control-label text-right">No. Pend <span class="text-danger">*</span></label>
        <div class="col-sm-9">
          <?php 
            //$siswa = $this->db->get("data_siswa")->result();
            $siswa = $this->pengumuman_model->get_siswa();
          ?>
          <select name="no_pendaftaran" id="no_pendaftaran" class="form-control select2" required>
            <option value="">Pilih No. Pendaftaran</option>
              <?php foreach ($siswa as $value) { ?>
                  <option value="<?= $value->no_pendaftaran ?>"><?= $value->no_pendaftaran ?></option>
              <?php } ?>
          </select><br>
      <oninvalid="this.setCustomValidity(' data tidak boleh kosong, diisi No. Pendaftaran ')' 
        oninput="setCustomValidity('')"> <button type="button" name="btn-search" class="btn btn-warning btn-lg"
        id="btn-search"><i class="fa fa-search"></i> </button> <span id="loading">LOADING...</span>
      </div>
    </div>    
    

    <div class="form-group row">
      <label class="col-sm-3 control-label text-right">Nama Lengkap <span class="text-danger"></span></label>
      <div class="col-sm-9">
        <input type="text" name="nama_lengkap" id="nama_lengkap"  class="form-control" placeholder="Nama Lengkap" readonly required>
      </div>
    </div>

    <div class="form-group row">
      <label class="col-sm-3 control-label text-right">Sekolah Asal <span class="text-danger"></span></label>
      <div class="col-sm-9">
        <input type="text" name="sekolah_asal" id="sekolah_asal" class="form-control" placeholder="Sekolah Asal" readonly disabled>
      </div>
    </div>

    <div class="form-group row">
      <label class="col-sm-3 control-label text-right">Komp. Keahlian <span class="text-danger"></span></label>
      <div class="col-sm-9">
        <input type="text" name="kompetensi" id="kompetensi" class="form-control" placeholder="Komp. Keahlian" readonly disabled>
      </div>
    </div>    
  </div>

 <!--tab 2-->
  <div class="col-md-6">
    
  <h4 class="alert alert-info">Data Kelulusan</h4>
    <div class="form-group row">
        <label for="status" class="col-sm-5 col-form-label">Status Kelulusan <span class="text-danger">*</span></label>
        <div class="col-sm-7">
          <select name="status" class="form-control">          
            <option value="LULUS">LULUS</option>
            <option value="BELUM LULUS">BELUM LULUS</option>  
            <option value="TIDAK LULUS">TIDAK LULUS</option>                   
          </select>
        </div>
    </div>
    <br><br>
    <div class="form-group row">
      <label class="col-sm-3 control-label text-right"></label>
      <div class="col-sm-9">
        <div class="form-group btn-group text-right">          
          <button type="submit" name="submit" class="btn btn-primary"><i class="fa fa-save"></i> Simpan</button>
          <button type="reset" name="reset" class="btn btn-info"><i class="fa fa-cut"></i> Batal</button>
          <a href="<?php echo base_url('pengumuman_setting') ?>" class="btn btn-default" data-dismiss="modal"><i class="fa fa-backward"></i> Kembali</a>
        </div>
      </div>
      <label class="col-sm-12 control-label text-right"><span class="text-danger">*</span> <small>Wajib diisi</small></label>
    </div>     

    <?php echo form_close(); ?>  
  </div>   
</div>
</div>
</div>
</div>
</div>

