Exemplo n.º 1
0
        $satuan = satuan_r($sat);
        $tingkatbuku = tingkatbuku_r($tingb);
    }
    $fform->ptop = 20;
    $fform->head();
    if ($opt == 'uf') {
        require_once MODDIR . 'control.php';
        // Add or Edit form
        hiddenval('katalog', $r['katalog']);
        $fform->fg('Data buku');
        $fform->fl('Judul', '<b>' . buku_judul($rk['judul']) . '</b>');
        hiddenval('nbuku', 0);
        $fform->fi('ID buku', iText('idbuku', $r['idbuku'], $fform->rwidths, '', '', 'disabled'));
        //hiddenval('idbuku',$r['idbuku']);
        $fform->fi('Barkode', iText('barkode', $r['barkode'], $fform->rwidths, '', '', 'disabled'));
        $fform->fi('Callnumber', iText('callnumber', $r['callnumber'], $fform->rwidths));
        $fform->fi('Sumber', iRadio('sumber1', 'sumber', 0, 'Beli', $r['sumber'], '', 'onclick="katalog_buku_getkode(' . $cid . ')"'));
        $fform->fi('', iRadio('sumber2', 'sumber', 1, 'Pemberian', $r['sumber'], '', 'onclick="katalog_buku_getkode(' . $cid . ')"'));
        $fform->fi('Harga', iSelect('satuan', $satuan, $sat) . '&nbsp;' . iText('harga', $r['harga'], 'width:120px'));
        $fform->fi('Tanggal diperoleh', inputTanggal('tanggal', $r['tanggal']));
        $fform->fg('Alokasi buku');
        $fform->fi('Lokasi', iSelect('tlokasi', $lokasi, $lok, '', 'katalog_buku_getkode(' . $cid . ')'));
        $fform->fi('Tingkat', iSelect('ttingkatbuku', $tingkatbuku, $tingb, '', 'katalog_buku_getkode(' . $cid . ')'));
    } else {
        if ($opt == 'df') {
            // Delete form
            $fform->dlg_del($r['idbuku']);
        }
    }
    $fform->foot();
}
Exemplo n.º 2
0
// Page Selection Bar
$PSBar = new PSBar_2(100,450);
$PSBar->begin();
	$PSBar->selection('Statistik',iSelect('statistik',$statistik,$stat,$PSBar->selws,$fmod."_get()"));
	
	if(count($lokasi)>0){
		$PSBar->selection('Lokasi',iSelect('lokasi',$lokasi,$lok,$PSBar->selws,$fmod."_get()"));
	} else {
		$PSBar->end();
		hiddenval('lokasi',$lok);
		lokasi_warn(0,'float:left');
		$PSBar->pass=false;
	}
	
	$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 12px 0px 8px">sampai</div> '.inputTanggal('tanggal2',$tanggal2).$s);
$PSBar->end();

if($PSBar->pass){

$xtable->btnbar_begin();
	//echo '<button style="float:left;margin-right:4px" class="btn" title="Reload" onclick="'.$fmod.'_get()"><div class="bi_relb">&nbsp;</div></button>';
	$xtable->search_box();
	//$xtable->btnbar_print();
$xtable->btnbar_end();

$xtable->search_info();

$membertipe=array(1=>'Siswa',2=>'Pegawai',3=>'Member luar');
if($xtable->ndata>0){
	$xtable->head('@!ID Member','@Nama member','@Jenis member','@Jumlah Item Dipinjam{R,150px}');
Exemplo n.º 3
0
function inputDate($d, $v = "0000-00-00", $cb = "")
{
    return inputTanggal($d, $v, $cb);
}
Exemplo n.º 4
0
        $db = new xdb("aka_mutasi");
        $db->field("aka_mutasi:replid,jenismutasi,siswa,tanggal,keterangan", "aka_siswa:nis as snis,nama as ssiswa");
        $db->join("siswa", "aka_siswa");
        $db->where("aka_mutasi.siswa='{$cid}'");
        $r = $db->gofetch();
    } else {
        $r = array();
        $r['tanggal'] = date("Y-m-d");
    }
    $fform->dimension(500);
    $fform->head();
    if ($opt == 'af' || $opt == 'uf') {
        require_once MODDIR . 'control.php';
        // Add or Edit form
        $jenismutasi = jenismutasi_opt();
        //$fform->fl('Departemen',departemen_name($r['departemen']));
        $s = '<button id="mutasi_siswa_btn" title="Cari" class="btn" style="float:left" onclick="mutasi_siswa_formlist()"><div class="bi_srcb">&nbsp;</div></button>';
        $fform->fi('Siswa', iText('snis', $r['snis'], 'float:left;margin-right:4px;width:80px', '', 'readonly', 'onclick="mutasi_siswa_formlist()"') . iText('ssiswa', $r['ssiswa'], 'float:left;margin-right:4px;width:' . ($fform->rwidth - 110) . 'px', '', 'readonly', 'onclick="mutasi_siswa_formlist()"') . $s);
        hiddenval('siswa', $r['siswa']);
        $s = '<button title="Tambah jenis mutasi" class="btn" style="float:left" onclick="mutasi_jenismutasi_form(\'af\')"><div class="bi_addb">&nbsp;</div></button>';
        $fform->fi('Tanggal', inputTanggal('tanggal', $r['tanggal']));
        $fform->fi('Jenis mutasi', iSelect('jenismutasi', $jenismutasi, $r['jenismutasi'], 'float:left;margin-right:4px;min-width:80px') . $s);
        $fform->fa('Keterangan', iTextarea('keterangan', $r['keterangan'], $fform->rwidths, 4));
    } else {
        if ($opt == 'df') {
            // Delete form
            $fform->dlg_del($r['ssiswa']);
        }
    }
    $fform->foot();
}
Exemplo n.º 5
0
 $t1 = date('Y-m-d', strtotime('+ 1 day', strtotime($tanggal)));
 // Page Selection Bar
 $PSBar = new PSBar_2();
 $PSBar->begin();
 $PSBar->selection_departemen($fmod, $dept);
 if (count($tahunajaran) > 0) {
     $PSBar->selection('Tahun ajaran', iSelect('tahunajaran', $tahunajaran, $tajar, $PSBar->selws, $fmod . "_get()"));
 } else {
     $PSBar->end();
     hiddenval('tahunajaran', $tajar);
     tahunajaran_warn(0, 'float:left');
     $PSBar->pass = false;
 }
 if ($PSBar->pass) {
     $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('Bulan', inputTanggal('tanggal', $tanggal, $fmod . '_get()', 'Ym') . ' ' . $s);
 }
 $PSBar->end();
 if ($PSBar->pass) {
     // Query
     $db = guru_db_bytahunajaran($tajar);
     $db->where_and($xtable->search_sql_get());
     $t = $db->query();
     $xtable->ndata = mysql_num_rows($t);
     $t = $db->query($xtable->pageorder_sql('npegawai'));
     $xtable->btnbar_begin();
     echo '<button style="float:left;margin-right:6px" class="btnz" onclick="inputdateSetDate(\'tanggal\',\'' . $tgl_c . '\');presensiguru_form(\'af\',0)">Presensi hari ini</button>';
     echo '<div class="sfont" style="float:left;margin-top:4px">atau klik pada tanggal utuk mengedit presensi guru.</div>';
     $xtable->search_box('nama guru');
     $xtable->btnbar_end();
     $absensi = array('0' => '', 'h' => 'Hadir', 'a' => 'Abstain', 'i' => 'Ijin', 's' => 'sakit');
Exemplo n.º 6
0
	$xform->set_fieldw(340);
	$xform->group_begin('Data Peminjam');
		$s='<button title="Cari" class="btn" style="margin-right:4px" onclick="sirkulasi_member_add()"><div class="bi_srcb">&nbsp;</div></button>';
		$xform->fi('Peminjam',iText('smember','','width:250px;margin-right:4px','ID atau nama member','onkeyup="sirkulasi_member_cari(event)"').$s);
		hiddenval('member_id',0);
		hiddenval('member_tipe',0);
		hiddenval('sirkulasi_form',1);
	echo '<div id="datamember" class="xrowl" style="margin-top:10px">';
	require_once(APPDIR.'sirkulasi_datamember.php');
	echo '</div>';
	
	$xform->col_begin('50%');
	$xform->set_labelw(150);
	$xform->group_begin('Periode Peminjaman');
		$xform->fi('Tanggal peminjaman',inputTanggal('tanggal1',$data['tanggal1']));
		$xform->fi('Tanggal pengembalian',inputTanggal('tanggal2',$data['tanggal2']));
	$xform->group_begin('Catatan Peminjaman',160);
	$xform->set_labelw(150);
		$xform->fi('Keterangan',iTextarea('keterangan','','width:250px',5));

$xform->table_end(0);

$xform->table_begin();
	
	$xform->col_begin(); $xform->group_unflowdiv();
	$xform->group_begin('Daftar barang yang dipinjam',160); // Grup field
	echo '<div id="data_peminjaman_buku" style="width:700px;max-height:180px;height:180px;overflow:auto">';
		require_once(APPDIR.'peminjaman_buku_tabel.php');
	echo '</div>';
	
$xform->table_end();
Exemplo n.º 7
0
<div class="fformbox" style="width:500px">
	<div class="sfont" style="color:#ffffff;border-radius:5px 5px 0 0;background:#6a92e5;padding:6px 0 6px 0;">
		<b>Day off request of : <?php 
echo $fname;
?>
</b>
	</div>
	<div style="text-align:left;padding:10px">
		<table class="stable" cellspacing="0" cellpadding="3px" width="480px">
			<tr><td>Day off date:</td><td>
			<?php 
echo inputTanggal('tanggal1', $tgl, "hitungHari()");
?>
 to </td></tr>
			<tr><td>&nbsp;</td><td><?php 
echo inputTanggal('tanggal2', $tgl, "hitungHari()");
?>
 ( <span id="htnghari"><?php 
echo $dif;
?>
</span> day(s) )</td></tr>
			<tr><td>&nbsp;</td><td><i>Day off remaining after take this day off: <span id="htnghari2" style="color:<?php 
echo $scuti <= 0 ? "#ff0000" : "inherit";
?>
"><?php 
echo $scuti;
?>
 day(s)</span></i></td></tr>
			<tr valign="top"><td width="100px">Note:</td><td><?php 
echo iTextarea("keterangan", "", "width:100%", 5);
?>
Exemplo n.º 8
0
         $fform->idata = 'transaksi pengeluaran';
     } else {
         $fform->idata = 'jurnal umum';
     }
 }
 //jt_name($jtrans);
 $fform->head();
 if ($opt == 'af' || $opt == 'uf') {
     require_once MODDIR . 'control.php';
     // Add or Edit form
     hiddenval('trans_pembayaran', $pid);
     hiddenval('trans_jenis', $jtrans);
     hiddenval('trans_nomer', $r['nomer']);
     hiddenval('trans_ct', $r['ct']);
     $fform->fl('<b>Nomor</b>', '<b><span id="box_trans_nomer">' . $no['nomer'] . '</span></b>');
     $fform->fi('Tanggal', inputTanggal('trans_tanggal', $r['tanggal'], 'transaksi_getnomer()'));
     $fform->fi('Rek. Kas/Bank', iSelect('rekkas', $rekasbank, $r['rekkas'], $fform->rwidths, 'transaksi_getnomer()'));
     $fform->fg('pada');
     $fform->fi('Rek. perkiraan', iSelect('rekitem', $rekening, $r['rekitem'], $fform->rwidths));
     $fform->fa('Uraian', iTextArea('uraian', $r['uraian'], $fform->rwidths, 3));
     $fform->fi('Nominal', iTextC('nominal', $r['nominal'], 'width:120px'));
 } else {
     if ($opt == 'df') {
         // Delete form
         $fform->rheight = '';
         $fform->fc('Apakah anda yakin untuk menghapus data transaksi ini?');
         $fform->fl('Nomor', '<b>' . $r['nomer'] . '</b>');
         $fform->fl('Tanggal', fftgl($r['tanggal']));
         $fform->fl('Uraian', $r['uraian']);
     }
 }
Exemplo n.º 9
0
        $r = dbSFA("*", $dbtable, "W/replid='{$cid}'");
    } else {
        $r = array();
        $r['departemen'] = gpost('departemen');
        $r['proses'] = gpost('proses');
        $r['kapasitas'] = 0;
        $r['biaya'] = 0;
    }
    $fform->head();
    if ($opt == 'af' || $opt == 'uf') {
        require_once MODDIR . 'control.php';
        // Add or Edit form
        $fform->fl('Departemen', departemen_name(gpost('departemen')), $fform->rwidths);
        $fform->fl('Proses', proses_name($r['proses']), $fform->rwidths);
        $fform->fi('Nama kelompok', iText('kelompok', $r['kelompok'], $fform->rwidths));
        $fform->fi('Tanggal dibuka', inputTanggal('tglmulai', $r['tglmulai']));
        $fform->fi('Tanggal ditutup', inputTanggal('tglselesai', $r['tglselesai']));
        $fform->fi('Biaya pendaftaran', iTextC('biaya', $r['biaya'], 'width:120px'));
        $fform->fa('Keterangan', iTextarea('keterangan', $r['keterangan'], $fform->rwidths, 3));
    } else {
        if ($opt == 'df') {
            // Delete form
            $fform->dlg_del($r['kelompok']);
        } else {
            if ($opt == 'hf') {
                $fform->fh('Kelompok pendaftaran adalah pembagian tahap atau gelombang pendaftaran dalam satu periode penerimaan siswa baru.<br/>Contoh kelompok pendaftaran: "Early bird", "Reguler Gelombang 1", "Reguler Gelombang 2".');
            }
        }
    }
    $fform->foot();
}
Exemplo n.º 10
0
<div class="fformbox" style="width:500px">
	<div class="sfont" style="color:#ffffff;border-radius:5px 5px 0 0;background:#6a92e5;padding:6px 0 6px 0;">
		<b>Day off request of : <?php 
echo $fname;
?>
</b>
	</div>
	<div style="text-align:left;padding:10px">
		<table class="stable" cellspacing="0" cellpadding="3px" width="480px">
			<tr><td>Day off date:</td><td>
			<?php 
echo inputTanggal('tanggal1', $r['date1'], "hitungHarix(" . ($scuti + $r['count']) . ")");
?>
 s/d </td></tr>
			<tr><td>&nbsp;</td><td><?php 
echo inputTanggal('tanggal2', $r['date2'], "hitungHarix(" . ($scuti + $r['count']) . ")");
?>
 ( <span id="htnghari"><?php 
echo $r['count'];
?>
</span> day(s) )</td></tr>
			<tr><td>&nbsp;</td><td><i>Day off remaining after take this day off: <span id="htnghari2" style="color:<?php 
echo $scuti <= 0 ? "#ff0000" : "inherit";
?>
"><?php 
echo $scuti;
?>
 day(s)</span></i></td></tr>
			<tr valign="top"><td width="100px">Note:</td><td><?php 
echo iTextarea("keterangan", $r['note'], $s = "width:100%", $r = 5);
?>
Exemplo n.º 11
0
"/></td></tr>
							<tr><td>&nbsp;</td><td>Alamat</td><td><input type="text" class="ifield" style="width:100%" name="his_address<?php 
    echo $jj;
    ?>
" id="his_address<?php 
    echo $jj;
    ?>
"/></td></tr>
							<tr><td>&nbsp;</td><td>Mulai bekerja</td><td>
								<?php 
    echo inputTanggal("his_date_from" . $jj);
    ?>
							</td></tr>
							<tr><td>&nbsp;</td><td>Hingga</td><td>
								<?php 
    echo inputTanggal("his_date_to" . $jj);
    ?>
							</td></tr>
							<tr><td>&nbsp;</td><td>Posisi</td><td><input type="text" class="ifield" style="width:100%" name="his_position<?php 
    echo $jj;
    ?>
" id="his_position<?php 
    echo $jj;
    ?>
"/></td></tr>
							<tr><td>&nbsp;</td><td>Gaji per bulan</td><td><input type="text" class="ifield" style="width:100%" name="his_salary<?php 
    echo $jj;
    ?>
" id="his_salary<?php 
    echo $jj;
    ?>
Exemplo n.º 12
0
        }
    }
    $fform->notif($q);
} else {
    if ($opt == 'uf' || $opt == 'df') {
        // Prepocessing form
        $r = dbSFA("*", $dbtable, "W/replid='{$cid}'");
    } else {
        $r = farray('nama', 'tanggal1', 'tanggal2', 'keterangan', 'efektif');
        $r['efektif'] = 0;
    }
    $fform->ptop = 60;
    $fform->head();
    if ($opt == 'af' || $opt == 'uf') {
        require_once MODDIR . 'control.php';
        // Add or Edit form
        //$fform->fl('Departemen',departemen_name($r['departemen']));
        //$fform->fl('Tahun ajaran',tahunajaran_name($r['tahunajaran']));
        //$fform->fi('Nama Kegiatan',iText('nama',$r['nama'],$fform->rwidths));
        $fform->fi('Tanggal', inputTanggal('tanggal1', $r['tanggal1']));
        $fform->fi('sampai', inputTanggal('tanggal2', $r['tanggal2']));
        $fform->fi('', iCheckx('efektif', 'Hari efektif', $r['efektif'], 'margin:6px 0px'));
        $fform->fa('Uraian kegiatan', iTextarea('keterangan', $r['keterangan'], $fform->rwidths, 8));
    } else {
        if ($opt == 'df') {
            // Delete form
            $fform->dlg_del($r['nama']);
        }
    }
    $fform->foot();
}
Exemplo n.º 13
0
appmod_use('hrd/status');
$opt = gpost('opt');
$cid = gpost('cid', 0);
$fmod = 'pegawai';
$xform = new xform($fmod, $opt, $cid);
$status = status_opt();
if ($opt == 'uf') {
    // Nilai field editan
    $t = mysql_query("SELECT * FROM hrd_pegawai WHERE replid='{$cid}' LIMIT 0,1");
    $data = mysql_fetch_array($t);
    $ttl = 'Edit';
} else {
    // Nilai field default
    $data = array();
    //$data['halaman']=1;
    //$data['pengarang']='-';
    //$data['tahunterbit']=date("Y");
    $ttl = 'Tambah';
}
$xform->title($ttl . ' Data Pagawai');
$xform->table_begin();
$xform->col_begin();
//$xform->set_fieldw(280);
$xform->group_begin('Data Pribadi');
$xform->fi('NIP', iText('nip', $data['nip'], $xform->fieldws));
$xform->fi('Nama', iText('nama', $data['nama'], $xform->fieldws));
$xform->fi('Tempat lahir', iText('tmplahir', $data['tmplahir'], $xform->fieldws));
$xform->fi('Tanggal lahir', inputTanggal('tgllahir', $data['tgllahir']));
$xform->group_begin('Data Kepegawaian');
$xform->fi('Status', iSelect('status', $status, $data['status']));
$xform->table_end();