<?php
	include "php_class/class_mysql.php";
	include "php_class/class_ujian.php";
	include "php_class/class_jadwal.php";
	$dataujian = new dataUjian;
	$dataJadwal = new dataJadwal;

	$id = $xcode;

	$idmatakuliah = $dataujian->get_uts_id('idmatakuliah',$id);
	$matakuliah = $dataujian->get_uts_id('matakuliah',$id);
	$dosen = $dataujian->get_uts_id('dosen',$id);
	$hadir = $dataujian->get_uts_id('hadir',$id);
	$seharusnya = $dataujian->get_uts_id('seharusnya',$id);
	$tidakhadir = $dataujian->get_uts_id('tidakhadir',$id);
	$tambahan = $dataujian->get_uts_id('tambahan',$id);
	
	$norek = $dataJadwal->get_data_norek('norek', $dosen);

?>
<link href="<?php echo $base?>plugins/daterangepicker/daterangepicker-bs3.css" rel="stylesheet" type="text/css" />
<link href="<?php echo $base?>plugins/iCheck/all.css" rel="stylesheet" type="text/css" />
<link href="<?php echo $base?>plugins/timepicker/bootstrap-timepicker.min.css" rel="stylesheet"/>
<script src="<?php echo $base?>plugins/input-mask/jquery.inputmask.js" type="text/javascript"></script>
<script src="<?php echo $base?>plugins/input-mask/jquery.inputmask.date.extensions.js" type="text/javascript"></script>
<script src="<?php echo $base?>plugins/input-mask/jquery.inputmask.extensions.js" type="text/javascript"></script>
<script src="<?php echo $base?>plugins/daterangepicker/daterangepicker.js" type="text/javascript"></script>
<script src="<?php echo $base?>plugins/timepicker/bootstrap-timepicker.min.js" type="text/javascript"></script>
<script src="<?php echo $base?>plugins/iCheck/icheck.min.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="<?php echo $base?>plugins/autocomplete/shieldui-all.css" />
<link href="<?php echo $base?>bootstrap/css/bootstrap-datetimepicker.min.css" rel="stylesheet" media="screen">
<script type="text/javascript" src="<?php echo $base?>bootstrap/js/bootstrap-datetimepicker.js" charset="UTF-8"></script>
<script type="text/javascript" src="<?php echo $base?>bootstrap/js/locales/bootstrap-datetimepicker.id.js" charset="UTF-8"></script>
<script type="text/javascript" src="<?php echo $base?>plugins/autocomplete/shieldui-all.min.js"></script>
<section class="content-header">
  <h1>
   Data UTS 
  </h1>
  <ol class="breadcrumb">
    <li><a href="<?php echo $base?>"><i class="fa fa-dashboard"></i> Home</a></li>
    <li>Kehadiran UTS</li>
  </ol>
</section>
<section class="content">
 	<div class="row">
    	<div class="row">
        	<div class="col-md-12">
            </div>
        </div>
    	<div class="col-md-12">
        	 <div class="box box-info">
                <div class="box-body">
				<h3><?php echo $dosen?></h3>
 				<p><?php echo $matakuliah?> - <?php echo $idmatakuliah?></p>
                <br>
                	<form method="post" action="<?php echo $base?>query-hadir-uts">
                    	<input type="hidden" name="id" value="<?php echo $id?>">
                        <input type="hidden" name="dosen" value="<?php echo $dosen?>">
                        <div class="form-group">
                            <label class="control-label">Seharusnya</label>
                            <input type="number" name="seharusnya" required="required" class="form-control"  value="<?php echo $seharusnya?>">
                         </div>
                         <div class="form-group">
                            <label class="control-label">Tidak Hadir</label>
                            <input type="number" name="tidakhadir" required="required" class="form-control"  value="<?php echo $tidakhadir?>">
                         </div>
						 <div class="form-group">
                            <label class="control-label">Tambahan</label>
                            <input type="number" name="tambahan" required="required" class="form-control"  value="<?php echo $tambahan?>">
                         </div>
                         <div class="form-group">
                            <label class="control-label">Hadir</label>
                            <input type="number" name="hadir" required="required" class="form-control"  value="<?php echo $hadir?>">
                         </div>
                         <div class="form-group">
                            <label class="control-label">NO REKENING</label>
                            <input type="text" name="norek" required="required" class="form-control"  value="<?php echo $norek?>">
                         </div>
                         <div class="form-group">
                            <button type="submit" class="btn btn-default"><i class='glyphicon glyphicon-ok'></i> Simpan</button>
                          </div>
                    </form>
                </div>
               </div>
         </div>
    </div>
</section>

    	
    	
   