<script>
function hitung_gaji(){
var jam_lembur = document.transfer.jam_lembur.value;
var uang_lembur = document.transfer.uang_lembur.value;
var gaji = document.transfer.gaji.value;
uang_lembur = ( gaji / 173 ) * jam_lembur;
document.transfer.uang_lembur.value = Math.floor( uang_lembur );
}
</script>
<?php
foreach($row as $result) :
?>
<form method="POST" action="<?= site_url('site/transfer_tambah')?>" name="transfer">
<table>
<tr>
<td width="50">nama </td><td width="190">: <input type="button" name="nm" value="<?= $result['nama_kar'] ?>" ></td>
<td width="120">Bulan Penggajian </td><td width="300">: <input type="text" name="" value="<?= date("F Y") ?>" disabled></td>
</tr>
<tr>
<td width="50">Alamat</td><td width="190">: <input type="text" name="al" value="<?= $result['alamat_kar'] ?>" disabled></td>
<td width="120">Tanggal Transfer </td><td width="300">: <input type="text" name="" value="<?= date("d/m/Y") ?> " disabled></td>
</tr>
<tr>
<td width="50">No Rek</td><td width="190">: <input type="text" name="norek" value="<?= $result['no_rek'] ?> " disabled></td>
<td width="120">Jam Transfer </td><td width="300">: <input type="text" name="" value="<?= date('H:i:s') ?> " disabled></td>
</tr>
<tr>
<td>gaji</td><td>: <input type="text" name="" value="<?= 'Rp.'.number_format($result['gaji_utama'], 0, ", ", "." ); ?> " disabled></td>
<input type="hidden" name="gaji" value="<?=$result['gaji_utama'] ?>">
</tr>
<tr>
<td>Golongan </td><td>: <input type="text" name="gol" value="<?= $result['gol_kar'] ?> " disabled></td>
</tr>
<tr>
<input type="hidden" name="id" value="<?= $result['kary_id'] ?> ">
<input type="hidden" name="bulan" value="<?= date("F Y") ?>" >
<input type="text" name="tgl_transfer" value="<?= date("d/m/Y") ?> " >
<input type="text" name="jam_transfer" value="<?= date('H:i:s') ?> " >
</tr>
</table>
<hr />
<table>
<tr>
<td width="190"> <input type="text" name="jam_lembur" placeholder="isi total lembur" onchange="hitung_gaji()" onkeyup="hitung_gaji()" onkeydown="hitung_gaji()"></td>
<td width="300"> <input type="text" name="uang_lembur" placeholder="uang lembur"></td>
</tr>
<tr>
<td></td><td><input type="submit" name="submit"></td>
<input type="hidden" name="id" value="<?= $result['kary_id'] ?> ">
</tr>
</table>
</form>
<?php
endforeach;
?>
Langganan:
Posting Komentar (Atom)
0 Response to "view content transfer.php"
Posting Komentar