<div  class="container-fluid">
	<div class="row clearfix">
	<?php $detail=mysqli_fetch_array(mysqli_query($GLOBALS["___mysqli_ston"], "SELECT * from karyawan where nik='$_GET[nik]'")); ?>
				<div id="detail">
				<div  class="col-lg-4 col-md-4 col-sm-6 col-xs-12">
                    <div  class="card">
                        <div class="header">
                            <h2>
                               <p align="center"> <img src="../images/logo_nct.png" width="40%"></img> <small></small>
                            </h2>
                            
                        </div>
                        <div class="body"><br/>
						<p align="center"><img align="center" src="../app/images/<?= $detail['foto'];?>" width="40%"></img></p><br/>
						
                        </div>
						<div class="footer">
						<h1><p align="center"><b><?= $detail['nama'];?></b></p></h1>
						<p align="center"><img  align="center" src="controller/barcode.php?text=<?= $_GET['nik'];?>&print=true" width="60%" alt="<?= $_GET['nik'];?>" />
						</p>
                        </div>
                    </div>
                </div>
				</div>
				<div >
				<div class="col-lg-8 col-md-8 col-sm-6 col-xs-12">
                    <div class="card">
                        <div class="header bg-red">
                            <h2>
                                <?= $detail['nama'];?> <small><?= $detail['job_title'];?></small>
                            </h2>
                           
                        </div>
                        <div class="body">
                           <ul align="left">
                                <li>ID Karyawan :  <?= $detail['nik'];?></li>
                                <li>Nama :  <?= $detail['nama'];?></li>
                                <!--<li>Status Siswa :  <?= $detail['job_title'];?></li>
                                <li>Orang Tua :  <?= $detail['no_telp'];?></li>
                                <li>Status :  <?= $detail['agama'];?></li>
                                <li>Pekerjaan :  <?= $detail['jenis_kelamin'];?></li>-->
                                <li>Lokasi :  <?= $detail['lokasi'];?></li>
                                <li>Area :  <?= $detail['area'];?></li>
                                <li>Sub Area :  <?= $detail['sub_area'];?></li>
                                <!--<li>Start Date :  <?= $detail['start_date'];?></li>
                                <li>End Date :  <?= $detail['end_date'];?></li>-->
                                
                            </ul>
							</div>
                    </div>
                </div>
				</div>
				<div class="col-lg-8 col-md-8 col-sm-6 col-xs-12">
				<script>
								function printContent(el){
								var restorepage = document.body.innerHTML;
								var printcontent = document.getElementById(el).innerHTML;
								document.body.innerHTML = printcontent;
								window.print();
								document.body.innerHTML = restorepage;
								}
								</script>
								<a onClick="printContent('detail')" target="_new" class="btn btn-success"> <i class="material-icons">print</i>
                                    <span>PRINT</span></a>
				</div>				
	</div>
</div>	