<style type="text/css" media="print">
.table1 {
		border: solid 0px #000; border-collapse: collapse; width: 100%
}
.table1, tr {border: solid 0px #000;}
.table1, tr th{
	font-family:"Bookman Old Style Regular";
		color:black;
		padding: 8px 0;
		font-size: 12px;
}
 
.table1, th, td {
    	font-family:"Bookman Old Style Regular";
		color:black;
		padding: 8px 0;
		font-size: 12px;
		
}
.table1, td, h3 {
    margin-bottom: -17px;
}
.table1, h3, h2 {
    margin-bottom: 0px; 
}




.table2 {border: solid 0px #000; border-collapse: collapse; width: 100%}
.table2, tr {border: solid 0px #000;}
.table2, tr th{
	font-family:"Bookman Old Style Regular";
		
		color:black;
		padding: 8px 0;
		font-size: 16px;
}
 
.table2, th, td {
	font-family:"Bookman Old Style Regular";
		
		color:black;
		padding: 8px 0;
		font-size: 16px;
		
}
.table2, td, h3 {
    margin-bottom: -17px;
}
.table2, h3, h2 {
    margin-bottom: 0px ;
}

.table3 {
	font-size: 10px; border: solid 0px #000; border-collapse: collapse; width: 100%
}
.table3 tr {border: solid 1px #000;}
.table3 tr th{
	font-family:"Bookman Old Style Regular";
		
		color:black;
		font-size: 10px
		background-color: #999;
		padding: 8px 0;
}
 
.table3, th, td {
    padding: 7px 5px;
}
.table3, td, h3 {
    margin-bottom: -17px
}
.table3, h3, h2 {
    margin-bottom: 0px 
}


</style>
<style type="text/css" media="screen">
.table1 {
		border: solid 0px #000; border-collapse: collapse; width: 100%
}
.table1, tr {border: solid 0px #000;}
.table1, tr th{
	font-family:"Bookman Old Style Regular";
		color:black;
		padding: 8px 0;
		font-size: 12px;
}
 
.table1, th, td {
    	font-family:"Bookman Old Style Regular";
		color:black;
		padding: 8px 0;
		font-size: 12px;
		
}
.table1, td, h3 {
    margin-bottom: -17px;
}
.table1, h3, h2 {
    margin-bottom: 0px; 
}




.table2 {border: solid 0px #000; border-collapse: collapse; width: 100%}
.table2, tr {border: solid 0px #000;}
.table2, tr th{
	font-family:"Bookman Old Style Regular";
		
		color:black;
		padding: 8px 0;
		font-size: 16px;
}
 
.table2, th, td {
	font-family:"Bookman Old Style Regular";
		
		color:black;
		padding: 8px 0;
		font-size: 16px;
		
}
.table2, td, h3 {
    margin-bottom: -17px;
}
.table2, h3, h2 {
    margin-bottom: 0px ;
}

.table3 {
	font-size: 5px; border: solid 0px #000; border-collapse: collapse; width: 100%
}
.table3, tr {border: solid 0px #000;}
.table3 tr, th{
	font-family:"Bookman Old Style Regular";
		
		color:black;
		font-size: 10px;
		
		padding: 8px 0;
}
 
.table3, th, td {
    padding: 7px 5px;
}
.table3, td, h3 {
    margin-bottom: -17px
}
.table3, h3, h2 {
    margin-bottom: 0px 
}
	
</style>
<!DOCTYPE html>
<html>
<head>
	<title>Cetak Surat Tugas</title>
	<link rel="stylesheet" type="text/css" href="style.css">
</head>
<br>
<br><br>
<br>
<br>
<body onload="window.print()">
	
	<table class="table1">
		<tr>
			<td  align="center"><strong>SURAT TUGAS</strong></td>
		</tr>
		<tr>
		<tr>
			<td  align="center"><strong>NOMOR : <?php echo ($datpil1->klasifikasi); ?>.21A.<?php echo ($datpil1->untuk); ?>.<?php $data = "$datpil1->tgl_st"; $namafile = substr ($data,5,2); echo $namafile; ?>.<?php $data = "$datpil1->tgl_st"; $namafile = substr ($data,2,2); echo $namafile; ?>.<?php echo ($datpil1->id_st); ?></strong></td>
		</tr>
		</tr>
	</table>	
<br>
	<table class="table2">
		<tr>
			<td style="vertical-align:top; width="5">Menimbang</td>
			<td style="vertical-align:top; width="5">:</td>
			<td style="vertical-align:top; width="5">a</td>
			<td align="justify" width="480">Bahwa   Untuk   Menunjang   Pelaksanaan   Tugas   dan Fungsi Balai Besar Pengawas Obat dan Makanan Di Palangkaraya sebagai  Unit  Pelaksana  Teknis  di Lingkungan Badan POM RI, dipandang Perlu untuk Menerbitkan Surat Tugas.</td>
			
		</tr>
		<tr>
			<td style="vertical-align:top; width="5">Dasar</td>
			<td style="vertical-align:top; width="5">:</td>
			<td style="vertical-align:top; width="5">1.</td>
			<td align="justify" width="480">Peraturan Kepala Badan Pengawas Obat dan Makanan Nomor 23 Tahun 2021 Tentang Perubahan  Atas Peraturan Peraturan Badan Pengawas Obat dan Makanan Nomor 22 Tahun 2022 Tentang Organisasi dan Tata Kerja Unit Pelaksanaan Teknis di Lingkungan Badan Pengawas Obat dan Makanan.</td>
			
		</tr>
		<tr>
			<td style="vertical-align:top; width="5"></td>
			<td style="vertical-align:top; width="5"></td>
			<td style="vertical-align:top; width="5">2.</td>
			<td align="justify" width="480">DIPA Balai Besar POM di Palangka Raya NO.SP.DIPA-063.01.2.432841/2022 Tanggal 17 November 2021, Mata Anggaran : <?php echo ($datpil1->matang); ?></td>
			
		</tr>
		<tr>
			<td style="vertical-align:top; width="5">Kepada</td>
			<td style="vertical-align:top; width="5">:</td>
			<td style="vertical-align:top; width="5"></td>
			<td align="justify" width="480">
			<table  class="table3">
<td align="center" width="0" style="border-style: solid; border-width: 1px">
		<b><font size="2">No  </font></b>  </td>

		<td align="center" width="100" style="border-style: solid; border-width: 1px" >
		<b><font size="2">Nama  </font></b>  </td>
		<td align="center" width="100" style="border-style: solid; border-width: 1px" align="center">
		<b><font size="2">NIP  </font></b>  </td>
		<td align="center" width="100" style="border-style: solid; border-width: 1px" >
		<b><font size="2">Pangkat</font></b></td>
		<td align="center" width="100" style="border-style: solid; border-width: 1px">
		<b><font size="2">Jabatan</font></b></td>

				  <tbody>
			
        <?php 
		if (empty($datpil2)) {
			echo "<tr></tr>";
		} else {
			$no 	= ($this->uri->segment(4) + 1);
			foreach ($datpil2 as $b) {
		?>
                     <td  align="center">
					 <font size="2"><?php echo $no;?></font></td>
                      
                     
                      
                      
                      <td align="left">
					  <font size="2"> <?php echo $b->nama_pegawai?></font></td>
                  
                    
              
                     
					<td align="left">
					<font size="2"> <?php echo $b->nip?></font></td>
                     
                     
                     
                      <td align="left">
					  <font size="2"> <?php echo $b->pangkat?></font></td>
                      
					  <td align="left">
					  <font size="2"> <?php echo $b->jabatan?></font></td>
                      </td>
                     					
											
												 
                                               
                                            </tr>
                                            
                                  
                                           
                                           
                                            
                                            
                                            
                                           
         		<?php 
			$no++;
			}
		}
		?>                                  
                                         
		</tbody>
		
	</table>

			</td>
			
		</tr>
		<tr>
			<td style="vertical-align:top; width="5">Untuk</td>
			<td style="vertical-align:top; width="5">:</td>
			<td style="vertical-align:top; width="5">1.</td>
			<td align="justify" width="480"><?php echo ($datpil1->maksud); ?></td>
			
		</tr>
		<tr>
			<td style="vertical-align:top; width="5"></td>
			<td style="vertical-align:top; width="5"></td>
			<td style="vertical-align:top; width="5">2.</td>
			<td align="justify" width="480"><?php echo round((strtotime($datpil1->akhir_tugas) - strtotime($datpil1->awal_tugas))/(60*60*24) + 1)?> Hari / Tanggal <?php echo tgl_jam_sql($datpil1->awal_tugas); ?> s/d <?php echo tgl_jam_sql($datpil1->akhir_tugas); ?></td>
			
		</tr>
		
	</table>

	<table class="table1">
		<tr>
			<td>Agar  yang  bersangkutan  melaksanakan  tugas  dengan  baik  dan  penuh tanggung jawab.</td>
		</tr>
		
	</table>

<table class="table1" >
<tr >
	<td>
	<div>
	<div>
	<div font face="Bookman Old Style Regular"  style="width:400px;float:right">
		<font size="3">Dikeluarkan di : Palangka Raya<br>
		Pada tanggal : <?php echo tgl_jam_sql($datpil1->tgl_st); ?>
		<br>
		<br>
		<?php echo ($datpil1->kuasa);?> Balai Besar Pengawas Obat dan Makanan
		<br/>
		di Palangka Raya
		<br/>
		<br>
		<br>
		<br>
		<br>
		<?php  echo ($datpil1->nama);  ?><br>
		</font>
		
	</div>
	<div style="clear:both"></div>
</div>
	</td>

	
</tr>
		
	</table>

</body>
</html>
