#=======Form============ echo "<div style='margin-bottom:30px'>"; $els = array(); # Fields $els[] = array(makeElement('kodeaplikasi', 'label', $_SESSION['lang']['kodeaplikasi']), makeElement('kodeaplikasi', 'select', '', array('style' => 'width:150px'), $optApp)); $els[] = array(makeElement('jabatan', 'label', $_SESSION['lang']['jabatan']), makeElement('jabatan', 'select', '', array('style' => 'width:150px'), $optJab)); # Fields $fieldStr = '##kodeaplikasi##jabatan'; $fieldArr = explode("##", substr($fieldStr, 2, strlen($fieldStr) - 2)); # Button $opt = array('jabatan' => $optJab); $btnConfig = array('freeze' => 'kodeaplikasi', 'empty' => true, 'opt' => json_encode($opt)); $els['btn'] = array(genFormBtnConfig($fieldStr, 'setup_posting', "##kodeaplikasi##jabatan", $btnConfig)); //$els['btn'] = array( // genFormBtn($fieldStr, // 'setup_posting',"##kodeaplikasi",null,'kodeaplikasi',true) //); # Generate Field echo genElTitle('Setup Posting', $els); echo "</div>"; #=======End Form============ #=======Table=============== $configTable = array('opt' => $opt, 'column' => '*'); # Display Table echo "<div style='clear:both;float:left'>"; echo masterTableConfig($dbname, 'setup_posting', $configTable); #echo masterTable($dbname,'keu_5akun',"*",array(),array(),array(),array(),'keu_slave_5daftarperkiraan_pdf'); echo "</div>"; #=======End Table============ CLOSE_BOX(); echo close_body();
$optKary = makeOption($dbname, 'datakaryawan', 'karyawanid,namakaryawan'); // Options for passing $opt = array('username' => $optUser, 'karyawanid' => $optKary); #=======Form============ echo "<div style='margin-bottom:30px'>"; $els = array(); # Fields $els[] = array(makeElement('username', 'label', $_SESSION['lang']['user']), makeElement('username', 'select', '', array('style' => 'width:250px'), $optUser)); $els[] = array(makeElement('karyawanid', 'label', $_SESSION['lang']['namakaryawan']), makeElement('karyawanid', 'select', '', array('style' => 'width:250px'), $optKary)); # Fields $fieldStr = '##username##karyawanid'; // Field yang akan diambil $fieldArr = explode("##", substr($fieldStr, 2, strlen($fieldStr) - 2)); $fieldId = '##username##karyawanid'; // Field yang menjadi ID (tidak boleh diubah) # Button $btnConfig = array('opt' => json_encode($opt), 'barang' => array('kodebarang')); $els['btn'] = array(genFormBtnConfig($fieldStr, 'admin_list', $fieldId, $btnConfig)); # Generate Field echo genElTitle("Admin List", $els); echo "</div>"; #=======End Form============ #=======Table============ # Display Table echo "<div style='clear:both;float:left'>"; $configTable = array('column' => $fieldArr, 'changeLang' => array('username' => 'user'), 'listName' => "Admin List", 'opt' => $opt); echo masterTableConfig($dbname, 'admin_list', $configTable); echo "</div>"; #=======End Table============ CLOSE_BOX(); echo close_body();
#=======Form============ echo "<div style='margin-bottom:30px'>"; $els = array(); # Fields $els[] = array(makeElement('kodegudang', 'label', $_SESSION['lang']['gudang']), makeElement('kodegudang', 'select', '', array('style' => 'width:250px'), $optGudang)); $els[] = array(makeElement('kodebarang', 'label', $_SESSION['lang']['kodebarang']), makeElement('kodebarang', 'searchBarang', '', array('style' => 'width:250px'))); $els[] = array(makeElement('nokartubin', 'label', $_SESSION['lang']['nokartubin']), makeElement('nokartubin', 'text', '', array('style' => 'width:70px', 'maxlength' => '45'))); $els[] = array(makeElement('maxstok', 'label', $_SESSION['lang']['maxstok']), makeElement('maxstok', 'textnum', '', array('style' => 'width:100px'))); $els[] = array(makeElement('minstok', 'label', $_SESSION['lang']['minstok']), makeElement('minstok', 'textnum', '', array('style' => 'width:100px'))); # Fields $fieldStr = '##kodegudang##kodebarang##nokartubin##maxstok##minstok'; // Field yang akan diambil $fieldArr = explode("##", substr($fieldStr, 2, strlen($fieldStr) - 2)); $fieldId = '##kodegudang##kodebarang'; // Field yang menjadi ID (tidak boleh diubah) # Button $btnConfig = array('disabled' => '##kodebarang', 'opt' => json_encode($opt), 'barang' => array('kodebarang')); $els['btn'] = array(genFormBtnConfig($fieldStr, 'log_5kartubin', $fieldId, $btnConfig)); # Generate Field echo genElTitle($_SESSION['lang']['nokartubin'], $els); echo "</div>"; #=======End Form============ #=======Table============ # Display Table echo "<div style='clear:both;float:left'>"; $configTable = array('column' => $fieldArr, 'freezeField' => 'kodegudang##kodebarang', 'changeLang' => array('kodegudang' => 'gudang'), 'listName' => $_SESSION['lang']['nokartubin'], 'opt' => $opt, 'cond' => $cond); echo masterTableConfig($dbname, 'log_5kartubin', $configTable); echo "</div>"; #=======End Table============ CLOSE_BOX(); echo close_body();
<script language=javascript src=js/zMaster.js></script> <script language=javascript src=js/zSearch.js></script> <link rel=stylesheet type=text/css href=style/zTable.css> <?php #=======Form============ echo "<div style='margin-bottom:30px'>"; $els = array(); # Fields $els[] = array(makeElement('kodesegment', 'label', $_SESSION['lang']['kodesegment']), makeElement('kodesegment', 'text', '', array('style' => 'width:70px', 'maxlength' => 10))); $els[] = array(makeElement('namasegment', 'label', $_SESSION['lang']['namasegment']), makeElement('namasegment', 'text', '', array('style' => 'width:300px', 'maxlength' => '70'))); # Fields $fieldStr = '##kodesegment##namasegment'; // Field yang akan diambil $fieldArr = explode("##", substr($fieldStr, 2, strlen($fieldStr) - 2)); $fieldId = '##kodesegment'; // Field yang menjadi ID (tidak boleh diubah) # Button $els['btn'] = array(genFormBtnConfig($fieldStr, 'keu_5segment', $fieldId)); # Generate Field echo genElTitle($_SESSION['lang']['segment'], $els); echo "</div>"; #=======End Form============ #=======Table============ # Display Table echo "<div style='clear:both;float:left'>"; $configTable = array('column' => $fieldArr, 'freezeField' => 'kodesegment', 'listName' => $_SESSION['lang']['segment']); echo masterTableConfig($dbname, 'keu_5segment', $configTable); echo "</div>"; #=======End Table============ CLOSE_BOX(); echo close_body();