$nominal_pemotongan_tambah = $nominal_pemotongan; } if ($nominal_penambahan != "") { $nominal_penambahan_tambah = $nominal_penambahan; } $NIP = $datapegawai->NIP_PEGAWAI; $data = pegawai($NIP); $kp = $data->KODE_PEGAWAI; $jabatan = jabatan($data->KODE_JABATAN); $departemen = departemen($data->KODE_DEPARTEMEN); $KODE_DEPARTEMEN = $datapegawai->KODE_DEPARTEMEN; $pinjaman = mysql_query("select SUM(CICILAN_PERBULAN) as CICILAN_PERBULAN from pinjaman where KODE_PEGAWAI='{$kp}' and SISA_CICILAN >'0'"); $getpinjaman = mysql_fetch_object($pinjaman); $nominalpinjaman = $getpinjaman->CICILAN_PERBULAN; $sisa_cicilan = $getpinjaman->SISA_CICILAN; $hutang = gethutang($kp, $BULAN, $TAHUN); $tokohutang = gethutangtoko($kp, $BULAN, $TAHUN); $gaji_pokok = $pgrade_bekasi->NOMINAL_GRADE; $lembur = number_format(nominalumt(gajilembur($NIP))); $tabungan = $nominaltabungan; $tanggal_gaji = date("Y-m-d"); $query = "SELECT max(kode_penggajian) as idMaks FROM head_penggajian"; $hasil = mysql_query($query); $data = mysql_fetch_array($hasil); $nim = $data['idMaks']; $noUrut = (int) substr($nim, 9, 5); $noUrut++; $inisial = date('d/m/') . 'GH-'; $w = $inisial; $IDbaru = $char . sprintf("%05s", $noUrut); $getkode = $w . $IDbaru;
$NIP = $datapegawai->NIP_PEGAWAI; $data = pegawai($NIP); $kp = $data->KODE_PEGAWAI; $jabatan = jabatan($data->KODE_JABATAN); $departemen = departemen($data->KODE_DEPARTEMEN); if ($KODE_DEPARTEMEN == "all") { $KODE_DEPARTEMEN = $datapegawai->KODE_DEPARTEMEN; } if ($KODE_DEPARTEMEN != "all") { $KODE_DEPARTEMEN = $datapegawai->KODE_DEPARTEMEN; } $pinjaman = mysql_query("select * from pinjaman where KODE_PEGAWAI='{$kp}' and SISA_CICILAN!='0'"); $getpinjaman = mysql_fetch_object($pinjaman); $nominalpinjaman = $getpinjaman->CICILAN_PERBULAN; $sisa_cicilan = $getpinjaman->SISA_CICILAN; $hutang = gethutang($kp); $gaji_pokok = $data->GAJI_POKOK; $lembur = number_format(nominalumt(gajilembur($NIP))); $tabungan = $jabatan->NOMINAL_TABUNGAN; $tanggal_gaji = date("Y-m-d"); $query = "SELECT max(kode_penggajian) as idMaks FROM head_penggajian"; $hasil = mysql_query($query); $data = mysql_fetch_array($hasil); $nim = $data['idMaks']; $noUrut = (int) substr($nim, 3, 3); $noUrut++; $inisial = "P"; $w = $inisial . date('m'); $IDbaru = $char . sprintf("%03s", $noUrut); $getkode = $w . $IDbaru; $tipe = $_POST["tipe"];
0% { opacity: 1.0; } 50% { opacity: 0.0; } 100% { opacity: 1.0; } } </style> <?php include "../panel/include/function_hitunggaji.php"; $NIP1 = $_GET["NIP"]; $get = mysql_query("select * from pegawai where KODE_PEGAWAI='{$NIP1}'"); $view = mysql_fetch_object($get); $NIP = $view->NIP_PEGAWAI; $data = pegawai($NIP); $jabatan = jabatan($data->KODE_JABATAN); $departemen = departemen($data->KODE_DEPARTEMEN); $hutang = gethutang($NIP); $taggal = date("Y-m-d"); $queryabsensi_data = mysql_query("SELECT * FROM absensi where TANGGAL='{$taggal}' and NIP_PEGAWAI='{$NIP1}'") or die(mysql_error()); $objectdata = mysql_fetch_object($queryabsensi_data); $queryjam = mysql_query("SELECT * FROM jam_kerja WHERE KODE_JAM_KERJA=" . $objectdata->KODE_JAM_KERJA) or die(mysql_error()); $tampiljam = mysql_fetch_object($queryjam); $jammasukkantor = new DateTime($tampiljam->JAM_DATANG); $jammasukpegawai = new DateTime($objectdata->JAM_MASUK); $cek = $jammasukpegawai->diff($jammasukkantor)->format('%i'); $terlambat = $jammasukpegawai->diff($jammasukkantor)->format('%h jam %i menit '); ?> <script> $(function () { $('#container2').highcharts({ chart: {