<?php 
include "koneksi.php";
if (!isset($_SESSION["UserID"]))
{
	header("location:login.php?p=3");
}
$id=mysqli_real_escape_string($conn,$_GET["id"]);
$q="SELECT * FROM data_karyawan WHERE id='$id'";
$res=mysqli_query($conn,$q);
$data=mysqli_fetch_assoc($res);
//$ids=mysqli_real_escape_string($conn,$_GET["ids"]);
?>
<!DOCTYPE html>
<link rel="stylesheet" type="text/css" href="style.css">
<html>
  <head>
	<title> PT. MULTI HYDRACHROM BALIKPAPAN </title>
						
					<?php
						include "part/menu2.php";
					?>
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<?php
		include "part/jss.php";
	?>
	
  </head>
  <body>
	
	<div class="container">
	
		<div class="span12">
			<div class="alert alert-info">
			<b><center><h1>PT. MULTI HYDRACHROM BALIKPAPAN</h1></center></b>
					<b><center><h4>PROFESIONAL INFORMATION SYSTEM</h4></center></b>
			</div>

			
			
		<div class="alert alert-info">
			 <h3>Update Data Gaji Karyawan</h3>
			 
			 <?php
				if (isset($_GET["p"]))
				{
					$p=mysqli_real_escape_string($conn,$_GET["p"]);
					if ($p=="1")
					{
						?>
							<div class="alert alert-primary" role="alert">
							  Kendaraan Tidak Boleh Kosong!
							</div>
						<?php
					}
					else if ($p=="2")
					{
						?>
							<div class="alert alert-primary" role="alert">
							Kendaraan sudah ada!
							</div>
						<?php
					}
				}
				?>
			 
			 <form method="POST" action="simpanupdaterekeningkaryawan.php?id=<?php echo $id;?>&ids=<?php echo $ids;?>">
				  <div class="form-group">
					<label for="exampleInputPassword1">NIK</label>
					<input type="text" class="form-control" readonly value="<?php echo $data["nik"];?>" name="nama" placeholder="">
					
					<label for="exampleInputPassword1">NAMA KARYAWAN</label>
					<input type="text" class="form-control" readonly value="<?php echo $data["nama_karyawan"];?>" name="nama" placeholder="">
					
					<label for="exampleInputPassword1">NOMOR REKENING BNI</label>
					<input type="text" class="form-control" value="<?php echo $data["no_rekening_bni"];?>" name="nama" placeholder="">

					<label for="exampleInputPassword1">NOMOR REKENING MYBANK</label>
					<input type="text" class="form-control" value="<?php echo $data["no_rekening_mybank"];?>" name="nama" placeholder="">
					
					<label for="exampleInputPassword1">NOMOR REKENING UOB</label>
					<input type="text" class="form-control" value="<?php echo $data["no_rekening_uob"];?>" name="nama" placeholder="">
					
					
					
					
					
					
				  </div>
				  <input type="submit" value="Simpan" class="btn btn-primary"></input>
				  
				  | <a href="kendaraan.php?id=<?php echo $data["id_merkMotor"];?>"><button type="button" class="btn btn-info">Kembali</button></a>
				  
				
				</form>
		</div>		
	</div>
	
  
  </body>
</html>




