
<style>

    .modal-header{
        background: #09c !important;
    }

    .modal-title{
        color: white;
        margin-bottom: 15px;
    }

    .profile > img{
        max-height: 150px;
        max-width: 200px;
    }

    .normpoint{
        cursor: default;
    }

    .normpoint > div{
        font-weight: 400;
        font-size: 16px;
    }
    .identity{
        font-size: 16px;
    }

    #setpadding{
        min-width: 120px;
    }   

    hr{
        margin-top:0px;
    }

    #nilaiperusahaanl > .form-group > label, #nilaipembimbingl > .form-group > label, #nilaipengujil > .form-group > label{
        font-size: 15px;
        font-weight: normal;
    }

    #head{
        font-weight: bold;
    }
    /* #penilaianpenguji{
        max-width: 100px !important;
    } */

    .dataTable thead .sorting, .dataTable thead .sorting_asc, .dataTable thead .sorting_desc, .dataTable thead .sorting_asc_disabled, .dataTable thead .sorting_desc_disabled {
    padding-right: 33px;
}
    
</style>
<div class="content-wrapper">
    <div class="content">

        <div class="page-header-content">
            <div class="page-title">
                <h4><i class="icon-arrow-left52 position-left"></i> <span class="text-semibold">Admin</span> - Nilai Kerja Praktik</h4>
                <ul class="breadcrumb position-right">
                    <li><a href="index.html">Home</a></li>
                    <li class="">Penilaian</li>
                    <li class="active">Nilai Kerja Praktik</li>
                </ul>
            </div>
        </div>

        <div class="panel panel-white">
            <div class="panel-heading">
                <h6 class="panel-title text-semibold">Nilai Kerja Praktik</h6>
                <div class="heading-elements">
                    <ul class="icons-list">
                        <li class="dropdown">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="icon-menu7"></i> <span class="caret"></span></a>
                            <ul class="dropdown-menu dropdown-menu-right">
                                <li id="genpopup"><a id="genpopup">Generate PDF Nilai KP</a></li>
                                <li id="genexcel"><a id="genexcel">Generate Excel Nilai KP</a></li>
                                
                               
                                <!-- <li><a href="#">Something else here</a></li>
                                <li class="divider"></li>
                                <li><a href="#">One more separated line</a></li> -->
                            </ul>
                        </li>
                    </ul>
                </div>
            </div>
            
            <div class="panel-flat">
                <div class="table-responsive">
                    <table class="table data-list table-stripped table-lg datatable-dom-position table-hover" id="penilaianpenguji">
                        <thead>
                            <tr>
                                <th scope="col" class="text-center text-muted" style="width: 30px;">#No</th> 
                                <th>NIM</th>
                                <th>Nama</th>
                                <th>Pembimbing</th>
                                <th>Penguji 1</th>
                                <th>Penguji 2</th>
                                <th>Periode Kerja Praktik</th>
                                <th>Tanggal Sidang</th>
                                <th>Semester</th>
                                <th>Nilai Akhir</th>
                                <th>Nilai Mutu</th>
                                <th>Status Nilai</th>
                                <th>Keterangan</th>
                                <th>Action</th>
                            </tr>
                        </thead>
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>

<div id="modal-nilai" class="modal fade" data-keyboard="true">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <div class="modal-header">
                <h6 class="modal-title">Hitung Nilai</h6>
            </div>
            <input type="hidden" id="idkp">
            <input type="hidden" id="nim">
            <input type="hidden" id="nopeg_peng_1">
            <input type="hidden" id="nopeg_peng_2">
            <div class="modal-body">
                <div class="row">
                    <div id="profile" class="col-lg-12">
                                
                        <div id="imgcontainer" class="col-lg-12 col-1">

                            <ul class="media-list">
                                <li class="media">
                                    <div class="media-left profile normpoint"><img class="" src="<?php echo '//'.$_SERVER['SERVER_NAME'].':'.$_SERVER['SERVER_PORT'].$this->basePath();?>/img/transparent-man.png"></div>
                                    <div class="media-body normpoint">
                                        <div>
                                            <div id="setpadding" class="media-left">Nama </div>
                                            <div id="identitasNama" class="media-left"></div>
                                        </div>
                                        <div>
                                            <div id="setpadding" class="media-left">NIM </div>
                                            <div id="identitasNim" class="media-left"></div>
                                        </div>
                                        <div>
                                            <div id="setpadding" class="media-left">Prodi </div>
                                            <div id="identitasProdi" class="media-left"></div>
                                        </div>
                                        <div>
                                            <div id="setpadding" class="media-left">Pembimbing </div>
                                            <div id="identitasPembimbing" class="media-left"></div>
                                        </div>
                                        <div>
                                            <div id="setpadding" class="media-left">Penguji 1</div>
                                            <div id="identitasPenguji" class="media-left"></div>
                                        </div>
                                        <div>
                                            <div id="setpadding" class="media-left">Penguji 2</div>
                                            <div id="identitasPenguji2" class="media-left"></div>
                                        </div>
                                    </div>
                                </li>
                            </ul>
                        </div>

                    </div>
                    <div class="col-lg-12">
                        <h6 id='head'>Nilai Perusahaan</h6>
                        <hr>
                        <div class="form-horizontal" id="nilaiperusahaan">
                            <!-- <div class="form-group">
                                <label class="col-lg-2 control-label text-semibold">Nilai :</label>
                                <div class="col-lg-10">
                                    <div class="input-group">
                                        <span class="input-group-addon"></span>
                                        <input id="ruang"type="url" class="form-control" placeholder="Url ruang&hellip;" disabled>
                                    </div>
                                </div>
                            </div> -->
                        </div>
                    </div>
                    
                    <!-- <div class="col-lg-12">
                        <h6 id='head'>Nilai Pembimbing</h6>
                        <hr>
                        <div class="form-horizontal" id="nilaipembimbing">
                            <div class="form-group">
                                <label class="col-lg-2 control-label text-semibold">Nilai :</label>
                                <div class="col-lg-10">
                                    <div class="input-group">
                                        <span class="input-group-addon"></span>
                                        <input id="ruang"type="url" class="form-control" placeholder="Url ruang&hellip;" disabled>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div> -->
                    
                    <div class="col-lg-12">
                        <h6 id='head'>Nilai Penguji 1</h6>
                        <hr>
                        <div class="form-horizontal" id="nilaipenguji">
                            <!-- <div class="form-group">
                                <label class="col-lg-2 control-label text-semibold">Nilai :</label>
                                <div class="col-lg-10">
                                    <div class="input-group">
                                        <span class="input-group-addon"></span>
                                        <input id="ruang"type="url" class="form-control" placeholder="Url ruang&hellip;" disabled>
                                    </div>
                                </div>
                            </div> -->
                        </div>
                    </div>

                    <div class="col-lg-12">
                        <h6 id='head'>Nilai Penguji 2</h6>
                        <hr>
                        <div class="form-horizontal" id="nilaipenguji2">
                            <!-- <div class="form-group">
                                <label class="col-lg-2 control-label text-semibold">Nilai :</label>
                                <div class="col-lg-10">
                                    <div class="input-group">
                                        <span class="input-group-addon"></span>
                                        <input id="ruang"type="url" class="form-control" placeholder="Url ruang&hellip;" disabled>
                                    </div>
                                </div>
                            </div> -->
                        </div>
                    </div>
                    
                </div>
                
            </div>

            <div class="modal-footer">
                <button type="button" class="btn btn-link" data-dismiss="modal">Close</button>
                
                <button id="hitung" name="validate" value="105" type="button" class="btn btn-primary">Hitung Nilai</button>
            </div>
        </div>
    </div>
</div>

<div id="lihat-nilai" class="modal fade" data-keyboard="true">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <div class="modal-header">
                <h6 class="modal-title">Lihat Nilai</h6>
            </div>
            <input type="hidden" id="idkp">
            <input type="hidden" id="nim">
            <input type="hidden" id="nopeg_peng_1">
            <input type="hidden" id="nopeg_peng_2">
            <div class="modal-body">
                <div class="row">
                    <div id="profile" class="col-lg-12">
                        <div id="imgcontainer" class="col-lg-12 col-1">
                            <ul class="media-list">
                                <li class="media">
                                    <div class="media-left profile normpoint"><img class="" src="<?php echo '//'.$_SERVER['SERVER_NAME'].':'.$_SERVER['SERVER_PORT'].$this->basePath();?>/img/transparent-man.png"></div>
                                    <div class="media-body normpoint">
                                        <div>
                                            <div id="setpadding" class="media-left">Nama </div>
                                            <div id="identitasNaman" class="media-left"></div>
                                        </div>
                                        <div>
                                            <div id="setpadding" class="media-left">NIM </div>
                                            <div id="identitasNimn" class="media-left"></div>
                                        </div>
                                        <div>
                                            <div id="setpadding" class="media-left">Prodi </div>
                                            <div id="identitasProdin" class="media-left"></div>
                                        </div>
                                        <div>
                                            <div id="setpadding" class="media-left">Pembimbing </div>
                                            <div id="identitasPembimbingn" class="media-left"></div>
                                        </div>
                                        <div>
                                            <div id="setpadding" class="media-left">Penguji 1</div>
                                            <div id="identitasPengujin" class="media-left"></div>
                                        </div>
                                        <div>
                                            <div id="setpadding" class="media-left">Penguji 2</div>
                                            <div id="identitasPengujin2" class="media-left"></div>
                                        </div>
                                        <div>
                                            <div id="setpadding" class="media-left">Total Nilai </div>
                                            <div id="totalnilai" class="media-left"></div>
                                        </div>
                                        <div>
                                            <div id="setpadding" class="media-left">Nilai Akhir </div>
                                            <div id="nilaiakhir" class="media-left"></div>
                                        </div>
                                    </div>
                                </li>
                            </ul>
                        </div>
                    </div>
                    <div class="col-lg-12">
                        <h6 id='head'>Nilai Perusahaan</h6>
                        <hr>
                        <div class="form-horizontal" id="nilaiperusahaanl">
                            <!-- <div class="form-group">
                                <label class="col-lg-2 control-label text-semibold">Nilai :</label>
                                <div class="col-lg-10">
                                    <div class="input-group">
                                        <span class="input-group-addon"></span>
                                        <input id="ruang"type="url" class="form-control" placeholder="Url ruang&hellip;" disabled>
                                    </div>
                                </div>
                            </div> -->
                        </div>
                    </div>
                    
                    <!-- <div class="col-lg-12">
                        <h6 id='head'>Nilai Pembimbing</h6>
                        <hr>
                        <div class="form-horizontal" id="nilaipembimbingl">
                            <div class="form-group">
                                <label class="col-lg-2 control-label text-semibold">Nilai :</label>
                                <div class="col-lg-10">
                                    <div class="input-group">
                                        <span class="input-group-addon"></span>
                                        <input id="ruang"type="url" class="form-control" placeholder="Url ruang&hellip;" disabled>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div> -->
                    
                    <!-- hiss -->
                    <!-- <div class="col-lg-12">
                        <h6 id='head'>Nilai Penguji</h6>
                        <hr>
                        <div class="form-horizontal" id="nilaipengujil">
                            <div class="form-group">
                                <label class="col-lg-2 control-label text-semibold">Nilai :</label>
                                <div class="col-lg-10">
                                    <div class="input-group">
                                        <span class="input-group-addon"></span>
                                        <input id="ruang"type="url" class="form-control" placeholder="Url ruang&hellip;" disabled>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div> -->

                    <div class="col-lg-12">
                        <h6 id='head'>Nilai Penguji 1</h6>
                        <hr>
                        <div class="form-horizontal" id="nilaipengujil">
                            <!-- <div class="form-group">
                                <label class="col-lg-2 control-label text-semibold">Nilai :</label>
                                <div class="col-lg-10">
                                    <div class="input-group">
                                        <span class="input-group-addon"></span>
                                        <input id="ruang"type="url" class="form-control" placeholder="Url ruang&hellip;" disabled>
                                    </div>
                                </div>
                            </div> -->
                        </div>
                    </div>
                    
                    <div class="col-lg-12">
                        <h6 id='head'>Nilai Penguji 2</h6>
                        <hr>
                        <div class="form-horizontal" id="nilaipengujil2">
                            <!-- <div class="form-group">
                                <label class="col-lg-2 control-label text-semibold">Nilai :</label>
                                <div class="col-lg-10">
                                    <div class="input-group">
                                        <span class="input-group-addon"></span>
                                        <input id="ruang"type="url" class="form-control" placeholder="Url ruang&hellip;" disabled>
                                    </div>
                                </div>
                            </div> -->
                        </div>
                    </div>
                    
                </div>
                
            </div>

            <div class="modal-footer">
                <button type="button" class="btn btn-link" data-dismiss="modal">Close</button>
            </div>
        </div>
    </div>
</div>

<div id="modal-generate" class="modal fade" data-keyboard="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <h6 class="modal-title">Generate Nilai Kerja Praktik PDF</h6>
            </div>
            
            <div class="modal-body">
                <div class="form-group">
                    <label>Program Studi:</label>
                    <select id="kodeprodi" data-placeholder="Jumlah mahasiswa" class="select">
                        <option value="131">Teknik Mesin</option>
                        <option value="136">Teknik Dirgantara</option>
                        <option value="137">Teknik Material</option>
                    </select>
                </div>

                <div class="form-group">
                    <label>Semester:</label>
                    <select id="selecSemester" data-placeholder="Jumlah mahasiswa" class="select">
                        
                    </select>
                </div>

                <div class="form-group">
                    <label class="control-label text-semibold">Tanggal Persentasi Kerja Praktik:</label>
                    <div class="row">
                        <div class="col-lg-6">
                            <div class="input-group">
                                <span class="input-group-addon"><i class="icon-calendar22"></i></span>
                                <input id="tglawal"type="text" class="form-control pickadate" placeholder="Tanggal Awal Persentasi&hellip;" value="">
                            </div>
                        </div>
                        <div class="col-lg-6">
                            <div class="input-group">
                                <span class="input-group-addon"><i class="icon-calendar22"></i></span>
                                <input id="tglakhir"type="text" class="form-control pickadate" placeholder="Tanggal Akhir Persentasi&hellip;" value="">
                            </div>
                        </div>
                    </div>
                </div>
                
            </div>

            <div class="modal-footer">
                <button type="button" class="btn btn-link" data-dismiss="modal">Close</button>
                
                <button id="generatenilai" name="validate" value="105" type="button" class="btn btn-primary">Generate</button>
            </div>
        </div>
    </div>
</div>

<div id="modal-generate-excel" class="modal fade" data-keyboard="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <h6 class="modal-title">Generate Nilai Kerja Praktik Excel</h6>
            </div>
            
            <div class="modal-body">
                <div class="form-group">
                    <label>Program Studi:</label>
                    <select id="kodeprodiex" data-placeholder="Jumlah mahasiswa" class="select">
                        <option value="131">Teknik Mesin</option>
                        <option value="136">Teknik Dirgantara</option>
                        <option value="137">Teknik Material</option>
                    </select>
                </div>

                <div class="form-group">
                    <label>Semester:</label>
                    <select id="selecSemesterex" data-placeholder="Jumlah mahasiswa" class="select">
                        
                    </select>
                </div>

                <div class="form-group">
                    <label class="control-label text-semibold">Tanggal Persentasi Kerja Praktik:</label>
                    <div class="row">
                        <div class="col-lg-6">
                            <div class="input-group">
                                <span class="input-group-addon"><i class="icon-calendar22"></i></span>
                                <input id="tglawalex"type="text" class="form-control pickadate" placeholder="Tanggal Awal Persentasi&hellip;" value="">
                            </div>
                        </div>
                        <div class="col-lg-6">
                            <div class="input-group">
                                <span class="input-group-addon"><i class="icon-calendar22"></i></span>
                                <input id="tglakhirex"type="text" class="form-control pickadate" placeholder="Tanggal Akhir Persentasi&hellip;" value="">
                            </div>
                        </div>
                    </div>
                </div>
                
            </div>

            <div class="modal-footer">
                <button type="button" class="btn btn-link" data-dismiss="modal">Close</button>
                
                <button id="generatexcel" name="validate" value="105" type="button" class="btn btn-primary">Generate</button>
            </div>
        </div>
    </div>
</div>

<div id="modal-note" class="modal" data-keyboard="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <h6 class="modal-title">Tambah Keterangan Kerja Praktik</h6>
            </div>

            <div class="modal-body">
                
                <input id="idkps" value="" type="hidden" class="form-control" placeholder="Nama Perusahaan..">
                <div class="form-group">
                    <label>Keterangan :</label>
                    <textarea id="keterangans" cols="30" rows="10" type="text" class="form-control" placeholder="Keterangan Mahasiswa..." ></textarea>
                </div>
                
            </div>
    <!-- <textarea name="" id="" cols="30" rows="10"></textarea> -->
            <div class="modal-footer">
                <button type="button" class="btn btn-link" data-dismiss="modal">Close</button>
                
                <button id="btn-note" name="validate" value="105" type="button" class="btn btn-primary">Tambah Keterangan</button>
            </div>
        </div>
    </div>
</div>

