nmthnakademik = $datahead['nmthnakademik']; $this->nmdos = $datahead['nmdos']; $this->nidu = $datahead['nidu']; } 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, 'REKAP KEHADIRAN DOSEN', 0, 1, 'C', 0, '', 0); $this->SetFont('helvetica', '', 8); $this->Cell(0, 0, '', 0, 1, 'C', 0, '', 0); $this->SetFont('helvetica', 'B', 8); $this->Cell(50,5,'Tahun Akademik - Semester',0,0,'L'); $this->SetFont('helvetica', '', 8); $this->Cell(100,5,': '.$this->nmthnakademik,0,0,'L'); $this->SetFont('helvetica', 'B', 8); $this->Cell(15,5,'NIDU',0,0,'L'); $this->SetFont('helvetica', '', 8); $this->Cell(25,5,' : '.$this->nidu,0,1,'L'); $this->SetFont('helvetica', 'B', 8); $this->Cell(50,5,'Nama Dosen',0,0,'L'); $this->SetFont('helvetica', '', 8); $this->Cell(100,5,': '.$this->nmdos,0,0,'L'); $this->Cell(15,5,'',0,0,'L'); $this->Cell(25,5,'',0,1,'L'); } }