<?php
	include "../koneksi.php";
	$data = mysqli_query ($koneksi, " select 
											ProductID,
											Material,
											ItemDescription,
											SLoc,
											QtyUnit,
											Folder
									  from 
									  product 
									  where ProductID = $_POST[id]");
	$row = mysqli_fetch_array ($data);
	
?>
<form role="form" id="form-edit" method="post" action="update.php">
	<div class="form-group">
		<label>Nomor Material</label>
		<input type="hidden" name="product_id" value="<?php echo $row['ProductID'] ; ?>">
		<input class="form-control" name="material" value="<?php echo $row['Material'] ; ?>">
		<p style="color:red" id="error_edit_material"></p>
	</div>
	<div class="form-group">
		<label>Nama Material</label>
		<textarea class="form-control" name="item_desc" rows="1"><?php echo $row['ItemDescription'] ; ?></textarea>
		<p style="color:red" id="error_edit_item_desc"></p>
	</div>
	<div class="form-group">
		<label>SLoc</label>
		<input class="form-control" name="sloc" value="<?php echo $row['SLoc'] ; ?>">
		<p style="color:red" id="error_edit_sloc"></p>
	</div>
	<div class="form-group">
		<label>Quantity Unit</label>
		<input class="form-control" name="qty_unit" value="<?php echo $row['QtyUnit'] ; ?>">
		<p style="color:red" id="error_edit_qty_unit"></p>
	</div>
	<div class="form-group">
		<label>Folder</label>
		<textarea name="folder" class="form-control" rows="2" ><?php echo $row['Folder'] ; ?></textarea>
		<p style="color:red" id="error_edit_folder"></p>
	</div>			
	
</form>