Пример #1
0
<?php

require_once MODDIR . 'fform/fform.php';
require_once MODDIR . 'control.php';
$opt = gpost('opt');
$cid = gpost('cid');
if ($cid == '') {
    $cid = 0;
}
appmod_use('aka/tahunajaran', 'aka/tingkat', 'aka/kelas');
$mtipe = gpost('mtipe');
if ($mtipe == '') {
    $mtipe = "1";
}
// form Module
$fmod = "siswakelas";
$fform = new fform($fmod, 'af', $cid, 'Cari siswa');
$fform->reg['title_af'] = '<idata>';
//$fform->reg['btnlabel_a_y']='Pilih yg ditandai';
$fform->reg['btnlabel_a_n'] = 'Tutup';
$fform->dimension(500);
$fform->ptop = 50;
$fform->head('Pilih Siswa', 0);
echo '<tr><td><div id="data_member" style="height:350px;overflow:auto">';
if ($mtipe == "0" || $mtipe == "1") {
    require_once APPDIR . 'sirkulasi_member_get_siswa.php';
}
echo '</div></td></tr>';
$fform->foot(0);
Пример #2
0
		$terbitan.=$r['kota'];
	}
	if($r['tahunterbit']!=''){
		if($terbitan!='')$terbitan.=', ';
		$terbitan.=$r['tahunterbit'];
	}

	$tersedia=mysql_num_rows(mysql_query("SELECT * FROM pus_buku WHERE katalog='$cid' AND status='1'"));
	
	$judul=$r['judul'];	
	$b=explode("`",$judul);
	$c='<span style="font-size:20px">'.$b[0].'</span>'.($b[1]==''?"":"<br/>(".$b[1].")");
	$judul=stripslashes($c);
	
	$fform->ptop=20;
	$fform->head('',0);
	?>
	<tr><td>
		<table cellspacing="0" cellpadding="0px" style="margin:auto;margin-bottom:10px" width="100%">
		<tr valign="top" style="height:110px">
			<?php if(strlen($r['photo'])>0 || true){ ?>
			<td width="60px">
				<?php $xform->photof($r['replid'],'katalog',80,100); ?>
			</td>
			<?php } ?>
			<td style="padding-left:10px">
				<div class="sfont" style="color:#000;font-size:14px;color:#444;margin-bottom:6px"><?=$judul?></div>
				<?php if($r['npengarang']!=''){ ?>
				<div class="sfont" style="margin-bottom:6px">by <a class="linkb" href="<?=RLNK?>opac.php?keyon=pengarang&keyword=<?=$r['npengarang']?>" title="Tampilkan koleksi dari <?=$r['npengarang']?>"><?=$r['npengarang']?></a></div>
				<?php } ?>
			</td>
Пример #3
0
     $s = 'SELECT * FROM hrd_karyawan WHERE id=' . $r['pegawai'] . ' LIMIT 0,1';
     // var_dump($s);exit();
     $q = mysql_query($s);
     // $q=mysql_query("SELECT * FROM hrd_pegawai WHERE replid='".$r['pegawai']."' LIMIT 0,1");
     if (mysql_num_rows($q) > 0) {
         $h = mysql_fetch_array($q);
         $r['nama'] = $h['nama'];
     }
 } else {
     // db operation for form : add
     $r = app_form_gpost('departemen', 'tahunajaran', 'pegawai', 'pelajaran', 'aktif', 'keterangan');
     $r['pelajaran'] = gpost('spelajaran');
     $r['aktif'] = '1';
 }
 $fform->dimension(450);
 $fform->head();
 if ($opt == 'af' || $opt == 'uf') {
     //$fform->fl('Departemen',departemen_name($r['departemen']));
     //$fform->fl('Tahun ajaran',tahunajaran_name($r['tahunajaran']));
     //$fform->fi('Status',iSelect('aktif',array('1'=>'Aktif','0'=>'Tidak aktif'),$r['aktif']));
     //$fform->fa('Kode',iText('kode',$r['kode'],'width:40px'));
     require_once MODDIR . 'control.php';
     // Add or Edit form
     $fform->fi('Mata Pelajaran', iSelect('pelajaran', pelajaran_opt(gpost('tahunajaran')), $r['pelajaran']));
     $fform->fi('Pegawai', app_form_getpegawai('pegawai', $r));
     $fform->fa('Keterangan', iTextarea('keterangan', $r['keterangan'], $fform->rwidths, 3));
     hiddenval('aktif', 1);
 } else {
     if ($opt == 'df') {
         // Delete form
         if (0 > 0) {
Пример #4
0
<?php

require_once MODDIR . 'fform/fform.php';
require_once MODDIR . 'control.php';
$opt = gpost('opt');
$cid = gpost('cid');
if ($cid == '') {
    $cid = 0;
}
appmod_use('aka/pelajaran');
// form Module
$fmod = "mutasi_siswa";
$fform = new fform($fmod, 'af', $cid, 'Cari item');
$fform->fformid = 2;
$fform->reg['title_af'] = '<idata>';
$fform->reg['btnlabel_a_y'] = 'Pilih yg ditandai';
$fform->reg['btnlabel_a_n'] = 'Tutup';
$fform->dimension(500);
$fform->ptop = 20;
$fform->globalkey = '0';
$fform->head('Pilih Siswa');
echo '<tr><td><div id="box_mutasi_siswa_list">';
require_once APPDIR . 'mutasi_siswa_list_get.php';
echo '</div></td></tr>';
$fform->foot(0);
Пример #5
0
<?php require_once(MODDIR.'xform/xform.php'); require_once(MODDIR.'fform/fform.php'); require_once(MODDIR.'xtable/xtable.php'); require_once(MODDIR.'control.php');
$fmod="siswakelas";
$fform=new fform($fmod,'af',$cid,'Cari siswa');
$fform->globalkey='0';
$fform->reg['title_af']='<idata>';
$fform->reg['btnlabel_a_y']='Tutup';
//$fform->reg['btnlabel_a_n']='Tutup';
$fform->dimension(650);
$fform->ptop=30;
$fform->yes_act='close_fform()';
$fform->head('Daftar Pengecekan Item');
echo '<tr><td><div id="data_member" style="height:350px;overflow:auto">';

$tbl=stocktake_ctable();

$fmod='stocktake_daftar';
$xtable=new xtable($fmod,'item');
$xtable->noopt=true;
$xtable->pageorder="cek,ts";
$xtable->search_box_pos('l');
$xtable->search_keyon('barkode=>'.$tbl.'.barkode:EQ-0');

// Query
//$sql="SELECT * FROM ".$tbl." ORDER BY cek,ts";
$db=new xdb($tbl);
$db->field($tbl.":*","josh.pus_katalog:judul");
$db->join("buku","josh.pus_buku");
$db->joinother("josh.pus_buku","katalog","josh.pus_katalog");
$db->where($xtable->search_sql_get());
$t=$db->query();
$xtable->ndata=mysql_num_rows($t);
Пример #6
0
	$data=gpost('data');
	if($data!=""){
		$q=true;
		$did=explode(",",$data);
		$n=count($did);
		for($i=0;$i<$n;$i++){
			$cid=$did[$i];
			$q&=dbQSql("INSERT INTO pus_tpjm SET buku='$cid',ssid='$ssid'");
		}
	}
}
else if($opt=='d'){ // delete
	$q=dbDel($dbtable,"replid='$cid'");
}
else if($opt=='af'){
	$fform=new fform($fmod,'af',$cid,'Cari item');
	$fform->reg['title_af']='<idata>';
	$fform->reg['btnlabel_a_y']='Pilih yg ditandai';
	$fform->reg['btnlabel_a_n']='Batal';
	$fform->dimension(600);
	$fform->ptop=20;
	$fform->globalkey='0';
	$fform->head('Pilih Item Yang Akan Dicetak');
	echo '<tr><td><div id="box_tools_label_buku_list">';
		require_once(APPDIR.'tools_label_buku_list_get.php');
	echo '</div></td></tr>';
	
	$fform->nobtn_action.='Efoc(\'sbuku\');';
	$fform->foot();
}
?>
		$q=true;
		$did=explode(",",$data);
		$n=count($did);
		for($i=0;$i<$n;$i++){
			$cid=$did[$i];
			$q&=dbQSql("INSERT INTO pus_tpjm SET buku='$cid',ssid='$ssid'");
			//log_print("INSERT INTO aka_siswa_kelas SET kelas='$kls',siswa='$cid'");
		}
	}
}
else if($opt=='d'){ // delete
	$q=dbDel($dbtable,"replid='$cid'");
}
else if($opt=='af'){
	$fform=new fform($fmod,'af',$cid,'Cari item');
	$fform->fformid=2;
	$fform->reg['title_af']='<idata>';
	$fform->reg['btnlabel_a_y']='Pilih yg ditandai';
	$fform->reg['btnlabel_a_n']='Batal';
	$fform->dimension(600);
	$fform->ptop=20;
	$fform->globalkey='0';
	$fform->head('Pilih Item yang Tersedia');
	echo '<tr><td><div id="box_sirkulasi_peminjaman_form_buku_list">';
		require_once(APPDIR.'sirkulasi_peminjaman_form_buku_list_get.php');
	echo '</div></td></tr>';
	
	$fform->nobtn_action.='Efoc(\'sbuku\');';
	$fform->foot();
}
?>
Пример #8
0
<?php require_once(MODDIR.'xform/xform.php'); require_once(MODDIR.'fform/fform.php'); require_once(MODDIR.'xtable/xtable.php');
$opt=gpost('opt');
if($opt=='a'){
	$q=mysql_query("UPDATE pus_stockhist SET status='3' WHERE status='2' LIMIT 1");
	if($q) echo "1";
	else echo "0";
}
else if($opt=='af'){
	$fmod="stocktake_cek_done";
	$fform=new fform($fmod,'af',$cid,'Cari siswa');
	$fform->reg['title_af']='<idata>';
	$fform->reg['btnlabel_a_y']='  Ya  ';
	$fform->reg['btnlabel_a_n']='Tidak';
	$fform->yes_act='stocktake_cek_done(\'a\')';
	$fform->dimension(500);
	$tbl=stocktake_ctable();
	$ncek_y=mysql_num_rows(mysql_query("SELECT * FROM ".$tbl." WHERE cek='Y'"));
	$ncek=mysql_num_rows(mysql_query("SELECT * FROM ".$tbl));
	
	$fform->head('Akhiri pengecekan item');
	
	if($ncek_y<$ncek){
		$fform->dlg(($ncek-$ncek_y).' item belum dicek. Apakah anda yakin untuk melajutkan ke proses berikutnya?');
	} else {
		$fform->dlg('Akhiri pengecekan item dan lanjutkan ke proses berikutnya?');
	}
	$fform->foot();
}
?>
Пример #9
0
<?php

require_once MODDIR . 'fform/fform.php';
require_once MODDIR . 'control.php';
$opt = gpost('opt');
$cid = gpost('cid');
if ($cid == '') {
    $cid = 0;
}
appmod_use('aka/pelajaran');
// form Module
$fmod = "sks_guru";
$dbtable = 'pus_tpjm';
$tajar = gpost('tahunajaran');
$fform = new fform($fmod, 'af', $cid, 'Cari item');
$fform->fformid = 2;
$fform->reg['title_af'] = '<idata>';
$fform->reg['btnlabel_a_y'] = 'Pilih yg ditandai';
$fform->reg['btnlabel_a_n'] = 'Tutup';
$fform->dimension(500);
$fform->ptop = 20;
$fform->globalkey = '0';
$fform->head('Guru ' . pelajaran_name(gpost('pelajaran')));
echo '<tr><td><div id="box_sks_guru_list">';
require_once APPDIR . 'sks_guru_list_get.php';
echo '</div></td></tr>';
$fform->foot(0);
Пример #10
0
	$fform->head('Akhiri pemberian catatan');
	
	if($ncek_y<$ncek){
		$fform->dlg(($ncek-$ncek_y).' item hilang tanpa keterangan. Apakah anda yakin untuk menyelesaikan proses stock opname?');
	} else {
		$fform->dlg('Akhiri pemberian catatan item dan selesaikan proses stock opname?');
	}
	$fform->foot();
}
else if($opt=='df'){
	$fmod="stocktake_note_done";
	$fform=new fform($fmod,'df',$cid,'Cari siswa');
	$fform->reg['title_af']='<idata>';
	$fform->reg['btnlabel_d_y']='  Ya  ';
	$fform->reg['btnlabel_d_n']='Tidak';
	$fform->yes_act='stocktake_note_done(\'d\')';
	$fform->dimension(500);
	$tbl=stocktake_ctable();
	$ncek_y=mysql_num_rows(mysql_query("SELECT * FROM ".$tbl." WHERE cek='N' AND note<>''"));
	$ncek=mysql_num_rows(mysql_query("SELECT * FROM ".$tbl." WHERE cek='N'"));
	
	$fform->head('Kembali ke Proses Pengecekan');
	
	//if($ncek_y<$ncek){
	//	$fform->dlg(($ncek-$ncek_y).' item hilang tanpa keterangan. Apakah anda yakin untuk menyelesaikan proses stock opname?');
	//} else {
		$fform->dlg('Kembali ke proses pengecekan item?');
	//}
	$fform->foot();
}
?>