#saat ini kebijakan PTA hanya untuk kapital saja $optTipe = "<option value=''>" . $_SESSION['lang']['pilihdata'] . "</option>"; $optTipe .= "<option value='KAPITAL'>CAPITAL</option>"; #========================================= $frm[0] .= "<td width=150><select id='tipe_pta' style='width:150px;'>{$optTipe}</select>\r\n </td>\r\n <td width=150>" . $_SESSION['lang']['volume'] . " " . $_SESSION['lang']['pekerjaan'] . "</td><td>:</td>\r\n <td><input type='text' class='myinputtext' id='vol_pekerjaan' onkeypress='return tanpa_kutip();' size=10 maxlength=10 style='width:150px;' value=0></td>\r\n </tr>\r\n <tr>\r\n <td width=150>" . $_SESSION['lang']['kelompok'] . " PTA</td><td>:</td>"; // get jenis pta enum $optJn = "<option value=''>" . $_SESSION['lang']['pilihdata'] . "</option>"; $arrJn = getEnum($dbname, 'pta_dt', 'jenispta'); foreach ($arrJn as $jenis => $pta) { $optJn .= "<option value='" . $jenis . "'>" . $pta . "</option>"; } #========================================= #untuk mengaktifkan semua pilihan silahkan buka ini #saat ini kebijakan PTA hanya untuk MATERIAL saja $optJn = "<option value=''>" . $_SESSION['lang']['pilihdata'] . "</option>"; $optJn .= "<option value='MATERIAL'>MATERIAL</option>"; #========================================= $frm[0] .= "<td><select id='jenis_pta' onchange='kunciForm()' style='width:150px;'>{$optJn}</select>\r\n </td>\r\n <td width=150>" . $_SESSION['lang']['satuan'] . " Volume</td><td>:</td>\r\n <td><input type='text' class='myinputtext' id='satuan_vol' size=10 maxlength=10 style='width:150px;' /></td>\r\n </tr>\r\n <tr>\r\n <td width=150>" . $_SESSION['lang']['noakun'] . "</td><td>:</td>\r\n <td><select id=noakunData style='width:150px;' onchange=getKegiatan()>{$optAkun}</select></td>\r\n <td width=150>" . $_SESSION['lang']['jumlah'] . "</td><td>:</td>\r\n <td><input type='text' class='myinputtext' id='jml' onkeypress='return tanpa_kutip();' size=10 maxlength=10 style='width:150px;' value=0></td>\r\n </tr>\r\n <tr>\r\n <td width=150>" . $_SESSION['lang']['kegiatan'] . "</td><td>:</td>\r\n <td><select id=kegId onchange='createNew()' style='width:150px;'>{$optKeg}</select></td>\r\n <td width=150>" . $_SESSION['lang']['satuan'] . " Amount</td><td>:</td>\r\n <td><input type='text' class='myinputtext' id='satuan_jml' onkeypress='return tanpa_kutip();' size=10 maxlength=10 style='width:150px;'></td>\r\n </tr>\r\n <tr>\r\n <td width=150>" . $_SESSION['lang']['alokasi'] . "</td><td>:</td>\r\n <td><select id=alokasi style='width:150px;'>{$optAlokasi}</select></td>\r\n <td width=150>" . $_SESSION['lang']['total'] . "(Rp)</td><td>:</td>\r\n <td><input type='text' class='myinputtext' id='jml_rp' onkeypress='return tanpa_kutip();' size=10 maxlength=10 style='width:150px;' value=0></td>\r\n </tr>\r\n <tr>\r\n <td hidden width=150>" . $_SESSION['lang']['kodevhc'] . "</td><td hidden>:</td>\r\n <td hidden><select id='kode_vhc' style='width:150px;'>{$optVhc}</select></td>\r\n <td colspan=3 hidden></td>\r\n </tr>\r\n <tr>\r\n <td width=150>" . $_SESSION['lang']['kodebarang'] . "</td><td>:</td>\r\n <td><input readonly type='text' class='myinputtext' id='kdbrng' onkeypress='return tanpa_kutip();' size=10 maxlength=10 style='width:150px;'></td>\r\n <td colspan=3>\r\n <img src=images/search.png class=dellicon title=" . $_SESSION['lang']['find'] . " onclick=\"searchBrg('" . $_SESSION['lang']['findBrg'] . "','<fieldset><legend>" . $_SESSION['lang']['findnoBrg'] . "</legend>Find<input type=text class=myinputtext id=no_brg><button class=mybutton onclick=findBrg()>Find</button></fieldset><div id=container></div><input type=hidden id=nomor name=nomor value=" . $key . ">',event)\";>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td width=150>" . $_SESSION['lang']['namabarang'] . "</td><td>:</td>\r\n <td><input readonly type='text' class='myinputtext' id='nmbrng' onkeypress='return tanpa_kutip();' size=10 maxlength=10 style='width:150px;' /></td>\r\n </tr>\r\n <tr>\r\n <td colspan=6 id='tmbl' align=center>\r\n <button class=mybutton id=saveForm onclick=saveForm()>" . $_SESSION['lang']['save'] . "</button>\r\n <button class=mybutton id=cancelForm onclick=cancelForm()>" . $_SESSION['lang']['cancel'] . "</button>\r\n <button class=mybutton id=ajukanForm onclick=showAjukan()>Ajukan</button>\r\n </td>\r\n </tr>\r\n </table>\r\n</fieldset>\r\n</div>"; $sLoad = "select * from " . $dbname . ".pta_dt \r\n where unit='" . $_SESSION['empl']['lokasitugas'] . "'"; $qLoad = mysql_query($sLoad) or die(mysql_error()); $frm[0] .= "<div>\r\n <fieldset> \r\n <table cellspacing=1 border=0 class='sortable'>\r\n <thead><tr class=rowcontent>\r\n <td align=center>" . $_SESSION['lang']['action'] . "</td>\r\n <td align=center>No.</td>\r\n <td align=center>" . $_SESSION['lang']['tipe'] . " PTA</td>\r\n <td align=center>" . $_SESSION['lang']['kelompok'] . " PTA</td>\r\n <td align=center>" . $_SESSION['lang']['namaakun'] . "</td>\r\n <td align=center>" . $_SESSION['lang']['kegiatan'] . "</td>\r\n <td align=center>Total (Rp)</td>\r\n <td align=center>" . $_SESSION['lang']['alokasi'] . "</td>\r\n <td align=center>" . $_SESSION['lang']['kodevhc'] . "</td>\r\n <td align=center>" . $_SESSION['lang']['namabarang'] . "</td>\r\n <td align=center>" . $_SESSION['lang']['volume'] . "</td>\r\n <td align=center>" . $_SESSION['lang']['satuan'] . " volume</td>\r\n <td align=center>" . $_SESSION['lang']['jumlah'] . "</td>\r\n <td align=center>" . $_SESSION['lang']['satuan'] . " Amount</td>\r\n <td align=center>" . $_SESSION['lang']['dibuatoleh'] . "</td>\r\n </tr></thead><tbody id=contain>"; $frm[0] .= "<script>loaddata()</script></tbody>\r\n </table>\r\n \r\n</fieldset>\r\n</div><input type=hidden id=method value=add />"; $frm[1] .= "<fieldset><legend>Daftar PTA</legend><div id=daftarData>"; $frm[1] .= "</div></fieldset>"; $hfrm[0] = "Buat PTA"; $hfrm[1] = "Daftar PTA"; drawTab('FRM', $hfrm, $frm, 100, 1000); ?> <?php CLOSE_BOX();
$optPabrik1 = "<option value=''>" . $_SESSION['lang']['pilihdata'] . "</option>"; $sOpt = "select kodeorganisasi,namaorganisasi from " . $dbname . ".organisasi where tipe='PABRIK'"; $qOpt = mysql_query($sOpt) or die(mysql_error()); while ($rOpt = mysql_fetch_assoc($qOpt)) { $optPabrik1 .= "<option value=" . $rOpt['kodeorganisasi'] . ">" . $rOpt['namaorganisasi'] . "</option>"; } $sBrg = "select namabarang,kodebarang from " . $dbname . ".log_5masterbarang where kelompokbarang='400'"; $qBrg = mysql_query($sBrg) or die(mysql_error()); $optBrg = "<option value=''>" . $_SESSION['lang']['all'] . "</option>"; while ($rBrg = mysql_fetch_assoc($qBrg)) { $optBrg .= "<option value=" . $rBrg['kodebarang'] . ">" . $rBrg['namabarang'] . "</option>"; } $sBrg = "select namabarang,kodebarang from " . $dbname . ".log_5masterbarang where kodebarang in ('40000001', '40000002')"; $qBrg = mysql_query($sBrg) or die(mysql_error()); while ($rBrg = mysql_fetch_assoc($qBrg)) { $optBrg1 .= "<option value=" . $rBrg['kodebarang'] . ">" . $rBrg['namabarang'] . "</option>"; } $arr = "##tanggalmulai##tanggalakhir##idPabrik##kdBrg"; ?> <script language=javascript src=js/zTools.js></script> <script language=javascript src=js/zReport.js></script> <script language=javascript src='js/pmn_2penjualan.js'></script> <link rel=stylesheet type=text/css href=style/zTable.css> <?php $frm[0] .= "<div style=\"margin-bottom: 30px;\">\r\n<fieldset style=\"float: left;\">\r\n<legend><b>" . $_SESSION['lang']['find'] . "</b></legend>\r\n<table cellspacing=\"1\" border=\"0\" >\r\n<tr><td style='display:none'><label>" . $_SESSION['lang']['periode'] . "</label></td><td style='display:none;'><select id=\"periode\" name=\"periode\" style=\"width:150px\">" . $optPeriode . "</select></td></tr>\r\n<tr><td><label>" . $_SESSION['lang']['tgldari'] . "</label></td><td><input type=text class=myinputtext id=tanggalmulai onmousemove=setCalendar(this.id) onkeypress=return false; size=10 maxlength=10 /></td></tr>\r\n<tr><td><label>" . $_SESSION['lang']['tglsmp'] . "</label></td><td><input type=text class=myinputtext id=tanggalakhir onmousemove=setCalendar(this.id) onkeypress=return false; size=10 maxlength=10 /></td></tr>\r\n<tr><td><label>" . $_SESSION['lang']['nm_perusahaan'] . "</label></td><td><select id=\"idPabrik\" name=\"idPabrik\" style=\"width:150px\">" . $optPabrik . "</select></td></tr>\r\n<tr><td><label>" . $_SESSION['lang']['komoditi'] . "</label></td><td><select id=\"kdBrg\" name=\"kdBrg\" style=\"width:150px\">" . $optBrg . "</select></td></tr>\r\n<tr><td colspan=\"2\"><button onclick=\"zPreview('pmn_slave_2rekapkontrak','" . $arr . "','printContainer')\" class=\"mybutton\" name=\"preview\" id=\"preview\">Preview</button>\r\n <button onclick=\"zExcel(event,'pmn_slave_2rekapkontrak.php','" . $arr . "')\" class=\"mybutton\" name=\"preview\" id=\"preview\">Excel</button></td></tr>\r\n</table>\r\n</fieldset>\r\n</div>\r\n<fieldset style='clear:both'><legend><b>Print Area</b></legend>\r\n<div id='printContainer' style='overflow:auto;height:350px;max-width:1220px'>\r\n</div></fieldset>"; //======================== $hfrm[0] = "Rekap Kontrak, Invoice dan Faktur Penjualan"; drawTab('FRM', $hfrm, $frm, 200, 900); //=============================================== CLOSE_BOX(); echo close_body();
} $optTipe = "<option value=''>" . $_SESSION['lang']['all'] . "</option>"; $iTipe = "select * from " . $dbname . ".sdm_5tipekaryawan where id between 1 and 6 "; $nTipe = mysql_query($iTipe) or die(mysql_error($conn)); while ($dTipe = mysql_fetch_assoc($nTipe)) { $optTipe .= "<option value=" . $dTipe['id'] . ">" . $dTipe['tipe'] . "</option>"; } $optJab = "<option value=''>" . $_SESSION['lang']['all'] . "</option>"; $iJab = "select * from " . $dbname . ".sdm_5jabatan order by namajabatan asc"; $nJab = mysql_query($iJab) or die(mysql_error($conn)); while ($dJab = mysql_fetch_assoc($nJab)) { $optJab .= "<option value=" . $dJab['kodejabatan'] . ">" . $dJab['namajabatan'] . "</option>"; } $frm[0] = ''; $frm[1] = ''; OPEN_BOX('', "<b>Rekap Gaji</b><br /><br />"); $arr = "##kdorg##per1##per2##kom##tipekar"; $frm[0] .= "<fieldset style='float:left;'>\n <legend>Form</legend>\n <table border=0 cellpadding=1 cellspacing=1>\n <tr>\n <td>" . $_SESSION['lang']['unit'] . "</td>\n <td>:</td>\n <td><select id=kdorg style=\"width:150px;\">" . $optOrg . "</select></td>\n </tr>\n <tr>\n <td>" . $_SESSION['lang']['periode'] . "</td>\n <td>:</td>\n <td><select id=per1 style=\"width:150px;\">" . $optPer . "</select> S/D \n <select id=per2 style=\"width:150px;\">" . $optPer . "</select></td>\n </tr>\n <tr>\n <td>" . $_SESSION['lang']['komponenpayroll'] . "</td>\n <td>:</td>\n <td><select id=kom style=\"width:150px;\">" . $optTp . "</select></td>\n </tr>\n <tr>\n <td>" . $_SESSION['lang']['tipekaryawan'] . "</td>\n <td>:</td>\n <td><select id=tipekar style=\"width:150px;\">" . $optTipe . "</select></td>\n </tr>\n\n <tr>\n <td colspan=4>\n <button onclick=zPreview('sdm_slave_2totalkomponengaji','" . $arr . "','printContainer') class=mybutton name=preview id=preview>" . $_SESSION['lang']['preview'] . "</button>\n <button onclick=zExcel(event,'sdm_slave_2totalkomponengaji.php','" . $arr . "') class=mybutton name=preview id=preview>" . $_SESSION['lang']['excel'] . "</button>\n </td>\n </tr>\n </table>\n</fieldset>"; $frm[0] .= "\n<fieldset style='clear:both'><legend><b>" . $_SESSION['lang']['printArea'] . "</b></legend>\n<div id='printContainer' style='overflow:auto;height:400px;max-width:1220px'; >\n</div></fieldset>"; //<div id='printContainer' style='overflow:auto;height:350px;max-width:1220px'; > //<div id='printContainer'> $arrv = "##kdorgv##per1v##per2v##komv##tipekarv##jabv"; $frm[1] .= "<fieldset style='float:left;'>\n <legend>Form</legend>\n <table border=0 cellpadding=1 cellspacing=1>\n <tr>\n <td>" . $_SESSION['lang']['unit'] . "</td>\n <td>:</td>\n <td><select id=kdorgv style=\"width:150px;\">" . $optOrg . "</select></td>\n </tr>\n <tr>\n <td>" . $_SESSION['lang']['periode'] . "</td>\n <td>:</td>\n <td><select id=per1v style=\"width:150px;\">" . $optPer . "</select> S/D \n <select id=per2v style=\"width:150px;\">" . $optPer . "</select></td>\n </tr>\n <tr>\n <td>" . $_SESSION['lang']['komponenpayroll'] . "</td>\n <td>:</td>\n <td><select id=komv style=\"width:150px;\">" . $optTp . "</select></td>\n </tr>\n <tr>\n <td>" . $_SESSION['lang']['tipekaryawan'] . "</td>\n <td>:</td>\n <td><select id=tipekarv style=\"width:150px;\">" . $optTipe . "</select></td>\n </tr>\n <tr>\n <td>" . $_SESSION['lang']['jabatan'] . "</td>\n <td>:</td>\n <td><select id=jabv style=\"width:150px;\">" . $optJab . "</select></td>\n </tr>\n\n <tr>\n <td colspan=4>\n <button onclick=zPreview('sdm_slave_2totalkomponengajiv','" . $arrv . "','printContainerv') class=mybutton name=preview id=preview>" . $_SESSION['lang']['preview'] . "</button>\n <button onclick=zExcel(event,'sdm_slave_2totalkomponengajiv.php','" . $arrv . "') class=mybutton name=preview id=preview>" . $_SESSION['lang']['excel'] . "</button>\n </td>\n </tr>\n </table>\n</fieldset>"; $frm[1] .= "\n<fieldset style='clear:both'><legend><b>" . $_SESSION['lang']['printArea'] . "</b></legend>\n<div id='printContainerv' style='overflow:auto;height:400px;max-width:1220px'; >\n</div></fieldset>"; $hfrm[0] = 'Detail Perkaryawan'; $hfrm[1] = 'Rekap Jabatan'; //$hfrm[1]=$_SESSION['lang']['list']; //draw tab, jangan ganti parameter pertama, krn dipakai di javascript drawTab('FRM', $hfrm, $frm, 300, 1150); CLOSE_BOX(); echo close_body();
$els[] = array(makeElement('nohp', 'label', $_SESSION['lang']['nohp']), makeElement('nohp', 'text', $data[0]['nohp'], array('style' => 'width:250px', 'maxlength' => '15', 'onkeypress' => 'return angka_doang(event)'))); $els[] = array(makeElement('norekeningbank', 'label', $_SESSION['lang']['norekeningbank']), makeElement('norekeningbank', 'text', $data[0]['norekeningbank'], array('style' => 'width:250px', 'maxlength' => '30', 'onkeypress' => 'return angka_doang(event)'))); $els[] = array(makeElement('namabank', 'label', $_SESSION['lang']['namabank']), makeElement('namabank', 'text', $data[0]['namabank'], array('style' => 'width:250px', 'maxlength' => '45', 'onkeypress' => 'return tanpa_kutip(event)'))); $els[] = array(makeElement('sistemgaji', 'label', $_SESSION['lang']['sistemgaji']), makeElement('sistemgaji', 'text', $data[0]['sistemgaji'], array('style' => 'width:250px', 'maxlength' => '3', 'onkeypress' => 'return angka_doang(event)'))); $els[] = array(makeElement('nopaspor', 'label', $_SESSION['lang']['nopaspor']), makeElement('nopaspor', 'text', $data[0]['nopaspor'], array('style' => 'width:250px', 'maxlength' => '30', 'onkeypress' => 'return tanpa_kutip(event)'))); $els[] = array(makeElement('noktp', 'label', $_SESSION['lang']['noktp']), makeElement('noktp', 'text', $data[0]['noktp'], array('style' => 'width:250px', 'maxlength' => '30', 'onkeypress' => 'return tanpa_kutip(event)'))); $els[] = array(makeElement('notelepondarurat', 'label', $_SESSION['lang']['notelepondarurat']), makeElement('notelepondarurat', 'text', $data[0]['notelepondarurat'], array('style' => 'width:250px', 'maxlength' => '15', 'onkeypress' => 'return angka_doang(event)'))); $els[] = array(makeElement('tanggalmasuk', 'label', $_SESSION['lang']['tanggalmasuk']), makeElement('tanggalmasuk', 'text', $data[0]['tanggalmasuk'], array('style' => 'width:250px', 'readonly' => 'readonly', 'onmousemove' => 'setCalendar(this.id)'))); $els[] = array(makeElement('tanggalkeluar', 'label', $_SESSION['lang']['tanggalkeluar']), makeElement('tanggalkeluar', 'text', $data[0]['tanggalkeluar'], array('style' => 'width:250px', 'maxlength' => 'maxlength', 'onmousemove' => 'setCalendar(this.id)'))); $els[] = array(makeElement('tipekaryawan', 'label', $_SESSION['lang']['tipekaryawan']), makeElement('tipekaryawan', 'text', $data[0]['tipekaryawan'], array('style' => 'width:250px', 'maxlength' => '3', 'onkeypress' => 'return angka_doang(event)'))); $els[] = array(makeElement('jumlahanak', 'label', $_SESSION['lang']['jumlahanak']), makeElement('jumlahanak', 'text', $data[0]['jumlahanak'], array('style' => 'width:250px', 'maxlength' => '10', 'onkeypress' => 'return angka_doang(event)'))); $els[] = array(makeElement('jumlahtanggungan', 'label', $_SESSION['lang']['jumlahtanggungan']), makeElement('jumlahtanggungan', 'text', $data[0]['jumlahtanggungan'], array('style' => 'width:250px', 'maxlength' => '10', 'onkeypress' => 'return angka_doang(event)'))); $els[] = array(makeElement('statuspajak', 'label', $_SESSION['lang']['statuspajak']), makeElement('statuspajak', 'text', $data[0]['statuspajak'], array('style' => 'width:250px', 'maxlength' => '4', 'onkeypress' => 'return tanpa_kutip(event)'))); $els[] = array(makeElement('npwp', 'label', $_SESSION['lang']['npwp']), makeElement('npwp', 'text', $data[0]['npwp'], array('style' => 'width:250px', 'maxlength' => '25', 'onkeypress' => 'return angka_doang(event)'))); $els[] = array(makeElement('lokasipenerimaan', 'label', $_SESSION['lang']['lokasipenerimaan']), makeElement('lokasipenerimaan', 'text', $data[0]['lokasipenerimaan'], array('style' => 'width:250px', 'maxlength' => '30', 'onkeypress' => 'return tanpa_kutip(event)'))); $els[] = array(makeElement('kodeorganisasi', 'label', $_SESSION['lang']['kodeorganisasi']), makeElement('kodeorganisasi', 'select', $data[0]['kodeorganisasi'], array('style' => 'width:250px'), $optOrg)); $els[] = array(makeElement('bagian', 'label', $_SESSION['lang']['bagian']), makeElement('bagian', 'text', $data[0]['bagian'], array('style' => 'width:250px', 'maxlength' => '8', 'onkeypress' => 'return tanpa_kutip(event)'))); $els[] = array(makeElement('kodejabatan', 'label', $_SESSION['lang']['kodejabatan']), makeElement('kodejabatan', 'select', $data[0]['kodejabatan'], array('style' => 'width:250px'), $optJab)); $els[] = array(makeElement('kodegolongan', 'label', $_SESSION['lang']['kodegolongan']), makeElement('kodegolongan', 'select', $data[0]['kodegolongan'], array('style' => 'width:250px'), $optGol)); $els[] = array(makeElement('lokasitugas', 'label', $_SESSION['lang']['lokasitugas']), makeElement('lokasitugas', 'text', $data[0]['lokasitugas'], array('style' => 'width:250px', 'maxlength' => '8', 'onkeypress' => 'return tanpa_kutip(event)'))); $frm[0] = "<div style='width:783px;height:345px;overflow:auto'>" . genElementMultiDim('Header Data Karyawan', $els, 2) . "</div>"; #=========== Draw Tab and Content ================== # Karyawan id if ($mode == 'edit') { echo makeElement('karyawanid', 'hidden', $idK); } else { echo makeElement('karyawanid', 'hidden', ''); } # Tab drawTab('tabKary', $hfrm, $frm, 80, 775);
<script> function Clear1() { document.getElementById('thnBudget').value=''; document.getElementById('kdUnit').value=''; document.getElementById('printContainer').innerHTML=''; } function Clear2() { document.getElementById('thnBudget1').value=''; document.getElementById('kdUnit1').value=''; document.getElementById('printContainer1').innerHTML=''; } </script> <link rel=stylesheet type=text/css href=style/zTable.css> <?php $frm[0] .= "\r\n<fieldset style=\"float: left;\">\r\n<legend><b>" . $_SESSION['lang']['byTraski'] . "</b></legend>\r\n<table cellspacing=1 border=0 >\r\n<tr><td><label>" . $_SESSION['lang']['budgetyear'] . "</label></td><td><select id='thnBudget' style=\"width:150px;\">" . $optThn . "</select></td></tr>\r\n<tr><td><label>" . $_SESSION['lang']['kodetraksi'] . "</label></td><td><select id='kdUnit' style=\"width:150px;\">" . $optOrg . "</select></td></tr>\r\n<tr height=20><td colspan=2> </td></tr>\r\n<tr><td colspan=2><button onclick=\"zPreview('bgt_slave_laporan_biaya_kendaraan','" . $arr . "','printContainer')\" class=mybutton name=preview id=preview>Preview</button>\r\n<button onclick=\"zPdf('bgt_slave_laporan_biaya_kendaraan','" . $arr . "','printContainer')\" class=mybutton name=preview id=preview>PDF</button>\r\n<button onclick=\"zExcel(event,'bgt_slave_laporan_biaya_kendaraan.php','" . $arr . "')\" class=mybutton name=preview id=preview>Excel</button>\r\n<button onclick=Clear1() class=mybutton name=btnBatal id=btnBatal>" . $_SESSION['lang']['cancel'] . "</button></td></tr>\r\n\r\n</table>\r\n</fieldset>\r\n"; $frm[0] .= "<fieldset style='clear:both'><legend><b>" . $_SESSION['lang']['printArea'] . "</b></legend>\r\n<div id='printContainer' style='overflow:auto;height:350px;max-width:1220px'>\r\n</div></fieldset>\r\n"; $frm[1] .= "\r\n<fieldset style=\"float: left;\">\r\n<legend><b>" . $_SESSION['lang']['rekap'] . " " . $_SESSION['lang']['byTraski'] . "</b></legend>\r\n<table cellspacing=1 border=0 >\r\n<tr><td><label>" . $_SESSION['lang']['budgetyear'] . "</label></td><td><select id='thnBudget1' style=\"width:150px;\">" . $optThn . "</select></td></tr>\r\n<tr><td><label>" . $_SESSION['lang']['kodetraksi'] . "</label></td><td><select id='kdUnit1' style=\"width:150px;\">" . $optOrg . "</select></td></tr>\r\n<tr height=20><td colspan=2> </td></tr>\r\n<tr><td colspan=2><button onclick=\"zPreview('bgt_slave_laporan_biaya_kendaraan1','" . $arr1 . "','printContainer1')\" class=mybutton name=preview id=preview>Preview</button>\r\n<button onclick=\"zExcel(event,'bgt_slave_laporan_biaya_kendaraan1.php','" . $arr1 . "')\" class=mybutton name=preview id=preview>Excel</button>\r\n<button onclick=Clear2() class=mybutton name=btnBatal id=btnBatal>" . $_SESSION['lang']['cancel'] . "</button></td></tr>\r\n\r\n</table>\r\n</fieldset>\r\n"; $frm[1] .= "<fieldset style='clear:both'><legend><b>" . $_SESSION['lang']['printArea'] . "</b></legend>\r\n<div id='printContainer1' style='overflow:auto;height:350px;max-width:1220px'>\r\n</div></fieldset>\r\n"; //======================== $hfrm[0] = $_SESSION['lang']['byTraski']; $hfrm[1] = $_SESSION['lang']['rekap'] . " " . $_SESSION['lang']['byTraski']; //draw tab, jangan ganti parameter pertama, krn dipakai di javascript drawTab('FRM', $hfrm, $frm, 200, 1100); //=============================================== CLOSE_BOX(); echo close_body();
$optPeriode .= "<option value='" . $rPeriode['periode'] . "'>" . $rPeriode['periode'] . "</option>"; } $frm[0] .= "<div style=clear:both;> </div>"; $frm[0] .= "<fieldset style=width:550px;><legend>" . $_SESSION['lang']['datatersimpan'] . "</legend>"; $frm[0] .= "" . $_SESSION['lang']['periode'] . " : <select id=periodeCari onchange=getCari()>" . $optPeriode . "</select>\n " . $_SESSION['lang']['blok'] . " : <select id=kdBlokCari style=width:150px onchange=getCari()>" . $optKdorg2 . "</select><br />"; $frm[0] .= "<table cellpadding=1 cellspacing=1 border=0 class=sortable>\n <thead>\n <tr class=rowheader>\n <td rowspan=2>No</td>\n <td rowspan=2>" . $_SESSION['lang']['tanggal'] . "</td>\n <td rowspan=2>" . $_SESSION['lang']['blok'] . "</td>\n <td colspan=2 align=center>Panen</td>\n <td colspan=2 align=center>Kirim</td>\n <td rowspan=2 colspan=2>Action</td>\n </tr>\n <tr><td align=center>Janjang</td><td align=center>KG</td><td align=center>Janjang</td><td align=center>KG</td></tr>\n </thead><tbody id=containData1><script>loadData1()</script> \n\t\t"; $frm[0] .= "</tbody></table></fieldset>"; ################################################# $optNm = makeOption($dbname, 'organisasi', 'kodeorganisasi,namaorganisasi'); $optUnit = "<option value=''>" . $_SESSION['lang']['pilihdata'] . "</option>"; $optAfd = "<option value=''>" . $_SESSION['lang']['all'] . "</option>"; $optBlok = $optAfd; $optUnit .= "<option value='" . $_SESSION['empl']['lokasitugas'] . "'>" . $optNm[$_SESSION['empl']['lokasitugas']] . "</option>"; $arr = "##kdUnit##afdId##BlokId##periodeId"; $frm[1] .= "\n<fieldset style=\"float: left;\">\n<legend><b>Laporan Restan</b></legend>\n<table cellspacing=\"1\" border=\"0\" >\n<tr><td><label>" . $_SESSION['lang']['unit'] . "</label></td><td><select id=\"kdUnit\" name=\"kdUnit\" style=\"width:150px\" onchange='getAfd()'>" . $optUnit . "</select></td></tr>\n<tr><td><label>" . $_SESSION['lang']['afdeling'] . "</label></td><td><select id=\"afdId\" name=\"afdId\" style=\"width:150px\" onchange='getBlok()'>" . $optAfd . "</select></td></tr>\n<tr><td><label>" . $_SESSION['lang']['blok'] . "</label></td><td><select id=\"BlokId\" name=\"BlokId\" style=\"width:150px\">" . $optBlok . "</select></td></tr>\n<tr><td><label>" . $_SESSION['lang']['periode'] . "</label></td><td><select id=\"periodeId\" name=\"periodeId\" style=\"width:150px\">" . $optPeriode . "</select></td></tr>\n\n<tr height=\"20\"><td colspan=\"2\"> </td></tr>\n<tr><td colspan=\"2\">\n<button onclick=\"zPreview('kebun_slave_restan','" . $arr . "','printContainer')\" class=\"mybutton\" name=\"preview\" id=\"preview\">Preview</button>\n<button onclick=\"zPdf('kebun_slave_restan','" . $arr . "','printContainer')\" class=\"mybutton\">PDF</button> \n<button onclick=\"zExcel(event,'kebun_slave_restan.php','" . $arr . "')\" class=\"mybutton\" name=\"preview\" id=\"preview\">Excel</button></td></tr>\n\n</table>\n</fieldset>"; $frm[1] .= "<fieldset style='clear:both'><legend><b>Print Area</b></legend>\n<div id='printContainer' style='overflow:auto;height:350px;max-width:1220px'>\n\n</div></fieldset>"; //======================== $hfrm[0] = "Input Restan"; $hfrm[1] = "Laporan Restan"; //$hfrm[6]=$_SESSION['lang']['prosesUlang']; //$hfrm[1]=$_SESSION['lang']['list']; //draw tab, jangan ganti parameter pertama, krn dipakai di javascript drawTab('FRM', $hfrm, $frm, 150, 700); //=============================================== ?> <?php CLOSE_BOX(); echo "</div>"; echo close_body();
$frm[0] .= "<div id=containListBarang></div></fieldset>"; $frm[1] .= "<fieldset style=float:left>"; $frm[1] .= "<legend><b>" . $_SESSION['lang']['form'] . "</b></legend>"; $frm[1] .= "<table border=0 cellpadding=1 cellspacing=1>"; $frm[1] .= "\r\n <tr>\r\n <td>" . $_SESSION['lang']['nourut'] . "</td>\r\n <td>:</td>\t\t\r\n <td><input type=text id=nomor size=2 onkeypress=\"return angka_doang(event);\" class=myinputtextnumber style=\"width:150px;\"></td>\r\n\t</tr>\r\n <tr>\r\n <td>Item Check</td>\r\n <td>:</td>\r\n <td><textarea onkeypress=\"return tanpa_kutip(event)\" id=rincian style=\"width:500px;\" rows=5></textarea></td>\r\n </tr>\r\n \r\n <tr>\r\n <td>" . $_SESSION['lang']['kondisi'] . "</td>\r\n <td>:</td>\t\t\r\n <td><select id=kondisi style=\"width:150px;\">'" . $optKondisi . "'</select></td>\r\n\t</tr>\r\n \r\n <tr>\r\n <td><button id=savehead class=mybutton onclick=savePekerjaan()>Simpan</button></td>\r\n </tr>"; $frm[1] .= "</table></fieldset>"; $frm[1] .= "<fieldset style=float:left style='display:block;'>"; $frm[1] .= "<legend><b>" . $_SESSION['lang']['list'] . "</b></legend>"; // $frm[1] .= "<div id=containListPekerjaan></div></fieldset>"; $frm[2] .= "<fieldset style=float:left>"; $frm[2] .= "<legend><b>" . $_SESSION['lang']['form'] . "</b></legend>"; $frm[2] .= "<table border=0 cellpadding=1 cellspacing=1>"; $frm[2] .= "\r\n <tr>\r\n <td>" . $_SESSION['lang']['namakaryawan'] . "</td>\r\n <td>:</td>\t\t\r\n <td><select id=karyawan style=\"width:150px;\">'" . $optKaryawan . "'</select></td>\r\n\t</tr>\r\n <tr>\r\n <td><button id=save class=mybutton onclick=saveKaryawan()>Simpan</button></td>\r\n </tr>"; $frm[2] .= "</table></fieldset>"; $frm[2] .= "<fieldset style=float:left style='display:block;'>"; $frm[2] .= "<legend><b>" . $_SESSION['lang']['list'] . "</b></legend>"; // $frm[2] .= "<div id=containListKaryawan></div></fieldset>"; $hfrm[0] = $_SESSION['lang']['daftarbarang']; $hfrm[1] = $_SESSION['lang']['listPekerjaan']; $hfrm[2] = $_SESSION['lang']['karyawan']; //$hfrm[1]=$_SESSION['lang']['list']; //draw tab, jangan ganti parameter pertama, krn dipakai di javascript drawTab('FRM', $hfrm, $frm, 250, 1150); //echo "<script>loadDetailBarang()</script>"; CLOSE_BOX(); echo close_body(); ?>
$optjabatan .= "<option value='" . $asjab . "'>" . $asjab . "</option>"; } $optqcid = "<option value=''>" . $_SESSION['lang']['pilihdata'] . "</option>"; $sOrg2 = "select id, tipe, nama from " . $dbname . ".qc_5parameter\r\n order by tipe, nama\r\n "; $qOrg2 = mysql_query($sOrg2) or die(mysql_error()); while ($rOrg2 = mysql_fetch_assoc($qOrg2)) { $optqcid .= "<option value=" . $rOrg2['id'] . ">" . $rOrg2['tipe'] . " - " . $rOrg2['nama'] . "</option>"; } OPEN_BOX('', "<b>Cross Block</b>"); $frm[0] .= "<fieldset style='width:800px;float:left'><legend>" . $_SESSION['lang']['form'] . "</legend>"; $frm[0] .= "<table cellspacing=1 border=0>\r\n<tr>\r\n <td>" . $_SESSION['lang']['tanggal'] . "</td>\r\n <td>:</td>\r\n <td><input type='hidden' id='proses0' value='savedata0'/><input type='hidden' id='id' value=''/><input type='text' class='myinputtext' id='tanggal' onmousemove='setCalendar(this.id)' onkeypress='return false;' \r\n size='10' maxlength='10' style=\"width:150px;\"/></td>\r\n</tr>\r\n<tr>\r\n <td>" . $_SESSION['lang']['kodeorg'] . "</td>\r\n <td>:</td>\r\n <td><select id=kodeorg style=width:150px>" . $optkodeorg . "</select></td>\r\n</tr>\r\n<tr>\r\n <td>" . $_SESSION['lang']['jabatan'] . "</td>\r\n <td>:</td>\r\n <td><select id=jabatan style=width:150px>" . $optjabatan . "</select></td>\r\n</tr>\r\n<tr>\r\n <td>" . $_SESSION['lang']['namakaryawan'] . "</td>\r\n <td>:</td>\r\n <td><select id=karyawan style=width:150px>" . $optkaryawan . "</select></td>\r\n</tr>\r\n<tr>\r\n <td>Check/Re-Check</td>\r\n <td>:</td>\r\n <td><select id=cek style=width:150px>" . $optcek . "</select></td>\r\n</tr>\r\n<tr>\r\n <td style=width:200px;>" . $_SESSION['lang']['kelompok'] . "</td>\r\n <td>:</td>\r\n <td><select id=kelompok style=width:150px onchange=openkegiatan()>" . $optkelompok . "</select></td>\r\n</tr>\r\n<tr>\r\n <td colspan=3><input type='hidden' id='jumlahkegiatan' value='0'/><div id=container2></div></td>\r\n</tr>\r\n<tr>\r\n <td>" . $_SESSION['lang']['keterangan'] . "</td>\r\n <td>:</td>\r\n <td><input type='text' class='myinputtext' style='width:150px;' id='keterangan' onkeypress='return tanpa_kutip(event)' maxlength=100/></td>\r\n</tr>"; $frm[0] .= "<tr>\r\n <td colspan=3>\r\n <button class=mybutton id=save0 name=save0 onclick=savedata0()>" . $_SESSION['lang']['save'] . "</button>\r\n <button class=mybutton id=cancel0 name=cancel0 onclick=canceldata0()>" . $_SESSION['lang']['cancel'] . "</button>\r\n </td></tr>"; $frm[0] .= "</table></fieldset>"; $frm[0] .= "<fieldset style=width:800px;><legend>" . $_SESSION['lang']['datatersimpan'] . "</legend>"; $frm[0] .= "<table cellpadding=1 cellspacing=1 border=0 class=sortable>\r\n <thead>\r\n <tr class=rowheader>\r\n <td>" . $_SESSION['lang']['nomor'] . "</td>\r\n <td>" . $_SESSION['lang']['tanggal'] . "</td>\r\n <td>" . $_SESSION['lang']['kodeblok'] . "</td>\r\n <td>" . $_SESSION['lang']['namakaryawan'] . "</td>\r\n <td>" . $_SESSION['lang']['jabatan'] . "</td>\r\n <td>Check/Re-Check</td>\r\n <td>" . $_SESSION['lang']['keterangan'] . "</td>\r\n <td colspan=2>" . $_SESSION['lang']['action'] . "</td>\r\n </tr>\r\n </thead>\r\n <tbody id=container0><script>loaddata0()</script>\r\n "; $frm[0] .= "</tbody></table></fieldset>"; $arr = "##kodeorg1##periode1"; $frm[1] .= "<fieldset style='width:800px;float:left'>\r\n<legend>List</legend>\r\n<table cellspacing=\"1\" border=\"0\" >\r\n<tr>\r\n <td><label>" . $_SESSION['lang']['kodeorg'] . "</label></td>\r\n <td>:</td>\r\n <td><select id=\"kodeorg1\" name=\"kodeorg1\" style=\"width:150px\" onchange=hideById('container1')>" . $optkodeorg1 . "</select></td>\r\n</tr>\r\n<tr>\r\n <td><label>" . $_SESSION['lang']['periode'] . "</label></td>\r\n <td>:</td>\r\n <td><select id=\"periode1\" name=\"periode1\" style=\"width:150px\" onchange=hideById('container1')>" . $optperiode1 . "</select></td>\r\n</tr>\r\n<tr>\r\n <td colspan=\"3\">\r\n <button onclick=\"zPreview('kebun_slave_crossblock','" . $arr . "','container1'); showById('container1')\" class=\"mybutton\" name=\"preview\" id=\"preview\">Preview</button>\r\n <button onclick=\"zExcel(event,'kebun_slave_crossblock.php','" . $arr . "'); \" class=\"mybutton\" name=\"excel\" id=\"excel\">Excel</button>\r\n </td>\r\n</tr>\r\n</table>\r\n</fieldset>"; $frm[1] .= "<fieldset style=width:800px;><legend>Print Area</legend>\r\n<div id='container1'>\r\n</div></fieldset>"; //======================== $hfrm[0] = "Form"; $hfrm[1] = "List"; //draw tab, jangan ganti parameter pertama, krn dipakai di javascript drawTab('FRM', $hfrm, $frm, 150, 1240); //======================== ?> <?php CLOSE_BOX(); echo "</div>"; echo close_body();
$theForm3->addEls('kodebarang', $_SESSION['lang']['kodebarang'], '', 'searchBarangGudang', 'L', 20, null, null, null, null, 'kodegudang', 'saldoMaterial'); $theForm3->addEls('kwantitas', $_SESSION['lang']['kwantitas'], '0', 'textnum', 'R', 10); //$theForm3->_elements[4]->_attr['onkeyup'] = 'cekSaldo()'; # Table $theTable3 = new uTable('materialTable', $_SESSION['lang']['tabel'] . ' ' . $_SESSION['lang']['pakaimaterial'], $cols, $data, $dataShow); # FormTable $formTab3 = new uFormTable('ftMaterial', $theForm3, $theTable3, null, array('notransaksi')); $formTab3->_target = "kebun_slave_operasional_material"; $formTab3->_noClearField = '##kodebarang'; $formTab3->_noEnable = '##kodebarang##kodeorg##kodegudang##kwantitas'; // $formTab3->_numberFormat = '##kwantitas'; $contentFrame[2] = $formTab3->prep(); #== Display View # Draw Tab echo "<fieldset><legend><b>Detail</b></legend>"; drawTab('FRM', $headFrame, $contentFrame, 150, '100%'); echo "<input type='hidden' id='saldoMaterial' value=0>"; echo "<input type='hidden' id='satuan' value='" . json_encode($satuan) . "'>"; echo "<input type='hidden' id='firstSatuan' value='" . reset($satuan) . "'>"; echo "</fieldset>"; break; case 'updateUMR': $firstKary = $param['nik']; $jhk = $param['jhk']; $tanggal = $param['tanggal']; // Ambil Gaji Pokok $qUMR = selectQuery($dbname, 'sdm_5gajipokok', 'sum(jumlah) as nilai', "karyawanid=" . $firstKary . " and tahun=" . $param['tahun'] . " and idkomponen in (1,31)"); $Umr = fetchData($qUMR); // Standard UMR $stdUmr = $Umr[0]['nilai'] / 25; // Upah yang didapat
include 'master_mainMenu.php'; OPEN_BOX(''); echo OPEN_THEME($_SESSION['lang']['langconf']); $sta = "select * from " . $dbname . ".namabahasa order by code"; $res = mysql_query($sta); $opt = ""; $langlist = ""; $deffind = ''; $newCap = ''; $newText = ''; $count = 0; while ($bar = mysql_fetch_object($res)) { $count += 1; $opt .= "<option value=" . $bar->code . ">" . $bar->name . "</option>"; $langlist .= "    <a href=# onclick=loadLang('" . $bar->code . "')>" . $bar->name . "</a>"; $deffind = $bar->code; $newCap .= "<tr class=rowcontent><td>" . $bar->name . "</td>\r\n\t <td><input type=hidden value='" . $bar->code . "' id=hidden" . $count . "><input type=text class=myinputtext size=120 id=lang" . $count . " onkeypress=\"return tanpa_kutip(event)\"></td></tr>"; } /// $tabcont[2] = "\r\n <table class=data border=0 cellspacing=0>\r\n\t<thead>\r\n\t</thead>\r\n\t<tbody>\r\n\t<tr class=rowcontent><td>\r\n " . $_SESSION['lang']['newlang'] . "</td><td> <input type=text class=myinputtext size=3 maxlength=2 id=lang onkeypress=\"return tanpa_kutip(event)\"></td>\r\n\t </tr>\r\n\t <tr class=rowcontent><td>\r\n\t " . $_SESSION['lang']['langname'] . "</td><td> <input type=text class=myinputtext size=30 maxlength=45 id=langname onkeypress=\"return tanpa_kutip(event)\"></td>\r\n\t </tr>\r\n\t <tr class=rowcontent><td>\r\n\t " . $_SESSION['lang']['deflangtonew'] . "</td><td><select id=def>" . $opt . "</select>\r\n\t </td></tr>\r\n\t </tbody>\r\n\t <tfoot>\r\n\t </tfoot>\r\n\t </table>\r\n\t <button class=mybutton onclick=addNewLanguage()>" . $_SESSION['lang']['save'] . "</button>\r\n\t "; $tabcont[1] = "<fieldset><legend>" . $_SESSION['lang']['addnewcaption'] . "</legend>\r\n <table class=data cellspacing=0 border=0 width=100%>\r\n <thead>\r\n\t\t\t </thead>\r\n\t\t\t <tbody>\r\n\t\t\t <tr class=rowcontent><td>" . $_SESSION['lang']['legend'] . "</td><td><input type text class=myinputtext id=legend onkeypress=\"return tanpa_kutip(event);\" size=30 maxlength=45></td></tr>\r\n\t\t\t <tr class=rowcontent><td>" . $_SESSION['lang']['location'] . "</td><td><input type text class=myinputtext id=location onkeypress=\"return tanpa_kutip(event);\" size=55></td></tr>\r\n\t\t\t " . $newCap . "\t\t\t \t\t \r\n\t\t\t </tbody>\r\n\t\t\t <tfoot>\r\n\t\t\t </tfoot>\r\n\t\t\t </table>\r\n\t\t\t <center><button onclick=saveNewCaption('" . $count . "') class=mybutton>" . $_SESSION['lang']['save'] . "</button></center>\r\n\t\t\t </fieldset>\r\n "; $tabcont[0] = "\r\n\t <span id=avlanguage>\r\n\t <fieldset style='width:850px;'>\r\n\t <legend>" . $_SESSION['lang']['availlang'] . "</legend>\r\n\t " . $langlist . "\r\n\t </fieldset>\r\n\t </span>\t \r\n\t <br> \r\n\t <b>" . $_SESSION['lang']['findlegendandloc'] . "</b>\r\n\t <input type=text id=searclang class=myinputtext size=20 onkeypress=\"return duaevent(event);\">\r\n <button class=mybutton onclick=findComp()>" . $_SESSION['lang']['find'] . "</button> " . $_SESSION['lang']['on'] . " <span id=defaultfind style='font-weight:bolder;'>" . $deffind . "</span>\r\n <fieldset style='height:330px;width:850px;overflow:scroll;'>\r\n <legend>" . $_SESSION['lang']['detailconfigfor'] . " [<span id=defaultfind1></span>]</legend>\r\n\t <div style='height:320px;width:840px;overflow:scroll;'>\r\n\t <span id=langdetailconf>\r\n\t \r\n\t </span>\r\n\t </div>\r\n </fieldset>"; $arrhead[2] = $_SESSION['lang']['addnewlanguage']; $arrhead[1] = $_SESSION['lang']['addnewcaption']; $arrhead[0] = $_SESSION['lang']['detailconfiguration']; echo "<br>"; drawTab('LANG', $arrhead, $tabcont, 200, 900); //write employee lis tab echo CLOSE_THEME(); CLOSE_BOX(); echo close_body();
$optbarang = "<option value=''>" . $_SESSION['lang']['all'] . "</option>"; $ibarang = "select distinct(kodebarang) as kodebarang from " . $dbname . ".kebun_pakaimaterial order by kodebarang asc "; $nbarang = mysql_query($ibarang) or die(mysql_error($conn)); while ($dbarang = mysql_fetch_assoc($nbarang)) { // $whbarang="kodebarang='".$dbarang['kodebarang']."'"; $optbarang .= "<option value=" . $dbarang['kodebarang'] . ">" . $dbarang['kodebarang'] . " - " . $nmbarang[$dbarang['kodebarang']] . "</option>"; } $arr = "##kdOrg##kdAfd##tgl1##tgl2##kegiatan##sumber##kdbarang##intiplasma"; $arr1 = "##kdOrg1##kdAfd1##tahun1##kegiatan1"; $optSumber = "<option value=\"BKM\">BKM</option>"; $optSumber .= "<option value=\"SPK\">SPK</option>"; ?> <script language=javascript src='js/zTools.js'></script> <script language=javascript src='js/zReport.js'></script> <script language=javascript src='js/kebun_2pemeliharaan.js'></script> <link rel=stylesheet type='text/css' href='style/zTable.css'> <?php $title[0] = $_SESSION['lang']['pemeltanaman']; $title[1] = $_SESSION['lang']['rotasi'] . " " . $_SESSION['lang']['pemeltanaman']; $frm[0] = "<fieldset style=\"float: left;\">\r\n<legend><b>" . $title[0] . "</b></legend>\r\n<table cellspacing=\"1\" border=\"0\" >\r\n<tr><td><label>" . $_SESSION['lang']['kebun'] . "</label></td><td><select id=\"kdOrg\" name=\"kdOrg\" style=\"width:150px\" onchange=\"getAfd()\">" . $optOrg . "</select></td></tr>\r\n<tr><td><label>" . $_SESSION['lang']['afdeling'] . "</label></td><td><select id=\"kdAfd\" name=\"kdAfd\" style=\"width:150px\"><option value=\"\"></option></select></td></tr>\r\n<tr><td><label>" . $_SESSION['lang']['tanggal'] . "</label></td><td>\r\n<input type=\"text\" class=\"myinputtext\" id=\"tgl1\" name=\"tgl1\" onmousemove=\"setCalendar(this.id);\" onkeypress=\"return false;\" maxlength=\"10\" style=\"width:60px;\" /> s.d.\r\n<input type=\"text\" class=\"myinputtext\" id=\"tgl2\" name=\"tgl2\" onmousemove=\"setCalendar(this.id);\" onkeypress=\"return false;\" maxlength=\"10\" style=\"width:60px;\" /></td></tr>\r\n<tr><td><label>" . $_SESSION['lang']['kegiatan'] . "</label></td><td><select id=\"kegiatan\" name=\"kegiatan\" style=\"width:150px\">" . $optKeg . "</select></td></tr>\r\n<tr><td><label>" . $_SESSION['lang']['sumber'] . "</label></td><td><select id=\"sumber\" name=\"sumber\" style=\"width:150px\">" . $optSumber . "</select></td></tr>\r\n<tr><td><label>" . $_SESSION['lang']['namabarang'] . "</label></td><td><select id=\"kdbarang\" name=\"kdbarang\" style=\"width:150px\">" . $optbarang . "</select></td></tr>\r\n<tr><td><label>" . $_SESSION['lang']['intiplasma'] . "</label></td><td><select id=\"intiplasma\" name=\"intiplasma\" style=\"width:150px\"><option value=''>" . $_SESSION['lang']['all'] . "</option><option value='I'>Inti</option><option value='P'>Plasma</option></select></td></tr>\r\n<tr height=\"20\"><td colspan=\"2\"> </td></tr>\r\n<tr><td colspan=\"2\">\r\n <button onclick=\"zPreview('kebun_slave_2pemeliharaan','" . $arr . "','printContainer')\" class=\"mybutton\" name=\"preview\" id=\"preview\">Preview</button>\r\n <button onclick=\"zExcel(event,'kebun_slave_2pemeliharaan.php','" . $arr . "')\" class=\"mybutton\" name=\"preview\" id=\"preview\">Excel</button>\r\n <button onclick=\"Clear0()\" class=\"mybutton\" name=\"btnBatal\" id=\"btnBatal\">" . $_SESSION['lang']['cancel'] . "</button></td></tr>\r\n</table>\r\n</fieldset>\r\n<fieldset style='clear:both;'><legend><b>Print Area</b></legend>\r\n<div id='printContainer' style='overflow:auto; height:350px; max-width:1220px;'>\r\n\r\n</div></fieldset>"; $frm[1] = "<fieldset style=\"float: left;\">\r\n<legend><b>" . $title[1] . "</b></legend>\r\n<table cellspacing=\"1\" border=\"0\" >\r\n<tr><td><label>" . $_SESSION['lang']['kebun'] . "</label></td><td><select id=\"kdOrg1\" name=\"kdOrg1\" style=\"width:150px\" onchange=\"getAfd1()\">" . $optOrg . "</select></td></tr>\r\n<tr><td><label>" . $_SESSION['lang']['afdeling'] . "</label></td><td><select id=\"kdAfd1\" name=\"kdAfd1\" style=\"width:150px\"><option value=\"\"></option></select></td></tr>\r\n<tr><td><label>" . $_SESSION['lang']['tahun'] . "</label></td><td><select id=\"tahun1\" name=\"tahun1\" style=\"width:150px\"><option value=\"\">" . $_SESSION['lang']['pilihdata'] . "</option>" . $optTah . "</select></td></tr>\r\n<tr><td><label>" . $_SESSION['lang']['kegiatan'] . "</label></td><td><select id=\"kegiatan1\" name=\"kegiatan1\" style=\"width:150px\">" . $optKeg . "</select></td></tr>\r\n<tr height=\"20\"><td colspan=\"2\"> </td></tr>\r\n<tr><td colspan=\"2\">\r\n <button onclick=\"zPreview('kebun_slave_2pemeliharaan1','" . $arr1 . "','printContainer1')\" class=\"mybutton\" name=\"preview\" id=\"preview\">Preview</button>\r\n <button onclick=\"zExcel(event,'kebun_slave_2pemeliharaan1.php','" . $arr1 . "')\" class=\"mybutton\" name=\"preview\" id=\"preview\">Excel</button>\r\n <button onclick=\"Clear1()\" class=\"mybutton\" name=\"btnBatal\" id=\"btnBatal\">" . $_SESSION['lang']['cancel'] . "</button></td></tr>\r\n</table>\r\n</fieldset>\r\n<fieldset style='clear:both;'><legend><b>Print Area</b></legend>\r\n<div id='printContainer1' style='overflow:auto; height:350px; max-width:1220px;'>\r\n\r\n</div></fieldset>"; //======================== $hfrm[0] = $title[0]; $hfrm[1] = $title[1]; //$hfrm[1]=$_SESSION['lang']['list']; //draw tab, jangan ganti parameter pertama, krn dipakai di javascript drawTab('FRM', $hfrm, $frm, 200, 1220); //=============================================== CLOSE_BOX(); echo close_body();
while($bar1=mysql_fetch_object($res1)) { $optKar.="<option value=".$bar1->karyawanid.">".$bar1->nik." -- ".$bar1->namakaryawan." -- ".$bar1->lokasitugas."[".$nmOrg[$bar1->lokasitugas]."]</option>"; }*/ ?> <?php $frm[0] = ''; $frm[1] = ''; OPEN_BOX('', "<b>PENDAPATAN LAIN KARYAWAN<br /><br /></b>"); $frm[0] .= "<fieldset id=header>"; $frm[0] .= "<legend><b>" . $_SESSION['lang']['header'] . "</b></legend>"; $frm[0] .= "<table border=0 cellpadding=1 cellspacing=1>"; $frm[0] .= "\n\t\t\t\n\t\t\t<tr>\n\t\t\t\t<td>" . $_SESSION['lang']['kodeorg'] . "</td> \n\t\t\t\t<td>:</td>\n\t\t\t\t<td><select id=org style=\"width:150px;\">" . $optOrg . "</select></td>\n\t\t\t</tr> \n\t\t\t\n\t\t\t<tr>\n\t\t\t\t<td>" . $_SESSION['lang']['periodegaji'] . "</td> \n\t\t\t\t<td>:</td>\n\t\t\t\t<td><select id=per style=\"width:150px;\">" . $optPer . "</select></td>\n\t\t\t</tr> \n\t\t\t<tr>\n\t\t\t\t<td>" . $_SESSION['lang']['jenis'] . "</td> \n\t\t\t\t<td>:</td>\n\t\t\t\t<td><select id=kom style=\"width:150px;\">" . $optJns . "</select></td>\n\t\t\t</tr> \n\t\t\t<tr>\n\t\t\t\t<td>\n\t\t\t\t<button class=mybutton id=saveHeader onclick=saveHeader()>" . $_SESSION['lang']['save'] . "</button>\n\t\t\t\t<button class=mybutton id=cancelHeader onclick=cancelHeader()>" . $_SESSION['lang']['baru'] . "</button>\t\n\t\t\t\t</td>\n\t\t\t</tr>\t\t\t\n</table>\n</fieldset>"; //<input type=hidden id=method value='insert'> //$frm[0].="<input type=text id=notranDet disabled value='".$notran."' onkeypress=\"return tanpa_kutip(event);\" class=myinputtext disabled style=\"width:150px;\">"; $frm[0] .= "<div id=displayall style='display:none'>"; $frm[0] .= "<fieldset><legend><b>" . $_SESSION['lang']['detail'] . "</b></legend>"; $frm[0] .= "<table border=0 cellpadding=1 cellspacing=1 class=sortable>\n\t\t\t<thead><tr class=rowheader>\n\t\t\t\t<td align=center>Nama Karyawan</td>\n\t\t\t\t<td align=center>Jumlah</td>\n\t\t\t\t<td align=center>" . $_SESSION['lang']['save'] . "</td>\n\t\t\t</tr></thead>\n\t\t\t<tr class=rowcontent>\n\t\t\t\t<td><select id=kar style=\"width:400px;\">" . $optKar . "</select></td>\n\t\t\t\t<td><input type=text maxlength=20 id=jum onkeypress=\"return angka_doang(event);\" class=myinputtextnumber style=\"width:100px;\"></td>\n\t\t\t\t<td align=center><img src=images/icons/Grey/PNG/save.png class=resicon title='Save Detail' onclick=\"saveDetail();\" ></td>\n\t\t\t</tr></table></fieldset>"; $frm[0] .= "<fieldset><legend><b>" . $_SESSION['lang']['list'] . "</b></legend><div id=containList style=\"height:300px;width:550px;overflow:scroll;display:none;\">\n\t\t\t<script>loadDataDetail()</script>\n\t\t\t</div></fieldset>"; // style='display:none;' $frm[1] .= "<fieldset>\n\t\t<legend>" . $_SESSION['lang']['list'] . "</legend>\n\t\t" . $_SESSION['lang']['periode'] . " : <select id=perSch style=\"width:100px;\" onchange=loadData()>" . $optPerSch . "</select>\t\n\t\t<div id=container> \n\t\t\t<script>loadData()</script>\n\t\t</div>\n\t</fieldset>"; $frm[1] .= "</div>"; $hfrm[0] = $_SESSION['lang']['form']; $hfrm[1] = $_SESSION['lang']['list']; //$hfrm[1]=$_SESSION['lang']['list']; //draw tab, jangan ganti parameter pertama, krn dipakai di javascript drawTab('FRM', $hfrm, $frm, 250, 600); CLOSE_BOX(); echo close_body();
while ($rKaryawan = mysql_fetch_assoc($qKaryawan)) { $optKaryawan .= "<option value='" . $rKaryawan['karyawanid'] . "'>" . $rKaryawan['namakaryawan'] . "</option>"; } $frm[4] .= "<input type='hidden' id='proses7' value='saveTab7' /><fieldset style=width:650px;><legend>" . $_SESSION['lang']['pengirimanBibit'] . "</legend>\r\n<table cellspacing=1 border=0>\r\n\r\n<tr><td>" . $_SESSION['lang']['kodetransaksi'] . "</td><td>:</td><td><input type='text' class='myinputtext' style='width:150px;' id='kdTransPnb' value='PNB' disabled /></td></tr>\r\n<tr><td>" . $_SESSION['lang']['batch'] . "</td><td>:</td><td><select id='batchPnb' style=width:150px onchange='getKodeorgN()'>" . $optbatch . "</select></td></tr>\r\n<tr><td>" . $_SESSION['lang']['tanggal'] . "</td><td>:</td><td><input type=text class=myinputtext id='tglPnb' style='width:150px;' onmousemove=setCalendar(this.id) onkeypress=return false; size=10 maxlength=10 /></td></tr>\r\n<tr><td>" . $_SESSION['lang']['dari'] . "</td><td>:</td><td><select id='kdOrgPnb' style=width:150px>" . $optKdorg2 . "</select></td></tr>\r\n<tr><td>" . $_SESSION['lang']['jumlah'] . "</td><td>:</td><td><input type='text' class='myinputtextnumber' style='width:150px;' id='jmlhPnb' onkeypress='return angka_doang(event)' value='0' /> Seed(Bibit)</td></tr>\r\n<tr><td>" . $_SESSION['lang']['nomorspb'] . "</td><td>:</td><td><input type='text' class='myinputtext' style='width:150px;' id='ketPnb' onkeypress='return tanpa_kutip(event)' maxlength=45 /></td></tr>"; $frm[4] .= "\r\n<tr><td>" . $_SESSION['lang']['kodevhc'] . "</td><td>:</td><td><input type='text' class='myinputtext' style='width:150px;' id='kdvhc' onkeypress='return tanpa_kutip(event)' maxlength=8 /></td></tr>\r\n<tr><td>Rit </td><td>:</td><td><input type='text' class='myinputtextnumber' style='width:150px;' id='jmlRit' onkeypress='return angka_doang(event)' maxlength=20 /></td></tr>\r\n<tr><td>" . $_SESSION['lang']['sopir'] . "</td><td>:</td><td><input type='text' class='myinputtext' style='width:150px;' id='nmSupir' onkeypress='return tanpa_kutip(event)' maxlength=20 /></td></tr>\r\n\r\n<tr><td>" . $_SESSION['lang']['Intex'] . "</td><td>:</td><td><select id='intexDt' style=width:150px onchange='getCustdata(0,0,0)'>" . $optintex . "</select></td></tr>\r\n<tr><td>" . $_SESSION['lang']['tujuan'] . "</td><td>:</td><td><select id='custId' style=width:150px onchange='getKodeorgBlok()'>" . $optKode . "</select></td></tr>\r\n<tr><td>" . $_SESSION['lang']['kodeblok'] . "</td><td>:</td><td><select id='kdAfdeling' style=width:150px disabled >" . $optAfd . "</select></td></tr> \r\n<tr><td>" . $_SESSION['lang']['lokasi'] . " " . $_SESSION['lang']['detailPengiriman'] . "</td><td>:</td><td><input type='text' class='myinputtext' style='width:150px;' id='detPeng' onkeypress='return tanpa_kutip(event)' maxlength=45 /></td></tr>\r\n<tr><td>" . $_SESSION['lang']['kegiatan'] . "</td><td>:</td><td><select id='kegId' style=width:150px>" . $optKegiatan . "</select></td></tr>\r\n<tr><td>" . $_SESSION['lang']['asisten'] . "</td><td>:</td><td><select id='assistenPnb' style=width:150px>" . $optKaryawan . "</select></td></tr>"; $frm[4] .= "<tr><td colspan=3><button class=mybutton id='' name=btlTmbl onclick=saveData(7) >" . $_SESSION['lang']['save'] . "</button><button class=mybutton id='' name=canbtlTmbl onclick=cancelData7() >" . $_SESSION['lang']['cancel'] . "</button></td></tr></table><br /></fieldset>\r\n"; $frm[4] .= "<fieldset><legend>" . $_SESSION['lang']['datatersimpan'] . "</legend>\r\n <table cellpadding=1 cellspacing=1 border=0>\r\n <tr>\r\n <td>" . $_SESSION['lang']['tanggal'] . "</td>\r\n <td><input type='text' class='myinputtext' id='tglCari7' onmousemove='setCalendar(this.id)' onkeypress='return false;' size='10' maxlength='10' style=\"width:150px;\" /></td>\r\n <td>" . $_SESSION['lang']['batch'] . "</td>\r\n <td><input type='text' class='myinputtext' id='batchCari7' style=\"width:150px;\" /></td>\r\n <td>" . $_SESSION['lang']['status'] . "</td>\r\n <td><select id=statCari7 style=\"width:150px;\">" . $optStatPos . "</select></td>\r\n </tr>\r\n </table>\r\n <button class=mybutton id=btlTmbl name=btlTmbl onclick=loadData7() >" . $_SESSION['lang']['find'] . "</button>\r\n <table cellpadding=1 cellspacing=1 border=0 class=sortable>\r\n <thead>\r\n <tr class=rowheader>\r\n <td>" . $_SESSION['lang']['nomor'] . "</td>\r\n <td>" . $_SESSION['lang']['kodetransaksi'] . "</td>\r\n <td>" . $_SESSION['lang']['batch'] . "</td>\r\n <td>" . $_SESSION['lang']['tanggal'] . "</td>\r\n <td>" . $_SESSION['lang']['kodeorg'] . "</td>\r\n <td>" . $_SESSION['lang']['jumlah'] . "</td>\r\n <td>" . $_SESSION['lang']['kegiatan'] . "</td>\r\n <td>" . $_SESSION['lang']['nomorspb'] . "</td>\r\n <td>" . $_SESSION['lang']['kodevhc'] . "</td>\r\n <td>" . $_SESSION['lang']['customerlist'] . "</td>\r\n <td>" . $_SESSION['lang']['kodeblok'] . "</td>\r\n <td>" . $_SESSION['lang']['asisten'] . "</td>\r\n <td colspan=2>" . $_SESSION['lang']['action'] . "</td>\r\n </tr>\r\n </thead><tbody id=containData7>\r\n\t\t"; $frm[4] .= "</tbody></table></fieldset>"; ################################################################################################### $frm[5] .= "<fieldset style=width:650px;><legend>" . $_SESSION['lang']['stockdetail'] . "</legend>\r\n\r\n <table cellpadding=1 cellspacing=1 border=0 class=sortable>\r\n <thead>\r\n <tr class=rowheader>\r\n <td>" . $_SESSION['lang']['nomor'] . "</td>\r\n <td>" . $_SESSION['lang']['batch'] . "</td>\r\n <td>" . $_SESSION['lang']['kodeorg'] . "</td>\r\n\t\t\t<td>" . $_SESSION['lang']['saldo'] . "</td>\r\n\t\t\t<td>" . $_SESSION['lang']['supplier'] . "</td>\r\n <td>" . $_SESSION['lang']['umur'] . "(" . $_SESSION['lang']['bulan'] . ")</td>\r\n </tr>\r\n </thead><tbody id=containDataStock>\r\n\t\t"; $frm[5] .= "</tbody></table></fieldset>"; ################################################################################################### //======================== $hfrm[0] = $_SESSION['lang']['tnmbibit']; $hfrm[1] = $_SESSION['lang']['doubletoon']; $hfrm[2] = $_SESSION['lang']['afkirbibit']; $hfrm[3] = $_SESSION['lang']['transplatingbibit']; $hfrm[4] = $_SESSION['lang']['pengirimanBibit']; $hfrm[5] = $_SESSION['lang']['stockdetail']; //$hfrm[6]=$_SESSION['lang']['prosesUlang']; //$hfrm[1]=$_SESSION['lang']['list']; //draw tab, jangan ganti parameter pertama, krn dipakai di javascript drawTab('FRM', $hfrm, $frm, 150, 1100); //=============================================== ?> <?php CLOSE_BOX(); echo "</div>"; echo close_body();
$optGoldar .= "<option value='" . $dPasar['pasar'] . "'>" . $dPasar['pasar'] . "</option>"; $optpasar .= "<option value='" . $dPasar['pasar'] . "'>" . $dPasar['pasar'] . "</option>"; } $optBarang = makeOption($dbname, 'log_5masterbarang', 'kodebarang,namabarang'); $sBrng = "select distinct(kodeproduk) as kodeproduk from " . $dbname . ".pmn_hargapasar"; $qBrng = mysql_query($sBrng) or die(mysql_error($conn)); while ($rBarang = mysql_fetch_assoc($qBrng)) { $optBrg .= "<option value='" . $rBarang['kodeproduk'] . "'>" . $optBarang[$rBarang['kodeproduk']] . "</option>"; } OPEN_BOX('', "<b>Daily Price</b><br>"); $frm[0] .= "<div>\n<fieldset style='float: left;'>\n<legend><b>" . $_SESSION['lang']['hargapasar'] . "</b></legend>"; $frm[0] .= "<table cellspacing=1 border=0 >\n<tr><td><label>" . $_SESSION['lang']['pasar'] . "</label></td><td><select id=psrId name=periode style='width:150px'>" . $optGoldar . "</select></td></tr>\n<tr><td><label>" . $_SESSION['lang']['komoditi'] . "</label></td><td><select id=komoditi name=komoditi style='width:150px'>" . $optBrg . "</select></td></tr>\n<tr><td><label>" . $_SESSION['lang']['periode'] . "</label></td><td><select id=periodePsr name=periodePsr style='width:150px'>" . $optPeriode . "</select></td></tr>\n<tr height=20><td colspan=2> </td></tr>\n<tr><td colspan=2><button onclick=\"zPreview('pmn_slave_2hargapasar','" . $arr . "','printContainer')\" class=mybutton name=preview id=preview>Preview</button>\n <button onclick=\"zExcel(event,'pmn_slave_2hargapasar.php','" . $arr . "')\" class=mybutton name=preview id=preview>Excel</button>\n <button onclick=\"grafikProduksi(event)\" class=mybutton name=preview id=preview>Jpgraph</button></td></tr>\n\n</table>\n</fieldset>\n</div>"; $frm[0] .= "<div style='margin-bottom: 30px;'>\n<fieldset style='clear:both'><legend><b>Print Area</b></legend>\n<div id='printContainer' style='overflow:auto;height:350px;max-width:1220px'>\n\n</div></fieldset>\n\t\t"; $frm[0] .= "</tbody></table></fieldset>"; //assseettt $frm[1] .= "<div>\n<fieldset style='float: left;'>\n<legend><b>" . $_SESSION['lang']['bandingHarga'] . "</b></legend>"; $frm[1] .= "<table cellspacing=1 border=0 >\n<tr><td><label>" . $_SESSION['lang']['pasar'] . "</label></td><td><select id=psrId2 name=psrId2 style='width:150px'>" . $optpasar . "</select></td></tr>\n<tr><td><label>" . $_SESSION['lang']['komoditi'] . "</label></td><td><select id=komoditi2 name=komoditi2 style='width:150px'>" . $optBrg . "</select></td></tr>\n<tr><td><label>" . $_SESSION['lang']['periode'] . "</label></td><td><select id=periodePsr2 name=periodePsr2 style='width:150px'>" . $optPeriode . "</select></td></tr>\n<tr height=20><td colspan=2> </td></tr>\n<tr><td colspan=2>\n<button onclick=\"zPreview('pmn_slave_2hargapasar_2','" . $arr2 . "','printContainer2')\" class=mybutton name=preview id=preview>Preview</button>\n <button onclick=\"zExcel(event,'pmn_slave_2hargapasar_2.php','" . $arr2 . "')\" class=mybutton name=preview id=preview>Excel</button>\n\t\t<button onclick=\"grafikProduksi2(event)\" class=mybutton name=preview id=preview>Jpgraph</button>\n</td>\n</tr>\n\n</table>\n</fieldset>\n</div>"; $frm[1] .= "<div style='margin-bottom: 30px;'>\n<fieldset style='clear:both'><legend><b>Print Area</b></legend>\n<div id='printContainer2' style='overflow:auto;height:350px;max-width:1220px'>\n\n</div></fieldset>\n\t\t"; $frm[1] .= "</tbody></table></fieldset>"; //======================== $hfrm[0] = $_SESSION['lang']['hargapasar']; $hfrm[1] = $_SESSION['lang']['bandingHarga']; //$hfrm[1]=$_SESSION['lang']['list']; //draw tab, jangan ganti parameter pertama, krn dipakai di javascript drawTab('FRM', $hfrm, $frm, 220, 930); //=============================================== ?> <?php CLOSE_BOX(); echo close_body();
if (mysql_num_rows($qPlaf) <= 0) { $hasilPlaf = '0'; } else { if ($rPlaf2['jlhbayar'] >= $rPlaf['rupiah']) { $hasilPlaf = '0'; } else { $hasilPlaf = $rPlaf['rupiah'] - ($rPlaf2['bebanperusahaan'] - $bar2->bebanperusahaan); } } } } } } $no += 1; $arr[2] .= "<tr class=rowcontent>\r\n\t <td align=center>"; if ($bar2->posting == 0) { $ket = rawurlencode($bar2->keterangan); $arr[2] .= "<img src=images/edit.png title='edit' class=resicon onclick=editPengobatan('" . $bar2->notransaksi . "','" . $bar2->karyawanid . "','" . $bar2->kodebiaya . "','" . $bar2->lokasitugas . "','" . $bar2->thnplafon . "','" . $bar2->periode . "','" . $bar2->rs . "','" . $bar2->byrs . "','" . $bar2->bydr . "','" . $bar2->bylab . "','" . $bar2->byobat . "','" . $bar2->byadmin . "','" . $bar2->ygsakit . "','" . $bar2->diagnosa . "','" . tanggalnormal($bar2->tanggal) . "','" . $bar2->totalklaim . "','" . $bar2->istirahat . "','" . $bar2->bebankaryawan . "','" . $bar2->bebanjamsostek . "','" . $bar2->bebanperusahaan . "','" . $bar2->klaim . "','" . $ket . "','" . tanggalnormal($bar2->tanggalkwitansi) . "','" . tanggalnormal($bar2->tanggalpengajuan) . "','" . number_format($hasilPlaf, 2) . "','" . $rPlaf['satuan'] . "')>"; $arr[2] .= " <img src=images/close.png class=resicon title='delete' onclick=deletePengobatan('" . $bar2->notransaksi . "')>"; } $arr[2] .= " <img src=images/zoom.png title='view' class=resicon onclick=previewPengobatan('" . $bar2->notransaksi . "',event)>"; $arr[2] .= "</td><td>" . $no . "</td>\r\n\t\t <td>" . $bar2->notransaksi . "</td>\r\n\t\t <td>" . substr($bar2->periode, 5, 2) . "-" . substr($bar2->periode, 0, 4) . "</td>\r\n\t\t <td>" . tanggalnormal($bar2->tanggal) . "</td>\r\n\t\t <td>" . $bar2->namakaryawan . "</td>\r\n\t\t <td>" . $bar2->namars . "[" . $bar2->kota . "]" . "</td>\r\n\t\t <td>" . $namaBiaya[$bar2->kodebiaya] . "</td>\r\n <td align=right>" . number_format($bar2->byrs, 2, '.', ',') . "</td>\r\n <td align=right>" . number_format($bar2->byadmin, 2, '.', ',') . "</td>\r\n <td align=right>" . number_format($bar2->bylab, 2, '.', ',') . "</td>\r\n <td align=right>" . number_format($bar2->byobat, 2, '.', ',') . "</td>\r\n <td align=right>" . number_format($bar2->bydr, 2, '.', ',') . "</td>\r\n\t\t\t\t <td align=right>" . number_format($bar2->bebanperusahaan, 2, '.', ',') . "</td>\r\n <td align=right>" . number_format($bar2->bebankaryawan, 2, '.', ',') . "</td>\r\n <td align=right>" . number_format($bar2->bebanjamsostek, 2, '.', ',') . "</td> \r\n\t\t <td>" . $bar2->ketdiag . "</td>\r\n\t\t <td align=right>" . number_format($bar2->totalklaim, 2, '.', ',') . "</td>\r\n\t\t <td align=right>" . number_format($bar2->jlhbayar, 2, '.', ',') . "</td>\r\n\t\t <td>" . $bar2->keterangan . "</td>\r\n\t\t</tr>"; } $arr[2] .= "</tbody>\r\n\t <tfoot>\r\n\t </tfoot>\r\n\t </table>\r\n\t </div>\r\n\t </fieldset><iframe id=frmku frameborder=0 style='width:0px;height:0px;'></iframe>\t \r\n\t "; $hfrm[0] = $_SESSION['lang']['form']; $hfrm[1] = $_SESSION['lang']['obatobat']; $hfrm[2] = $_SESSION['lang']['list']; //draw tab, jangan ganti parameter pertama, krn dipakai di javascript drawTab('FRM', $hfrm, $arr, 100, 920); CLOSE_BOX(); echo close_body();
} $arr = "##ptId##unitId##prdIdDr##prdIdSmp"; $frm[0] = "<fieldset style=float:left>\r\n <legend>" . $_SESSION['lang']['laporangudang'] . "</legend>\r\n <table cellpadding=1 cellspacing=1 border=0>\r\n <tr><td>" . $_SESSION['lang']['pt'] . "</td>"; $frm[0] .= "<td><select id=ptId onchange='getUnit()' style=width:150px;>" . $optPt . "</select></td>"; $frm[0] .= "</tr>"; $frm[0] .= "<tr><td>" . $_SESSION['lang']['unit'] . "</td>\r\n <td><select id=unitId style=width:150px;>" . $optUnit . "</select></td>\r\n </tr>"; $frm[0] .= "<tr><td>" . $_SESSION['lang']['periode'] . " " . $_SESSION['lang']['dari'] . "</td>\r\n <td><select id=prdIdDr style=width:150px;>" . $optPrdDr . "</select></td>\r\n </tr>"; $frm[0] .= "<tr><td>" . $_SESSION['lang']['periode'] . " " . $_SESSION['lang']['sampai'] . "</td>\r\n <td><select id=prdIdSmp style=width:150px;>" . $optPrdSmp . "</select></td>\r\n </tr></table>"; $frm[0] .= "<button class=mybutton onclick=zPreview('log_slave_2gdangAccounting','" . $arr . "','printContainer')>" . $_SESSION['lang']['proses'] . "</button>\r\n <button class=mybutton onclick=zExcel(event,'log_slave_2gdangAccounting.php','" . $arr . "')>" . $_SESSION['lang']['excel'] . "</button>\r\n </fieldset>"; $frm[0] .= "<div style=clear:both></div><fieldset><legend>" . $_SESSION['lang']['result'] . "</legend>"; $frm[0] .= "<div style='width:100%;height:359px;overflow:scroll;' id=printContainer></div>"; $frm[0] .= "</fieldset>"; $arr2 = "##ptId2##unitId2##prdIdDr2##prdIdSmp2"; $frm[1] = "<div style=clear:both></div><fieldset style=float:left>\r\n <legend>" . $_SESSION['lang']['laporangudang'] . "</legend>\r\n <table cellpadding=1 cellspacing=1 border=0>\r\n <tr><td>" . $_SESSION['lang']['pt'] . "</td>"; $frm[1] .= "<td><select id=ptId2 onchange='getUnit2()' style=width:150px;>" . $optPt . "</select></td>"; $frm[1] .= "</tr>"; $frm[1] .= "<tr><td>" . $_SESSION['lang']['unit'] . "</td>\r\n <td><select id=unitId2 style=width:150px;>" . $optUnit . "</select></td>\r\n </tr>"; $frm[1] .= "<tr><td>" . $_SESSION['lang']['periode'] . " " . $_SESSION['lang']['dari'] . "</td>\r\n <td><select id=prdIdDr2 style=width:150px;>" . $optPrdDr . "</select></td>\r\n </tr>"; $frm[1] .= "<tr><td>" . $_SESSION['lang']['periode'] . " " . $_SESSION['lang']['sampai'] . "</td>\r\n <td><select id=prdIdSmp2 style=width:150px;>" . $optPrdSmp . "</select></td>\r\n </tr></table>"; $frm[1] .= "<button class=mybutton onclick=zPreview('log_slave_2gdangAccounting2','" . $arr2 . "','printContainer2')>" . $_SESSION['lang']['proses'] . "</button>\r\n <button class=mybutton onclick=zExcel(event,'log_slave_2gdangAccounting2.php','" . $arr2 . "')>" . $_SESSION['lang']['excel'] . "</button>\r\n </fieldset>"; $frm[1] .= "<div style=clear:both></div><fieldset><legend>" . $_SESSION['lang']['result'] . "</legend>"; $frm[1] .= "<div style='width:100%;height:359px;overflow:scroll;' id=printContainer2></div>"; $frm[1] .= "</fieldset>"; //======================== $hfrm[0] = $_SESSION['lang']['laporangudang']; $hfrm[1] = $_SESSION['lang']['laporangudangakunting']; //$hfrm[1]=$_SESSION['lang']['list']; //draw tab, jangan ganti parameter pertama, krn dipakai di javascript drawTab('FRM', $hfrm, $frm, 200, 1050); //=============================================== close_body();