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


PHP makeOption函数代码示例

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


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

示例1: Header

 function Header()
 {
     global $conn;
     global $dbname;
     global $userid;
     global $kdOrg;
     global $tgl;
     global $tppot;
     global $optTipePot;
     $sInduk = "select induk from " . $dbname . ".organisasi where kodeorganisasi='" . $kdOrg . "'";
     $qInduk = mysql_query($sInduk) or die(mysql_error());
     $rInduk = mysql_fetch_assoc($qInduk);
     // $str1="select * from ".$dbname.".organisasi where kodeorganisasi='".$rInduk['induk']."'";
     $str1 = "select * from " . $dbname . ".organisasi where kodeorganisasi='" . $_SESSION['org']['kodeorganisasi'] . "'";
     $res1 = mysql_query($str1);
     while ($bar1 = mysql_fetch_object($res1)) {
         $nama = $bar1->namaorganisasi;
         $alamatpt = $bar1->alamat . ", " . $bar1->wilayahkota;
         $telp = $bar1->telepon;
     }
     $optTipePot = makeOption($dbname, 'sdm_ho_component', 'id,name');
     $optNmOrg = makeOption($dbname, 'organisasi', 'kodeorganisasi,namaorganisasi');
     $sIsi = "select * from " . $dbname . ".sdm_potonganht where \r\n\t\t\t   kodeorg='" . $kdOrg . "' and periodegaji='" . $tgl . "' and tipepotongan='" . $tppot . "'";
     $qIsi = mysql_query($sIsi) or die(mysql_error());
     $rIsi = mysql_fetch_assoc($qIsi);
     $sOrg = "select namaorganisasi from " . $dbname . ".organisasi where kodeorganisasi='" . $rIsi['kodeorg'] . "'";
     $qOrg = mysql_query($sOrg) or die(mysql_error());
     $rOrg = mysql_fetch_assoc($qOrg);
     $path = 'images/logo.jpg';
     $this->Image($path, 15, 10, 20);
     $this->SetFont('Arial', 'B', 10);
     $this->SetFillColor(255, 255, 255);
     $this->SetX(40);
     $this->Cell(60, 5, $nama, 0, 1, 'L');
     $this->SetX(40);
     $this->MultiCell(150, 5, $alamatpt, 0);
     //$this->Cell(60,5,$alamatpt,0,1,'L');
     $this->SetX(40);
     $this->Cell(60, 5, "Tel: " . $telp, 0, 1, 'L');
     $this->Ln();
     $this->SetFont('Arial', 'B', 8);
     $this->Cell(20, 5, '', '', 1, 'L');
     // $this->Cell(20,5,$nama,'',1,'L');
     $this->SetFont('Arial', '', 8);
     //$this->Line(10,30,200,30);
     $akhirY = $this->GetY() - 5;
     $this->Line(10, $akhirY, 200, $akhirY);
     $akhirYline = $this->GetY();
     $this->SetY($akhirYline);
     $this->Cell(15, 5, $_SESSION['lang']['unit'], '', 0, 'L');
     $this->Cell(2, 5, ':', '', 0, 'L');
     $this->Cell(175, 5, $rIsi['kodeorg'] . "  " . $optNmOrg[$rIsi['kodeorg']], '', 1, 'L');
     $this->Cell(15, 5, $_SESSION['lang']['periode'], '', 0, 'L');
     $this->Cell(2, 5, ':', '', 0, 'L');
     $this->Cell(175, 5, $tgl, '', 1, 'L');
     $this->Cell(15, 5, $_SESSION['lang']['potongan'], '', 0, 'L');
     $this->Cell(2, 5, ':', '', 0, 'L');
     $this->Cell(175, 5, $optTipePot[$rIsi['tipepotongan']], 0, 1, 'L');
     $this->Ln();
 }
开发者ID:halimc17,项目名称:magsys,代码行数:60,代码来源:sdm_slave_potonganPdf.php

示例2: countKode

function countKode()
{
    global $dbname;
    global $conn;
    global $regional;
    $optReg = makeOption($dbname, 'bgt_regional', 'regional,kodepenerimaankaryawan');
    $sCount = "select substring(kode,2,3) as kodeku from " . $dbname . ".sdm_5uangmukapjd where regional = '" . $regional . "' order by kode desc limit 1";
    $qCount = mysql_query($sCount) or die(mysql_error($conn));
    $rCount = mysql_fetch_assoc($qCount);
    $nextKode = $optReg[$regional] . "" . addZero($rCount['kodeku'] + 1, 3);
    return $nextKode;
}
开发者ID:halimc17,项目名称:magsys,代码行数:12,代码来源:sdm_slave_5uangmukapjd.php

示例3: tanggalsystem

<?php

require_once 'master_validation.php';
require_once 'config/connection.php';
require_once 'lib/nangkoelib.php';
require_once 'lib/zLib.php';
require_once 'lib/fpdf.php';
require_once 'lib/terbilang.php';
//$arr="##kdSarana##tglKonSarana##kondId##idProgress##method";
$method = $_POST['method'];
$kdSarana = $_POST['kdSarana'];
$tglKonSarana = tanggalsystem($_POST['tglKonSarana']);
$kondId = $_POST['kondId'];
$idProgress = $_POST['idProgress'];
$jmlhSarana = $_POST['jmlhSarana'];
$optNmOrg = makeOption($dbname, 'organisasi', 'kodeorganisasi,namaorganisasi');
$optKlmpk2 = "<option value=''>" . $_SESSION['lang']['pilihdata'] . "</option>";
$sKlmpk2 = "select distinct jenis,nama,satuan from " . $dbname . ".sdm_5jenis_prasarana order by nama asc";
$qKlmpk2 = mysql_query($sKlmpk2) or die(mysql_error());
while ($rKlmpk2 = mysql_fetch_assoc($qKlmpk2)) {
    $orgNmKlmpk2[$rKlmpk2['jenis']] = $rKlmpk2['nama'];
    $arrSat[$rKlmpk2['jenis']] = $rKlmpk2['satuan'];
}
switch ($method) {
    case 'insert':
        if ($kdSarana == '' || $tglKonSarana == '' || $kondId == '' || $idProgress == '') {
            echo "warning:Semua Field tidak boleh kosong";
            exit;
        }
        if ($jmlhSarana == '' || $jmlhSarana == '0') {
            exit("Error:Jumlah tidak boleh kosong");
开发者ID:halimc17,项目名称:magsys,代码行数:31,代码来源:sdm_slave_5kondisi_prasarana.php

示例4: mysql_query

include_once 'lib/rTable.php';
/** Controller **/
# Options
//$optPeriod = makeOption($dbname,'sdm_5periodegaji','periode,periode',
//    "kodeorg='".$_SESSION['empl']['lokasitugas']."' and jenisgaji='B'");
$str = "select periode from " . $dbname . ".sdm_5periodegaji where kodeorg='" . $_SESSION['empl']['lokasitugas'] . "' and jenisgaji='B'\r\n          order by periode desc";
$res = mysql_query($str);
while ($bar = mysql_fetch_object($res)) {
    $optPeriod[$bar->periode] = $bar->periode;
}
if ($_SESSION['empl']['tipelokasitugas'] == 'KANWIL' || $_SESSION['empl']['bagian'] == 'IT') {
    $hrt = " induk='" . $_SESSION['org']['kodeorganisasi'] . "'";
} else {
    $hrt = " kodeorganisasi='" . $_SESSION['empl']['lokasitugas'] . "'";
}
$optOrg = makeOption($dbname, 'organisasi', 'kodeorganisasi,namaorganisasi', $hrt);
# Element
$els = array();
$els[] = array(makeElement('unit', 'label', $_SESSION['lang']['unit']), makeElement('kodeorg', 'select', '', array('style' => 'width:150px'), $optOrg));
$els[] = array(makeElement('periodegaji', 'label', $_SESSION['lang']['periodegaji']), makeElement('periodegaji', 'select', '', array('style' => 'width:150px'), $optPeriod));
$els['btn'] = array(makeElement('listBtn', 'btn', $_SESSION['lang']['list'], array('onclick' => "list()")));
$form = "";
$form .= "<h3 align='left'>" . $_SESSION['lang']['prosesgjbulanan'] . "</h3>";
$form .= genElementMultiDim($_SESSION['lang']['form'], $els, 1);
$form .= "<fieldset style='float:left;clear:left'><legend><b>" . $_SESSION['lang']['list'] . "</b>" . "</legend><div id='listContainer'></div></fieldset>";
/** View **/
echo open_body();
?>
<script languange=javascript1.2 src='js/sdm_prosesgjbulanan.js'></script>
<link rel=stylesheet type=text/css href='style/zTable.css'>
<?php 
开发者ID:halimc17,项目名称:magsys,代码行数:31,代码来源:sdm_3prosesgjbulanan.php

示例5: array

<?php

require_once 'master_validation.php';
include_once 'lib/nangkoelib.php';
include_once 'lib/zLib.php';
include_once 'lib/rTable.php';
$proses = $_GET['proses'];
$param = $_POST;
$namakar = array();
$optTipe = makeOption($dbname, 'organisasi', 'kodeorganisasi,tipe');
$tipeOrg = $optTipe[$param['kodeorg']];
$str = "select * from " . $dbname . ".bgt_regional_assignment \r\n        where kodeunit LIKE '" . $param['kodeorg'] . "%'\r\n        ";
$res = mysql_query($str);
while ($bar = mysql_fetch_object($res)) {
    $regional = $bar->regional;
    $unit = $bar->kodeunit;
}
#cek tutup atau belum periode gaji
$sCekPeriode = "select distinct * from " . $dbname . ".sdm_5periodegaji where periode='" . $param['periodegaji'] . "' \r\n              and kodeorg='" . $param['kodeorg'] . "' and sudahproses=1 and jenisgaji='H'";
$qCekPeriode = mysql_query($sCekPeriode) or die(mysql_error($conn));
if (mysql_num_rows($qCekPeriode) > 0) {
    $aktif2 = false;
} else {
    $aktif2 = true;
}
if (!$aktif2) {
    exit(" Payroll period has been closed");
}
#periksa tutupbuku
$str = "select * from " . $dbname . ".setup_periodeakuntansi where periode='" . $param['periodegaji'] . "' and \r\n             kodeorg='" . $param['kodeorg'] . "' and tutupbuku=1";
$res = mysql_query($str);
开发者ID:halimc17,项目名称:magsys,代码行数:31,代码来源:sdm_slave_3prosesgjharian.php

示例6: checkPostGet

require_once 'master_validation.php';
require_once 'config/connection.php';
require_once 'lib/nangkoelib.php';
require_once 'lib/zLib.php';
require_once 'lib/fpdf.php';
require_once 'lib/terbilang.php';
$proses = checkPostGet('proses', '');
$periode = checkPostGet('periode', '');
$period = checkPostGet('period', '');
$perod = checkPostGet('perod', '');
$idKry = checkPostGet('idKry', '');
$idAfd = checkPostGet('idAfd', '');
$tPkary = checkPostGet('tPkary2', '');
$kdBag2 = checkPostGet('kdBag2', '');
$arrBln = array(1 => "Jan", 2 => "Feb", 3 => "Mar", 4 => "Apr", 5 => "Mei", 6 => "Jun", 7 => "Jul", 8 => "Agu", 9 => "Sep", 10 => "Okt", 11 => "Nov", 12 => "Des");
$rNmTipe = makeOption($dbname, 'sdm_5tipekaryawan', 'id,tipe');
$lksiTgs = substr($idAfd, 0, 4);
if ($_SESSION['empl']['tipelokasitugas'] == 'HOLDING' || $_SESSION['empl']['tipelokasitugas'] == 'KANWIL') {
    if ($idAfd != '') {
        $add = "b.lokasitugas='" . $idAfd . "'";
    } else {
        exit("Error: Working unit required");
    }
    if ($kdBag2 != '') {
        $add .= " and b.bagian='" . $kdBag2 . "'";
    }
} else {
    if (strlen($idAfd) < 6) {
        $add = "b.lokasitugas='" . $idAfd . "' and (b.subbagian is null or b.subbagian='')";
    } else {
        $add = "b.subbagian='" . $idAfd . "'";
开发者ID:halimc17,项目名称:magsys,代码行数:31,代码来源:sdm_slave_2slipGajiBulananAfd.php

示例7: mysql_query

require_once 'lib/terbilang.php';
if (isset($_POST['proses'])) {
    $proses = $_POST['proses'];
} else {
    $proses = $_GET['proses'];
}
//$arr="##klmpkBrg##kdUnit##periode##lokasi##statId##purId";
$sKlmpk = "select kode,kelompok from " . $dbname . ".log_5klbarang order by kode";
$qKlmpk = mysql_query($sKlmpk) or die(mysql_error());
while ($rKlmpk = mysql_fetch_assoc($qKlmpk)) {
    $rKelompok[$rKlmpk['kode']] = $rKlmpk['kelompok'];
}
$optNmBrg = makeOption($dbname, 'log_5masterbarang', 'kodebarang,namabarang');
$optNmOrg = makeOption($dbname, 'organisasi', 'kodeorganisasi,namaorganisasi');
$optKelompok = makeOption($dbname, 'log_5klbarang', 'kode,kelompok');
$optSatuan = makeOption($dbname, 'log_5masterbarang', 'kodebarang,satuan');
$_POST['kdUnit'] == '' ? $kdUnit = $_GET['kdUnit'] : ($kdUnit = $_POST['kdUnit']);
$_POST['periode'] == '' ? $periode = $_GET['periode'] : ($periode = $_POST['periode']);
$_POST['afdId'] == '' ? $afdId = $_GET['afdId'] : ($afdId = $_POST['afdId']);
//
$unitId = $_SESSION['lang']['all'];
$nmPrshn = "Holding";
$purchaser = $_SESSION['lang']['all'];
if ($periode == '') {
    exit("Error: " . $_SESSION['lang']['periode'] . " required");
}
if ($kdUnit != '') {
    $unitId = $optNmOrg[$kdUnit];
} else {
    exit("Error:" . $_SESSION['lang']['unit'] . " required");
}
开发者ID:halimc17,项目名称:magsys,代码行数:31,代码来源:lbm_slave_distribusi_pupuk.php

示例8: substr

         }
     }
     if (isset($arrAsset[$bar->tipeasset]['nilai'])) {
         $arrAsset[$bar->tipeasset]['nilai'] += $out;
     } else {
         $arrAsset[$bar->tipeasset]['nilai'] = $out;
     }
     $arrAsset[$bar->tipeasset]['nama'] = $bar->namatipe;
     $arrAsset[$bar->tipeasset]['kode'] = 'DEP' . substr($bar->tipeasset, 0, 2);
 }
 $poolAsset = array();
 foreach ($arrAsset as $row) {
     $poolAsset[$row['kode']] = $row['nilai'];
 }
 // Get List Akun dari Parameter Jurnal = 'DEP'
 $optDep = makeOption($dbname, 'keu_5parameterjurnal', "jurnalid,noakunkredit", "kodeaplikasi='DEP'");
 // Get Jurnal
 foreach ($poolAsset as $kode => $nilai) {
     // No Jurnal
     $konter = '001';
     $tanggal = $param['periode'] . "-28";
     # Transform No Jurnal dari No Transaksi
     $nojurnal = str_replace("-", "", $tanggal) . "/" . substr($param['kodeorg'], 0, 4) . "/" . $kode . "/" . $konter;
     $qJurnal = selectQuery($dbname, 'keu_jurnaldt', "jumlah", "nojurnal='" . $nojurnal . "' and noakun='" . $optDep[$kode] . "'");
     $resJurnal = fetchData($qJurnal);
     if (empty($resJurnal)) {
         exit("Warning: Depresiasi " . $kode . " belum terjurnal dengan benar");
     } else {
         if ($resJurnal[0]['jumlah'] + round($nilai, 2) > 0.01) {
             exit("Warning: Depresiasi " . $kode . " belum terjurnal dengan benar");
         }
开发者ID:halimc17,项目名称:magsys,代码行数:31,代码来源:keu_slave_3tutupbulan_12112015.php

示例9: in

$data .= "<td align=center " . $bgBelakang . ">" . $_SESSION['lang']['akumulasipenyusutan'] . "</td> ";
$data .= "<td align=center " . $bgBelakang . ">" . $_SESSION['lang']['nilaibuku'] . "</td> ";
$data .= "<td align=center " . $bgBelakang . ">" . $_SESSION['lang']['keterangan'] . "</td> ";
$data .= "<td align=center " . $bgBelakang . ">" . $_SESSION['lang']['awalpenyusutan'] . "</td> ";
$data .= "<td align=center " . $bgBelakang . ">" . $_SESSION['lang']['bulanan'] . "</td> ";
$data .= "<td align=center " . $bgBelakang . ">" . $_SESSION['lang']['persendecline'] . "</td> ";
$data .= "<td align=center " . $bgBelakang . ">Leasing</td>";
$data .= "<td align=center " . $bgBelakang . ">" . $_SESSION['lang']['induk'] . "</td> ";
$data .= "</tr> </thead><tbody>";
//$sList="select * from ".$dbname.".sdm_daftarasset where tipeasset='".$kdAst."' and kodeorg='".$kdOrg."' order by kodeorg";
if (empty($unitCode)) {
    $sList = "select * from " . $dbname . ".sdm_daftarasset where  kodeorg in (select distinct kodeorganisasi from " . $dbname . ".organisasi where induk='" . $kdOrg . "') " . $where . " order by tipeasset";
} else {
    $sList = "select * from " . $dbname . ".sdm_daftarasset where  kodeorg = '" . $unitCode . "' " . $where . " order by tipeasset";
}
$optMetode = makeOption($dbname, 'sdm_5tipeasset', 'kodetipe,metodepenyusutan');
//echo $sList;
$qList = mysql_query($sList) or die(mysql_error());
$no = 0;
$totHarga = 0;
$totHargaAkumul = 0;
$totNilai = 0;
$bulanan = 0;
$tpengurang = 0;
$tpenambah = 0;
while ($bar = mysql_fetch_assoc($qList)) {
    if (empty($unitCode)) {
        $scounttipe = "select count(tipeasset) as countasset from " . $dbname . ".sdm_daftarasset where tipeasset='" . $bar['tipeasset'] . "' and kodeorg in (select distinct kodeorganisasi from " . $dbname . ".organisasi where induk='" . $kdOrg . "') order by tipeasset";
    } else {
        $scounttipe = "select count(tipeasset) as countasset from " . $dbname . ".sdm_daftarasset where tipeasset='" . $bar['tipeasset'] . "' and kodeorg = '" . $unitCode . "' order by tipeasset";
    }
开发者ID:halimc17,项目名称:magsys,代码行数:31,代码来源:keu_slave_2laporanAsset_09092015.php

示例10: numToMonth

$tglnya = $tglTtd[0];
$blnnya = numToMonth($tglTtd[1], $lang = 'I', $format = 'long');
$thnnya = $tglTtd[2];
$tglbenernya = $tglnya . ' ' . $blnnya . ' ' . $thnnya;
$pdf->Cell(39, 5, ucwords(strtolower('Jakarta')) . ", " . $tglbenernya, '', 0, 'L');
$pdf->Ln();
$pdf->Cell(20, 5, '', 0, 'L');
$pdf->Cell(12, 5, $_SESSION['lang']['penjual'] . ',', '', 0, 'L');
$pdf->Cell(80, 5, '', '', 0, 'L');
$pdf->Cell(18, 5, $_SESSION['lang']['Pembeli'] . ',', '', 1, 'L');
$pdf->SetFont('Arial', 'B', '10');
$pdf->Cell(20, 5, '', 0, 'L');
$nmPt = makeOption($dbname, 'organisasi', 'kodeorganisasi,namaorganisasi');
$nmPtS = explode(".", $nmPt[$bar['kodept']]);
setIt($nmPtS[1], '');
$pdf->Cell(80, 5, $nmPtS[0] . "." . ucwords(strtolower($nmPtS[1])), '', 0, 'C');
//$pdf->Cell(80,5,$nmdt2[0].".".ucwords(strtolower($nmdt2[1])),'',1,'C');
$pdf->Cell(80, 5, $nmdt2[0] . "." . $nmdt2[1], '', 1, 'C');
$jabatanTtd = makeOption($dbname, 'pmn_5ttd', 'nama,jabatan');
$namaTtdBeli = makeOption($dbname, 'pmn_4customer', 'kodecustomer,penandatangan');
$jabTtdBeli = makeOption($dbname, 'pmn_4customer', 'kodecustomer,jabatan');
$pdf->Ln(25);
$pdf->SetFont('Arial', 'BU', '10');
$pdf->Cell(20, 5, '', 0, 'L');
$pdf->Cell(80, 5, ucwords(strtolower($bar['penandatangan'])), '', 0, 'C');
$pdf->Cell(80, 5, ucwords(strtolower($namaTtdBeli[$bar['koderekanan']])), '', 1, 'C');
$pdf->SetFont('Arial', 'B', '10');
$pdf->Cell(20, 5, '', 0, 'L');
$pdf->Cell(80, 5, ucwords(strtolower($jabatanTtd[$bar['penandatangan']])), '', 0, 'C');
$pdf->Cell(80, 5, ucwords(strtolower($jabTtdBeli[$bar['koderekanan']])), '', 1, 'C');
$pdf->Output();
开发者ID:halimc17,项目名称:magsys,代码行数:31,代码来源:pmn_kontakjual_pdf.php

示例11: addslashes

            }
        }
        break;
    case 'delete':
        $str = "delete from " . $dbname . ".sdm_pengobatanplafond \r\n\twhere kodegolongan='" . $kodegolongan . "' and kodejenisbiaya='" . $jenisbiaya . "'";
        if (mysql_query($str)) {
        } else {
            echo " Gagal," . addslashes(mysql_error($conn));
        }
        break;
    default:
        break;
}
$str1 = "select * from " . $dbname . ".sdm_pengobatanplafond order by regional asc, kodegolongan asc, kodejenisbiaya asc";
$vGolognan = makeOption($dbname, 'sdm_5golongan', 'kodegolongan,namagolongan');
$vJenisBiaya = makeOption($dbname, 'sdm_5jenisbiayapengobatan', 'kode,nama');
if ($res1 = mysql_query($str1)) {
    while ($bar1 = mysql_fetch_object($res1)) {
        if ($bar1->satuan == 1) {
            $hVal = 'per tahun';
        } else {
            if ($bar1->satuan == 2) {
                $hVal = 'per hari';
            } else {
                if ($bar1->satuan == 3) {
                    $hVal = '1 tahun sekali';
                } else {
                    $hVal = '3 tahun sekali';
                }
            }
        }
开发者ID:halimc17,项目名称:magsys,代码行数:31,代码来源:sdm_slave_save_setup_plafond.php

示例12: selectQuery

$query = selectQuery($dbname, 'datakaryawan', '*', $where);
$data = fetchData($query);
if ($mode == 'add') {
    foreach ($data[0] as $key => $row) {
        $data[0][$key] = '';
    }
}
#=========== Prepare Tab and Content ==================
$hfrm = array('Utama', 'Perkawinan', 'Pendidikan', 'Alamat', 'Pangalaman Kerja', 'Riwayat', 'Penghargaan', 'Inventaris', 'Kondite');
$frm = array('Utama', makeElement('perkawinan', 'button', 'Refresh', array('onclick' => "refreshTab('perkawinan','" . $mode . "')")) . "<div id='tabPerkawinan'></div>", makeElement('pendidikan', 'button', 'Refresh', array('onclick' => "refreshTab('pendidikan','" . $mode . "')")) . "<div id='tabPendidikan'></div>", makeElement('alamat', 'button', 'Refresh', array('onclick' => "refreshTab('alamat','" . $mode . "')")) . "<div id='tabAlamat'></div>", makeElement('pengalamankerja', 'button', 'Refresh', array('onclick' => "refreshTab('pengalamankerja','" . $mode . "')")) . "<div id='tabPengalamanKerja'></div>", makeElement('riwayat', 'button', 'Refresh', array('onclick' => "refreshTab('riwayat','" . $mode . "')")) . "<div id='tabRiwayat'></div>", makeElement('penghargaan', 'button', 'Refresh', array('onclick' => "refreshTab('penghargaan','" . $mode . "')")) . "<div id='tabPenghargaan'></div>", makeElement('inventaris', 'button', 'Refresh', array('onclick' => "refreshTab('inventaris','" . $mode . "')")) . "<div id='tabInventaris'></div>", makeElement('kondite', 'button', 'Refresh', array('onclick' => "refreshTab('kondite','" . $mode . "')")) . "<div id='tabKondite'></div>");
#=========== Tab Utama =============
# Prep Options
$optOrg = makeOption($dbname, 'organisasi', 'kodeorganisasi,namaorganisasi');
$optPend = makeOption($dbname, 'sdm_5pendidikan', 'levelpendidikan,pendidikan');
$optJab = makeOption($dbname, 'sdm_5jabatan', 'kodejabatan,namajabatan');
$optGol = makeOption($dbname, 'sdm_5golongan', 'golongan,keterangan');
$optGender = array('P' => $_SESSION['lang']['pria'], 'W' => $_SESSION['lang']['wanita']);
$optStatMarr = array('Bujang' => $_SESSION['lang']['bujang'], 'Menikah' => $_SESSION['lang']['menikah'], 'Janda' => $_SESSION['lang']['janda'], 'Duda' => $_SESSION['lang']['duda']);
$optAgama = array('Islam' => $_SESSION['lang']['islam'], 'Protestan' => $_SESSION['lang']['protestan'], 'Katolik' => $_SESSION['lang']['katolik'], 'Hindu' => $_SESSION['lang']['hindu'], 'Budha' => $_SESSION['lang']['budha'], 'Konghucu' => $_SESSION['lang']['konghucu'], 'Lainnya' => $_SESSION['lang']['lain']);
$optBlood = array('A+' => 'A+', 'A-' => 'A-', 'B+' => 'B+', 'B-' => 'B-', 'O+' => 'O+', 'O-' => 'O-', 'AB+' => 'AB+', 'AB-' => 'AB-');
# Fields
$els = array();
$els[] = array(makeElement('nik', 'label', $_SESSION['lang']['nik']), makeElement('nik', 'text', $data[0]['nik'], array('style' => 'width:100px', 'maxlength' => '10')));
$els[] = array(makeElement('namakaryawan', 'label', $_SESSION['lang']['namakaryawan']), makeElement('namakaryawan', 'text', $data[0]['namakaryawan'], array('style' => 'width:250px', 'maxlength' => '40', 'onkeypress' => 'return tanpa_kutip(event)')));
$els[] = array(makeElement('lahir', 'label', $_SESSION['lang']['lahir']), makeElement('tempatlahir', 'text', $data[0]['tempatlahir'], array('style' => 'width:250px', 'maxlength' => '30', 'onkeypress' => 'return tanpa_kutip(event)')) . makeElement('tanggallahir', 'text', $data[0]['tanggallahir'], array('style' => 'width:250px', 'readonly' => 'readonly', 'onmousemove' => 'setCalendar(this.id)')));
$els[] = array(makeElement('warganegara', 'label', $_SESSION['lang']['warganegara']), makeElement('warganegara', 'text', $data[0]['warganegara'], array('style' => 'width:250px', 'maxlength' => '45', 'onkeypress' => 'return tanpa_kutip(event)')));
$els[] = array(makeElement('jeniskelamin', 'label', $_SESSION['lang']['jeniskelamin']), makeElement('jeniskelamin', 'select', $data[0]['jeniskelamin'], array('style' => 'width:250px'), $optGender));
$els[] = array(makeElement('statusperkawinan', 'label', $_SESSION['lang']['statusperkawinan']), makeElement('statusperkawinan', 'select', $data[0]['statusperkawinan'], array('style' => 'width:250px'), $optStatMarr));
$els[] = array(makeElement('tanggalmenikah', 'label', $_SESSION['lang']['tanggalmenikah']), makeElement('tanggalmenikah', 'text', $data[0]['tanggalmenikah'], array('style' => 'width:250px', 'readonly' => 'readonly', 'onmousemove' => 'setCalendar(this.id)')));
$els[] = array(makeElement('agama', 'label', $_SESSION['lang']['agama']), makeElement('agama', 'text', $data[0]['agama'], array('style' => 'width:250px'), $optAgama));
$els[] = array(makeElement('golongandarah', 'label', $_SESSION['lang']['golongandarah']), makeElement('golongandarah', 'select', $data[0]['golongandarah'], array('style' => 'width:70px'), $optBlood));
开发者ID:halimc17,项目名称:magsys,代码行数:31,代码来源:sdm_slave_karyawanadmin_detail.php

示例13: makeOption

";
</script>
<script language="javascript" src="js/zTools.js"></script>
<script type="text/javascript" src="js/bgt_budget_sebaran.js"></script>
<script>
dataKdvhc="<?php 
echo $_SESSION['lang']['pilihdata'];
?>
";
</script>
<?php 
// Options
$optUnit = makeOption($dbname, 'organisasi', 'kodeorganisasi,namaorganisasi', "LENGTH(kodeorganisasi)=4", 2);
$optDiv = makeOption($dbname, 'organisasi', 'kodeorganisasi,namaorganisasi', "induk='" . key($optUnit) . "'", 2);
$optBlok = makeOption($dbname, 'organisasi', 'kodeorganisasi,namaorganisasi', "induk='" . key($optDiv) . "'", 2);
$optKode = makeOption($dbname, 'bgt_kode', 'kodebudget,nama', "kodebudget not in ('KONTRAK','TOOL')", 2, true);
$optKode[''] = $_SESSION['lang']['pilihdata'];
$optMethod = array('insert' => 'Insert', 'update' => 'Update');
// Onchange Organisasi
$qOrg = selectQuery($dbname, 'organisasi', 'kodeorganisasi,namaorganisasi,induk', "LENGTH(kodeorganisasi) > 5");
$resOrg = fetchData($qOrg);
$optOrg = array();
foreach ($resOrg as $row) {
    if (strlen($row['kodeorganisasi']) == 6) {
        if (!isset($optOrg[substr($row['kodeorganisasi'], 0, 4)][$row['kodeorganisasi']])) {
            $optOrg[substr($row['kodeorganisasi'], 0, 4)][$row['kodeorganisasi']] = array('nama' => $row['kodeorganisasi'] . " - " . $row['namaorganisasi'], 'child' => array());
        } else {
            $optOrg[substr($row['kodeorganisasi'], 0, 4)][$row['kodeorganisasi']]['nama'] = $row['kodeorganisasi'] . " - " . $row['namaorganisasi'];
        }
    } else {
        if (!isset($optOrg[substr($row['kodeorganisasi'], 0, 4)][substr($row['kodeorganisasi'], 0, 6)])) {
开发者ID:halimc17,项目名称:magsys,代码行数:31,代码来源:bgt_budget_sebaran.php

示例14: explode

<?php

require_once 'master_validation.php';
require_once 'config/connection.php';
require_once 'lib/nangkoelib.php';
require_once 'lib/zLib.php';
require_once 'lib/fpdf.php';
$_POST['proses'] == '' ? $proses = $_GET['proses'] : ($proses = $_POST['proses']);
$_POST['tipe'] == '' ? $tipe = $_GET['tipe'] : ($tipe = $_POST['tipe']);
$_POST['periode'] == '' ? $periode = $_GET['periode'] : ($periode = $_POST['periode']);
$_POST['judul'] == '' ? $judul = $_GET['judul'] : ($judul = $_POST['judul']);
$qwe = explode('-', $periode);
$tahun = $qwe[0];
$bulan = $qwe[1];
$optNm = makeOption($dbname, 'organisasi', 'kodeorganisasi,namaorganisasi');
$optNmBrg = makeOption($dbname, 'log_5masterbarang', 'kodebarang,namabarang');
if ($periode == '') {
    exit("Error:Field Tidak Boleh Kosong");
}
$arr = "##periode##judul";
$optBulan['01'] = $_SESSION['lang']['jan'];
$optBulan['02'] = $_SESSION['lang']['peb'];
$optBulan['03'] = $_SESSION['lang']['mar'];
$optBulan['04'] = $_SESSION['lang']['apr'];
$optBulan['05'] = $_SESSION['lang']['mei'];
$optBulan['06'] = $_SESSION['lang']['jun'];
$optBulan['07'] = $_SESSION['lang']['jul'];
$optBulan['08'] = $_SESSION['lang']['agt'];
$optBulan['09'] = $_SESSION['lang']['sep'];
$optBulan['10'] = $_SESSION['lang']['okt'];
$optBulan['11'] = $_SESSION['lang']['nov'];
开发者ID:halimc17,项目名称:magsys,代码行数:31,代码来源:lbm_slave_proc_agrochemical_per_estate.php

示例15: isset

<?php

require_once 'master_validation.php';
require_once 'config/connection.php';
require_once 'lib/nangkoelib.php';
require_once 'lib/zLib.php';
$method = $_POST['method'];
$notran = isset($_POST['notran']) ? $_POST['notran'] : '';
$txt = isset($_POST['txt']) ? $_POST['txt'] : '';
$hrini = date('Ymd');
$jumlahditerima = isset($_POST['jumlahditerima']) ? $_POST['jumlahditerima'] : '';
$kodebarang = isset($_POST['kodebarang']) ? $_POST['kodebarang'] : '';
$nmFranco = makeOption($dbname, 'setup_franco', 'id_franco,franco_name');
switch ($method) {
    case 'posting':
        $sekarang = date('Y-m-d');
        $i = "update  " . $dbname . ".log_konosemenht set posting=1,postingby='" . $_SESSION['standard']['userid'] . "',tanggalterima='" . $sekarang . "' where nokonosemen='" . $notran . "'";
        //exit("Error:$i");
        if (mysql_query($i)) {
        } else {
            echo " Gagal," . addslashes(mysql_error($conn));
        }
        break;
    case 'savePenerimaan':
        //exit("Error:MASUK");
        $i = "update " . $dbname . ".`log_konosemendt`  set jumlahditerima='" . $jumlahditerima . "' where nokonosemen='" . $notran . "' and kodebarang='" . $kodebarang . "'";
        //exit("Error:$i");
        if (mysql_query($i)) {
        } else {
            echo " Gagal," . addslashes(mysql_error($conn));
        }
开发者ID:halimc17,项目名称:magsys,代码行数:31,代码来源:log_slave_penerimaanKonosemen.php


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