function buildgrid($table, $field, $section, $aksi = true, $icon = '')
{
    $zlb = new zetro_buildlist();
    $zlb->config_file('asset/bin/zetro_master.frm');
    $sql2 = "select * from {$table} order by {$field}";
    //echo $sql2;
    $zlb->section($section);
    $zlb->aksi($aksi);
    $zlb->icon($icon);
    $zlb->query($sql2);
    $zlb->sub_total(false);
    $zlb->sub_total_field('stock,blokstok');
    $zlb->Header('100%');
    $zlb->list_data($section);
    $zlb->BuildListData($field);
    echo "</tbody></table>";
}
Beispiel #2
0
$zlb->config_file('asset/bin/zetro_inv.frm');
$path = 'application/views/inventory';
$kateg = "<select id='plh' name='plh' class='s100'></select>";
$jenis = "<select id='plh_jenis' name='plh_jenis' class='s100'></select>";
$stats = "<select id='plh_stat' name='plh_stat' class='s100'>\r\n\t\t<option value='all'>Semua</option>\r\n\t\t<option value='Continue'>Continue</option>\r\n\t\t<option value='Discontinue'>Discontinue</option></select>";
$cari = "<input id='plh_cari' name='plh_cari' class='w100 cari'>";
link_css('jquery.coolautosuggest.css', 'asset/css');
link_js('jquery.coolautosuggest.js,jquery_terbilang.js', 'asset/js,asset/js');
link_js('jquery.fixedheader.js,material_list.js', 'asset/js,' . $path . '/js');
panel_begin('Daftar Barang');
panel_multi('listbarang', 'block', false);
if ($e_listbarang != '' || $v_listbarang != '') {
    addText(array('Filter by Kategori :', ' Jenis :', 'Status', ' Cari by nama'), array($kateg, $jenis, $stats, $cari));
    /*	$sql="select * from inv_barang order by nama_barang";*/
    $zlb->section('BarangList');
    $zlb->aksi($e_listbarang != '' ? true : false);
    $zlb->Header('100%');
    $zlb->icon();
    /*
    		$zlb->query($sql);
    		$zlb->sub_total(false);
    		$zlb->sub_total_field('4,5');
    		$zlb->list_data($section);
    		$zlb->BuildListData('nama_barang');*/
    echo "</tbody></table>";
} else {
    no_auth();
}
echo "<hr><div id='bawahan' style='display:none;width:100%; height:25px; background:#AAA; border:1px outset #CCCC'></div>";
panel_multi_end();
panel_multi('hargabeli', 'none', false);
Beispiel #3
0
$zlb = new zetro_buildlist();
$zlb->config_file('asset/bin/zetro_master.frm');
$path = 'application/views/master';
link_js('jquery.fixedheader.js,master_general.js,jquery_terbilang.js', 'asset/js,' . $path . '/js,asset/js');
tab_select('');
panel_begin('Data General');
panel_multi('datakas', 'block', false);
$mk = '_kas';
if ($all_kas != '') {
    $zfm->AddBarisKosong(true);
    $zfm->Start_form(true, 'frm3');
    $zfm->BuildForm('Kas', true, '50%');
    $zfm->BuildFormButton('Simpan', 'kas');
    echo "<hr>";
    $zlb->section('Kas');
    $zlb->aksi(true);
    $zlb->icon('delete');
    $zlb->Header('70%');
    echo "</tbody></table>";
} else {
    no_auth();
}
panel_multi_end();
auto_sugest();
tab_select('prs');
panel_end();
terbilang();
?>

<script language="javascript">
	$(document).ready(function(e) {
Beispiel #4
0
    $zfm->BuildForm('userlist', $btn, '70%');
    if ($btn == true) {
        $zfm->BuildFormButton('Simpan', 'userlist');
    }
} else {
    no_auth();
}
panel_multi_end();
//tab user list
panel_multi('listuser', 'block', false);
if ($v_listuser != '') {
    $e_listuser == '' ? $btn = false : ($btn = true);
    $sql2 = "select * from users where userid !='superuser' order by userid";
    $zlb->deskripsi('user_level', 'nmlevel', 'idlevel');
    $zlb->section('userlist');
    $zlb->aksi($btn);
    $zlb->icon();
    $zlb->query($sql2);
    $zlb->Header('80%');
    $zlb->list_data('userlist');
    $zlb->BuildListData('userid');
    echo "</tbody></table>\n";
} else {
    no_auth();
}
panel_multi_end();
//tab user autorisation
panel_multi('authorisation', 'none', false);
//form select group
if ($all_authorisation != '') {
    $zfm->AddBarisKosong(false);
Beispiel #5
0
$section = 'Barang';
$zlb->config_file('asset/bin/zetro_inv.frm');
$path = 'application/views/inventory';
link_js('material_inv.js', $path . '/js');
link_js('jquery.fixedheader.js', 'asset/js');
tab_select('');
panel_begin('Jenis Barang');
panel_multi('jenisbarang', 'block', false);
if ($all_jenisbarang != '') {
    $zfm->AddBarisKosong(false);
    $zfm->Start_form(true, 'frm1');
    $zfm->BuildForm('Jenis', true, '50%');
    $zfm->BuildFormButton('Simpan', 'jenis');
    echo "<hr/>";
    $zlb->section('Jenis');
    $zlb->aksi($e_jenisbarang != '' ? true : false);
    $zlb->icon('deleted');
    $zlb->Header('100%', 'Jenis');
    echo "</tbody></table>";
} else {
    no_auth();
}
panel_multi_end();
panel_end();
?>
<script language="javascript">
$(document).ready(function(e) {
    	$('#jenisbarang').removeClass('tab_button');
		$('#jenisbarang').addClass('tab_select');

});
Beispiel #6
0
panel_begin('Lap.Stock');
panel_multi('stocklist', 'block');
if ($all_stocklist != '') {
    $fld = "<input type='hidden' id='section' name='section' value='lapjuallist'>";
    $fld .= "<input type='hidden' id='lap' name='lap' value='stock'>";
    $fld .= "<input type='hidden' id='optional' name='optional' value='stock'>";
    $zfm->Addinput($fld);
    echo "Select Filter of list :";
    $zfm->AddBarisKosong();
    $zfm->Start_form(true, 'frm2');
    $zfm->BuildForm('stoklist filter', true, '50%');
    $zfm->BuildFormButton('Process', 'filter', 'button', 2);
    echo "<hr>";
    //<font style='color:#000; font-size:medium'><u>List Obat Filter by :<span id='nmj'></span><span id='kat'></span><span id='gol'></span></u></font>";
    $zlb->section('stoklistview');
    $zlb->aksi(false);
    $zlb->Header('100%');
    echo "</tbody></table>";
} else {
    no_auth();
}
panel_multi_end();
panel_multi('dataexpire');
if ($all_dataexpire != '') {
    $fld2 = "<input type='hidden' id='section' name='section' value='lapjuallist'>";
    $fld2 .= "<input type='hidden' id='lap' name='lap' value='expired'>";
    $fld2 .= "<input type='hidden' id='optional' name='optional' value=''>";
    $zfm->Addinput($fld2);
    $zfm->AddBarisKosong();
    $zfm->Start_form(true, 'frm1');
    $zfm->BuildForm('stoklist filter', true, '50%');
Beispiel #7
0
$path = 'application/views/pembelian';
Calender();
link_css('jquery.coolautosuggest.css', 'asset/css');
link_js('jquery.coolautosuggest.js', 'asset/js');
link_js('jquery.fixedheader.js', 'asset/js');
link_js('material_income_list.js', $path . '/js');
link_js('material_income.js,jquery_terbilang.js', $path . '/js,asset/js');
panel_begin('Penerimaan Barang');
panel_multi('inputpembelian', 'block', false);
if ($c_pembelian__index != '') {
    $zfm->AddBarisKosong(false);
    $zfm->Start_form(true, 'frm1');
    $zfm->BuildForm('pembelian', false, '60%');
    echo "<hr><form id='frm2' name='frm2' method='post' action=''>";
    $zlb->section('pembelianlist');
    $zlb->aksi(true);
    $zlb->Header('97%');
    echo "<tr><td class='kotak' colspan='8'>&nbsp;</td>";
    echo "</tbody><tfoot>";
    $zfm->section('pembelianlist');
    $zfm->rowCount();
    $zfm->button('simpan');
    $zfm->BuildGrid();
    echo "</tfoot></table></form>";
} else {
    no_auth();
}
panel_multi_end();
panel_multi('listpembelian', 'none', false);
if ($all_listpembelian != '') {
    addText(array('Periode Dari', 'Sampai', ''), array("<input type='text' id='dari_tanggal' value='' class='w100'>", "<input type='text' id='smp_tanggal' value='' class='w100'>", "<input type='button' id='okelah' value='OK'>"));
Beispiel #8
0
    $zfm->AddBarisKosong(true);
    $zfm->Start_form(true, 'frm1');
    $zfm->BuildForm('pemakaian', true, '50%');
    $zfm->BuildFormButton('Simpan', 'rusak');
    echo "<hr/>";
} else {
    no_auth();
}
panel_multi_end();
panel_multi('listbarangrusak', 'block', false);
if ($all_listbarangrusak != '') {
    echo "<form id='frm3' name='frm3' method='post' action=''>";
    addText(array('Periode', 's/d', '', ''), array("<input type='text' id='dari_tgl' name='dari_tgl' value=''/>", "<input type='text' id='sampai_tgl' name='sampai_tgl' value=''/>", "<input type='button' id='okelah' name='okelah' value='OK'/>", "<input type='button' id='prtr' name='prtr' value='Print'/>"));
    echo "</form>";
    $zlb->section('pemakaian');
    $zlb->aksi($e_listbarangrusak != '' ? true : false);
    $zlb->icon('deleted');
    $zlb->Header('100%');
    echo "</tbody></table>";
} else {
    no_auth();
}
panel_multi_end();
popup_start('pakai', 'Edit Barang Rusak/hilang', 550);
$fld = "<input type='hidden' id='id_barang' name='id_barang' value=''/>";
$fld .= "<input type='hidden' id='id_satuan' name='id_satuan' value=''/>";
$zfm->Addinput($fld);
$zfm->AddBarisKosong(true);
$zfm->Start_form(true, 'frm2');
$zfm->BuildForm('pemakaian', true, '100%');
$zfm->BuildFormButton('Simpan', 'edit_pakai');
panel_begin('List Vendor');
panel_multi('addvendor', 'none', false);
if ($all_master__vendor_n != '') {
    $zfm->AddBarisKosong(true);
    $zfm->Start_form(true, 'frm1');
    $zfm->BuildForm('produsen', true, '50%');
    $zfm->BuildFormButton('Simpan', 'vendor');
} else {
    no_auth();
}
panel_multi_end();
panel_multi('listvendor', 'block', false);
if ($all_listvendor != '') {
    addText(array('Nama Vendor :', ''), array('<input type="text" id="finde" class="cari w100">', '<input type="button" id="oke" value="Cari">'));
    $zlb->section('produsen');
    $zlb->aksi($e_listvendor != '' ? true : false);
    $zlb->icon('deleted');
    $zlb->Header('100%');
    echo "</tbody></table>";
} else {
    no_auth();
}
panel_multi_end();
panel_end();
popup_start('v_detail', 'Transaksi Vendor :<span id="nmp"></span>', 750, 550);
$zlb->section('detailtransvendor');
$zlb->aksi(false);
$zlb->icon('deleted');
$zlb->Header('100%', 'vend_detail');
echo "</tbody></table>";
popup_end();
Beispiel #10
0
    $zfm->AddBarisKosong(true);
    $zfm->Start_form(true, 'frm1');
    $zfm->BuildForm('pemakaian', true, '50%');
    $zfm->BuildFormButton('Simpan', 'pemakaian');
    echo "<hr/>";
} else {
    no_auth();
}
panel_multi_end();
panel_multi('listpemakaian', 'block', false);
if ($all_listpemakaian != '') {
    echo "<form id='frm3' name='frm3' method='post' action=''>";
    addText(array('Periode', 's/d', '', ''), array("<input type='text' id='dari_tgl' name='dari_tgl' value=''/>", "<input type='text' id='sampai_tgl' name='sampai_tgl' value=''/>", "<input type='button' id='okelah' name='okelah' value='OK'/>", "<input type='button' id='prt' name='prt' value='Print'/>"));
    echo "</form>";
    $zlb->section('pemakaian');
    $zlb->aksi($e_listpemakaian != '' ? true : false);
    $zlb->icon('deleted');
    $zlb->Header('100%');
    echo "</tbody></table>";
} else {
    no_auth();
}
panel_multi_end();
popup_start('pakai', 'Edit Pemakaian', 550);
$fld = "<input type='hidden' id='id_barang' name='id_barang' value=''/>";
$fld .= "<input type='hidden' id='id_satuan' name='id_satuan' value=''/>";
$zfm->Addinput($fld);
$zfm->AddBarisKosong(true);
$zfm->Start_form(true, 'frm2');
$zfm->BuildForm('pemakaian', true, '100%');
$zfm->BuildFormButton('Simpan', 'edit_pakai');
Beispiel #11
0
$section = 'Barang';
$zlb->config_file('asset/bin/zetro_inv.frm');
$path = 'application/views/inventory';
link_js('material_kat.js', $path . '/js');
link_js('jquery.fixedheader.js', 'asset/js');
tab_select('');
panel_begin('Kategori Barang');
panel_multi('kategoribarang', 'block', false);
if ($all_kategoribarang != '') {
    $zfm->AddBarisKosong(false);
    $zfm->Start_form(true, 'frm2');
    $zfm->BuildForm('Kategori', true, '50%');
    $zfm->BuildFormButton('Simpan', 'kat');
    echo "<hr/>";
    $zlb->section('Kategori');
    $zlb->aksi($e_kategoribarang != '' ? true : false);
    $zlb->icon('deleted');
    $zlb->Header('100%', 'Jenis');
    echo "</tbody></table>";
} else {
    no_auth();
}
panel_multi_end();
panel_multi('jenisbarang', 'none', false);
if ($all_jenis != '') {
    $zfm->AddBarisKosong(true);
    $zfm->Start_form(true, 'frm1');
    $zfm->BuildForm('Jenis', true, '50%');
    $zfm->BuildFormButton('Simpan', 'jenis');
    echo "<hr/>";
    $sql2 = "select * from inv_barang_jenis order by JenisBarang";
$zfm = new zetro_frmBuilder('asset/bin/zetro_neraca.frm');
$zlb = new zetro_buildlist();
$zlb->config_file('asset/bin/zetro_neraca.frm');
$path = 'application/views/warehouse';
$sesi = $this->session->userdata('menus');
link_js('jquery.fixedheader.js', 'asset/js');
link_js('material_stocklist.js', $path . '/js');
calender();
panel_begin($sesi != 'SW52ZW50b3J5' ? 'List Stock' : 'Stock Adjustment');
panel_multi($sesi != 'SW52ZW50b3J5' ? 'liststock' : 'stockadjustment', 'block', false);
if ($all_liststock != '' || $all_stockadjustment != '') {
    echo "<form id='frm1' name='frm1' method='post' action=''>";
    addText(array('Kategori', 'Order By', 'Urutan', '', ''), array("<select id='Kategori' name='Kategori'></select>", "<select id='Stat' name='Stat' style='display:none'>\r\n\t\t\t\t\t  <option value=''>Semua</option>\r\n\t\t\t\t\t  <option value='Continue'>Continue</option>\r\n\t\t\t\t\t  <option value='Discontinue'>Discontinue</option>\r\n\t\t\t\t  </select>\r\n\t\t\t\t  <select id='orderby' name='orderby'>" . selectTxt('SusunanStock') . "</select>", "<select id='urutan' name='urutan'>" . selectTxt('Urutan', true) . "</select>", "<input type='button' value='OK' id='okelah'/>", "<input type='button' value='Print' id='prt'/>"));
    echo "</form>";
    $zlb->section('stocklist');
    $zlb->aksi($sesi != 'SW52ZW50b3J5' ? false : $e_stockadjustment != '' ? true : false);
    //SW52ZW50b3J5
    $zlb->icon();
    $zlb->Header('100%', 'stoked');
    echo "</tbody></table>";
} else {
    no_auth();
}
panel_multi_end();
panel_end();
popup_start('stocklist', 'Stock Adjustment', 550);
$fld = "<input type='hidden' id='id_barang' val=''/>";
$fld .= "<input type='hidden' id='batch' val=''/>";
$zfm->Addinput($fld);
$zfm->AddBarisKosong(true);
$zfm->Start_form(true, 'frm2');
Beispiel #13
0
if (!defined('BASEPATH')) {
    exit('No direct script access allowed');
}
$zfm = new zetro_frmBuilder('asset/bin/zetro_member.frm');
$zlb = new zetro_buildlist();
$zlb->config_file('asset/bin/zetro_member.frm');
$path = 'application/views/member';
$sesi = $this->session->userdata('menus');
calender();
link_css('jquery.coolautosuggest.css', 'asset/css');
link_css('jquery.alerts.css', 'asset/css');
link_js('jquery.alerts.js', 'asset/js');
link_js('jquery.coolautosuggest.js', 'asset/js');
link_js('jquery.fixedheader.js,jquery_terbilang.js,member_tagihan.js', 'asset/js,asset/js,' . $path . '/js');
panel_begin('Tagihan Pelanggan');
panel_multi('listtagihan', 'block', false);
if ($all_listtagihan != '') {
    echo "<form id='frm1' name='frm1' method='post' action=''>";
    addText(array('Status Tagihan', 'Order By', 'Urutan', '', ''), array("<select id='stat_tag' name='stat_tag'>\r\n\t\t\t\t   <option value=''>Semua</option>\r\n\t\t\t\t   <option value='1'>Lunas</option>\r\n\t\t\t\t   <option value='0' selected>Belum Lunas</option></select>", "<select id='orderby' name='orderby'>" . selectTxt('SusunanPlg', false, 'asset/bin/zetro_member.frm') . "</select>", "<select id='urutan' name='urutan'>" . selectTxt('Urutan', true) . "</select>", "<input type='button' value='OK' id='okelah'/>", "<input type='button' value='Print' id='prt'/>"));
    addText(array('Cari by Nama Pelangan', ''), array("<input type='text' class='cari w100' id='cariya' value=''>", "<input type='button' value='Cari' id='carilah'/>"));
    echo "</form>";
    $zlb->section('TagihanKredit');
    $zlb->aksi($sesi == 'SW52ZW50b3J5' ? false : true);
    $zlb->icon();
    $zlb->Header('100%');
    echo "</tbody></table>";
} else {
    no_auth();
}
panel_multi_end();
panel_end();
Beispiel #14
0
panel_multi('addperkiraan');
if ($all_addperkiraan != '') {
    $zfm->AddBarisKosong(true, 'b');
    $zfm->Start_form(true, 'frm1');
    $zfm->BuildForm('perkiraan', true, '50%');
    $zfm->BuildFormButton('Simpan', 'perkiraan');
} else {
    no_auth();
}
panel_multi_end();
panel_multi('perkiraan', 'block');
if ($all_perkiraan != '') {
    $klas = '';
    addText(array('Klasifikasi', 'Sub Klasifikasi', 'Unit'), array("<select id='klas' class='S00'></select>", "<select id='subklas'></select>", "<select id='unit_jurnal'></select>"));
    $zlb->section('perkiraan');
    $zlb->aksi($e_perkiraan != '' ? true : false);
    $zlb->Header('100%');
    $zlb->icon();
    echo "</tbody></table>";
} else {
    no_auth();
}
panel_multi_end();
panel_end();
popup_start('akun', 'Edit Perkiraan', '700');
if ($e_perkiraan != '') {
    $zfm->AddBarisKosong(true, 'b');
    $zfm->Start_form(true, 'frm2');
    $zfm->BuildForm('perkiraan', true, '100%');
    $zfm->BuildFormButton('Update', 'edit_akun');
} else {