nmthnakademik = $datahead['nmthnakademik']; $this->jnssemester = substr(trim($datahead['kdstsemester']), -1); if($jnssemester==1) { $jnssemester = 'GANJIL'; } else { $jnssemester = 'GENAP'; } $this->kdmk = $datahead['kdmk']; $this->nmmk = $datahead['nmmk']; $this->jmlsks = $datahead['jmlsks']; $this->nidu = $datahead['nidu']; $this->nmdos = $datahead['nmdos']; $this->niduasisten = $datahead['niduasisten']; $this->nmdosasisten = $datahead['nmdosasisten']; $this->nmprodi = $datahead['nmprodi']; $this->kdsemester = $datahead['kdsemester']; $this->nmsemester = $datahead['nmsemester']; $this->nmkelas = $datahead['nmkelas']; $this->nmruangan = $datahead['nmruangan']; $this->jmlmhs = $datahead['jmlmhs']; } public function Header() { $image_file = base_url().'resources/img/report.png'; $this->Image($image_file, 8, 8, 27, '', 'PNG', '', 'T', false, 370, '', false, false, 0, false, false, false); $text1 = "YAYASAN PENDIDIKAN TRI BHAKTI LANGLANGBUANA"; $text2 = "UNIVERSITAS LANGLANGBUANA"; $text3 = "Jl. Karapitan No. 116 Bandung 40261, Telp. 022-4218084, Fax. 022-4237144"; $x_text1 = 45; $y_text1 = 10; $x_text2 = 44; $y_text2 = 15; $x_text3 = 42; $y_text3 = 25; $this->SetFont('helvetica', 'B', 16); $this->Text($x_text1,$y_text1,$text1,false); $this->SetFont('helvetica', 'B', 27); $this->Text($x_text2,$y_text2,$text2,false); $this->SetFont('helvetica', '', 13); $this->Text($x_text3,$y_text3,$text3,false); $style = array('width' => 0.3, 'cap' => 'butt', 'join' => 'miter', 'phase' => 0, 'color' => array(0, 0, 0)); $style2 = array('width' => 0.7, 'cap' => 'butt', 'join' => 'miter', 'phase' => 0, 'color' => array(0, 0, 0)); $this->Line(10, 36, 200, 36, $style); $this->Line(10, 37, 200, 37, $style2); $this->Ln(); $this->Ln(); $this->Ln(); $this->SetFont('helvetica', 'B', 10); $this->Cell(0, 0, 'DAFTAR HADIR DOSEN', 0, 1, 'C', 0, '', 0); $this->Cell(0, 0, 'PROGRAM STUDI '.$this->nmprodi, 0, 1, 'C', 0, '', 0); $this->SetFont('helvetica', '', 8); $this->Cell(0, 0, '', 0, 1, 'C', 0, '', 0); $this->Cell(23,5,'KODE MK',0,0,'L'); $this->Cell(94,5,': '.$this->kdmk,0,0,'L'); $this->Cell(22,5,'THN. AKADEMIK',0,0,'L'); $this->Cell(31,5,' : '.$this->nmthnakademik,0,1,'L'); $this->Cell(23,5,'NAMA MK',0,0,'L'); $this->Cell(94,5,': '.$this->nmmk,0,0,'L'); $this->Cell(22,5,'SEMESTER',0,0,'L'); $this->Cell(31,5,' : '.$this->kdsemester .' ('.$this->nmsemester.')',0,1,'L'); $this->Cell(23,5,'SKS',0,0,'L'); $this->Cell(94,5,': '.$this->jmlsks,0,0,'L'); $this->Cell(22,5,'KELAS',0,0,'L'); $this->Cell(31,5,' : '.$this->nmkelas,0,1,'L'); $this->Cell(23,5,'NAMA DOSEN',0,0,'L'); $this->Cell(94,5,': '.$this->nmdos,0,0,'L'); $this->Cell(22,5,'RUANGAN',0,0,'L'); $this->Cell(31,5,' : '.$this->nmruangan,0,1,'L'); $this->Cell(23,5,'NAMA ASISTEN',0,0,'L'); $this->Cell(94,5,': '.$this->nmdosasisten,0,0,'L'); $this->Cell(22,5,'JUMLAH SISWA',0,0,'L'); $this->Cell(31,5,' : '.$this->jmlmhs.' ORANG',0,1,'L'); } }