<script type="text/javascript">	
$(document).ready(function() {	
	$("#tabs").tabs({selected:0});
	
	$("#form").load('modul/default/form.php');
	
	$("#tutup").click(function(){
		document.location='?module=home';
	});
});
</script>


<style type="text/css">
#info {
	font-size:12px;
	font-weight:bold;
	color:#F00;
}
</style>
<?php
	
echo "<div id='tabs'>";
echo "<ul>		
	    <li><a href='#data'>INFORMASI DATA STANDAR</a></li>
		<li><a href='#form'>UPDATE DATA STANDAR</a></li>
      </ul>";
	  
	echo "<div id='data'>
		<table align='right'>
			<tr>
				<td>
					<button name='tutup' id='tutup'>Keluar</button>
				</td>
			</tr>
		</table>";
		
		$sql  = "SELECT * FROM standar";
		$query= mysql_query($sql);
		$r	  = mysql_fetch_assoc($query);
		$kwprs=$r[bpjs_kwprs];
		$kwkar=$r[bpjs_kwkar];
		$tkprs=$r[bpjs_tkprs];
		$tkkar=$r[bpjs_tkkar];
		$ptkpwp=$r[ptkp_wp];
		$ptkpis=$r[ptkp_is];
		$ptkpan=$r[ptkp_an];
		$maxanak=$r[max_anak];
		$prosbj=$r[pros_bijab];
		$maxbj=$r[max_bijab];
		$netgaji1=$r[net_gaji1];
		$prospph1=$r[pros_pph1];
		$netgaji2=$r[net_gaji2];
		$prospph2=$r[pros_pph2];
		$netgaji3=$r[net_gaji3];
		$prospph3=$r[pros_pph3];
		$prospph4=$r[pros_pph4];
		$kwtot= $kwprs+$kwkar;
		$tktot= $tkprs+$tkkar;
		
		echo "<p><b>Prosentase Potongan bpjs dari Gaji Pokok :</b></p>
			<table>			
			<tr>
				<td>Kawin</td>			
				<td>--</td>
				<td>Perusahaan</td>
				<td>:</td>
				<td align='right'>".number_format($kwprs,2)." %</td>
			</tr>
			<tr>
				<td></td>
				<td></td>
				<td>Karyawan</td>
				<td>:</td>
				<td align='right'>".number_format($kwkar,2)." %</td>
			</tr>
			<tr>
				<td></td>
				<td></td>
				<td>Total</td>
				<td>:</td>
				<td align='right'>".number_format($kwtot,2)." %</td>
			</tr>
			<tr>
				<td>Tidak Kawin</td>
				<td>--</td>
				<td>Perusahaan</td>
				<td>:</td>
				<td align='right'>".number_format($tkprs,2)." %</td>
			</tr>
			<tr>
				<td></td>
				<td></td>
				<td>Karyawan</td>
				<td>:</td>
				<td align='right'>".number_format($tkkar,2)." %</td>
			</tr>
			<tr>
				<td></td>
				<td></td>
				<td>Total</td>
				<td>:</td>
				<td align='right'>".number_format($tktot,2)." %</td>
			</tr>
			</table>
			<hr>
			
			<p><b>Ketentuan PTKP dan Biaya Jabatan :</b></p>			
			<table>			
			<tr>
				<td>PTKP Wajib Pajak</td>
				<td>: Rp</td>				
				<td align='right'>".number_format($ptkpwp,0)." per tahun</td>
				<td></td>
			</tr>
			<tr>
				<td>Status Kawin</td>
				<td>: Rp</td>				
				<td align='right'>".number_format($ptkpis,0)." per tahun</td>
				<td></td>
			</tr>
			<tr>
				<td>Tanggungan Anak</td>
				<td>: Rp</td>				
				<td align='right'>".number_format($ptkpan,0)." per anak per tahun</td>
				<td>maksimal ".number_format($maxanak,0)." orang</td>
			</tr>
			<tr>
				<td>Biaya Jabatan</td>
				<td>:</td>
				<td align='right'>".number_format($prosbj,2)." % x penghasilan bruto</td>
				<td>maksimal Rp ".number_format($maxbj,0)." per tahun</td>
			</tr>
			</table>			
			<hr>
			
			<p><b>Ketentuan Tarip PPh Pasal 21 :</b></p>			
			<table>
			<tr>
				<td>Penghasilan Netto s/d</td>
				<td>Rp</td>
				<td align='right'>".number_format($netgaji1,0)."</td>
				<td>:</td>
				<td align='right'>".number_format($prospph1,2)." % x Penghasilan Netto</td>
			</tr>			
			<tr>
				<td></td>
				<td>Rp</td>
				<td align='right'>".number_format($netgaji2,0)."</td>
				<td>:</td>
				<td align='right'>".number_format($prospph2,2)." % x Penghasilan Netto - Rp ".number_format($netgaji1,0)."</td>
			</tr>
			<tr>
				<td></td>
				<td>Rp</td>
				<td align='right'>".number_format($netgaji3,0)."</td>
				<td>:</td>
				<td align='right'>".number_format($prospph3,2)." % x Penghasilan Netto - Rp ".number_format($netgaji2,0)."</td>
			</tr>
			<tr>
				<td align='right'>lebih dari</td>
				<td>Rp</td>
				<td align='right'>".number_format($netgaji3,0)."</td>
				<td>:</td>
				<td align='right'>".number_format($prospph4,2)." % x Penghasilan Netto - Rp ".number_format($netgaji3,0)."</td>
			</tr>
		</table>
		<hr>			
		</div>";
		
	echo "<div id='form'></div>";
			
	echo "<div id='info' align='center'></div>";
echo "</div>";
?>