title = $datahead['title']; $this->nmjadwalusm = $datahead['nmjadwalusm']; $this->waktu = $datahead['waktu']; $this->jam = $datahead['jam']; $this->nmtempat = $datahead['nmtempat']; } public function Header() { $image_file = 'resources/img/hitamputih.png'; $this->Image($image_file, 10, 8, 18, '', 'PNG', '', 'T', false, 300, '', false, false, 0, false, false, false); $text1 = "PANITIA PENERIMAAN MAHASISWA BARU"; $text2 = "UNIVERSITAS LANGLANGBUANA"; $text3 = "Jl.Karapitan No.116 Bandung 40261, Telp.022-4218084, Fax.022-4237144"; $x_text1 = 30; $y_text1 = 10; $x_text2 = 30; $y_text2 = 15; $x_text3 = 30; $y_text3 = 22; $this->SetFont('helvetica', 'B', 10); $this->Text($x_text1,$y_text1,$text1,false); $this->SetFont('helvetica', 'B', 13); $this->Text($x_text2,$y_text2,$text2,false); $this->SetFont('helvetica', '', 8); $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(5, 29, 205, 29, $style); $this->Line(5, 28, 205, 28, $style2); $this->Ln(); $this->Ln(); $this->Ln(); $this->SetFont('helvetica', 'B', 10); $this->Write(0, $this->title, '', 0, 'C', true, 0, false, false, 0); $this->Write(0, 'UJIAN SARINGAN MASUK', '', 0, 'C', true, 0, false, false, 0); $this->Write(0, $this->nmjadwalusm, '', 0, 'C', true, 0, false, false, 0); $this->SetFont('helvetica', '', 8); if ($this->title == "DAFTAR HADIR") { $head = <<
Hari,Tgl : $this->waktu Tempat / Ruangan : $this->nmtempat
Jam : $this->jam
EOD; $this->writeHTML($head,true,false,false,false); } } }