BuatEnding($jdwl, $Kolom, $pdf); // Buat footer BuatFooter($jdwl, $i + 2, $totalpage, $pdf); } else { $s1 = "select k.MhswID, m.Nama\r\n\t\tfrom krs k\r\n\t\t left outer join mhsw m on m.MhswID = k.MhswID and m.KodeID = '" . KodeID . "'\r\n\t\twhere k.JadwalID = '{$jdwl['JadwalID']}'\r\n\t\torder by k.MhswID\r\n\t\tlimit {$start}, {$maxentryperpage}"; $r1 = _query($s1); $pdf->AddPage('L'); $pdf->SetAutoPageBreak(true, 5); // Buat Header Logo HeaderLogo("DAFTAR PRESENSI MAHASISWA", $pdf, 'L'); // Buat header dulu BuatHeader($jdwl, $Kolom, $pdf); // Tampilkan datanya AmbilDetail($jdwl, $r1, $start, $Kolom, $pdf); // Buat rekap kehadiran dan tanda tangan BuatEnding($jdwl, $Kolom, $pdf); // Buat footer BuatFooter($jdwl, $i + 1, $totalpage, $pdf); } $pdf->Output(); // *** Functions *** function BuatEnding($jdwl, $Kolom, $p) { global $arrID; $lbrkolom = 12; $t = 8; // Footer $p->Cell(78, $t, 'Jumlah Mahasiswa Hadir :', 'LBR', 0, 'R'); $p->Cell($lbrkolom, $t, '', 'BR', 0); for ($i = 0; $i < $Kolom; $i++) { $p->Cell($lbrkolom, $t, '', 'BR', 0);
BuatEnding($jdwl, $pdf); // Buat footer BuatFooter($jdwl, $i + 2, $totalpage, $pdf); } else { $s1 = "select k.MhswID, m.Nama\r\n\t\tfrom krs k\r\n\t\t left outer join mhsw m on m.MhswID = k.MhswID and m.KodeID = '" . KodeID . "'\r\n\t\twhere k.JadwalID = '{$jdwl['JadwalID']}'\r\n\t\torder by k.MhswID\r\n\t\tlimit {$start}, {$maxentryperpage}"; $r1 = _query($s1); $pdf->AddPage('L'); $pdf->SetAutoPageBreak(true, 5); // Buat Header Logo HeaderLogo("ABSENSI DAFTAR MAHASISWA", $pdf, 'L'); // Buat header dulu BuatHeader($jdwl, $pdf); // Tampilkan datanya AmbilDetail($jdwl, $r1, $start, $pdf); // Buat rekap kehadiran dan tanda tangan BuatEnding($jdwl, $pdf); // Buat footer BuatFooter($jdwl, $i + 1, $totalpage, $pdf); } $pdf->Output(); // *** Functions *** function BuatEnding($jdwl, $p) { global $arrID; $lbrkolom = 12; $Kolom = 14; $t = 8; // Footer $p->Cell(78, $t, 'Jumlah Mhsw Hadir :', 'LBR', 0, 'R'); $p->Cell($lbrkolom, $t, '', 'BR', 0); for ($i = 0; $i < $Kolom; $i++) {