<?php
ini_set("max_execution_time", 0);
header("Content-Disposition: attachment; filename=\"Laporan pasien Laborat ".$foll." ".tgl_id_short($tglaw)."-".tgl_id_short($tglak).".xls\"");
header("Content-type: application/vnd.ms-excel"); 
?>
<!DOCTYPE html>
<html lang="en">
	<head>		
		<meta http-equiv="" content="" />
		<title></title>
	</head>

	<body class="no-skin">
		<h2 align="center">Laporan Data Pasien Laboratorium</h2>
		<h4 align="center">Periode : <?php echo tgl_id($tglaw);?> s/d <?php echo tgl_id($tglak);?></h4>
		<table border="1" align="center">
			<thead>
				<tr>
					<th>No</th>
					<th>No Registrasi</th>
					<th class="hidden-480">Tanggal</th>
					<th>No RM</th>
					<th>Nama</th>
					<th class="">Pemeriksaan</th>
					<th class="">Followup</th>
					<th class="">Penjamin</th>
					<th class="hidden-480">Dokter Perujuk</th>
					<th class="hidden-480">petugas</th>
				</tr>
			</thead>

			<tbody>
			<?php $no=1;												
			foreach($dtregist as $dtk){ 
				if($dtk->FollowUp=='1'){
					$follow='Rajal';
				}else{
					$follow='Ranap';
				}
			?>
				<tr>
					<td><?php echo $no;?></td>
					<td class="hidden-480"><?php echo $dtk->PendaftaranID;?></a></td>
					<td class="hidden-480"><?php echo $dtk->LabTanggal;?></a></td>
					<td class=""><?php echo $dtk->NoRM;?></td>
					<td class=""><?php echo $dtk->Nama.", ";?> <font color="#d90000"><strong><?php echo $dtk->Item;?></strong></font></td>
					<td class="hidden-480"><?php echo $dtk->LabDesc;?></td>
					<td class=""><?php echo $follow;?></td>
					<td class="hidden-480"><?php echo $dtk->penjamin;?></td>
					<td class="hidden-480"><?php echo $dtk->Dokter;?></td>
					<td class="hidden-480"><?php echo $dtk->byUser;?></td>
				</tr>
			<?php $no++; } ?>
				
			</tbody>
		</table>
	</body>
</html>