<?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_demosi 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 DEMOSI 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_kerja"]; ?></td>
                        </tr>
		                    <td >
                                <h4 align = "center">DATA LAMA</h4>
                            </td>
                        <tr>
                            <td>JABATAN LAMA</td>
                            <td><?php echo $row["divisi_lama"]; ?></td>
                        </tr>
						
						
						
						<tr>
                            <td>DIVISI LAMA</td>
                            <td><?php echo $row["jabatan_lama"]; ?></td>
                        </tr>
						 <td >
                                <h4 align = "center">DATA BARU</h4>
                            </td>
						<tr>
                            <td>JABATAN BARU</td>
                            <td><?php echo $row["divisi_baru"]; ?></td>
                        </tr>
						
						<tr>
                            <td>DIVISI BARU</td>
                            <td><?php echo $row["jabatan_baru"]; ?></td>
                        </tr>
						
						 <td >
                                <h4 align = "center">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="monitoringUsulanDemosi.php" class="btn btn-danger">Kembali</a>
            </div>


        <?php
        }
        ?>


</body>

</html>