<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>gaji</title>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<style media="all" type="text/css">
@import "../admin/all.css";
</style>
</head>
<body>
<div id="main">
<div id="header"></div>
<div id="middle">
<div id="left-column">
<h3>Menu</h3>
<ul class="nav">
<li><a href="../upembuat.php">Home</a></li>
<li><a href="gaji.php">Entry Gaji </a></li>
<li><a href="slip_gaji.php">Data Slip Gaji</a></li>
</ul>
<a href="../logout.php?upembuat" class="link">Keluar</a></div>
<div id="center-column">
<div class="table"> <img src="../admin/img/bg-th-left.gif" width="8" height="7" alt="" class="left" /> <img src="../admin/img/bg-th-right.gif" width="7" height="7" alt="" class="right" />
<form name="form_gaji" method="post" action="simpan_gaji.php" onSubmit="return validasi(this)">
<table class="listing form" cellpadding="0" cellspacing="0">
<tr>
<th colspan="3" align="center" class="full">Entry GAJI</th>
</tr>
<tr>
<td class="first" width="190"><strong>NIP</strong></td>
<td width="33" class="last"> </td>
<td width="388" class="last"><?php
echo "<select name=txtnip>
<option value=0 selected>-Pilih Nip Karyawan-</option>";
include "../Library/koneksi.php";
$sqlfak = mysql_query("select * from pegawai_tetap order by nip");
while ($data= mysql_fetch_array($sqlfak))
{
echo "<option value=$data[nip]>$data[nip]</option>";
}
echo "</select>";
?></td>
</tr>
<tr class="bg">
<td class="first"><strong>Nama </strong></td>
<td class="last"> </td>
<td class="last"><input type="text" class="text" name="nama" readonly/></td>
</tr>
<tr class="bg">
<td class="first"><strong>Jabatan</strong></td>
<td class="last"> </td>
<td class="last"><input type="text" class="text" name="nama2"/></td>
</tr>
<tr class="bg">
<td class="first"><strong>Golongan</strong></td>
<td class="last"> </td>
<td class="last"><input type="text" class="text" name="nama"/></td>
</tr>
<tr class="bg">
<td class="first"><strong>Gaji Pokok</strong></td>
<td class="first">Rp.</td>
<td class="first"><span class="last">
<input type="text" class="text" name="nama4"/>
</span></td>
</tr>
<tr class="bg">
<td class="first"><strong>Tunjangan Fungsional</strong></td>
<td class="last"> </td>
<td class="last"><input type="text" class="text" name="nama"/></td>
</tr>
<tr class="bg">
<td class="first"><strong>Potongan Taperium</strong></td>
<td class="last"> </td>
<td class="last"><input type="text" class="text" name="nama"/></td>
</tr>
<tr class="bg">
<td class="first"><strong>Tunjangan Anak</strong></td>
<td class="last"> </td>
<td class="last"><input type="text" class="text" name="nama"/></td>
</tr>
<tr class="bg">
<td class="first"><strong>Tunjangan Beras</strong></td>
<td class="last"> </td>
<td class="last"><input type="text" class="text" name="nama"/></td>
</tr>
<tr class="bg">
<td class="first"><strong>Tunjangan Keluarga </strong></td>
<td class="first"> </td>
<td class="first"><span class="last">
<input type="text" class="text" name="nama3"/>
</span></td>
</tr>
<tr class="bg">
<td class="first"><strong>Tunjangan Pajak</strong></td>
<td class="last"> </td>
<td class="last"><input type="text" class="text" name="nama"/></td>
</tr>
<tr class="bg">
<td class="first"><strong>Tunjangan Istri</strong></td>
<td class="last"> </td>
<td class="last"><input type="text" class="text" name="nama"/></td>
</tr>
<tr class="bg">
<td class="first"><strong>Potongan IWP</strong></td>
<td class="last"> </td>
<td class="last"><input type="text" class="text" name="nama"/></td>
</tr>
<tr class="bg">
<td class="first"><strong>Jumlah Potongan</strong></td>
<td class="last"> </td>
<td class="last"><input type="text" class="text" name="nama5"/></td>
</tr>
<tr class="bg">
<td class="first"><strong>Gaji Kotor</strong></td>
<td class="last">Rp.</td>
<td class="last"><input type="text" class="text" name="nama"/></td>
</tr>
<tr class="bg">
<td class="first"><strong>Gaji Bersih</strong></td>
<td class="last">Rp.</td>
<td class="last"><input type="text" class="text" name="nama"/></td>
</tr>
<tr class="bg">
<td></td>
<td> </td>
<td><input type="submit" name="save" value="SIMPAN" /></td>
</tr>
</table>
<p> </p>
<div class="table">
<H3 align="center">LAPORAN DATA GAJI PEGAWAI</H3>
<table width="659" cellpadding="0" cellspacing="0" class="listing">
<tr>
<th width="60" height="38" class="first">No</th>
<th width="103">NIP </th>
<th width="70">Nama </th>
<th width="69">Jabatan </th>
<th width="68">Golongan </th>
<th width="63">Gaji Pokok </th>
<th width="60">Gaji Kotor </th>
<th width="58">Gaji Bersih </th>
<th width="60">Aksi</th>
</tr>
<?php
include "../library/koneksi.php";
$sql1 = "select * from daftar_gaji order by nip";
$query1 = mysql_query($sql1);
$nomor=0;
while($data1 = mysql_fetch_array($query1))
{
$nomor++;
echo "<tr>";
echo "<td>$nomor</td>";
echo "<td>$data1[nip]</td>";
echo "<td>$data1[nama]</td>";
echo "<td>$data1[jabatan]</td>";
echo "<td>$data1[golongan]</td>";
echo "<td>$data1[gaji_pokok]</td>";
echo "<td>$data1[gaji_kotor]</td>";
echo "<td>$data1[gaji_bersih]</td>";
?>
<td><a href="../admin/form_update_jabatan.php?Ubahid=<?php echo $data1[id_jabatan]?>"><img src='../img/edit-icon.gif'></img> </a>|
<a href="../admin/delete_jabatan.php?Hapusid=<?php echo $data1[id_jabatan] ?>" onClick="return confirm('Anda Yakin Hapus Data dengan No_=<?php echo $data1[no] ?>')"><img src='../img/hr.gif'></img> </a></td>
<?php
echo "</tr>";
}
?>
</table>
<p><a href="../laporan/laporan_gaji_karyawan.php"><img src="../images/printer.gif" width="54" height="41" alt="print" /></a></p>
</form>
</div>
<p> </p>
</div>
</div>
<div id="footer"></div>
</div>
</body>
</html>