<?php
header("Cache-Control: ");// leave blank to avoid IE errors
header("Pragma: ");// leave blank to avoid IE errors
header("Content-type: application/octet-stream");
header("content-disposition: attachment;filename=$judulDoc.doc"); 
?>
<html xmlns:v="urn:schemas-microsoft-com:vml"
xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:w="urn:schemas-microsoft-com:office:word"
xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=utf-8">
<meta name=ProgId content=Word.Document>
<meta name=Generator content="Microsoft Word 9">
<meta name=Originator content="Microsoft Word 9">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<title>Jadwal Sidang</title>
<!--[if gte mso 9]><xml>
 <w:WordDocument>
  <w:View>Print</w:View>
  <w:DoNotHyphenateCaps/>
  <w:PunctuationKerning/>
  <w:DrawingGridHorizontalSpacing>9.35 pt</w:DrawingGridHorizontalSpacing>
  <w:DrawingGridVerticalSpacing>9.35 pt</w:DrawingGridVerticalSpacing>
 </w:WordDocument>
</xml><![endif]-->
<style>
</head>
<body>
<?php echo $namaSatker;?><br>
JADWAL SIDANG <br>BERDASARKAN MAJELIS : <br><?php echo $namaHakim;?><br><br>TANGGAL : <?php echo $tanggal;?><br>

<table border=1>
  <thead>
		<tr>
			<th>No</th>
			<th>Antrian </th>
			<th>Nomor Perkara <br>Nama Pihak </th>
			<th>Nama PP </th>
			<th>Tanggal Tundaan </th>
			<th>Tanggal Putusan</th>
			<th>Alasan Tunda</th>
			<th>Agenda</th>
		</tr>
	</thead>
	<tbody>
	<?php  if(!empty($jadwalsidangmajelis)) { $no=1;
		foreach($jadwalsidangmajelis->result() as $rows) { ?> 
		   <tr><td><?php echo $no; ?></td>
			   <td><?php echo ''; ?></td>
			   <td><?php echo "<b>".$rows->nomor_perkara." </b><br>".$rows->para_pihak; ?></td>
			   <td><?php echo "<b>".$rows->panitera_pengganti_id." </b><br>".$rows->panitera_pengganti_text; ?></td>
			   <td></td>
			   <td></td>
			   <td></td>
			   <td><?php echo $rows->agenda; ?></td>
			</tr>
	   
			<?php  
			$no++;}
	   } ?>
		</tbody>
	</table>
</body>
</html>