<html lang="en">

<head>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>KARYAWAN</title>

    <!-- Custom fonts for this template -->
	<link href="https://fonts.googleapis.com/css?family=Nunito:200,200i,300,300i,400,400i,600,600i,700,700i,800,800i,900,900i" rel="stylesheet">



    <!-- Custom styles for this template -->
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">


    <link rel="stylesheet" href="https://cdn.datatables.net/1.10.19/css/dataTables.bootstrap.min.css">

    <!-- Custom styles for this page -->
</head>

<body>

    <?php 
        // fungsi header dengan mengirimkan raw data excel
        header("Content-type: application/vnd-ms-excel");
        // membuat nama file ekspor "export-to-excel.xls"
        header("Content-Disposition: attachment; filename=employee-information.xls");
    ?>

	<table class="table table-striped table-hover" id="Personal" width="100%" cellspacing="0">
		<thead>
			<tr>
				<th>NO</th>
				<th>NIK</th>
				<th>NOREG</th>
				<th>NAMA</th>
				<th>TGL JOIN</th>
				<th>TGL RESIGN</th>
				<th>TGL AKHIR KONTRAK</th>
				<th>POSISI KERJA</th>
				<th>LOKASI KERJA</th>
				<th>DEPARTEMENT</th>
				<th>PERUSAHAAN</th>
				<th>STATUS</th>
			</tr>
		</thead>
			<?php 
				include "../koneksi.php";

				// Buat query untuk menampilkan data sesuai limit yang ditentukan
				include "Table-Emp-Info.php";
			?>
	</table>
</body>
</html>