当前位置: 首页>>代码示例>>PHP>>正文


PHP pegawai函数代码示例

本文整理汇总了PHP中pegawai函数的典型用法代码示例。如果您正苦于以下问题:PHP pegawai函数的具体用法?PHP pegawai怎么用?PHP pegawai使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了pegawai函数的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: m_idpegawai_list

function m_idpegawai_list($KdUnitKerja, $wordkey = "", $aktif = 0, $sort_by)
{
    if ($aktif == 1) {
        if ($wordkey == "") {
            $query = m_idpegawai("KdUnitKerja LIKE '" . $KdUnitKerja . "%'", $sort_by);
        } else {
            $query = pegawai("(KdUnitKerja LIKE '" . $KdUnitKerja . "%') AND (Nib LIKE '%" . $wordkey . "%' OR \r\n\t\t\t\t\tNip LIKE '%" . $wordkey . "%' OR NamaLengkap LIKE '%" . $wordkey . "%')", $sort_by);
        }
    } else {
        if ($wordkey == "") {
            $query = m_idpegawai("KdUnitKerja LIKE '" . $KdUnitKerja . "%' AND (KdStatusPeg = '1' OR KdStatusPeg = '2')", $sort_by);
        } else {
            $query = m_idpegawai("(KdUnitKerja LIKE '" . $KdUnitKerja . "%') AND (Nib LIKE '%" . $wordkey . "%' OR \r\n\t\t\t\t\tNip LIKE '%" . $wordkey . "%' OR NamaLengkap LIKE '%" . $wordkey . "%') AND (KdStatusPeg = '1' OR \r\n\t\t\t\t\tKdStatusPeg = '2')", $sort_by);
        }
    }
    return $query;
}
开发者ID:abbeet,项目名称:server39,代码行数:17,代码来源:sik.php

示例2: mysql_fetch_object

    }
    return $selisih - $jumlahlibur1 - $libur2;
}
$no = 0;
$pegawaicari = mysql_fetch_object(mysql_query("SELECT * FROM pegawai where NIP_PEGAWAI='{$NIP_PEGAWAIH}'"));
$query = mysql_query("SELECT * FROM pegawai WHERE STATUS_PEGAWAI='Tetap' and KODE_PEGAWAI='{$pegawaicari->KODE_PEGAWAI}'") or die(mysql_error());
while ($objectdata = mysql_fetch_object($query)) {
    $totalgaji = 0;
    $totaljam = 0;
    $totaljamlembur = 0;
    $totallembur = 0;
    $subtotalgaji = 0;
    $no++;
    /* batas  */
    $NIP = $objectdata->NIP_PEGAWAI;
    $data = pegawai($NIP);
    $kp = $data->KODE_PEGAWAI;
    $jabatan = jabatan($data->KODE_JABATAN);
    $departemen = departemen($data->KODE_DEPARTEMEN);
    $KODE_DEPARTEMEN = $objectdata->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 = gethutangrekap($kp, $BULAN, $TAHUN);
    $gaji_pokok = $data->GAJI_POKOK;
    $tabungan = $objectdata->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);
开发者ID:smilescripts,项目名称:pegawai_consina,代码行数:31,代码来源:penggajian.databulanan.php

示例3: get_atasan

function get_atasan($nip)
{
    $Pegawai = pegawai_id($nip);
    if ($Pegawai->status_jab == 1) {
        $kode_bidang = $Pegawai->kode_bidang;
        $cek = substr($kode_bidang, -2);
        if ($cek == '00') {
            $query = pegawai("kode_bidang LIKE '" . substr($kode_bidang, 0, 2) . "10'");
        } else {
            $cek = substr($kode_bidang, -1);
            if ($cek != '0') {
                $query = pegawai("kode_bidang LIKE '" . substr($kode_bidang, 0, 3) . "0' AND status_jab = '1'");
            } else {
                $query = pegawai("kode_bidang LIKE '" . substr($kode_bidang, 0, 2) . "00' AND status_jab = '1'");
            }
        }
    } else {
        $query = pegawai("kode_bidang LIKE '" . $Pegawai->kode_bidang . "' AND status_jab = '1'");
    }
    $result = mysql_fetch_object($query);
    return $result;
}
开发者ID:abbeet,项目名称:server39,代码行数:22,代码来源:siapp.php

示例4: gettunjangan

function gettunjangan($NIP)
{
    $datapeg = pegawai($NIP);
    $gajipokok = $datapeg->GAJI_POKOK;
    $dataumt = jabatan($datapeg->KODE_JABATAN);
    $umt = $dataumt->NOMINAL_UMT;
    $TUNJANGAN_LAIN = $datapeg->TUNJANGAN_LAIN;
    $gjlembur = gajilembur($NIP);
    $tmptunjanganlain = array();
    $tmptunjanganlain = explode(",", $TUNJANGAN_LAIN);
    $querytunjangan = mysql_query("select sum(NOMINAL) as tunjangan from master_tunjangan where KODE_MASTER_TUNJANGAN IN({$TUNJANGAN_LAIN})");
    $gettunjangan = mysql_fetch_object($querytunjangan);
    $tunjangan = $gettunjangan->tunjangan;
    $tunjangannya = $tunjangan;
    return $tunjangannya;
}
开发者ID:smilescripts,项目名称:pegawai_consina,代码行数:16,代码来源:function_hitunggaji.php


注:本文中的pegawai函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。