<!DOCTYPE html>
<html>
<head>
<style type="text/css" media="print">
	table {border: solid 1px #000; border-collapse: collapse; width: 100%}
	tr { border: solid 1px #000}
	td { padding: 7px 5px}
	h3 { margin-bottom: -17px }
	h2 { margin-bottom: 0px }
</style>
<style type="text/css" media="screen">
	table {border: solid 1px #000; border-collapse: collapse; width: 60%}
	tr { border: solid 1px #000}
	td { padding: 7px 5px}
	h3 { margin-bottom: -17px }
	h2 { margin-bottom: 0px }
</style>
</head>
<body>
<table>
	
	
	<tr>
		<td colspan="3" align="center" style="padding: 15px 0"><b style="font-size: 21px;">DAFTAR RENCANA PERJALANAN DINAS JABATAN</b>
	</td>
</tr>
<tr>
<td style="height: 20px" valign="top" colspan="2"><b style="font-size: 15px;">Nomor DRPD :<?=$data_drpd->id_planning?></b>
	</td>
	<td style="height: 20px" valign="top" colspan="2"><b style="font-size: 21px;">Bulan : <?php echo date ('F', strtotime(tgl_jam_sql($data_drpd->tgl_pelaksanaan)))?></b>

	</td>
	
</tr>

	
	
<tr><td style="height: 200px" valign="top" colspan="2">
	<b> Nama Kegiatan :</b><br> <?=$data_drpd->nama_kegiatan?><br><br>
    <b> MAK : </b><br><?=$data_drpd->mak?><br><br>
    <b> Realisasi Anggaran Sebelumnya :</b><br>Rp. <?php  echo number_format ($data_drpd->realisasi_anggaran,0, ".", ".")  ?><br><br>
    <b> Target Output 1 Tahun :</b><br> <?=$data_drpd->target_output_satu_tahun?><br><br>
    <b>Realisasi Output Sebelumnya :</b><br> <?=$data_drpd->realisasi_output_sebelumnya?><br><br>
    <b>Target Output Yang Akan Dicapai : </b><br><?=$data_drpd->output_dicapai?><br><br>
    <b>Kota/Kabupaten/Kecamatan  tujuan : </b><br><?=$data_drpd->tujuan?><br><br>
    <b>Rencana Tanggal Pelaksanaan : </b><br>	<?php echo tgl_jam_sql($data_drpd->tgl_pelaksanaan) ?><br><br>
	
	
	
</td>
	
	<td valign="top" width="50%" style="border-left: solid 1px">
	<b>Pelaksana SPD :</b><br>
	<?php 
	if (!empty($data_pegawai)) {
		foreach ($data_pegawai as $dp) {
			echo "<br>".$dp->nama_pegawai." / ".$dp->nip." / ".$dp->jabatan. "</br>";
			
		}
	}
	?>	
	</td>
</tr>

<tr><td colspan="3" align="center" style="padding: 15px 0"><b style="font-size: 21px;">Rincian Anggaran Yang Dibutuhkan</b></td></tr>

</table>

<table class="table table-bordered">

<thead>
                  <tr>
                    <th style="text-align:center" width = 10 rowspan = "2">Pelaksana SPD</th>
                    <th style="text-align:center" width = 10  colspan="3">Transportasi (1)</th>
				    <th style="text-align:center" width = 10  colspan="3">Uang Harian (2)</th>
					<th style="text-align:center" width = 10  colspan="3">Penginapan (3)</th>
                    <th rowspan = "2">Total 1 + 2 + 3</th>
                  </tr>
                            <tr>
                              
                              <th style="text-align:center" >Berangkat</th>
                              <th style="text-align:center" >Pulang</th>
							  <th style="text-align:center" >Total</th>
                              <th style="text-align:center" >Jumlah Hari</th>
                              <th style="text-align:center" >Nominal</th>
							  <th style="text-align:center" >Total</th>
							  <th style="text-align:center" >Jumlah Hari</th>
                              <th style="text-align:center" >Harga Per Malam</th>
							  <th style="text-align:center" >Total</th>
                            </tr>
                  </thead>
				  <tr>
				  <?php 
                  if (empty($data_anggaran)) {
                    echo "<tr></tr>";
                  } else {
                
                    foreach ($data_anggaran as $b) {
                  ?>
				 
			
                 
                 <td> 
                 <?=$b->nama_pegawai?>
                  
                </td>
				
                  <td>
				  Rp. <?php  echo number_format ($b->trans_berangkat,0, ".", ".")  ?>
                  
                </td>
                    <td>
					Rp. <?php  echo number_format ($b->trans_pulang,0, ".", ".")  ?>
				
                    </td>
                    
					<td>
					Rp. <?php  echo number_format ($b->total_trans,0, ".", ".")  ?>
                    </td>
                    
                    <td>
                    <?=$b->jml_hari_uh?> Hari
                    </td>
                    <td>
                    Rp. <?php  echo number_format ($b->nominal,0, ".", ".")  ?>
                    </td>
					<td>
                    Rp. <?php  echo number_format ($b->total_uh,0, ".", ".")  ?>
                    </td>
					<td>
                    <?=$b->jml_hari_inap?> Hari
                    </td>
					<td>
                    Rp. <?php  echo number_format ($b->harga_per_malam,0, ".", ".")  ?>
                    </td>
					<td>
                    Rp. <?php  echo number_format ($b->total_inap,0, ".", ".")  ?>
                    </td>
					<td>
                    Rp. <?php  echo number_format ($b->total_all,0, ".", ".")  ?>
                    </td>
                  </tr>
                  
                 
				  <?php 
			$no++;
			}
		}
		?> 



<tbody>

</tbody>
</table>


<table>
	
	
	
	
	
	<tr>
	<td style="height: 50px" valign="top" colspan="2">
	<b>Terbilang :</b>
	
	<?php echo ucwords(number_to_words ($data_drpd->total_all_all))?>
	
</td>

	
	<td align="right" valign="top" width="50%" style="border-left: solid 1px">

	<b>Grand Total : Rp. <?php  echo number_format ($data_drpd->total_all_all,0, ".", ".")  ?>
	</td>
</tr>


</table>
<table >
<tr>
<td style="height: 20px"  valign="top">Menyetujui<br>Kepala Balai<br><br><br><br>
	</td>
	<td  style="height: 20px" valign="top" colspan="2">Mengetahui<br>PPK<br><br><br><br>

	</td>
	<td style="height: 20px" valign="top" colspan="2">Palangka Raya, <?php echo tgl_jam_sql($data_drpd->tgl_pelaksanaan) ?><br>Ketua TIM/Kepala Bagian Tata Usaha<br><br><br><br>

	</td>
</tr>
		
	</table>

</body>
</html>