<?php
	include"../koneksi.php";
	
	$no = 1;
	$data = mysqli_query ($koneksi, " select * from user
									  where User_ID = $_POST[id]");
	$row = mysqli_fetch_array ($data);
	
?>
<form role="form" id="form-edit" method="post" action="update.php">
<input type="hidden" name="user_id" value="<?php echo $row['User_ID'] ; ?>">
<div class="form-group">
	<label>NIK</label>
	<input class="form-control" id="nik" name="nik" value="<?php echo $row['Nik']; ?>"> 
	<p style="color:red" id="error_edit_nik"></p>
</div>
<div class="form-group">
	<label>Nama User</label>
	<input class="form-control" id="user" name="user" value="<?php echo $row['User_Name']; ?>">
	<p style="color:red" id="error_edit_user"></p>
</div>
<div class="form-group">
	<label>Password</label>
	<input class="form-control" id="password" name="password" value="<?php echo $row['Password']; ?>">
	<p style="color:red" id="error_edit_password"></p>
</div>
<div class="form-group">
	<label>Level</label>
	<select class="form-control" name="kasta" id="kasta">
		<option value="<?php echo $row['Kasta']; ?>" selected><?php echo $row['Kasta']; ?></option>
		<option value="1" >P P I C</option>
		<option value="0" >ADMIN WAREHOUSE</option>
	</select>
	<p style="color:red" id="error_edit_kasta"></p>
</div>			
	
</form>