function CetakLaporan($prevtahun, $tahun, $nexttahun, $urutan, $gel) { include_once "../fpdf.php"; require_once "../phplot.php"; $lbr = 190; $arrStatusAplikan = array(); $s = "select * from statusaplikan where KodeID='" . KodeID . "' order by Urutan ASC"; $r = _query($s); while ($w = _fetch_array($r)) { $arrStatusAplikan[] = $w['StatusAplikanID']; } $arrGelombang = array(); getArrayGelombang($arrGelombang, $tahun); // Buat Graph dan dimasukkan ke file dulu $piepath = '../tmp/data_fakta_pmb_pie_graph.png'; $barpath = '../tmp/data_fakta_pmb_bar_graph.png'; BuatPieGraph($piepath, $prevtahun, $tahun, $urutan, $gel); BuatBarGraph($barpath, $prevtahun, $tahun, $arrStatusAplikan, $urutan, $gel); // *** Cetak *** $pdf = new FPDF('L', 'mm', 'A4'); $pdf->SetAutoPageBreak(true, 5); $pdf->SetTitle("DATA & FAKTA PMB TAHUN AJARAN {$tahun}/{$nexttahun} GELOMBANG " . UbahKeRomawiLimit99($urutan)); $pdf->AddPage('L'); BuatHeaderLap($prevtahun, $tahun, $pdf); TampilkanIsinya($prevtahun, $tahun, $arrStatusAplikan, $arrGelombang, $pdf); TampilkanGraph($piepath, 30, 75, 96, 64, $pdf); TampilkanGraph($barpath, 185, 75, 96, 64, $pdf); TampilkanSumberInformasi(60, 145, $prevtahun, $tahun, $urutan, $gel, $pdf); TampilkanRatioPresenter(185, 145, $arrStatusAplikan, $tahun, $urutan, $gel, $pdf); $pdf->Output(); }
function CetakLaporan($prevtahun, $tahun, $gel) { include_once "../fpdf.php"; $lbr = 190; $pdf = new FPDF('P', 'mm', 'A4'); $pdf->SetTitle("Ratio Presenter PMB - {$prevtahun}/{$tahun}"); $pdf->AddPage('P'); $arrStatusAplikan = array(); $s = "select * from statusaplikan where KodeID='" . KodeID . "' order by Urutan ASC"; $r = _query($s); while ($w = _fetch_array($r)) { $arrStatusAplikan[] = $w['StatusAplikanID']; } // Buat Table 1 BuatHeaderLap($prevtahun, $tahun, 0, $pdf); $arrPresenterID = array(); GetArrayPresenterSortByRatio($arrPresenterID, $tahun); TampilkanIsinya($prevtahun, $tahun, $arrStatusAplikan, $arrPresenterID, 0, $pdf); $pdf->Ln(10); BuatHeaderLap($prevtahun, $tahun, 1, $pdf); $arrPresenterID = array(); GetArrayPresenterSortByReg($arrPresenterID, $tahun); $arrStat = TampilkanIsinya($prevtahun, $tahun, $arrStatusAplikan, $arrPresenterID, 1, $pdf); $pdf->Ln(10); TampilkanStatistik($arrStat, $tahun, $pdf); $pdf->Output(); }
function CetakLaporan($prevtahun, $tahun, $gel) { include_once "../fpdf.php"; $lbr = 190; $pdf = new FPDF('L', 'mm', 'A4'); $pdf->SetTitle("Ratio Presenter PMB - {$prevtahun}/{$tahun}"); $pdf->AddPage('L'); $arrGelombang = array(); getArrayGelombang($arrGelombang, $tahun); $arrPejabatID = array(); GetArrayPejabat($arrPejabatID, $tahun); // Buat Table 1 BuatHeaderLap($prevtahun, $tahun, $pdf); TampilkanIsinya($prevtahun, $tahun, $arrGelombang, $arrPejabatID, $pdf); $pdf->Output(); }
include_once "../dwo.lib.php"; include_once "../db.mysql.php"; include_once "../connectdb.php"; include_once "../parameter.php"; include_once "../cekparam.php"; include_once "../header_pdf.php"; // *** Parameters *** $gel = $_REQUEST['gel']; $gels = GetFields('pmbperiod', "KodeID='" . KodeID . "' and PMBPeriodID", $gel, "*"); $lbr = 190; // *** Cetak *** $pdf = new PDF('P', 'mm', 'A4'); $pdf->SetTitle("Rekapitulasi Jumlah Pendaftar Per Periode"); $pdf->AddPage('P'); BuatHeaderLap($gel, $gels, $pdf); TampilkanIsinya($gel, $gels, $pdf); $pdf->Output(); // *** Functions *** function BuatHeaderLap($gel, $gels, $p) { global $lbr; $t = 6; $p->SetFont('Helvetica', 'B', 14); $p->Cell($lbr, $t, "Rekapitulasi Jumlah Pendaftar Per Periode", 0, 1, 'C'); $p->SetFont('Helvetica', 'B', 12); $p->Cell($lbr, $t, "Sampai Dengan Periode {$gel}", 0, 1, 'C'); $p->Ln(4); } function TampilkanIsinya($gel, $gels, $p) { $t = 6;
$prevtahun = $tahun - 1; $nexttahun = $tahun + 1; $lbr = 190; // *** Cetak *** $s = "select DISTINCT(b.PMBID) \r\n\t from statusaplikanmhsw sam left outer join aplikan a on sam.AplikanID=a.AplikanID\r\n\t\t\t\t left outer join pmb b on a.PMBID=b.PMBID \r\n\t\t\t\t left outer join pmbperiod pp on b.PMBPeriodID=pp.PMBPeriodID\r\n\t where b.KodeID = '" . KodeID . "'\r\n\t\t\tand a.StatusAplikanID='REG'\r\n\t\t\tand pp.Tahun='{$tahun}'"; $r = _query($s); $n = _num_rows($r); if ($n > 0) { $pdf = new FPDF('L', 'mm', 'A4'); $pdf->SetTitle("Data Registrasi"); $limitperpage = 54; $currentpage = 0; while ($currentpage * $limitperpage < $n) { $pdf->AddPage('L'); BuatHeaderLap($gel, $gels, $tahun, $nexttahun, $pdf); TampilkanIsinya($currentpage, $limitperpage, $gel, $gels, $tahun, $nexttahun, $pdf); $currentpage++; } $pdf->Output(); } else { echo "<div align=center><font size=8><b>Tidak ada data yang dapat dicetak</b></font></div>"; } // *** Functions *** function TampilkanHeader($p) { $t = 4; $p->SetFont('Helvetica', 'B', 6); $p->Cell(7, $t, 'NO', 1, 0, 'C'); $p->Cell(20, $t, 'NPM', 1, 0, 'C'); $p->Cell(50, $t, 'NAMA', 1, 0, 'C'); $p->Cell(20, $t, 'KELAS', 1, 0, 'C');
function CetakLaporanRemedialMahasiswa() { include_once "../dwo.lib.php"; include_once "../db.mysql.php"; include_once "../connectdb.php"; include_once "../parameter.php"; include_once "../cekparam.php"; include_once "../header_pdf.php"; $pdf = new PDF('P', 'mm', 'A4'); $pdf->SetTitle("Laporan Remedial Mahasiswa"); $pdf->AddPage('P'); BuatHeaderLap($pdf); TampilkanIsinya($pdf); $pdf->Output(); }
include_once "../db.mysql.php"; include_once "../connectdb.php"; include_once "../parameter.php"; include_once "../cekparam.php"; include_once "../header_pdf.php"; // *** Parameters *** $gel = $_REQUEST['gel']; $tahun = substr($gel, 0, 4); $prevtahun = $tahun - 1; $lbr = 190; // *** Cetak *** $pdf = new PDF('L', 'mm', 'A4'); $pdf->SetTitle("Statistik Aplikan - {$prevtahun}/{$tahun}"); $pdf->AddPage('L'); //BuatHeaderLap($prevtahun, $tahun, $pdf); TampilkanIsinya($prevtahun, $tahun, $pdf); $pdf->Output(); // *** Functions *** function BuatHeaderLap($prevtahun, $tahun, $p) { global $lbr; $t = 6; $p->SetFont('Helvetica', 'B', 14); $p->Cell($lbr, $t, "Statistik Aplikan - {$prevtahun}/{$tahun}", 0, 1, 'C'); $p->Ln(4); } function TampilkanIsinya($prevtahun, $tahun, $p) { $t = 6; $lebar = 8; // Ambil Prodinya
include_once "../dwo.lib.php"; include_once "../db.mysql.php"; include_once "../connectdb.php"; include_once "../parameter.php"; include_once "../cekparam.php"; include_once "../header_pdf.php"; // *** Parameters *** $bipotid = $_REQUEST['bipotid']; $lbr = 190; // *** Cetak *** $pdf = new PDF('P', 'mm', 'A4'); $pdf->SetTitle("Daftar Biaya dan Potongan"); $pdf->AddPage('P'); BuatHeaderLap($bipotid, $pdf); $pdf->Ln(2); TampilkanIsinya($bipotid, $pdf); $pdf->Output(); // *** Functions *** function TampilkanHeader($p) { $t = 6; $p->SetFont('Helvetica', 'B', 9); $p->Cell(12, $t, 'No.', 1, 0, 'R'); $p->Cell(80, $t, 'Nama', 1, 0, 'L'); $p->Cell(30, $t, 'Jumlah', 1, 0, 'R'); $p->Cell(15, $t, 'Brapa x', 1, 0, 'R'); $p->Cell(20, $t, 'Grade USM', 1, 0, 'C'); $p->Ln($t); } function TampilkanIsinya($bipotid, $p) {
include_once "../db.mysql.php"; include_once "../connectdb.php"; include_once "../parameter.php"; include_once "../cekparam.php"; include_once "../util.lib.php"; include_once "../header_pdf.php"; // *** Parameters *** $gel = $_REQUEST['gel']; //$gels = GetFields('pmbperiod', "KodeID='".KodeID."' and PMBPeriodID", $gel, "*"); $id = $_REQUEST['id']; $lbr = 190; // *** Cetak *** $pdf = new PDF('P', 'mm', 'A4'); $pdf->SetTitle("Keterangan Login Aplikan"); $pdf->AddPage('P'); TampilkanIsinya($gel, $id, $pdf); $pdf->Output(); // *** Functions *** function TampilkanIsinya($gel, $id, $p) { $t = 6; $Kolom1 = 50; $Kolom2 = 3; $Kolom3 = 100; $aplikan = GetFields('aplikan', "AplikanID='{$id}' and KodeID", KodeID, "*"); $p->SetFont('Helvetica', '', 11, 'C'); $p->Cell($Kolom1, $t, 'Aplikan ID', 0, 0); $p->Cell($Kolom2, $t, ':', 0, 0, 'C'); $p->Cell($Kolom3, $t, $aplikan['AplikanID'], 0, 0); $p->Ln($t); $p->Cell($Kolom1, $t, 'Nama', 0, 0);