示例#1
0
function switch_popup()
{
    switch ($_GET["popup"]) {
        case "settings":
            popup_start();
            break;
        default:
            break;
    }
}
示例#2
0
function switch_popup()
{
    $users = new usersMenus();
    if ($users->AsArticaAdministrator == true or $users->AsPostfixAdministrator or $user->AsSquidAdministrator) {
    } else {
        exit;
    }
    switch ($_GET["popup"]) {
        case "yes":
            popup_start();
            break;
        default:
            break;
    }
}
示例#3
0
$zfm->BuildForm('Kategori', true, '100%');
$zfm->BuildFormButton('Simpan', 'kat');
popup_end();
popup_start('nm_golongan', 'Add Sub Kategori', 350);
$zfm->AddBarisKosong(true);
$zfm->Start_form(true, 'frm7');
$zfm->BuildForm('Golongan', true, '100%');
$zfm->BuildFormButton('Simpan', 'subkat');
popup_end();
popup_start('nm_satuan', 'Tambah Satuan', 300);
$zfm->AddBarisKosong(true);
$zfm->Start_form(true, 'frm8');
$zfm->BuildForm('Satuan', true, '100%');
$zfm->BuildFormButton('Simpan', 'satuan');
popup_end();
popup_start('edit_barang', 'Edit Data', 550);
$zfm->Addinput("<input type='hidden' id='ID' name='ID' value=''/>");
$zfm->AddBarisKosong(true);
$zfm->Start_form(true, 'frm9');
$zfm->BuildForm($section, true, '100%');
$zfm->BuildFormButton('Simpan', 'edit_mat');
popup_end();
auto_sugest();
terbilang();
echo "<input type='hidden' value='" . date('d/m/Y') . "' id='today'>";
?>
<script language="javascript">
	$(document).ready(function(e) {
        $('#plh').html("<?php 
dropdown('inv_barang_kategori', 'ID', 'Kategori', 'order by Kategori');
?>
示例#4
0
$zb->ListHeader('nasabah', '70%', 'listTable');
$no = 0;
echo "<tbody>";
//($page+1);
foreach ($list->result_array() as $lst) {
    $no++;
    echo "<tr class='xx' id='" . $lst['ktp_spb'] . "' align='left'>\n\r\n\t\t   <td class='kotak' align='center'>{$no}</td>\r\n\t\t   <td class='kotak'>" . $lst['nama_spb'] . "{$ae}</td>\r\n\t\t   <td class='kotak'>" . $lst['ktp_spb'] . "</td>\r\n\t\t   <td class='kotak'>" . $lst['almnasabah'] . "</td>\r\n\t\t   <td class='kotak' width='8%' align='center'>";
    $bls = rdb('blacklist', 'ktp_spb', 'ktp_spb', "where ktp_spb='" . $lst['ktp_spb'] . "'");
    if ($ae == 'Y' || $user_aktiv == 'Superuser') {
        $zb->event($lst['ktp_spb']);
    }
    echo "</td></tr>\n";
}
echo "</tbody></table>";
panel_end();
popup_start('Edit Data Nasabah', 500, 300, 'frm2');
$zb = new zetro_frmBuilder('asset/bin/zetro_form.cfg');
$zb->AddBarisKosong(true);
$zb->BuildForm('nasabah', true, '80%');
popup_end('');
?>
<input type='text' id='prs' value='bcl'>
<script language='javascript'>
	$(document).ready(function(e) {
		$('img.edit').hide();
		$('img.del').attr({'src':'<?php 
echo base_url();
?>
asset/images/up2.png','title':'Keluarkan dari daftar Black List'});
       // $('img.del').show();;
		//$('img.del').addClass('pas');
示例#5
0
文件: spbnew.php 项目: laiello/ksu
<?php 
link_css('autosuggest.css', 'asset/css');
link_js('zetro_number.js,spb.js,jquery_terbilang.js', 'asset/js,application/views/spb/js,asset/js');
panel_begin('SPB', 'frm1');
$zb = new zetro_frmBuilder('asset/bin/zetro_form.cfg');
$zb->AddButton('RePrint Slip');
$zb->BuildForm('Spb', true, '80%', '', 2);
panel_end();
//popup menu
popup_start('Tambah Jenis Barang', 500, 500, 'frm2');
$zb->AddBarisKosong(true);
$zb->BuildForm('Material', true, '100%', 'popup');
popup_end();
?>
<script language='javascript'>
$(document).ready(function(e) {
	var today= new Date();
	var bln='<?php 
echo date('m');
?>
';//today.getMonth();
	lock('#no_spb');
	(bln.length==0)? xx='0'+bln:xx=bln;
 	$('#no_spb').val('<?php 
echo $no_spb;
?>
/SPB/'+xx+'/'+today.getFullYear());
   $('#nama_spb').focus().select();
   //$('#id_barang').html("<?php 
dropdown('material', 'nmbarang', 'nmbarang', 'order by nmbarang');
示例#6
0
} else {
    no_auth();
}
panel_multi_end();
auto_sugest();
panel_end();
popup_start('adduserlevel', 'User Level', 350);
$e_adduser == '' || $c_adduser == '' ? $btn = false : ($btn = true);
$zfm->AddBarisKosong(true);
$zfm->Start_form(true, 'frm3');
$zfm->BuildForm('addlevel', $btn, '100%');
if ($btn == true) {
    $zfm->BuildFormButton('Simpan', 'addlevel');
}
popup_end();
popup_start('edituser', 'Edit User profile');
$e_adduser == '' || $c_adduser == '' ? $btn = false : ($btn = true);
$zfm->AddBarisKosong(true);
$zfm->Start_form(true, 'frm4');
$zfm->BuildForm('userlist', $btn, '90%');
if ($btn == true) {
    $zfm->BuildFormButton('Simpan', 'edited');
}
popup_end();
$c_authorisation == '' && $this->session->userdata('idlevel') != '1' ? $view = 'disabled' : ($view = '');
?>
<input type='hidden' id='otor' value='<?php 
echo $view;
?>
' />
<input type='hidden' id='uea' value='<?php 
示例#7
0
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();
示例#8
0
    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');
popup_end();
echo "<input type='hidden' value='2' id='aksine' />";
panel_end();
?>

示例#9
0
$zlb->config_file('asset/bin/zetro_inv.frm');
$zlb->section('stokoverlist');
$zlb->aksi(false);
$zlb->Header('100%');
echo "</tbody></table>";
popup_end();
popup_start('editline', 'Login for edit');
popup_end();
popup_start('canceltrans', 'Edit Transaksi', 850);
$zlb->config_file('asset/bin/zetro_beli.frm');
$zlb->section('penjualanlist');
$zlb->aksi(true);
$zlb->Header('100%');
echo "</tbody></table>";
popup_end();
popup_start('tranresep', 'Komposisi Resep', 800, 600);
//$this->load->view('penjualan/material_jual_resep');
popup_end();
auto_sugest();
tab_select('prs');
terbilang();
?>
<div id='kekata' style="display:none;padding:8px; background:#003; border:5px solid #F60;width:80%; height:50px; font-size:x-large;left:9%;top: 82%;color:#FFF; position:fixed; z-index:9997">
	<!--terbilang jumlah yang harus di bayar-->
</div>
<input type="hidden" id='id_member' value='' />
<input type="hidden" id='jmlbayar' value='' />
<input type="hidden" id='nama' value='' />
<input type="hidden" id='trans_new' value='' />
<input type="hidden" id='huruf' value='' />
<input type='hidden' id='aktif' value=''/>
示例#10
0
    $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');
popup_end();
echo "<input type='hidden' value='1' id='aksine' />";
panel_end();
示例#11
0
include_once 'ressources/class.rtmm.tools.inc';
if ($GLOBALS["VERBOSE"]) {
    echo __FUNCTION__ . "::" . __LINE__ . ":: Load done...()\n<br>";
}
$user = new usersMenus();
if (!$user->AsSquidAdministrator) {
    $tpl = new templates();
    echo "alert('" . $tpl->javascript_parse_text("{ERROR_NO_PRIVS}") . "');";
    exit;
}
if (isset($_GET["popup"])) {
    popup();
    exit;
}
if (isset($_GET["popup-start"])) {
    popup_start();
    exit;
}
if (isset($_GET["categorizer"])) {
    popup_categories();
    exit;
}
if (isset($_GET["categorizer-list"])) {
    popup_categories_sql();
    exit;
}
if (isset($_GET["top10"])) {
    popup_top10();
    exit;
}
if (isset($_GET["top10-list"])) {
示例#12
0
<th class='kotak' width='3%'>5</th>
<th class='kotak' width='3%'>6</th>
<th class='kotak' width='3%'>7</th>
<th class='kotak' width='3%'>8</th>
<th class='kotak' width='3%'>9</th>
<th class='kotak' width='3%'>10</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
<?php 
panel_multi_end();
panel_end();
echo "</form>";
popup_start('Edit SPB', 500, 500, 'frm2');
$zb = new zetro_frmBuilder('asset/bin/zetro_form.cfg');
$zb->AddBarisKosong(true);
$zb->BuildForm('Spb', true, '80%');
popup_end('');
?>
<script language='javascript'>
	$(document).ready(function(e) {
        $('#bulan').html("<?php 
dropdown('spb', 'distinct(month(tgl_spb)) as bln', '', 'order by month(tgl_spb)', $blne);
?>
");
        $('#thn').html("<?php 
dropdown('spb', 'distinct(year(tgl_spb)) as thn', '', 'order by year(tgl_spb)', $thne);
?>
");
示例#13
0
<th class='kotak'>8</th>
<th class='kotak'>9</th>
<th class='kotak'>10</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
<?php 
panel_end();
?>

<div class="autosuggest" id="autosuggest_list"></div>

<?php 
popup_start('Process Document', '350', '200', 'frm5');
?>
<br />
<table style='border-collapse:collapse' width='95%' align='center'>
  <tr><td width='50%' class='b_line'>Tindakan :&nbsp;</td><td width='50%'>
	 <select id='tindakan' name='tindakan' class=''>
	 <option value=''>&nbsp;</option>
	 <option value='L'>Pelunasaan</Option>
	 <!--option value='N'>Tidak</Option-->
     </select></td></tr>
  <tr id='hrg' style='display:none'><td class='b_line'> Jumlah pembayaran : &nbsp;</td><td>
	 <input id='bayar' name='bayar' type='text' class='angka' value='0'></td></tr>
   <tr id='hrg' style='display:none'><td class='b_line'>Terbilang</td><td><div id='terbilang'></div></td></tr>
   <tr height='30' valign='middle'><td colspan='2' align='right'>
   <input type='button' value='Submit' id='simpan' />
   <input type='hidden' id='nospb' name='nospb' value='' />
示例#14
0
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');
$zfm->BuildForm('stockadjust', true, '100%');
$zfm->BuildFormButton('Simpan', 'edit_mat');
popup_end();
?>
<input type='hidden' value='<?php 
echo $e_stockadjustment;
?>
' id='edited' />
<script language="javascript">
$(document).ready(function(e) {
示例#15
0
    $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 {
    no_auth();
}
popup_end();
loading_ajax();