Exemplo n.º 1
0
<?php

$SOUF = stocktake_unfinished();
$opt = gpost('opt');
$cid = gpost('cid');
if ($cid == '') {
    $cid = 0;
}
$keyw = gpost('keyword');
$keyn = gpost('keyon');
$fmod = 'pengembalian';
$xtable = new xtable($fmod, 'pengembalian');
$xtable->noopt = true;
$xtable->pageorder = "pus_peminjaman.tanggal3 DESC";
$xtable->search_keyon('barkode=>pus_buku.barkode:EQ-0', 'judul=>pus_katalog.judul:LIKE-1', 'memberid(ID member)=>aka_siswa.nis:EQ|hrd_pegawai.nip:EQ-2', 'nama(nama member)=>aka_siswa.nama:LIKE|hrd_pegawai.nama:LIKE-2');
if ($opt == 'af' || $opt == 'uf') {
    require_once VWDIR . 'pengembalian_form.php';
} else {
    hiddenval('member_id', 0);
    hiddenval('member_tipe', 0);
    $tgl1 = date("Y-m-") . "1";
    $tgl2 = date("Y-m-") . cal_days_in_month(CAL_GREGORIAN, intval(date("m")), intval(date("Y")));
    $tanggal1 = gpost('tanggal1', $tgl1);
    $tanggal2 = gpost('tanggal2', $tgl2);
    $PSBar = new PSBar_2(100, 450);
    $PSBar->begin();
    $s = '<button style="float:left;margin:0px 4px 0px 4px" class="btn" title="Tampilkan" onclick="' . $fmod . '_get()"><div class="bi_srcb">&nbsp;</div></button>';
    $PSBar->selection('Periode', inputTanggal('tanggal1', $tanggal1) . ' <div style="float:left;margin:4px 8px 0px 8px">sampai</div> ' . inputTanggal('tanggal2', $tanggal2) . $s);
    $PSBar->end();
    // Query
    $db = new xdb("pus_peminjaman");
Exemplo n.º 2
0
<?php require_once(MODDIR.'xtable/xtable.php'); require_once(MODDIR.'control.php'); $SOUF=stocktake_unfinished();

$s='';
$s.='<button style="float:left;margin-right:4px;height:26px" class="btnz" onclick="sirkulasi_peminjaman_form(\'af\')">
	<table cellspacing="0" cellpadding="0"><tr>
	<td><div style="width:20px;height:20px;background:url('.IMGR.'outco.png) center no-repeat;margin-right:6px"></div></td><td><span style="font:bold 11px Verdana,Tahoma;color:#fff;margin-right:4px"><b>Peminjaman</b></span></td>
	</tr></table>
	</button>';
$s.='<button style="float:left;margin-right:4px;height:26px" class="btng" onclick="sirkulasi_pengembalian_form(\'af\')">
	<table cellspacing="0" cellpadding="0"><tr>
	<td><div style="width:20px;height:20px;background:url('.IMGR.'inco.png) center no-repeat;margin-right:6px"></div></td><td><span style="font:bold 11px Verdana,Tahoma;color:#fff;margin-right:4px"><b>Pengembalian</b></span></td>
	</tr></table>
	</button>';
echo '<div class="tbltopbar" style="width:100%;margin-bottom:20px">'.$s.'</div>';

$fmod='sirkulasi';

$ct_periode=gpost('ct_periode','1');
$ct_pinjam=gpost('ct_pinjam','1');
$ct_kembali=gpost('ct_kembali','0');
$ct_ttelat=gpost('ct_ttelat','1');
$ct_telat=gpost('ct_telat','1');
$ct_siswa=gpost('ct_siswa','1');
$ct_pegawai=gpost('ct_pegawai','1');
$ct_lain=gpost('ct_lain','1');

$ct_sel1=0; $w1=""; 
if($ct_pinjam!=0){if($w1!="")$w1.=" OR ";
	$w1.="pus_peminjaman.status='1'";
$ct_sel1++;}