示例#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
    no_auth();
}
panel_multi_end();
panel_multi('satuan', 'none', false);
if ($c_hargabeli != '') {
    $zfm->AddBarisKosong();
    $zfm->Start_form(true, 'frm3');
    $zfm->BuildForm('Satuan', true, '70%');
    $zfm->BuildFormButton('Simpan', 'sat', 'button');
    echo "<hr>";
    $sql2 = "select * from inv_barang_satuan order by Satuan";
    $zlb->section('Satuan');
    $zlb->aksi(true);
    $zlb->icon();
    $zlb->Header('60%');
    $zlb->query($sql2);
    $zlb->list_data('Satuan');
    $zlb->BuildListData('Satuan');
    echo "</tbody></table>";
    inline_edit('satuan');
} else {
    no_auth();
}
panel_multi_end();
panel_multi('unitkonversi', 'none', false);
if ($c_hargabeli != '') {
    $zfm->AddBarisKosong();
    $zfm->Start_form(true, 'frm4');
    $zfm->BuildForm('Konversi', true, '70%');
    $zfm->BuildFormButton('Simpan', 'konv');
    echo "<hr>";