load->library('rhrpt'); //$this->load->library('rhlib'); } /* function get_row_pars($table,$fields,$condition){ return $this->rhlib->get_row_pars($table,$fields,$condition); } */ function get_data($nim){ $q = "SELECT * FROM v_srtketkuliah WHERE nim='$nim'"; $query = $this->db->query($q); $result = array(); if ($query->num_rows() > 0) { $result = $query->result(); } return $result; } public function Header() { /* $row_srtketkul = $this->get_row_pars("v_srtketkuliah","nmprodi,nmortu,kdthnakademik,alamatasal,nosrtkuliah,ttl,jabatan,nmpimpinan,nmfakultas,tglsrtkuliah,nmprodi,nmmhs,nmstsetuju,kdthnakademik,nmjnssemester","nim='$nim'"); $nmfakultas = $row_srtketkul->nmfakultas; */ // Logo $image_file = base_url().'resources/img/report.png'; $this->Image($image_file, 8, 8, 35, '', 'PNG', '', 'T', false, 300, '', false, false, 0, false, false, false); //$this->SetFont('helvetica', '', 16); // $this->Cell(0,13,'YAYASAN PENDIDIKAN TRI BHAKTI LANGLANGBUANA',0,1,'L'); // //$this->Write(0, 'YAYASAN PENDIDIKAN TRI BHAKTI LANGLANGBUANA', '', 0, 'L', true, 0, false, false, 0); // $this->SetFont('helvetica', 'B', 25); // $this->Cell(0,13,'UNIVERSITAS LANGLANGBUANA',0,1,'R'); // $this->SetFont('helvetica', '', 12); // $this->Cell(0,13,'Jl. Karapitan No. 116 Bandung 40261, Telp. 022-4218084, Fax. 022-4237144',0,0,'R'); // $text1 = "YAYASAN PENDIDIKAN TRI BHAKTI LANGLANGBUANA"; $text2 = "UNIVERSITAS LANGLANGBUANA"; //$text2 = $nmfakultas; $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 = 45; $y_text3 = 35; $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', '', 12.5); $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, 45, 200, 45, $style); $this->Line(10, 46, 200, 46, $style2); } }