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

	$data = mysqli_query ($koneksi, " select
											PlanID,
											MaterialID,
											DatePlan,
											NoPBB_ID2
										from 
										plan	
										where PlanID = $_POST[id]");
	$row = mysqli_fetch_array ($data);
	
?>
<form role="form" id="form-tambah-nopbb" method="post" action="rinciantambah.php">
	<div class="form-group">
		<input type="hidden" name="no_pbb_id" value="<?php echo $row['NoPBB_ID2'] ; ?>">
		<input type="hidden" name="plan_id" value="<?php echo $row['PlanID'] ; ?>">
		<input type="hidden" name="mat_id" value="<?php echo $row['MaterialID'] ; ?>">
		<input type="hidden" name="bln" value="<?php echo substr($row['DatePlan'], 5, 2); ?>">
		<input type="hidden" name="thn" value="<?php echo substr($row['DatePlan'], 2, 2); ?>">
		<input class="form-control" id="no_pbb" name="no_pbb" value="">
		<p style="color:red" id="error_edit_no_pbb"></p>
	</div>								
	
</form>
