<?php
	include"../koneksi.php";

	$data = mysqli_query ($koneksi, " select PBB_ID,
											Lot,
											Bag,
											incoming.Date_Inc,
											incoming.Supplier,
											incoming.No_SJ
										from 
										pbb	
										INNER JOIN incoming
										ON pbb.IncomingID=incoming.IncomingID
										where PBB_ID = $_POST[id]");
	$row = mysqli_fetch_array ($data);
	
?>
<form role="form" id="form-tambah-nopbb" method="post" action="rinciantambah.php">
	<table style="width: 100%; background-color: white;">
		<input type="hidden" name="plan_id" id="plan_id" value="<?php echo $_POST['plan']; ?>">
		<input type="hidden" name="mat_id" id="mat_id" value="<?php echo $_POST['mat']; ?>">
		<tr>
			<th>Date Incoming</th>
			<td><?php echo date ("d-m-Y", strtotime($row['Date_Inc'])); ?></td>
		</tr>
		<tr>
			<th>No SJ</th>
			<td><?php echo $row['No_SJ']; ?></td>
		</tr>
	<tr>
		<th width="25%">LOT</th>
		<td width="75%"><input type="hidden" name="pbb_id" value="<?php echo $row['PBB_ID'] ; ?>">
		<input style="width: 100%" id="lot" name="lot" value="<?php echo $row['Lot'] ; ?>"></td>
		<p style="color:red" id="error_edit_lot"></p>
	</tr>
	<tr>
		<th>BAG</th>
		<td><input style="width: 100%" id="bag" name="bag" value="<?php echo $row['Bag'] ; ?>"></td>
		<p style="color:red" id="error_edit_bag"></p>
	</tr>							
	</table>
</form>
