Exemple #1
0
#=======Form============
echo "<div style='margin-bottom:30px'>";
$els = array();
# Fields
$els[] = array(makeElement('kodeorg', 'label', $_SESSION['lang']['kodeorg']), makeElement('kodeorg', 'select', '', array('style' => 'width:250px'), $optOrg));
$els[] = array(makeElement('kodeaplikasi', 'label', $_SESSION['lang']['kodeaplikasi']), makeElement('kodeaplikasi', 'text', '', array('style' => 'width:50px', 'maxlength' => '5')));
$els[] = array(makeElement('jurnalid', 'label', $_SESSION['lang']['jurnalid']), makeElement('jurnalid', 'text', '', array('style' => 'width:250px', 'maxlength' => '5')));
$els[] = array(makeElement('keterangan', 'label', $_SESSION['lang']['keterangan']), makeElement('keterangan', 'text', '', array('style' => 'width:250px', 'maxlength' => '50')));
$els[] = array(makeElement('noakundebet', 'label', $_SESSION['lang']['noakundebet']), makeElement('noakundebet', 'select', '', array('style' => 'width:250px'), $optAkun));
$els[] = array(makeElement('sampaidebet', 'label', $_SESSION['lang']['sampaidebet']), makeElement('sampaidebet', 'select', '', array('style' => 'width:250px'), $optAkun));
$els[] = array(makeElement('noakunkredit', 'label', $_SESSION['lang']['noakunkredit']), makeElement('noakunkredit', 'select', '', array('style' => 'width:250px'), $optAkun));
$els[] = array(makeElement('sampaikredit', 'label', $_SESSION['lang']['sampaikredit']), makeElement('sampaikredit', 'select', '', array('style' => 'width:250px'), $optAkun));
$els[] = array(makeElement('aktif', 'label', $_SESSION['lang']['aktif']), makeElement('aktif', 'check'));
# Fields
$fieldStr = '##kodeorg##kodeaplikasi##jurnalid##keterangan##noakundebet##sampaidebet##noakunkredit##sampaikredit##aktif';
$fieldArr = explode("##", substr($fieldStr, 2, strlen($fieldStr) - 2));
# Button
$els['btn'] = array(genFormBtn($fieldStr, 'keu_5parameterjurnal', "##kodeorg##kodeaplikasi##jurnalid", null, null, true));
# Generate Field
echo genElTitle('Parameter Jurnal', $els);
echo "</div>";
#=======End Form============
#=======Table============
# Display Table
#echo masterTable($dbname,'setup_kegiatan',$fieldArr);
echo "<div style='clear:both;float:left'>";
echo masterTable($dbname, 'keu_5parameterjurnal', $fieldArr, array(), array(), null, array(), null, 'kodeorg##kodeaplikasi##jurnalid');
echo "</div>";
#=======End Table============
CLOSE_BOX();
echo close_body();
  
<p align="left"><u><b><font face="Arial" size="5" color="#000080">Komponen Gaji</font></b></u></p>
<?php 
#======Select Prep======
$optBin = array('Pengurang', 'Penambah');
#======End Select Prep======
#=======Form============
echo "<div style='margin-bottom:30px'>";
$els = array();
# Fields
$els[] = array(makeElement('idkomponen', 'label', $_SESSION['lang']['idkomponen']), makeElement('idkomponen', 'textnum', '', array('style' => 'width:150px', 'maxlength' => '11')));
$els[] = array(makeElement('namakomponen', 'label', $_SESSION['lang']['namakomponen']), makeElement('namakomponen', 'text', '', array('style' => 'width:150px', 'maxlength' => '45')));
$els[] = array(makeElement('tipe', 'label', $_SESSION['lang']['tipe']), makeElement('tipe', 'select', '', array('style' => 'width:150px'), $optBin));
$els[] = array(makeElement('sumber', 'label', $_SESSION['lang']['sumber']), makeElement('sumber', 'text', '', array('style' => 'width:150px', 'maxlength' => '40')));
# Fields
$fieldStr = '##idkomponen##namakomponen##tipe##sumber';
$fieldArr = explode("##", substr($fieldStr, 2, strlen($fieldStr) - 2));
# Button
$els['btn'] = array(genFormBtn($fieldStr, 'sdm_5komponengaji', "##idkomponen"));
# Generate Field
echo genElement($els);
echo "</div>";
#=======End Form============
#=======Table===============
# Display Table
echo "<div style='height:200px;overflow:auto'>";
echo masterTable($dbname, 'sdm_5komponengaji', "*", array(), array(), null, array(), null, 'idkomponen');
echo "</div>";
#=======End Table============
CLOSE_BOX();
echo close_body();
echo "<div style='margin-bottom:30px'>";
$els = array();
# Fields
$els[] = array(makeElement('topografi', 'label', $_SESSION['lang']['topografi']), makeElement('topografi', 'select', '', array('style' => 'width:100px'), $optTopografi));
$els[] = array(makeElement('keterangan', 'label', $_SESSION['lang']['keterangan']), makeElement('keterangan', 'text', '', array('style' => 'width:250px', 'maxlength' => '50', 'onkeypress' => 'return tanpa_kutip(event)')));
$els[] = array(makeElement('batasbawah', 'label', $_SESSION['lang']['batasbawah']), makeElement('batasbawah', 'text', '', array('style' => 'width:100px', 'maxlength' => '10', 'onkeypress' => 'return angka_doang(event)')));
$els[] = array(makeElement('batasatas', 'label', $_SESSION['lang']['batasatas']), makeElement('batasatas', 'text', '', array('style' => 'width:100px', 'maxlength' => '10', 'onkeypress' => 'return angka_doang(event)')));
$els[] = array(makeElement('basisboronglaki', 'label', $_SESSION['lang']['basisboronglaki']), makeElement('basisboronglaki', 'text', '', array('style' => 'width:100px', 'maxlength' => '10', 'onkeypress' => 'return angka_doang(event)')));
$els[] = array(makeElement('basisborongperempuan', 'label', $_SESSION['lang']['basisborongperempuan']), makeElement('basisborongperempuan', 'text', '', array('style' => 'width:100px', 'maxlength' => '10', 'onkeypress' => 'return angka_doang(event)')));
$els[] = array(makeElement('basistugaslaki', 'label', $_SESSION['lang']['basistugaslaki']), makeElement('basistugaslaki', 'text', '', array('style' => 'width:100px', 'maxlength' => '10', 'onkeypress' => 'return angka_doang(event)')));
$els[] = array(makeElement('basistugasperempuan', 'label', $_SESSION['lang']['basistugasperempuan']), makeElement('basistugasperempuan', 'text', '', array('style' => 'width:100px', 'maxlength' => '10', 'onkeypress' => 'return angka_doang(event)')));
$els[] = array(makeElement('satuan', 'label', $_SESSION['lang']['satuan']), makeElement('satuan', 'text', '', array('style' => 'width:50px', 'maxlength' => '3', 'onkeypress' => 'return tanpa_kutip(event)')));
$els[] = array(makeElement('nilaipremi', 'label', $_SESSION['lang']['nilaipremi']), makeElement('nilaipremi', 'text', '', array('style' => 'width:100px', 'maxlength' => '10', 'onkeypress' => 'return angka_doang(event)')));
# Fields
$fieldStr = '##topografi##keterangan##batasbawah##batasatas##basisboronglaki##basisborongperempuan';
$fieldStr .= '##basistugaslaki##basistugasperempuan##satuan##nilaipremi';
$fieldArr = explode("##", substr($fieldStr, 2, strlen($fieldStr) - 2));
# Button
$els['btn'] = array(genFormBtn($fieldStr, 'kebun_5basispemeliharaan', "##topografi", null, "topografi"));
# Generate Field
echo genElement($els);
echo "</div>";
#=======End Form============
#=======Table===============
# Display Table
echo "<div style='height:200px;overflow:auto'>";
echo masterTable($dbname, 'kebun_5basispemeliharaan', "*", array(), array(), null, array(), null, 'topografi');
echo "</div>";
#=======End Table============
CLOSE_BOX();
echo close_body();
# Fields
$els[] = array(makeElement('topografi', 'label', $_SESSION['lang']['topografi']), makeElement('topografi', 'select', '', array('style' => 'width:100px'), $optTopografi));
$els[] = array(makeElement('keterangan', 'label', $_SESSION['lang']['keterangan']), makeElement('keterangan', 'text', '', array('style' => 'width:250px', 'maxlength' => '50', 'onkeypress' => 'return tanpa_kutip(event)')));
$els[] = array(makeElement('batasbawah', 'label', $_SESSION['lang']['batasbawah']), makeElement('batasbawah', 'text', '', array('style' => 'width:100px', 'maxlength' => '10', 'onkeypress' => 'return angka_doang(event)')));
$els[] = array(makeElement('batasatas', 'label', $_SESSION['lang']['batasatas']), makeElement('batasatas', 'text', '', array('style' => 'width:100px', 'maxlength' => '10', 'onkeypress' => 'return angka_doang(event)')));
$els[] = array(makeElement('basisboronglaki', 'label', $_SESSION['lang']['basisboronglaki']), makeElement('basisboronglaki', 'text', '', array('style' => 'width:100px', 'maxlength' => '10', 'onkeypress' => 'return angka_doang(event)')));
$els[] = array(makeElement('basisborongperempuan', 'label', $_SESSION['lang']['basisborongperempuan']), makeElement('basisborongperempuan', 'text', '', array('style' => 'width:100px', 'maxlength' => '10', 'onkeypress' => 'return angka_doang(event)')));
$els[] = array(makeElement('basistugaslaki', 'label', $_SESSION['lang']['basistugaslaki']), makeElement('basistugaslaki', 'text', '', array('style' => 'width:100px', 'maxlength' => '10', 'onkeypress' => 'return angka_doang(event)')));
$els[] = array(makeElement('basistugasperempuan', 'label', $_SESSION['lang']['basistugasperempuan']), makeElement('basistugasperempuan', 'text', '', array('style' => 'width:100px', 'maxlength' => '10', 'onkeypress' => 'return angka_doang(event)')));
$els[] = array(makeElement('satuan', 'label', $_SESSION['lang']['satuan']), makeElement('satuan', 'text', '', array('style' => 'width:50px', 'maxlength' => '3', 'onkeypress' => 'return tanpa_kutip(event)')));
# Fields
$fieldStr = '##topografi##keterangan##batasbawah##batasatas##basisboronglaki##basisborongperempuan';
$fieldStr .= '##basistugaslaki##basistugasperempuan##satuan';
$fieldArr = explode("##", substr($fieldStr, 2, strlen($fieldStr) - 2));
# Button
$els['btn'] = array(genFormBtn($fieldStr, 'kebun_5basispanen', "##topografi"));
# Generate Field
echo genElement($els);
echo "</div>";
#=======End Form============
#=======Table===============
# Display Table
echo "<div style='height:200px;overflow:auto'>";
echo masterTable($dbname, 'kebun_5basispanen', "*", array(), array(), null, array(), null, 'topografi');
echo "</div>";
#=======End Table============
?>
<!--FORM NAME = " ">
<p align="center"><u><b><font face="Verdana" size="4" color="#000080">Basis Panen</font></b></u></p>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="87%" id="AutoNumber1" height="115">
  <tr>
Exemple #5
0
function genFormBtnConfig($field, $table, $id, $config = array())
{
    $page = isset($config['page']) ? $config['page'] : null;
    $freeze = isset($config['freeze']) ? $config['freeze'] : null;
    $empty = isset($config['empty']) ? $config['empty'] : null;
    $pageEdit = isset($config['pageEdit']) ? $config['pageEdit'] : null;
    $emptyField = isset($config['emptyField']) ? $config['emptyField'] : '##';
    $disabled = isset($config['disabled']) ? $config['disabled'] : '##';
    $opt = isset($config['opt']) ? $config['opt'] : array();
    $barang = isset($config['barang']) ? $config['barang'] : array();
    return genFormBtn($field, $table, $id, $page, $freeze, $empty, $pageEdit, $emptyField, $disabled, $opt, $barang);
}
#======Select Prep======
# Get Data
//$where = "`tipe`='HOLDING' or `tipe`='PT' or `tipe`='KANWIL'";
$where = "`tipe`='HOLDING' or `tipe`='PABRIK' or `tipe`='KANWIL' or `tipe`='GUDANG' or tipe='GUDANGTEMP' or `tipe`='KEBUN'\r\n         or (tipe='TRAKSI' and length(kodeorganisasi)=4)";
$optOrg = makeOption($dbname, 'organisasi', 'kodeorganisasi,namaorganisasi', $where, '0');
#======End Select Prep======
#=======Form============
echo "<div style='margin-bottom:30px'>";
$els = array();
# Fields
$els[] = array(makeElement('kodeorg', 'label', $_SESSION['lang']['kodeorg']), makeElement('kodeorg', 'select', '', array('style' => 'width:200px'), $optOrg));
$els[] = array(makeElement('periode', 'label', $_SESSION['lang']['periode']), makeElement('periode', 'text', '', array('style' => 'width:70px', 'placeholder' => 'yyyy-dd', 'maxlength' => '80')));
$els[] = array(makeElement('tanggal', 'label', $_SESSION['lang']['tanggal']), makeElement('tanggalmulai', 'text', '', array('style' => 'width:100px', 'readonly' => 'readonly', 'onmousemove' => 'setCalendar(this.id)', 'maxlength' => '8')) . " s/d " . makeElement('tanggalsampai', 'text', '', array('style' => 'width:100px', 'readonly' => 'readonly', 'onmousemove' => 'setCalendar(this.id)', 'maxlength' => '8')));
$els[] = array(makeElement('tutupbuku', 'label', $_SESSION['lang']['tutupbuku']), makeElement('tutupbuku', 'check', '0', array()));
# Fields
$fieldStr = '##kodeorg##periode##tanggalmulai##tanggalsampai##tutupbuku';
$fieldArr = explode("##", substr($fieldStr, 2, strlen($fieldStr) - 2));
# Button
$els['btn'] = array(genFormBtn($fieldStr, 'setup_periodeakuntansi', "##kodeorg##periode", null, null, '##tutupbuku'));
# Generate Field
echo genElTitle($_SESSION['lang']['periodeakuntansi'], $els);
echo "</div>";
#=======End Form============
#=======Table============
# Display Table
echo "<div style='clear:both;float:left'>";
echo masterTable($dbname, 'setup_periodeakuntansi', "*", array(), array(), null, array(), null, 'kodeorg##periode');
echo "</div>";
#=======End Table============
CLOSE_BOX();
echo close_body();
# Get Data
$optKlpBy = array('Karyawan' => 'Karyawan', 'Mesin' => 'Mesin', 'Material' => 'Material', 'Transport' => 'Transport', 'Kontrak' => 'Kontrak', 'Supervisi' => 'Supervisi');
$whereOrg = "tipe='HOLDING'";
$optOrg = makeOption($dbname, 'organisasi', 'kodeorganisasi,namaorganisasi', $whereOrg, '1');
#======End Select Prep======
#=======Form============
echo "<div style='margin-bottom:30px'>";
$els = array();
# Fields
$els[] = array(makeElement('kodeorg', 'label', $_SESSION['lang']['kodeorg']), makeElement('kodeorg', 'select', '', array('style' => 'width:250px'), $optOrg));
$els[] = array(makeElement('kelompokbiaya', 'label', $_SESSION['lang']['kelompokbiaya']), makeElement('kelompokbiaya', 'select', '', array('style' => 'width:150px'), $optKlpBy));
$els[] = array(makeElement('kodebiaya', 'label', $_SESSION['lang']['kodebiaya']), makeElement('kodebiaya', 'text', '', array('style' => 'width:50px', 'maxlength' => '3')));
$els[] = array(makeElement('keteranganbiaya', 'label', $_SESSION['lang']['keterangan']), makeElement('keteranganbiaya', 'text', '', array('style' => 'width:250px', 'maxlength' => '40')));
# Fields
$fieldStr = '##kodeorg##kelompokbiaya##kodebiaya##keteranganbiaya';
$fieldArr = explode("##", substr($fieldStr, 2, strlen($fieldStr) - 2));
# Button
$els['btn'] = array(genFormBtn($fieldStr, 'keu_5komponenbiaya', "##kodebiaya"));
# Generate Field
echo genElTitle('Komponen Biaya', $els);
echo "</div>";
#=======End Form============
#=======Table============
# Display Table
#echo masterTable($dbname,'setup_kegiatan',$fieldArr);
echo "<div style='clear:both;float:left'>";
echo masterTable($dbname, 'keu_5komponenbiaya', "*", array(), array(), null, array(), null, 'kodebiaya');
echo "</div>";
#=======End Table============
CLOSE_BOX();
echo close_body();
Exemple #8
0
echo "<div style='margin-bottom:30px'>";
$els = array();
# Fields
$els[] = array(makeElement('kodeorg', 'label', $_SESSION['lang']['kodeorg']), makeElement('kodeorg', 'select', '', array('style' => 'width:250px'), $optOrg));
$els[] = array(makeElement('kelompok', 'label', $_SESSION['lang']['kelompok']), makeElement('kelompok', 'select', '', array('style' => 'width:250px', 'onchange' => 'cekAkun()'), $optKlpKeg));
$els[] = array(makeElement('noakun', 'label', $_SESSION['lang']['noakun']), makeElement('noakun', 'select', '', array('style' => 'width:250px', 'onchange' => 'cekAkun();ambilkegiatan()'), $optAkun));
$els[] = array(makeElement('kodekegiatan', 'label', $_SESSION['lang']['kodekegiatan']), makeElement('kodekegiatan', 'text', '', array('style' => 'width:60px', 'maxlength' => '9', 'disabled' => 'disabled')));
$els[] = array(makeElement('namakegiatan', 'label', $_SESSION['lang']['namakegiatan']), makeElement('namakegiatan', 'text', '', array('style' => 'width:250px', 'maxlength' => '80')));
$els[] = array(makeElement('namakegiatan1', 'label', $_SESSION['lang']['namakegiatan'] . "(EN)"), makeElement('namakegiatan1', 'text', '', array('style' => 'width:250px', 'maxlength' => '80')));
$els[] = array(makeElement('satuan', 'label', $_SESSION['lang']['satuan']), makeElement('satuan', 'text', '', array('style' => 'width:250px', 'maxlength' => '8')));
$els[] = array(makeElement('status', 'label', $_SESSION['lang']['status']), makeElement('status', 'select', '', array('style' => 'width:250px'), $optAktif));
# Fields
$fieldStr = '##kodeorg##kodekegiatan##namakegiatan##namakegiatan1##kelompok##satuan##noakun##status';
//$fieldArr = explode("##",substr($fieldStr,2,strlen($fieldStr)-2));
# Button
$els['btn'] = array(genFormBtn($fieldStr, 'setup_kegiatan', "##kodekegiatan##kodeorg##kelompok", null, null, null, null, '##', '##kodekegiatan'));
//$optKlp = makeOption($dbname,'setup_klpkegiatan',"kodeklp,noakun",
//					 "kodeorg in ('".array_keys($optOrg)."')");
$qKlp = selectQuery($dbname, 'setup_klpkegiatan', 'kodeorg,kodeklp,noakun', "kodeorg in ('" . implode("','", array_keys($optOrg)) . "')");
$resKlp = fetchData($qKlp);
$optKlp = array();
foreach ($resKlp as $row) {
    $optKlp[$row['kodeorg']][$row['kodeklp']] = $row['noakun'];
}
# Generate Field
echo genElTitle($_SESSION['lang']['kegiatan'], $els);
echo "<input id=klpAkun type=hidden value='" . json_encode($optKlp) . "'>";
echo "</div>";
#=======End Form============
#=======Prepare Table=======
$table = 'setup_kegiatan';
$optAkun = makeOption($dbname, 'keu_5akun', 'noakun,namaakun', null, '2');
$whereOrg = "tipe='HOLDING'";
$optOrg = makeOption($dbname, 'organisasi', 'kodeorganisasi,namaorganisasi', $whereOrg, '1');
#======End Select Prep======
#=======Form============
echo "<div style='margin-bottom:30px'>";
$els = array();
# Fields
$els[] = array(makeElement('kodeorg', 'label', $_SESSION['lang']['kodeorg']), makeElement('kodeorg', 'select', '', array('style' => 'width:250px'), $optOrg));
$els[] = array(makeElement('kodeklp', 'label', $_SESSION['lang']['kodeklp']), makeElement('kodeklp', 'text', '', array('style' => 'width:50px', 'maxlength' => '8')));
$els[] = array(makeElement('namakelompok', 'label', $_SESSION['lang']['namakelompok']), makeElement('namakelompok', 'text', '', array('style' => 'width:250px', 'maxlength' => '80')));
$els[] = array(makeElement('namakelompok1', 'label', $_SESSION['lang']['namakelompok1']), makeElement('namakelompok1', 'text', '', array('style' => 'width:250px', 'maxlength' => '80')));
$els[] = array(makeElement('noakun', 'label', $_SESSION['lang']['noakun']), makeElement('noakun', 'select', '', array('style' => 'width:250px'), $optAkun));
# Fields
$fieldStr = '##kodeorg##kodeklp##namakelompok##namakelompok1##noakun';
$fieldArr = explode("##", substr($fieldStr, 2, strlen($fieldStr) - 2));
# Button
$els['btn'] = array(genFormBtn($fieldStr, 'setup_klpkegiatan', "##kodeklp##kodeorg"));
# Generate Field
echo genElTitle($_SESSION['lang']['namakelompok'], $els);
echo "</div>";
#=======End Form============
#=======Table============
# Display Table
#echo masterTable($dbname,'setup_kegiatan',$fieldArr);
echo "<div style='clear:both;float:left'>";
echo masterTable($dbname, 'setup_klpkegiatan', "*", array(), array(), array(), array(), 'setup_slave_klpkegiatan_pdf');
echo "</div>";
#=======End Table============
CLOSE_BOX();
echo close_body();
# Fields
$els[] = array(makeElement('kodeorg', 'label', $_SESSION['lang']['kodeorg']), makeElement('kodeorg', 'select', '', array('style' => 'width:150px'), $optOrg));
$els[] = array(makeElement('noakun', 'label', $_SESSION['lang']['noakun']), makeElement('noakun', 'text', '', array('style' => 'width:150px', 'maxlength' => '7', 'onkeypress' => 'return tanpa_kutip(event)')));
$els[] = array(makeElement('namaakun', 'label', $_SESSION['lang']['namaakun']), makeElement('namaakun', 'text', '', array('style' => 'width:250px', 'maxlength' => '80', 'onkeypress' => 'return tanpa_kutip(event)')));
$els[] = array(makeElement('namaakun1', 'label', $_SESSION['lang']['namaakun']) . "(EN)", makeElement('namaakun1', 'text', '', array('style' => 'width:250px', 'maxlength' => '80', 'onkeypress' => 'return tanpa_kutip(event)')));
$els[] = array(makeElement('tipeakun', 'label', $_SESSION['lang']['tipeakun']), makeElement('tipeakun', 'select', '', array('style' => 'width:150px'), $optTipeAkun));
$els[] = array(makeElement('level', 'label', $_SESSION['lang']['level']), makeElement('level', 'text', '', array('style' => 'width:150px', 'maxlength' => '2', 'onkeypress' => 'return angka_doang(event)')));
$els[] = array(makeElement('matauang', 'label', $_SESSION['lang']['matauang']), makeElement('matauang', 'select', '', array('style' => 'width:150px'), $optCurr));
$els[] = array(makeElement('detail', 'label', $_SESSION['lang']['detail']), makeElement('detail', 'check', '', array()));
$els[] = array(makeElement('kasbank', 'label', $_SESSION['lang']['kasbank']), makeElement('kasbank', 'check', '0', array()));
$els[] = array(makeElement('fieldaktif', 'label', $_SESSION['lang']['fieldaktif']), makeElement('fieldaktif', 'multichk', '0000000', array('style' => 'width:80px', 'maxlength' => '7', 'onkeypress' => 'return angka_doang(event)'), $optFieldAktif));
$els[] = array(makeElement('pemilik', 'label', $_SESSION['lang']['namapemilik']), makeElement('pemilik', 'text', '', array('style' => 'width:150px', 'maxlength' => '7', 'onkeypress' => 'return angka_doang(event)')));
# Fields
$fieldStr = '##noakun##namaakun##namaakun1##tipeakun##kasbank##level##matauang##kodeorg##detail##fieldaktif##pemilik';
$fieldArr = explode("##", substr($fieldStr, 2, strlen($fieldStr) - 2));
# Button
$els['btn'] = array(genFormBtn($fieldStr, 'keu_5akun', "##noakun##kodeorg", null, null, true));
# Generate Field
echo genElTitle($_SESSION['lang']['daftarperkiraan'], $els);
echo "</div>";
#=======End Form============
#=======Table===============
# Display Table
$kolom = 'noakun,namaakun';
echo "<div style='clear:both;float:left'>";
echo masterTable($dbname, 'keu_5akun', "*", array(), array(), array(), array(), 'keu_slave_5daftarperkiraan_pdf');
#echo masterTable($dbname,'keu_5akun',"*",array(),array(),array(),array(),'keu_slave_5daftarperkiraan_pdf');
echo "</div>";
#=======End Table============
CLOSE_BOX();
echo close_body();
<?php 
#======Select Prep======
$optOrg = getHolding($dbname, $_SESSION['org']['kodeorganisasi'], true);
#======End Select Prep======
#=======Form============
echo "<div style='margin-bottom:30px'>";
$els = array();
# Fields
$els[] = array(makeElement('kode', 'label', $_SESSION['lang']['kode']), makeElement('kode', 'text', '', array('style' => 'width:100px', 'maxlength' => '10', 'onkeypress' => 'return tanpa_kutip(event)')));
$els[] = array(makeElement('keterangan', 'label', $_SESSION['lang']['keterangan']), makeElement('keterangan', 'text', '', array('style' => 'width:250px', 'maxlength' => '50', 'onkeypress' => 'return tanpa_kutip(event)')));
$els[] = array(makeElement('kodeorg', 'label', $_SESSION['lang']['kodeorg']), makeElement('kodeorg', 'select', '', array('style' => 'width:250px'), $optOrg));
# Fields
$fieldStr = '##kode##keterangan##kodeorg';
$fieldArr = explode("##", substr($fieldStr, 2, strlen($fieldStr) - 2));
# Button
$els['btn'] = array(genFormBtn($fieldStr, 'kebun_5sttanam', "##kode##kodeorg"));
# Generate Field
echo genElement($els);
echo "</div>";
#=======End Form============
#=======Table===============
# Display Table
echo "<div style='height:200px;overflow:auto'>";
echo masterTable($dbname, 'kebun_5sttanam', "*", array(), array(), null, array(), null, 'kode##kodeorg');
echo "</div>";
#=======End Table============
?>
<!--FORM NAME = "status tanaman">
<p align="center"><u><b><font face="Verdana" size="4" color="#000080">Status Tanaman</font></b></u></p>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="87%" id="AutoNumber1" height="115">
  <tr>
Exemple #12
0
#======End Select Prep======
#=======Form============
echo "<div style='margin-bottom:30px'>";
$els = array();
# Fields
$els[] = array(makeElement('kodeorg', 'label', $_SESSION['lang']['kodeorg']), makeElement('kodeorg', 'text', '', array('style' => 'width:50px', 'maxlength' => '8')));
$els[] = array(makeElement('namaorganisasi', 'label', $_SESSION['lang']['namaorganisasi']), makeElement('namaorganisasi', 'text', '', array('style' => 'width:250px', 'maxlength' => '40')));
$els[] = array(makeElement('parent', 'label', $_SESSION['lang']['parent']), makeElement('parent', 'select', '', array(), $parentOpt));
$els[] = array(makeElement('detail', 'label', $_SESSION['lang']['detail']), makeElement('detail', 'select', 1, array('style' => 'width:50px'), array('Tidak', 'Ya')));
$els[] = array(makeElement('propinsiid', 'label', $_SESSION['lang']['propinsi_id']), makeElement('propinsiid', 'select', '', array('style' => 'width:100px'), array('1' => 'Jawa Barat', '2' => 'Jawa Timur')));
$els[] = array(makeElement('alamat', 'label', $_SESSION['lang']['alamat']), makeElement('alamat', 'text', '', array('style' => 'width:250px', 'maxlength' => '60')));
$els[] = array(makeElement('wilayahkota', 'label', $_SESSION['lang']['wilayahkota']), makeElement('wilayahkota', 'text', '', array('style' => 'width:250px', 'maxlength' => '30')));
$els[] = array(makeElement('telepon', 'label', $_SESSION['lang']['telepon']), makeElement('telepon', 'text', '', array('style' => 'width:250px', 'maxlength' => '30')));
$els[] = array(makeElement('email', 'label', $_SESSION['lang']['email']), makeElement('email', 'text', '', array('style' => 'width:250px', 'maxlength' => '60')));
# Button
$els['btn'] = array(genFormBtn('##kodeorg##namaorganisasi##parent##detail##propinsiid##alamat##wilayahkota##telepon##email', 'setup_org', "##kodeorg", 'setup_slave_org'));
# Generate Field
echo genElement($els);
echo "</div>";
#=======End Form============
#=======Table============
# Get Data
$query = selectQuery($dbname, 'setup_org');
$data = fetchData($query);
# Set Header
$head = array();
$head[] = $_SESSION['lang']['kodeorg'];
$head[] = $_SESSION['lang']['namaorganisasi'];
$head[] = $_SESSION['lang']['parent'];
$head[] = $_SESSION['lang']['detail'];
$head[] = $_SESSION['lang']['propinsi_id'];
Exemple #13
0
$optKary = makeOption($dbname, 'datakaryawan', 'nik,namakaryawan', $whereKary, '0');
#======End Select Prep======
#=======Form============
echo "<div style='margin-bottom:30px'>";
$els = array();
# Fields
$els[] = array(makeElement('kodeorg', 'label', $_SESSION['lang']['kodeorg']), makeElement('kodeorg', 'select', '', array('style' => 'width:200px'), $optOrg));
$els[] = array(makeElement('kodetangki', 'label', $_SESSION['lang']['kodetangki']), makeElement('kodetangki', 'text', '', array('style' => 'width:200px', 'maxlength' => '10', 'onkeypress' => 'return tanpa_kutip(event)')));
$els[] = array(makeElement('keterangan', 'label', $_SESSION['lang']['keterangan']), makeElement('keterangan', 'text', '', array('style' => 'width:200px', 'maxlength' => '50', 'onkeypress' => 'return tanpa_kutip(event)')));
$els[] = array(makeElement('komoditi', 'label', $_SESSION['lang']['komoditi']), makeElement('komoditi', 'text', '', array('style' => 'width:200px', 'maxlength' => '3', 'onkeypress' => 'return tanpa_kutip(event)')));
$els[] = array(makeElement('luaspenampang', 'label', $_SESSION['lang']['luaspenampang']), makeElement('luaspenampang', 'textnum', '', array('style' => 'width:200px', 'maxlength' => '10', 'onkeypress' => 'return angka_doang(event)')));
$els[] = array(makeElement('satuanpenampang', 'label', $_SESSION['lang']['satuanpenampang']), makeElement('satuanpenampang', 'text', '', array('style' => 'width:200px', 'maxlength' => '10', 'onkeypress' => 'return tanpa_kutip(event)')));
$els[] = array(makeElement('volumekerucut', 'label', $_SESSION['lang']['volumekerucut']), makeElement('volumekerucut', 'textnum', '', array('style' => 'width:200px', 'maxlength' => '10', 'onkeypress' => 'return angka_doang(event)')));
$els[] = array(makeElement('satuankerucut', 'label', $_SESSION['lang']['satuankerucut']), makeElement('satuankerucut', 'text', '', array('style' => 'width:200px', 'maxlength' => '10', 'onkeypress' => 'return tanpa_kutip(event)')));
# Fields
$fieldStr = '##kodeorg##kodetangki##keterangan##komoditi##luaspenampang##satuanpenampang##volumekerucut##satuankerucut';
$fieldArr = explode("##", substr($fieldStr, 2, strlen($fieldStr) - 2));
# Button
$els['btn'] = array(genFormBtn($fieldStr, 'pabrik_5tangki', "##kodeorg##kodetangki", null, 'kodeorg##kodetangki'));
# Generate Field
echo genElTitle($_SESSION['lang']['tangki'], $els);
echo "</div>";
#=======End Form============
#=======Table===============
# Display Table
echo "<div style='clear:both;float:left'>";
echo masterTable($dbname, 'pabrik_5tangki', "*", array(), array(), array(), array(), null, 'kodeorg##kodetangki');
echo "</div>";
#=======End Table============
CLOSE_BOX();
echo close_body();
Exemple #14
0
$optKary = makeOption($dbname, 'datakaryawan', 'karyawanid,namakaryawan', $whereKary, '0');
#======End Select Prep======
#=======Form============
echo "<div style='margin-bottom:30px'>";
$els = array();
# Fields
$els[] = array(makeElement('kodeorg', 'label', $_SESSION['lang']['kodeorg']), makeElement('kodeorg', 'select', '', array('style' => 'width:200px'), $optOrg));
$els[] = array(makeElement('shift', 'label', $_SESSION['lang']['shift']), makeElement('shift', 'textnum', '1', array('style' => 'width:200px', 'maxlength' => '1', 'onkeypress' => 'return angka_doang(event)')));
$els[] = array(makeElement('mandor', 'label', $_SESSION['lang']['mandor']), makeElement('mandor', 'select', '', array('style' => 'width:200px'), $optKary));
$els[] = array(makeElement('asisten', 'label', $_SESSION['lang']['asisten']), makeElement('asisten', 'select', '', array('style' => 'width:200px'), $optKary));
# Fields
$fieldStr = '##kodeorg##shift##mandor##asisten';
$fieldArr = explode("##", substr($fieldStr, 2, strlen($fieldStr) - 2));
# Button
$opt = array('mandor' => $optKary, 'asisten' => $optKary);
$els['btn'] = array(genFormBtn($fieldStr, 'pabrik_5shift', "##kodeorg##shift", null, 'kodeorg##shift', null, null, '##', '##', json_encode($opt)));
# Generate Field
echo genElTitle('Shift', $els);
echo "</div>";
#=======End Form============
#=======Prepare Table=======
$table = 'pabrik_5shift';
# Extract Data
//$where = "kodeorg='".$_SESSION['empl']['lokasitugas']."'";
$where = "1";
$query = "select * from " . $dbname . "." . $table . " where " . $where;
$res = mysql_query($query);
$j = mysql_num_fields($res);
$i = 0;
$field = array();
$fieldStr = "";
Exemple #15
0
$els[] = array(makeElement('tanggalpengakuan', 'label', $_SESSION['lang']['tanggal']), makeElement('tanggalpengakuan', 'text', '', array('style' => 'width:150px', 'readonly' => 'readonly', 'onmousemove' => 'setCalendar(this.id)')));
$els[] = array(makeElement('cadangan', 'label', $_SESSION['lang']['cadangan']), makeElement('cadangan', 'textnumber', '0', array('style' => 'width:80px', 'maxlength' => '10', 'onkeypress' => 'return angka_doang(event)', 'onblur' => 'itungUnplan()')) . " Ha");
$els[] = array(makeElement('okupasi', 'label', $_SESSION['lang']['okupasi']), makeElement('okupasi', 'textnumber', '0', array('style' => 'width:80px', 'maxlength' => '10', 'onkeypress' => 'return angka_doang(event)', 'onblur' => 'itungUnplan()')) . " Ha");
$els[] = array(makeElement('rendahan', 'label', $_SESSION['lang']['rendahan']), makeElement('rendahan', 'textnumber', '0', array('style' => 'width:80px', 'maxlength' => '10', 'onkeypress' => 'return angka_doang(event)', 'onblur' => 'itungUnplan()')) . " Ha");
$els[] = array(makeElement('sungai', 'label', $_SESSION['lang']['sungai']), makeElement('sungai', 'textnumber', '0', array('style' => 'width:80px', 'maxlength' => '10', 'onkeypress' => 'return angka_doang(event)', 'onblur' => 'itungUnplan()')) . " Ha");
$els[] = array(makeElement('rumah', 'label', $_SESSION['lang']['rumah']), makeElement('rumah', 'textnumber', '0', array('style' => 'width:80px', 'maxlength' => '10', 'onkeypress' => 'return angka_doang(event)', 'onblur' => 'itungUnplan()')) . " Ha");
$els[] = array(makeElement('kantor', 'label', $_SESSION['lang']['kantor']), makeElement('kantor', 'textnumber', '0', array('style' => 'width:80px', 'maxlength' => '10', 'onkeypress' => 'return angka_doang(event)', 'onblur' => 'itungUnplan()')) . " Ha");
$els[] = array(makeElement('pabrik', 'label', $_SESSION['lang']['pabrik']), makeElement('pabrik', 'textnumber', '0', array('style' => 'width:80px', 'maxlength' => '10', 'onkeypress' => 'return angka_doang(event)', 'onblur' => 'itungUnplan()')) . " Ha");
$els[] = array(makeElement('jalan', 'label', $_SESSION['lang']['jalan']), makeElement('jalan', 'textnumber', '0', array('style' => 'width:80px', 'maxlength' => '10', 'onkeypress' => 'return angka_doang(event)', 'onblur' => 'itungUnplan()')) . " Ha");
$els[] = array(makeElement('kolam', 'label', $_SESSION['lang']['kolam']), makeElement('kolam', 'textnumber', '0', array('style' => 'width:80px', 'maxlength' => '10', 'onkeypress' => 'return angka_doang(event)', 'onblur' => 'itungUnplan()')) . " Ha");
$els[] = array(makeElement('umum', 'label', $_SESSION['lang']['umum']), makeElement('umum', 'textnumber', '0', array('style' => 'width:80px', 'maxlength' => '10', 'onkeypress' => 'return angka_doang(event)', 'onblur' => 'itungUnplan()')) . " Ha");
# Fields
$fieldStr = '##kodeorg##tahuntanam##kelaspohon##tahuntanamCurr##luasareaproduktif##luasareanonproduktif';
$fieldStr .= '##jumlahpokok##statusblok##bulanmulaipanen##tahunmulaipanen';
$fieldStr .= '##kodetanah##klasifikasitanah##topografi##intiplasma##jenisbibit##tanggalpengakuan';
$fieldStr .= '##cadangan##okupasi##rendahan##sungai##rumah##kantor##pabrik##jalan##kolam##umum';
$fieldArr = explode("##", substr($fieldStr, 2, strlen($fieldStr) - 2));
# Button
$els['btn'] = array(genFormBtn($fieldStr, 'setup_blok', "##kodeorg##tahuntanam", 'setup_slave_blok_add', null, null, 'setup_slave_blok_edit', '##tahuntanamCurr'));
# Generate Field
echo genElementMultiDim('Blok', $els, 2);
echo "</div>";
#=======End Form============
#=======Table===============
# Display Table
echo "<div id='blokTable' style='float:left;clear:both;'>";
#echo masterTable($dbname,'setup_blok',"*",array(),array(),array(),array(),'setup_slave_blok_pdf');
echo "</div>";
#=======End Table============
CLOSE_BOX();
echo close_body();
$qOpt = mysql_query($sOPt) or die(mysql_error($conn));
while ($rOpt = mysql_fetch_assoc($qOpt)) {
    $optPt .= "<option value=" . $rOpt['kodeorganisasi'] . ">" . $rOpt['namaorganisasi'] . "</option>";
}
#======End Select Prep======
#=======Form============
echo "<div style='margin-bottom:30px'>";
$els = array();
# Fields
$els[] = array(makeElement('kodeorg', 'label', $_SESSION['lang']['kodeorg']), makeElement('kodeorg', 'select', '', array('style' => 'width:150px'), $optOrg));
$els[] = array(makeElement('kodekelompok', 'label', $_SESSION['lang']['kodekelompok']), makeElement('kodekelompok', 'text', '', array('style' => 'width:100px', 'maxlength' => '5', 'onkeypress' => 'return tanpa_kutip(event)')));
$els[] = array(makeElement('keterangan', 'label', $_SESSION['lang']['keterangan']), makeElement('keterangan', 'text', '', array('style' => 'width:250px', 'maxlength' => '45', 'onkeypress' => 'return tanpa_kutip(event)')));
$els[] = array(makeElement('nokounter', 'label', $_SESSION['lang']['nokounter']), makeElement('nokounter', 'text', '0', array('style' => 'width:70px', 'maxlength' => '11', 'onkeypress' => 'return angka_doang(event)')));
# Fields
$fieldStr = '##kodeorg##kodekelompok##keterangan##nokounter';
$fieldArr = explode("##", substr($fieldStr, 2, strlen($fieldStr) - 2));
# Button
$els['btn'] = array(genFormBtn($fieldStr, 'keu_5kelompokjurnal', "##kodeorg##kodekelompok"));
# Generate Field
echo genElTitle($_SESSION['lang']['kodekelompok'] . " " . $_SESSION['lang']['jurnal'], $els);
echo "</div><br /><br /><br /><br /><br /><br /><br /><br />";
#=======End Form============
echo "\r\n<fieldset style=width=30px;float:left;>\r\n<legend style='font-weight:bold'>Reset Counter</legend>\r\n<table cellpading=1 border=0>\r\n<tr><td><select id=kodePt name=kodePt style='width:150px;'>" . $optPt . "</select><button class=mybutton onclick=\"resetJurnal()\">" . $_SESSION['lang']['save'] . "</button>\r\n</table>\r\n</fieldset><br /><br /><br /><br />";
#=======Table===============
# Display Table
echo "<div style='clear:both;float:left'>";
echo masterTable($dbname, 'keu_5kelompokjurnal');
echo "</div>";
#=======End Table============
CLOSE_BOX();
echo close_body();
#======Select Prep======
$optOrg = makeOption($dbname, 'organisasi', 'kodeorganisasi,namaorganisasi', "kodeorganisasi='" . $_SESSION['empl']['lokasitugas'] . "'");
$optBin = array(0 => 'Character', 1 => 'Numeric');
#======End Select Prep======
#=======Form============
echo "<div style='margin-bottom:30px'>";
$els = array();
# Fields
$els[] = array(makeElement('kodeaplikasi', 'label', $_SESSION['lang']['kodeaplikasi']), makeElement('kodeaplikasi', 'text', '', array('style' => 'width:150px', 'maxlength' => '2')));
$els[] = array(makeElement('kodeparameter', 'label', $_SESSION['lang']['kodeparameter']), makeElement('kodeparameter', 'text', '', array('style' => 'width:150px', 'maxlength' => '10')));
$els[] = array(makeElement('kodeorg', 'label', $_SESSION['lang']['kodeorg']), makeElement('kodeorg', 'select', '', array('style' => 'width:150px'), $optOrg));
$els[] = array(makeElement('keterangan', 'label', $_SESSION['lang']['keterangan']), makeElement('keterangan', 'text', '', array('style' => 'width:150px', 'maxlength' => '50')));
$els[] = array(makeElement('typenilai', 'label', $_SESSION['lang']['typenilai']), makeElement('typenilai', 'select', '', array('style' => 'width:150px'), $optBin));
$els[] = array(makeElement('nilai', 'label', $_SESSION['lang']['nilai']), makeElement('nilai', 'text', '', array('style' => 'width:150px', 'maxlength' => '255')));
# Fields
$fieldStr = '##kodeaplikasi##kodeparameter##kodeorg##keterangan##typenilai##nilai';
$fieldArr = explode("##", substr($fieldStr, 2, strlen($fieldStr) - 2));
# Button
$els['btn'] = array(genFormBtn($fieldStr, 'setup_parameterappl', "##kodeaplikasi##kodeparameter"));
# Generate Field
echo genElement($els);
echo "</div>";
#=======End Form============
#=======Table===============
# Display Table
echo "<div style='height:200px;overflow:auto'>";
echo masterTable($dbname, 'setup_parameterappl', "*", array(), array(), null, array(), null, 'kodeaplikasi##kodeparameter');
echo "</div>";
#=======End Table============
CLOSE_BOX();
echo close_body();
Exemple #18
0
OPEN_BOX();
?>
<script language=javascript src=js/zMaster.js></script>
<link rel=stylesheet type=text/css href=style/zTable.css>
  
<p align="left"><u><b><font face="Arial" size="5" color="#000080">Jenis Bibit</font></b></u></p>
<?php 
#======Select Prep======
#======End Select Prep======
#=======Form============
echo "<div style='margin-bottom:30px'>";
$els = array();
# Fields
$els[] = array(makeElement('jenisbibit', 'label', $_SESSION['lang']['jenisbibit']), makeElement('jenisbibit', 'text', '', array('style' => 'width:100px', 'maxlength' => '30', 'onkeypress' => 'return tanpa_kutip(event)')));
# Fields
$fieldStr = '##jenisbibit';
$fieldArr = explode("##", substr($fieldStr, 2, strlen($fieldStr) - 2));
# Button
$els['btn'] = array(genFormBtn($fieldStr, 'setup_jenisbibit', "##jenisbibit"));
# Generate Field
echo genElement($els);
echo "</div>";
#=======End Form============
#=======Table===============
# Display Table
echo "<div style='height:200px;overflow:auto'>";
echo masterTable($dbname, 'setup_jenisbibit', "*", array(), array(), null, array(), null, 'jenisbibit');
echo "</div>";
#=======End Table============
CLOSE_BOX();
echo close_body();
<?php

require_once 'master_validation.php';
require_once 'config/connection.php';
include_once 'lib/zLib.php';
$optKary = makeOption($dbname, 'datakaryawan', 'karyawanid,namakaryawan', "lokasitugas='" . $_SESSION['empl']['lokasitugas'] . "' and tipekaryawan in(1,2,3,4,5)");
$optComp = makeOption($dbname, 'sdm_ho_component', 'id,name', "type='basic'");
# Fields
$fieldStr = '##tahun##karyawanid##idkomponen##jumlah';
$fieldArr = explode("##", substr($fieldStr, 2, strlen($fieldStr) - 2));
# Options
$opt = array('karyawanid' => $optKary, 'idkomponen' => $optComp);
$optJs = str_replace('"', "##", json_encode($opt));
# Button
$els['btn'] = array(genFormBtn($fieldStr, 'sdm_5gajipokok', "##tahun##karyawanid##idkomponen", null, null, null, null, '##', '##', $optJs));
if ($_SESSION['empl']['tipeinduk'] == 'HOLDING' or $_SESSION['org']['tipelokasitugas'] == 'HOLDING') {
    $where = "1=1 and tahun=" . $_POST['tahun'];
} else {
    $where = "karyawanid in (";
    $i = 0;
    foreach ($optKary as $key => $row) {
        if ($i == 0) {
            $where .= $key;
        } else {
            $where .= "," . $key;
        }
        $i++;
    }
    $where .= ")  and tahun=" . $_POST['tahun'];
}
$tablex = "sdm_5gajipokok";