if ($opt == 'd') {
                // delete
                $q = dbDel($dbtable, "replid='{$cid}'");
            }
        }
    }
    $fform->notif($q);
} else {
    $a = 0;
    if ($opt == 'uf' || $opt == 'df') {
        // Prepocessing form
        $r = dbSFA("*", $dbtable, "W/replid='{$cid}'");
        $a = 0;
    } else {
    }
    $fform->dimension(400, 120);
    $fform->head();
    if ($opt == 'af' || $opt == 'uf') {
        require_once MODDIR . 'control.php';
        // Add or Edit form
        $fform->fi('Jumlah pembayaran', iTextC('nominal', $r['nominal'], 'width:120px'));
        $fform->fi('Besar cicilan', iTextC('cicilan', $r['cicilan'], 'width:120px'));
        $fform->fa('Keterangan perubahan', iTextarea('keterangan', $r['keterangan'], $fform->rwidths, 3));
    } else {
        if ($opt == 'df') {
            // Delete form
            $fform->dlg_del($r['nama']);
        }
    }
    $fform->foot();
}
Exemple #2
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();
}
Exemple #3
0
 //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']);
     }
 }
 if ($opt == 'af') {
     $s = '<div style="float:right;margin-right:-20px">' . iCheckx('trans_print', 'Cetak bukti pembayaran', 0, 'float:right') . '</div>';
     //$fform->optional_button=$s;
 }
 $fform->foot();
Exemple #4
0
            }
        }
    }
    $fform->notif($q);
} else {
    if ($opt == 'uf' || $opt == 'df') {
        // Prepocessing form
        $r = dbSFA("*", $dbtable, "W/replid='{$cid}'");
    } else {
        $r = farray('nama', 'kode', 'tanggal1', 'keterangan');
        $r['tanggal1'] = date("Y-m-d");
    }
    $fform->dimension(400, 120);
    $fform->head();
    if ($opt == 'af' || $opt == 'uf') {
        require_once MODDIR . 'control.php';
        // Add or Edit form
        $fform->fi('Nama tahun buku', iText('nama', $r['nama'], $fform->rwidths));
        hiddenval('kode', $r['kode']);
        //$fform->fi('Kode awalan kwitansi',iText('kode',$r['kode'],'width:80px'));
        $fform->fi('Tanggal mulai', inputDate('tanggal1', $r['tanggal1']));
        $fform->fi('Saldo awal', iTextC('saldoawal', $r['saldoawal'], 'width:120px'));
        $fform->fa('Keterangan', iTextarea('keterangan', $r['keterangan'], $fform->rwidths, 3));
    } else {
        if ($opt == 'df') {
            // Delete form
            $fform->dlg_del($r['nama']);
        }
    }
    $fform->foot();
}
Exemple #5
0
                    hiddenval('nama', $r['nama']);
                    $fform->fi('Rek. kas', iSelect('rek1', $rekening, $r['rek1'], $fform->rwidths));
                    $fform->fi('Rek. pendapatan', iSelect('rek2', $rekening, $r['rek2'], $fform->rwidths));
                    $fform->fi('Rek. piutang', iSelect('rek3', $rekening, $r['rek3'], $fform->rwidths));
                    hiddenval('nominal', 0);
                    hiddenval('cicilan', 0);
                } else {
                    $fform->fi('Nama pembayaran', iText('nama', $r['nama'], $fform->rwidths));
                    $fform->fi('Rek. kas', iSelect('rek1', $rekening, $r['rek1'], $fform->rwidths));
                    $fform->fi('Rek. pendapatan', iSelect('rek2', $rekening, $r['rek2'], $fform->rwidths));
                    if ($r['kategori'] == 1 || $r['kategori'] == 3) {
                        $fform->fi('Rek. piutang', iSelect('rek3', $rekening, $r['rek3'], $fform->rwidths));
                        $fform->fi('Jml pembayaran', iTextC('nominal', $r['nominal'], 'width:120px'));
                        $fform->fi('Besar cicilan', iTextC('cicilan', $r['cicilan'], 'width:120px'));
                    } else {
                        $fform->fi('Jml pembayaran', iTextC('nominal', $r['nominal'], 'width:120px'));
                        hiddenval('rek3', 0);
                        hiddenval('cicilan', 0);
                    }
                }
            }
        }
        $fform->fa('Keterangan', iTextarea('keterangan', $r['keterangan'], $fform->rwidths, 3));
    } else {
        if ($opt == 'df') {
            // Delete form
            $fform->dlg_del($r['nama']);
        }
    }
    $fform->foot();
}
Exemple #6
0
        } else {
            echo fRp($biaya);
        }
        ?>
			<input type="hidden" id="<?php 
        echo 'tbiaya' . $r['replid'] . '_' . $h['replid'];
        ?>
" value="<?php 
        echo $biaya;
        ?>
" />
		</td>
		<td width="150px" align="right">
			<?php 
        if (admin_isoperator()) {
            echo iTextC('spp' . $r['replid'] . '_' . $h['replid'], $spp, 'float:right;width:150px;text-align:right');
        } else {
            echo fRp($spp);
        }
        ?>
			<input type="hidden" id="<?php 
        echo 'tspp' . $r['replid'] . '_' . $h['replid'];
        ?>
" value="<?php 
        echo $spp;
        ?>
" />
		</td>
		</tr>
	<?php 
        $tfield .= '~biaya' . $r['replid'] . '_' . $h['replid'];
Exemple #7
0
    }
    $fform->ptop = 100;
    $fform->head();
    if ($opt == 'af' || $opt == 'uf') {
        require_once MODDIR . 'control.php';
        // Add or Edit form
        $fform->fl('Nama barang', $rk['nama']);
        if ($opt == 'af') {
            //echo '<textarea>';
            $fform->fi('Jumlah unit baru', iText('nunit', 1, 'width:50px', '', 'onblur="katalog_unit_cek(this)"'));
            hiddenval('tkode', $r['kode']);
            hiddenval('tbarkode', $r['barkode']);
            //echo '</textarea>';
        }
        $fform->fi('Kode', iText('kode', $r['kode'], $fform->rwidths, '', '', 'disabled'));
        $fform->fi('Barkode', iText('barkode', $r['barkode'], 'width:150px', '', '', 'disabled'));
        // iRadio($d,$n,$v,$l='',$a='',$s=''){
        $fform->fi('Sumber', iRadio('sumber1', 'sumber', 0, 'Beli', $r['sumber']));
        $fform->fi('', iRadio('sumber2', 'sumber', 1, 'Pemberian', $r['sumber']));
        $fform->fi('', iRadio('sumber3', 'sumber', 2, 'Membuat sendiri', $r['sumber']));
        $fform->fi('Harga', iTextC('harga', $r['harga']));
        $fform->fi('Kondisi', iSelect('kondisi', kondisi_a(), $r['kondisi']));
        $fform->fa('Keterangan', iTextarea('keterangan', $r['keterangan'], $fform->rwidths, 3));
    } else {
        if ($opt == 'df') {
            // Delete form
            $fform->dlg_del($r['kode']);
        }
    }
    $fform->foot();
}
Exemple #8
0
    $cicilpb = $data['angsuran'];
}
$xform->fi('Angsuran per bulan', iTextC('angsuran', $cicilpb, 'width:200px', '', '', 'disabled'));
$xform->group_begin('Uang Sekolah');
$xform->fi('Uang sekolah per bulan', iTextC('sppbulan', $spp, 'width:200px'));
$xform->col_begin('50%');
$xform->group_begin('Discount');
$xform->fi('Discount subsidi', iTextC('disctb', $data['disctb'], 'width:200px', '', 'onblur="pendataan_countnet()"'));
$xform->fi('Discount saudara', iTextC('discsaudara', $data['discsaudara'], 'width:200px', '', 'onblur="pendataan_countnet()"'));
//$xform->fi('Discount tunai',iTextC('disctunai',$data['disctunai'],'width:200px','','onblur="pendataan_countnet()"'));
// by : epi -------------------------------
$xform->fi2('Discount tunai', iSelect('disctunai', $discount, $data['discount'], 'xwidth:200px', 'pendataan_countnet()'), iTextC('disctunai2', $data['disctunai2'], 'width:120px', '', '', 'disabled'));
// end of by : epi -------------------------------
$xform->fi('Total discount', iTextC('disctotal', $data['disctotal'], 'width:200px', '', '', 'disabled'));
$xform->group_begin('Denda');
$xform->fi('Denda keterlambatan', iTextC('denda', $data['denda'], 'width:200px'));
$xform->table_end(0);
$xform->table_begin();
$xform->col_begin('50%');
$xform->group_begin('Data Pribadi Siswa');
if ($opt == 'af') {
    // No Pendaftaran
    $sql = "SELECT * FROM psb_calonsiswa WHERE proses='{$pros}' ORDER BY replid DESC LIMIT 0,1";
    $res = mysql_query($sql);
    $row = mysql_fetch_array($res);
    $nom = $row['replid'];
    $sql = "SELECT kodeawalan FROM psb_proses WHERE replid='{$pros}'";
    $res = mysql_query($sql);
    $row = mysql_fetch_array($res);
    $kode_no = $row['kodeawalan'];
    $thn_no = substr(date("Y"), 2, 2);