コード例 #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
ファイル: lap_kas.php プロジェクト: asad345100/pos-ci
<?php

if (!defined('BASEPATH')) {
    exit('No direct script access allowed');
}
$zfm = new zetro_frmBuilder('asset/bin/zetro_master.frm');
$zlb = new zetro_buildlist();
$zlb->config_file('asset/bin/zetro_master.frm');
$path = 'application/views/laporan/transaksi';
calender();
link_css('jquery.coolautosuggest.css', 'asset/css');
link_js('jquery.coolautosuggest.js', 'asset/js');
link_js('lap_kas.js', $path . '/js');
panel_begin('Laporan Kas');
panel_multi('laporankas', 'block', false);
if ($all_laporankas != '') {
    $zfm->AddBarisKosong(true);
    $zfm->Start_form(true, 'frm1');
    $zfm->BuildForm('filterlapkas', true, '60%');
    $zfm->BuildFormButton('Process', 'filter', 'button', 2);
} else {
    no_auth();
}
panel_multi_end();
panel_end();
コード例 #3
0
ファイル: lap_jual_detail.php プロジェクト: asad345100/pos-ci
<?php

if (!defined('BASEPATH')) {
    exit('No direct script access allowed');
}
$zfm = new zetro_frmBuilder('asset/bin/zetro_neraca.frm');
$zlb = new zetro_buildlist();
$zlb->config_file('asset/bin/zetro_neraca.frm');
$path = 'application/views/laporan/transaksi';
calender();
link_css('jquery.coolautosuggest.css', 'asset/css');
link_js('jquery.coolautosuggest.js', 'asset/js');
link_js('auto_sugest.js,lap_jual.js,jquery.fixedheader.js', 'asset/js,' . $path . '/js,asset/js');
panel_begin('Detail Penjualan');
panel_multi('detailpenjualan', 'block', false);
if ($all_detailpenjualan != '') {
    echo "<form id='frm1' name='frm1' method='post' action=''>";
    addText(array('Periode  :', ' s/d ', 'Jenis Penjualan', ''), array("<input type='text' id='dari_tgl' name='dari_tgl' value='" . date('d/m/Y') . "'>", "<input type='text' id='sampai_tgl' name='sampai_tgl' value=''>", "<select id='id_jenis' name='id_jenis'></select>", "<!--input type='button' value='OK' id='okelah'-->"));
    addText(array('Order by :', 'Sort by', '', ''), array("<select id='orderby' name='orderby'>" . selectTxt('susunanjual', false, 'asset/bin/zetro_member.frm') . "</select>", "<select id='urutan' name='urutan'>" . selectTxt('Urutan', true) . "</select>", "<input type='checkbox' id='show_de' name='show_de' checked='checked' value='detail' style='display:none'>", "<input type='button' value='OK' id='okedech'/>"));
    echo "</form>";
    echo "</tbody></table>";
    echo "<table id='xx' width='100%'><tbody><tr><td>&nbsp;</td></tr></tbody></table>";
} else {
    no_auth();
}
panel_multi_end();
auto_sugest();
panel_end();
?>
<input type='hidden' value="<?php 
echo $this->session->userdata('menus');
コード例 #4
0
ファイル: laba_rugi.php プロジェクト: asad345100/pos-ci
<?php

if (!defined('BASEPATH')) {
    exit('No direct script access allowed');
}
$zfm = new zetro_frmBuilder('asset/bin/zetro_inv.frm');
$zlb = new zetro_buildlist();
$zlb->config_file('asset/bin/zetro_inv.frm');
$path = 'application/views/akuntansi/kas';
calender();
link_css('jquery.coolautosuggest.css', 'asset/css');
link_js('jquery.coolautosuggest.js,jquery_terbilang.js', 'asset/js,asset/js');
link_js('jquery.fixedheader.js,laba_rugi.js', 'asset/js,' . $path . '/js');
panel_begin('Laba Rugi');
panel_multi('labarugi', 'block', false);
if ($all_labarugi != '') {
    addText(array('Periode Tanggal : ', ' 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='okedech' value='OK'/>", "<input type='checkbox' id='pajak' name='pajak' value='ok' style='display:none'>"), true, 'frm1');
} else {
    no_auth();
}
panel_multi_end();
panel_end();
terbilang();
コード例 #5
0
ファイル: material_income.php プロジェクト: asad345100/pos-ci
<?php

if (!defined('BASEPATH')) {
    exit('No direct script access allowed');
}
$zfm = new zetro_frmBuilder('asset/bin/zetro_beli.frm');
$zlb = new zetro_buildlist();
$zlb->config_file('asset/bin/zetro_beli.frm');
$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();
コード例 #6
0
ファイル: buku_besar.php プロジェクト: asad345100/pos-ci
<?php

if (!defined('BASEPATH')) {
    exit('No direct script access allowed');
}
$zfm = new zetro_frmBuilder('asset/bin/zetro_akun.frm');
$zlb = new zetro_buildlist();
$zlb->config_file('asset/bin/zetro_akun.frm');
$path = 'application/views/akuntansi';
calender();
$p_bukubesar != '' ? $oto_p = '' : ($oto_p = 'none');
link_css('jquery.coolautosuggest.css', 'asset/css');
link_js('jquery.fixedheader.js,jquery.coolautosuggest.js', 'asset/js,asset/js');
link_js('buku_besar.js,jquery_terbilang.js', $path . '/js,asset/js');
panel_begin('Buku Besar', '', ',', ",,,,<input type='button' class='print' style='display:{$oto_p}' value='Cetak' id='cetak' title='Klik untuk print'>");
panel_multi('bukubesar', 'block', false);
if ($all_bukubesar != '') {
    echo "<form name='frm_j' id='frm_j' method='post' action=''>";
    echo "\r\n<table id='period' style='border-collapse:collapse'>\r\n\t<tr><td width='70px'>Periode :</td>\r\n    \t<td width='20px'><input type='radio' name='periode' id='pertgl' /></td>\r\n        <td width='70px'>Per Tanggal</td>\r\n        <td width='100px'><input type='text' id='tgl_start' class='w100' value='' /></td>\r\n        <td width='20px'>s/d</td>\r\n        <td width='100px'><input type='text' id='tgl_stop' class='w100' value='' /></td>\r\n        <td style='border-right:2px dotted #FFF' width='15px'></td>\r\n        <td width='10px'>&nbsp;</td>\r\n        <td width='80px'>Klasifikasi</td>\r\n        <td width='170px'><select id='ID_Klas' class='S100'>";
    dropdown("klasifikasi", 'ID', 'Klasifikasi');
    echo "</select></td>\r\n        <td width='5px'>&nbsp;</td>\r\n        <td width='90px'>Sub Klasifikasi</td>\r\n        <td width='250px'><select id='ID_SubKlas' class='S70'></select></td>\r\n    </tr>\r\n\t<tr><td>&nbsp;</td>\r\n    \t<td><input type='radio' name='periode' id='pertahun' /></td>\r\n        <td>Per Tahun</td>\r\n        <td><select id='tahun'></select></td>\r\n        <td>&nbsp;</td>\r\n        <td><input type='button' id='oke' value='OK'></td>\r\n        <td style='border-right:2px dotted #FFF' width='15px'></td>\r\n        <td >&nbsp;</td>\r\n        <td >Departemen</td>\r\n        <td ><select id='ID_Dept' class='S100'>";
    dropdown("mst_departemen", 'ID', 'Departemen');
    echo "</select></td>\r\n        <td >&nbsp;</td>\r\n        <td >Perkiraan</td>\r\n        <td ><select id='ID_Agt' class='S100' style='float:left'></select></td>\r\n    </tr>\r\n</table>\r\n<hr />";
    echo "</form>";
    echo "<div id='tgl' style='display:none'>";
    $zlb->section('bukubesar');
    $zlb->aksi(false);
    $zlb->Header('100%');
    $zlb->icon();
    echo "</tbody></table>\n\r\n\t\t</div>\r\n\t\t<div id='thn' style='display:none'>";
    $zlb->section('bukubesartahunan');
コード例 #7
0
ファイル: material_rusak.php プロジェクト: asad345100/pos-ci
<?php

if (!defined('BASEPATH')) {
    exit('No direct script access allowed');
}
$file = 'asset/bin/zetro_neraca.frm';
$zfm = new zetro_frmBuilder($file);
$zlb = new zetro_buildlist();
$zlb->config_file($file);
$path = 'application/views/warehouse';
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_mutasi.js', $path . '/js');
panel_begin('Rusak/Hilang');
panel_multi('addbarangrusak', 'none', false);
if ($all_addbarangrusak != '') {
    $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, 'frm1');
    $zfm->BuildForm('pemakaian', true, '50%');
    $zfm->BuildFormButton('Simpan', 'rusak');
    echo "<hr/>";
} else {
    no_auth();
}
panel_multi_end();
panel_multi('listbarangrusak', 'block', false);