<?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'";
//echo "query karyyawan : " . $q .  "</br>";
$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 style="width:1280px; height:220px" class="container" >

			
				<div class="alert alert-info" style='background-color:#F8F8FF' href="#">
				<div style="display: block; margin-left: auto; margin-right: auto; width: 1000px;  height:100px;"><img style="width: 1000px;  height:180px;" src="images/hd.jpg"></div>
				<div>
                <center>
                    <h1>PT. MULTI HIDRACHROM BALIKPAPAN</h1>
                </center>
            </div>
            <div>
                <center>
                    <h4>PROFESIONAL INFORMATION SYSTEM</h4>
                </center>
            </div>
        </div>

			


			<div class="alert alert-info">
				<h3 align="center">Update Data 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="simpanupdatekaryawan.php?id=<?php echo $id; ?>">
					<div class="form-group" align = "center">
						<h3 align="center">Data Karyawan</h3>
						
					    	
						
						<label for="exampleInputPassword1">NIK</label>
						<input type="text" class="form-control" value="<?php echo $data["nik"]; ?>" name="nik" placeholder="">

						<label for="exampleInputPassword1">NAMA KARYAWAN</label>
						<input type="text" class="form-control" value="<?php echo $data["nama_karyawan"]; ?>" name="nama_karyawan" placeholder="">

						<label for="exampleInputPassword1">JABATAN</label>
				        <input type="text" class="form-control" value="<?php echo $data["jabatan"]; ?>" name="jabatan" placeholder="">
					
						
						<label for="exampleInputPassword1">DEPARTEMENT</label>
						<input type="text" class="form-control" value="<?php echo $data["departement"]; ?>" name="departement" placeholder="">
						
						<label for="exampleInputPassword1">ASAL PENERIMAAN</label>
						<input type="text" class="form-control" value="<?php echo $data["asal_penerimaan"]; ?>" name="asal_penerimaan" placeholder="">

						<label for="exampleInputPassword1">TANGGAL MASUK</label>
						<input type="date" class="form-control" value="<?php echo $data["tanggal_masuk"]; ?>" name="tanggal_masuk" placeholder="">

						<label for="exampleInputPassword1">LAMA BEKERJA</label>
						<input type="text" readonly class="form-control" value="<?php echo $data["lama_bekerja"]; ?>" name="lama_bekerja" placeholder="">

						<label for="exampleInputPassword1">DURASI KONTRAK (BULAN)</label>
						<input type="text" class="form-control" value="<?php echo $data["durasi_kontrak_bulan"]; ?>" name="durasi_kontrak_bulan" placeholder="">

						<label for="exampleInputPassword1">AKHIR KONTRAK</label>
						<input type="date" class="form-control" value="<?php echo $data["akhir_kontrak"]; ?>" name="akhir_kontrak" placeholder="">

						<label for="exampleInputPassword1">TEMPAT</label>
						<input type="text" class="form-control" value="<?php echo $data["tempat"]; ?>" name="tempat" placeholder="">

						<label for="exampleInputPassword1">TANGGAL LAHIR</label>
						<input type="date" class="form-control" value="<?php echo $data["tanggal_lahir"]; ?>" name="tanggal_lahir" placeholder="">

						<label for="exampleInputPassword1">STATUS PERKAWINAN</label>
						<input type="text" class="form-control" value="<?php echo $data["status_perkawinan"]; ?>" name="status_perkawinan" placeholder="">

						<label for="exampleInputPassword1">AGAMA</label>
						<input type="text" class="form-control" value="<?php echo $data["agama"]; ?>" name="agama" placeholder="">

						<label for="exampleInputPassword1">JENIS KELAMIN</label>
						<input type="text" class="form-control" value="<?php echo $data["jenis_kelamin"]; ?>" name="jenis_kelamin" placeholder="">

						<label for="exampleInputPassword1">NIK KTP</label>
						<input type="text" class="form-control" value="<?php echo $data["nik_ktp"]; ?>" name="nik_ktp" placeholder="">

						<label for="exampleInputPassword1">NPWP</label>
						<input type="text" class="form-control" value="<?php echo $data["npwp"]; ?>" name="npwp" placeholder="">

						<label for="exampleInputPassword1">NOMOR BPJS KESEHATAN</label>
						<input type="text" class="form-control" value="<?php echo $data["no_bpjs_kesehatan"]; ?>" name="no_bpjs_kesehatan" placeholder="">

						<label for="exampleInputPassword1">NOMOR JAMSOSTEK</label>
						<input type="text" class="form-control" value="<?php echo $data["no_jamsostek"]; ?>" name="no_jamsostek" placeholder="">

						<label for="exampleInputPassword1">BPJS JAMINAN PENSIUN</label>
						<input type="text" class="form-control" value="<?php echo $data["bpjs_jaminan_pensiun"]; ?>" name="bpjs_jaminan_pensiun" placeholder="">

						<label for="exampleInputPassword1">NOMOR REKENING BNI</label>
						<input type="text" class="form-control" value="<?php echo $data["no_rekening_bni"]; ?>" name="no_rekening_bni" placeholder="">

						<label for="exampleInputPassword1">NOMOR REKENING MYBANK</label>
						<input type="text" class="form-control" value="<?php echo $data["no_rekening_mybank"]; ?>" name="no_rekening_mybank" placeholder="">

						<label for="exampleInputPassword1">NOMOR REKENING UOB</label>
						<input type="text" class="form-control" value="<?php echo $data["no_rekening_uob"]; ?>" name="no_rekening_uob" placeholder="">

						<label for="exampleInputPassword1">KODE</label>
						<input type="text" class="form-control" value="<?php echo $data["kode"]; ?>" name="kode" placeholder="">

						<label for="exampleInputPassword1">NO TELP / HP</label>
						<input type="text" class="form-control" value="<?php echo $data["no_telp_hp"]; ?>" name="no_telp_hp" placeholder="">

						<label for="exampleInputPassword1">PENDIDIKAN TERAKHIR</label>
						<input type="text" class="form-control" value="<?php echo $data["pendidikan_terakhir"]; ?>" name="pendidikan_terakhir" placeholder="">

						<label for="exampleInputPassword1">STATUS KEPEGAWAIAN</label>
						<input type="text" class="form-control" value="<?php echo $data["status_kepegawaian"]; ?>" name="status_kepegawaian" placeholder="">

						<label for="exampleInputPassword1">EMERGENCY CONTACT</label>
						<input type="text" class="form-control" value="<?php echo $data["emergency_contact"]; ?>" name="emergency_contact" placeholder="">

						<label for="exampleInputPassword1">NO TELP / HP EMERGENCY</label>
						<input type="text" class="form-control" value="<?php echo $data["no_emergency"]; ?>" name="no_emergency" placeholder="">

						<label for="exampleInputPassword1">NOMOR KK</label>
						<input type="text" class="form-control" value="<?php echo $data["no_kk"]; ?>" name="no_kk" placeholder="">

						<label for="exampleInputPassword1">UKURAN BAJU</label>
						<input type="text" class="form-control" value="<?php echo $data["ukuran_baju"]; ?>" name="ukuran_baju" placeholder="">

						<label for="exampleInputPassword1">UKURAN CELANA</label>
						<input type="text" class="form-control" value="<?php echo $data["ukuran_celana"]; ?>" name="ukuran_celana" placeholder="">

						<label for="exampleInputPassword1">UKURAN SEPATU</label>
						<input type="text" class="form-control" value="<?php echo $data["ukuran_sepatu"]; ?>" name="ukuran_sepatu" placeholder="">

						<label for="exampleInputPassword1">JENIS SIM</label>
						<input type="text" class="form-control" value="<?php echo $data["jenis_sim"]; ?>" name="jenis_sim" placeholder="">

						<label for="exampleInputPassword1">GOLONGAN DARAH</label>
						<input type="text" class="form-control" value="<?php echo $data["golongan_darah"]; ?>" name="golongan_darah" placeholder="">

						<label for="exampleInputPassword1">ALAMAT</label>
						<input type="text" class="form-control" value="<?php echo $data["alamat"]; ?>" name="alamat" placeholder="">

						<label for="exampleInputPassword1">RT</label>
						<input type="text" class="form-control" value="<?php echo $data["rt"]; ?>" name="rt" placeholder="">

						<label for="exampleInputPassword1">KELURAHAN</label>
						<input type="text" class="form-control" value="<?php echo $data["kelurahan"]; ?>" name="kelurahan" placeholder="">

						<label for="exampleInputPassword1">KECAMATAN</label>
						<input type="text" class="form-control" value="<?php echo $data["kecamatan"]; ?>" name="kecamatan" placeholder="">

						<h3>Data Pasangan</h3>
						<label for="exampleInputPassword1">NAMA PASANGAN</label>
						<input type="text" class="form-control" value="<?php echo $data["nama_pasangan"]; ?>" name="nama_pasangan" placeholder="">

						<label for="exampleInputPassword1">JENIS KELAMIN PASANGAN</label>
						<input type="text" class="form-control" value="<?php echo $data["jenis_kelamin_pasangan"]; ?>" name="jenis_kelamin_pasangan" placeholder="">

						<label for="exampleInputPassword1">TEMPAT LAHIR</label>
						<input type="text" class="form-control" value="<?php echo $data["tempat_lahir_pasangan"]; ?>" name="tempat_lahir_pasangan" placeholder="">

						<label for="exampleInputPassword1">TANGGAL LAHIR</label>
						<input type="date" class="form-control" value="<?php echo $data["tnaggal_lahir"]; ?>" name="tnaggal_lahir" placeholder="">

						<label for="exampleInputPassword1">NIK</label>
						<input type="text" class="form-control" value="<?php echo $data["nik_pasangan"]; ?>" name="nik_pasangan" placeholder="">







<p>
</p>


	<input type="submit" value="Simpan" class="btn btn-primary"></input>
					| <a href="datakaryawan.php"><button type="button" class="btn btn-danger">Kembali</button></a>

					</div>
				


				</form>
				  
			</div>

<center><h5 class="form-signin">Copyright &copy; <a href="#" data-toggle="modal" data-target="#contact">SatrioPringgondani</a></h5></center>
</body>

</html>