Home » Belenggu Hati » MENHITUNG GAJI BERSIH KARYAWAN DENGAN PHP MY SQL

MENHITUNG GAJI BERSIH KARYAWAN DENGAN PHP MY SQL


Formhitunggajibersih.php

TUGAS 2

HITUNG GAJI
NIP
Jabatan

Staff
Supervisor
Kepala Bagian
Manajer

Jenis Kelamin Pria
Wanita

Status Pernikahan Single
Menikah
Duda/janda

Potongan
Gaji Bersih

hitunggajibersih.php
<?php
{
if($_POST['hitung']=='Proses')
{
$nip=$_POST['nip'];
$pot=$_POST['pot'];

{
if ($_POST['jab']=="4")
$tunj_jab=0.3*1000000;
if ($_POST["jab"]=="3")
$tunj_jab=0.2*750000;
if ($_POST["jab"]=="2")
$tunj_jab=0.1*500000;
if ($_POST["jab"]=="1")
$tunj_jab=0;

if ($_POST['jab']=="4")
$gapok=1000000;
if ($_POST["jab"]=="3")
$gapok=750000;
if ($_POST["jab"]=="2")
$gapok=500000;
if ($_POST["jab"]=="1")
$gapok=350000;
}
if ($_POST["status"]=="2")
if ($_POST["jk"]=="1")
$tunj_kel=0.25*$gapok;
else $tunj_kel=0;

$gaji_bersih=$gapok+$tunj_jab+$tunj_kel-$pot;
echo "

HASIL

“;
echo “

NIP = “.$nip.”

“;
echo “

Gaji Pokok = Rp”.$gapok.”

“;
echo “

Tunjangan Jabatan = Rp”.$tunj_jab.”

“;
echo “

Tunjangan Keluarga = Rp”.$tunj_kel.”

“;
echo “

Potongan = “.$pot.”

“;
echo “

Gaji Bersih = Rp”.$gaji_bersih.”

“;
}
}
?>


Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s