<?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 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 " align='center'>
			 <h3>TAMBAH LEMBUR</h3>
			 <?php
			 echo date('d F Y');
			 ?>
			 
			 <?php
				if (isset($_GET["p"]))
				{
					$p=mysqli_real_escape_string($conn,$_GET["p"]);
					if ($p=="1")
					{
						?>
							<div class="alert alert-primary" role="alert">
							  Berhasil diubah!
							</div>
						<?php
					}
					else if ($p=="2")
					{
						?>
							<div class="alert alert-primary" role="alert">
							Gagal!
							</div>
						<?php
					}
				}
				?>
			 
			 <form method="POST" action="simpanTambahLembur.php?id=<?php echo $id;?>">
				  <div class="form-group">
					<label for="exampleInputPassword1">NIK</label>
					<input type="text" class="form-control" readonly value="<?php echo $data["nik"];?>" name="nik" placeholder="">
					
					<label for="exampleInputPassword1">NAMA KARYAWAN</label>
					<input type="text" class="form-control" readonly value="<?php echo $data["nama_karyawan"];?>" name="nama_karyawan" placeholder="">
					
					<label for="exampleInputPassword1">JABATAN</label>
					<input type="text" class="form-control" readonly value="<?php echo $data["jabatan"];?>" name="jabatan" placeholder="">
					
					<label for="exampleInputPassword1">DEPARTEMEN</label>
					<input type="text" class="form-control" readonly value="<?php echo $data["departement"];?>" name="departement" placeholder="">
					
					<label for="exampleInputPassword1">LEMBUR BERAPA JAM</label>
					<input type="text" class="form-control"  name="lembur_berapa_jam" placeholder="">
					
					<label for="exampleInputPassword1">Cause Of Overtime</label>
					<input type="text" class="form-control"  name="alasan_lembur" placeholder="">
					
					
					<P>
					</P>
					
                 
					<h4>URAIAN KEGIATAN 1</h4>
					<label for="exampleInputPassword1">KEGIATAN </label>
					<input type="text" class="form-control"  name="kegiatan1" placeholder="">
					
					<label for="exampleInputPassword1">MHB JOB NO</label>
					<input type="text" class="form-control"  name="mhbjobno1" placeholder="">
					
					<label for="exampleInputPassword1">QTY INPUT</label>
					<input type="text" class="form-control"  name="qtyinput1" placeholder="">
					
					<label for="exampleInputPassword1">QTY OUTPUT</label>
					<input type="text" class="form-control"  name="qtyoutput1" placeholder="">
					
					<label for="exampleInputPassword1">% AWAL KERJA *)</label>
					<input type="text" class="form-control"  name="awalkerja1" placeholder="">
					
					<label for="exampleInputPassword1">% SETELAH KERJA *)</label>
					<input type="text" class="form-control"  name="setelahkerja1" placeholder="">
					
					<P>
					</P>
					
                    <h4>URAIAN KEGIATAN 2</h4>
					<label for="exampleInputPassword1">KEGIATAN </label>
					<input type="text" class="form-control"  name="kegiatan2" placeholder="">
					
					<label for="exampleInputPassword1">MHB JOB NO</label>
					<input type="text" class="form-control"  name="mhbjobno2" placeholder="">
					
					<label for="exampleInputPassword1">QTY INPUT</label>
					<input type="text" class="form-control"  name="qtyinput2" placeholder="">
					
					<label for="exampleInputPassword1">QTY OUTPUT</label>
					<input type="text" class="form-control"  name="qtyoutput2" placeholder="">
					
					<label for="exampleInputPassword1">% AWAL KERJA *)</label>
					<input type="text" class="form-control"  name="awalkerja2" placeholder="">
					
					<label for="exampleInputPassword1">% SETELAH KERJA *)</label>
					<input type="text" class="form-control"  name="setelahkerja2" placeholder="">
					
					<P>
					</P>
					
                    <h4>URAIAN KEGIATAN 3</h4>
					<label for="exampleInputPassword1">KEGIATAN </label>
					<input type="text" class="form-control"  name="kegiatan3" placeholder="">
					
					<label for="exampleInputPassword1">MHB JOB NO</label>
					<input type="text" class="form-control"  name="mhbjobno3" placeholder="">
					
					<label for="exampleInputPassword1">QTY INPUT</label>
					<input type="text" class="form-control"  name="qtyinput3" placeholder="">
					
					<label for="exampleInputPassword1">QTY OUTPUT</label>
					<input type="text" class="form-control"  name="qtyoutput3" placeholder="">
					
					<label for="exampleInputPassword1">% AWAL KERJA *)</label>
					<input type="text" class="form-control"  name="awalkerja3" placeholder="">
					
					<label for="exampleInputPassword1">% SETELAH KERJA *)</label>
					<input type="text" class="form-control"  name="setelahkerja3" placeholder="">
					
					<P>
					</P>
					
                    <h4>URAIAN KEGIATAN 4</h4>
					<label for="exampleInputPassword1">KEGIATAN </label>
					<input type="text" class="form-control"  name="kegiatan4" placeholder="">
					
					<label for="exampleInputPassword1">MHB JOB NO</label>
					<input type="text" class="form-control"  name="mhbjobno4" placeholder="">
					
					<label for="exampleInputPassword1">QTY INPUT</label>
					<input type="text" class="form-control"  name="qtyinput4" placeholder="">
					
					<label for="exampleInputPassword1">QTY OUTPUT</label>
					<input type="text" class="form-control"  name="qtyoutput4" placeholder="">
					
					<label for="exampleInputPassword1">% AWAL KERJA *)</label>
					<input type="text" class="form-control"  name="awalkerja4" placeholder="">
					
					<label for="exampleInputPassword1">% SETELAH KERJA *)</label>
					<input type="text" class="form-control"  name="setelahkerja4" placeholder="">
					
					<P>
					</P>
					
                    <h4>URAIAN KEGIATAN 5</h4>
					<label for="exampleInputPassword1">KEGIATAN </label>
					<input type="text" class="form-control"  name="kegiatan5" placeholder="">
					
					<label for="exampleInputPassword1">MHB JOB NO</label>
					<input type="text" class="form-control"  name="mhbjobno5" placeholder="">
					
					<label for="exampleInputPassword1">QTY INPUT</label>
					<input type="text" class="form-control"  name="qtyinput5" placeholder="">
					
					<label for="exampleInputPassword1">QTY OUTPUT</label>
					<input type="text" class="form-control"  name="qtyoutput5" placeholder="">
					
					<label for="exampleInputPassword1">% AWAL KERJA *)</label>
					<input type="text" class="form-control"  name="awalkerja5" placeholder="">
					
					<label for="exampleInputPassword1">% SETELAH KERJA *)</label>
					<input type="text" class="form-control"  name="setelahkerja5" placeholder="">
					
					
				  </div>
				  <input type="submit" value="Simpan" class="btn btn-primary"></input>
				  <!-- <button href="" type="submit" class="btn btn-primary">Simpan</button>  -->
				  
				  | <a href="datagajikaryawan.php?id=<?php echo $data["id"];?>"><button type="button" class="btn btn-danger">Kembali</button></a>
				  
				
				</form>
		</div>		
	</div>
	
  
  </body>
</html>




