<?php 
	include "php_class/class_mysql.php";
	include "php_class/class_inventaris.php";
	$dataInventaris = new dataInventaris;
	
	$id = $xcode;
	$barang =  $dataInventaris->get_barang('barang', $id);
	$idruangan = $dataInventaris->get_barang('idruangan', $id);
	$merk = $dataInventaris->get_barang('merk', $id);
	$noseri =  $dataInventaris->get_barang('noseri', $id);
	$tahun = $dataInventaris->get_barang('tahun', $id);
	$kodebarang = $dataInventaris->get_barang('kodebarang', $id);
	$jumlah = $dataInventaris->get_barang('kodebarang', $id);
	$baik = $dataInventaris->get_barang('baik', $id);
	$kurang = $dataInventaris->get_barang('kurang', $id);
	$rusak = $dataInventaris->get_barang('rusak', $id);
	$keterangan = $dataInventaris->get_barang('keterangan', $id);

?>

<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>
<script>
	$(document).ready(function(){
	var base = <?php echo json_encode($base);?>;

	});
</script>

<style>
	.checkbox2{	width:20px; height:20px; float:left; }
</style>
<section class="content-header">
  <h1>
   Data Inventaris Barang
  </h1>
  <ol class="breadcrumb">
    <li><a href="<?php echo $base?>"><i class="fa fa-dashboard"></i> Home</a></li>
    <li><a href="<?php echo $base?>data-proposal">Data Inventaris Barang</a></li>
    <li class="active">Ubah Jenis Barang / Nama Barang</li>
  </ol>
</section>
<section class="content">
 	<div class="row">
    	<div class="col-md-12">
        	 <div class="box box-info">
                <div class="box-header">
                  <h3 class="box-title">Ubah Data Jenis Barang / Nama Barang</h3>
                </div>
                <div class="box-body">
                	<form method="post" action="<?php echo $base?>query-edit-barang" enctype="multipart/form-data">
                    	<input type="hidden" name="id" value="<?php echo $xcode ?>">
                        <input type="hidden" name="idruangan" value="<?php echo $idruangan ?>">
                        <div class="form-group">
                            <label class="control-label">Jenis Barang / Nama Barang</label>
                            <input type="text" name="barang"  class="form-control"  placeholder="nama barang" value="<?php echo $barang?>">
                        </div>
                        <div class="form-group">
                            <label class="control-label">Merk / Model</label>
                            <input type="text" name="merk"  class="form-control"  placeholder="merk / model" value="<?php echo $merk?>">
                        </div>
                        <div class="form-group">
                            <label class="control-label">No. Seri Pabrik</label>
                            <input type="text" name="noseri"  class="form-control"  placeholder="no seri pabrik" value="<?php echo $noseri?>">
                        </div>
                        <div class="form-group">
                            <label class="control-label">Tahun Penerimaan / Pembelian</label>
                            <input type="text" name="tahun"  class="form-control"  placeholder="tahun penerimaan / pembelian" value="<?php echo $tahun?>">
                        </div>
                        <div class="form-group">
                            <label class="control-label">No Kode Barang</label>
                            <input type="text" name="kodebarang"  class="form-control"  placeholder="no kode barang" value="<?php echo $kodebarang?>">
                        </div>
                        <div class="form-group">
                            <label class="control-label">Jumlah Barang</label>
                            <input type="text" name="jumlah"  class="form-control"  placeholder="jumlah barang" value="<?php echo $jumlah?>">
                        </div>
                        <div class="form-group">
                            <label class="control-label">Jumlah Keadaan Barang Baik</label>
                            <input type="text" name="baik"  class="form-control"  placeholder="jumlah keadaan barang baik" value="<?php echo $baik?>">
                        </div>
                        <div class="form-group">
                            <label class="control-label">Jumlah Keadaan Barang Kurang Baik</label>
                            <input type="text" name="kurang"  class="form-control"  placeholder="jumlah keadaan barang kurang baik" value="<?php echo $kurang?>">
                        </div>
                        <div class="form-group">
                            <label class="control-label">Jumlah Keadaan Barang Rusak</label>
                            <input type="text" name="rusak"  class="form-control"  placeholder="jumlah keadaan barang rusak" value="<?php echo $rusak?>">
                        </div>
                        <div class="form-group">
                            <label class="control-label">Keterangan Mutasi dll</label>
                            <input type="text" name="keterangan"  class="form-control"  placeholder="nama barang" value="<?php echo $keterangan?>">
                        </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>

    	
    	