コード例 #1
0
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>";
}
コード例 #2
0
ファイル: master_inv.php プロジェクト: asad345100/pos-ci
}
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";
    $zlb->section('Jenis');
    $zlb->aksi($e_jenis != '' ? true : false);
    $zlb->icon('deleted');
    $zlb->query($sql2);
    $zlb->sub_total(false);
    $zlb->sub_total_field('stock,blokstok');
    $zlb->Header('50%');
    $zlb->list_data('Jenis');
    $zlb->BuildListData('JenisBarang');
    echo "</tbody></table>";
} else {
    no_auth();
}
panel_multi_end();
panel_multi('golongan');
if ($all_golongan != '') {
    $zfm->AddBarisKosong(true);
    $zfm->Start_form(true, 'frm3');
    $zfm->BuildForm('Golongan', true, '50%');
    $zfm->BuildFormButton('Simpan', 'subkat');
    echo "<hr/>";