<?php
include "koneksi.php";
if (!isset($_SESSION["UserID"])) {
    header("location:login.php?p=3");
}
$idKaryawan = $_GET['id'];
//echo "<br>idkaryawan : . $idKaryawan;</br>";
?>
<!DOCTYPE html>
<link rel="stylesheet" type="text/css" href="style.css">
<html>

<head>
    <title> PT. MULTI HIDRACHROME 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 HYDRACHROM BALIKPAPAN</h1>
                </center>
            </div>
            <div>
                <center>
                    <h4>PROFESIONAL INFORMATION SYSTEM</h4>
                </center>
            </div>
        </div>

        <?php
 

        $q = "SELECT * FROM data_naik_gaji WHERE id = $idKaryawan";
			//echo $idKaryawan;
			//echo $q;
        $res = mysqli_query($conn, $q);
		while ($row = mysqli_fetch_array($res)) 
		{


        ?>

            <div class="alert alert-info" align='center'>
                <h3>DETAIL KENAIKAN GAJI KARYAWAN</h3>
                <table class="table table-hover" align='center'>
                    <tbody>
                        <tr>
                            <td>NIK  </td>
                            <td><?php echo $row["nik"]; ?></td>
                        </tr>
                        <tr>
                            <td>NAMA  </td>
                            <td><?php echo $row["nama"]; ?></td>
                        </tr>

                        <tr>
                            <td>ASAL PENERIMAAN  </td>
                            <td><?php echo $row["asal_penerimaan"]; ?></td>
                        </tr>
						
						<tr>
                            <td>TANGGAL MASUK KERJA</td>
                            <td><?php echo $row["tanggal_masuk"]; ?></td>
                        </tr>
						
						<tr>
                            <td>TANGGAL PENGAJUAN</td>
                            <td><?php echo $row["tanggal_pengajuan"]; ?></td>
                        </tr>
		                    <td >
                                <h4 align = "center" class="alert alert-danger">DETAIL GAJI LAMA</h4>
                            </td>
                        <tr>
                            <td>GAJI</td>
                            <td><?php echo $row["gaji"]; ?></td>
                        </tr>
						<tr>
                            <td>TUNJANGAN JABATAN</td>
                            <td><?php echo $row["tunjangan_jabatan"]; ?></td>
                        </tr>
						 <tr>
                            <td>TUNJANGAN OPERASIONAL</td>
                            <td><?php echo $row["tunjangan_operasional"]; ?></td>
                        </tr>
						 <tr>
                            <td>TUNJANGAN KOMUNIKATIF</td>
                            <td><?php echo $row["tunjangan_komunikatif"]; ?></td>
                        </tr>
						 <tr>
                            <td>TUNJANGAN MAKAN</td>
                            <td><?php echo $row["tunjangan_makan"]; ?></td>
                        </tr>
						 <tr>
                            <td>TUNJANGAN TRANSPORT</td>
                            <td><?php echo $row["tunjangan_transport"]; ?></td>
                        </tr>
						
						 <td >
                                <h4 align = "center" class="alert alert-danger" >DETAIL GAJI BARU</h4>
                            </td>
						<tr>
                            <td>GAJI</td>
                            <td><?php echo $row["gaji_baru"]; ?></td>
                        </tr>
						<tr>
                            <td>TUNJANGAN JABATAN</td>
                            <td><?php echo $row["tunjangan_jabatan_baru"]; ?></td>
                        </tr>
						 <tr>
                            <td>TUNJANGAN OPERASIONAL</td>
                            <td><?php echo $row["tunjangan_operasional_baru"]; ?></td>
                        </tr>
						 <tr>
                            <td>TUNJANGAN KOMUNIKATIF</td>
                            <td><?php echo $row["tunjangan_komunikatif_baru"]; ?></td>
                        </tr>
						<tr>
                            <td>TUNJANGAN MAKAN</td>
                            <td><?php echo $row["tunjangan_makan_baru"]; ?></td>
                        </tr>
						<tr>
                            <td>TUNJANGAN TRANSPORT</td>
                            <td><?php echo $row["tunjangan_transport_baru"]; ?></td>
                        </tr>
						
						
						 <td >
                                <h4 align = "center" class="alert alert-danger">DATA YANG BERTANGGUNG JAWAB</h4>
                         </td>
                         <tr>
                            <td>TANGGAL PENGAJUAN</td>
                            <td><?php echo $row["tanggal_pengajuan"]; ?></td>
                        </tr>
						<tr>
                            <td>NAMA PENANGGUNG JAWAB</td>
                            <td><?php echo $row["nama_penanggung_jawab"]; ?></td>
                        </tr>
						<tr>
                            <td>JABATAN PENANGGUNG JAWAB</td>
                            <td><?php echo $row["jabatan_penanggung_jawab"]; ?></td>
                        </tr>
                      
                           

                       
                    </tbody>

                </table>
                <a href="suratSkUsulanKenaikanGaji.php" class="btn btn-danger">Kembali</a>
            </div>


        <?php
        }
        ?>


</body>

</html>