<style>
h2,h1,h3{ padding:0;margin:0;}
h1 {font-size:22px;font-weight:bold}
h2 {font-size:22px;font-weight:normal}
#wrapper {
	width:780px;
	margin:0 auto;
}
#ol {margin:0}
#logo {
	width:95px;
	float:left;	
}
hr{border-bottom: 5px double #000;}
#cop {
	float:left;width:600px;text-align:center;
}

#kodepos{clear:both;text-align:right}
#header {clear:both;text-align:center}
</style>
<div id="wrapper">
<div id="logo"><img src="../../logo.jpg" width="95" height="100"></div>
<div id="cop">
  <h2>PEMERINTAH KABUPATEN KEPULAUAN MERANTI</h2>
  <h1>SEKRETARIAT DAERAH</h1>
  Jalan Dorak No. 01 Telp. 0763 - 434714 Fax. 0763 -434715<br>
  SELATPANJANG
</div>
<div id="kodepos">Kode Pos : 28753</div>
<hr>
<?php
include "../../config/koneksi.php";
$qry=mysqli_query($GLOBALS["___mysqli_ston"], "Select * FROM spt WHERE id_spt='$_GET[id]'");
$r=mysqli_fetch_array($qry);
echo "
<div id='header'>
<h2><u>SURAT PERINTAH TUGAS</u></h2>
NOMOR : &nbsp;&nbsp;&nbsp;&nbsp;  /$r[no_spt]
<div id='isi'>
<table>
<tr><td width='180' valign='top'>Menimbang</td><td>Bahwa untuk kelancaran dalam $r[tugas]</td></tr>
<tr><td valign='top'>Dasar</td><td> 
<ol style='padding:0;margin-left:0'>
$r[dasar_hukum]
</ol>
</td></tr>
</table>
<h1>MEMERINTAHKAN</h1></div>
<div style='float:left'>Kepada :</div><br>";

$value= explode("-",$r['id_pegawai']);
$no=0;
echo "<ol>";
for ($i=0;$i<count($value);$i++) {
	$data=$value[$i];
	$no++;
	$qs=mysqli_query($GLOBALS["___mysqli_ston"], "Select * from pegawai,golongan WHERE id_pegawai='$data' AND golongan.id_golongan=pegawai.id_golongan");
	$t=mysqli_fetch_array($qs); 
	
	echo "<table>
			<tr><td width=250>$no.Nama/NIP			</td><td>: <b> $t[nama]</b>/$t[nip]</td></tr>
		     <tr><td>&nbsp; &nbsp;Pangkat/Golongan Ruang	</td><td>: $t[pangkat]/$t[golongan]</td></tr>
			 <tr><td>&nbsp; &nbsp;Jabatan					</td><td>: $t[jabatan]</td></tr>
			 <tr><td>&nbsp; &nbsp;Unit Kerja				</td><td>: $t[unitkerja]</td></tr></table>";		
}
echo "</ol>";
echo "<div style='float:left;width:50px;'>Untuk :</div>";
echo "<div style='float:left;width:730px;padding:0'>$r[tugas]</div>";

?>
</div>
<div style="width:300px;float:right;margin-top:10px;">
DIKELUARKAN 	: DISELATPANJANG<br>
PADA TANGGAL  :<br>
<div style="text-align:center;font-weight:bold">
An.BUPATI KEPULAUAN MERANTI<br>
SEKRETARIS DAERAH</p>
<p>&nbsp;</p>
<p><u>Drs. H. IQARUDDIN, M.Si</u><br>
  Pembina Utama Madya<br>
NIP. 19601012 198903 1 005</p></div>
</div>

</div>
