function PageCetak($data, $no_urut)
 {
     $this->AliasNbPages();
     $this->SetRightMargin(5);
     $this->SetLeftMargin(5);
     $this->SetTopMargin(15);
     $this->AddPage('Landscape', array(160, 210));
     $this->AddFont('BookmanOldStyle', '');
     $this->AddFont('BookmanOldStyle', 'B', 'BookmanOldStyleB.php');
     $this->AddFont('BookmanOldStyle', 'BI', 'BookmanOldStyleBI.php');
     $this->Image('../images/logo_pemda_warna.png', 12, 15, 26, 20);
     $this->SetFont('BookmanOldStyle', 'B', 14);
     $this->SetWidths(array(40, 160));
     $this->SetAligns(array("C", "C"));
     $this->RowMultiBorderWithHeight(array("", "PEMERINTAH KOTA BANDUNG"), array('', ''), 10);
     $this->SetFont('BookmanOldStyle', 'B', 16);
     $this->RowMultiBorderWithHeight(array("", "D I N A S   P E L A Y A N A N   P A J A K"), array('', ''), 10);
     $this->SetFont('BookmanOldStyle', '', 12);
     $this->RowMultiBorderWithHeight(array("", "Jalan Wastukancana No.2 Telp / Fax. 022-4235052 Bandung"), array('', ''), 10);
     $this->RowMultiBorderWithHeight(array("", ""), array('B', 'B'), 2);
     $this->ln(2);
     $this->Ln();
     $this->SetFont('BookmanOldStyle', 'B', 14);
     $this->SetWidths(array(200));
     $this->SetAligns(array("C"));
     $this->RowMultiBorderWithHeight(array("TANDA TERIMA SURAT"), array(''), 10);
     $this->SetFont('BookmanOldStyle', '', 14);
     $this->SetWidths(array(5, 35, 155, 5));
     $this->SetAligns(array("L", "L", "L", "C"));
     $this->RowMultiBorderWithHeight(array("", "Kepada Yth. :", "Pimpinan " . $data['company_name'], ""), array('', '', '', ''), 10);
     $this->RowMultiBorderWithHeight(array("", "             ", $data["address"], ""), array('', '', '', ''), 10);
     $this->SetFont('BookmanOldStyle', 'B', 12);
     $this->SetWidths(array(10, 90, 100));
     $this->SetAligns(array("C", "C", "C"));
     $this->RowMultiBorderWithHeight(array("NO.", "TGL. & NO. SURAT", "PERIHAL"), array('BLTR', 'BLTR', 'BLTR'), 10);
     $this->SetFont('BookmanOldStyle', '', 10);
     $this->SetAligns(array("L", "L", "L"));
     $no_surat = CCGetFromGet("no_surat", "");
     if (!empty($no_surat)) {
         $this->RowMultiBorderWithHeight(array("1", $data['letter_date_txt'] . " - 973 / " . $no_surat . " - Disyanjak", "SURAT TEGURAN " . numberToRoman($data["sequence_no"])), array('BLTR', 'BLTR', 'BLTR'), 10);
     } else {
         $this->RowMultiBorderWithHeight(array("1", $data['letter_date_txt'] . " - 973 /       - Disyanjak", "SURAT TEGURAN " . numberToRoman($data["sequence_no"])), array('BLTR', 'BLTR', 'BLTR'), 10);
     }
     $this->RowMultiBorderWithHeight(array("", "", ""), array('BLTR', 'BLTR', 'BLTR'), 10);
     //$this->RowMultiBorderWithHeight(array("","",""),array('BLTR','BLTR','BLTR'),10);
     $this->SetFont('BookmanOldStyle', '', 12);
     $this->SetWidths(array(100, 100));
     $this->SetAligns(array("C", "C"));
     $this->RowMultiBorderWithHeight(array("Dikirim tanggal ...........................", "Diterima tanggal ..........................."), array('', ''), 10);
     $this->RowMultiBorderWithHeight(array("", ""), array('', ''), 10);
     $this->SetFont('BookmanOldStyle', 'B', 12);
     $this->RowMultiBorderWithHeight(array("PENGIRIM", "PENERIMA"), array('', ''), 5);
     $dbConn = new clsDBConnSIKP();
     $query = "select f_encrypt_str('" . $data['t_debt_letter_dtl_id'] . "') AS enc_data";
     $dbConn->query($query);
     while ($dbConn->next_record()) {
         $encImageData = $dbConn->f("enc_data");
     }
     //$this->Image('../images/logo_pemda.png',20,10,25,25);
     $this->Image('http://' . $_SERVER['HTTP_HOST'] . '/mpd/include/qrcode/generate-qr.php?param=' . $encImageData, 90, 120, 30, 30, 'PNG');
 }
 function PageCetak($data, $no_urut, $start_year, $end_year)
 {
     $this->AliasNbPages();
     $this->SetLeftMargin(10);
     $this->SetTopMargin(2);
     $this->AddPage("P");
     $this->AddFont('BKANT');
     $this->SetFont('BKANT', '', 12);
     $lheader = $this->lengthCell / 8;
     $lheader1 = $lheader * 1;
     $lheader2 = $lheader * 2;
     $lheader3 = $lheader * 3;
     $lheader4 = $lheader * 4;
     $lheader7 = $lheader * 7;
     //header
     $this->Image('../images/logo_pemda.png', 25, 3, 25, 25);
     $this->Cell($lheader1, $this->height, "", "LT", 0, 'L');
     $this->Cell($lheader7, $this->height, "", "TR", 0, 'C');
     $this->Ln();
     $this->SetFont('Arial', 'B', 12);
     $this->Cell($lheader1, 8, "", "L", 0, 'L');
     $this->Cell($lheader7, 8, "PEMERINTAH KOTA BANDUNG", "R", 0, 'C');
     $this->Ln(8);
     $this->SetFont('Arial', 'B', 16);
     $this->Cell($lheader1, $this->height, "", "L", 0, 'L');
     $this->Cell($lheader7, $this->height, "DINAS PELAYANAN PAJAK", "R", 0, 'C');
     $this->Ln();
     $this->SetFont('Arial', '', 10);
     $this->Cell($lheader1, $this->height + 3, "", "L", 0, 'L');
     $this->Cell($lheader7, $this->height + 3, "Jalan Wastukancana No. 2 Telp. 022. 4235052 - Bandung", "R", 0, 'C');
     $this->Ln();
     $this->Cell($lheader1, $this->height, "", "LB", 0, 'L');
     $this->Cell($lheader7, $this->height, "", "RB", 0, 'C');
     $this->Ln();
     //end header
     /*
     // header kosong
     $this->Cell($lheader1, $this->height, "", "", 0, 'L');
     $this->Cell($lheader7, $this->height, "", "", 0, 'C');
     $this->Ln();
     
     $this->SetFont('Arial', 'B', 12);
     $this->Cell($lheader1, 8, "", "", 0, 'L');
     $this->Cell($lheader7, 8, "", "", 0, 'C');
     $this->Ln(8);
     
     $this->SetFont('Arial', 'B', 16);
     $this->Cell($lheader1, $this->height, "", "", 0, 'L');
     $this->Cell($lheader7, $this->height, "", "", 0, 'C');
     $this->Ln();
     
     $this->SetFont('Arial', '', 10);
     $this->Cell($lheader1, $this->height + 3, "", "", 0, 'L');
     $this->Cell($lheader7, $this->height + 3, "", "", 0, 'C');
     $this->Ln();
     
     $this->Cell($lheader1, $this->height, "", "", 0, 'L');
     $this->Cell($lheader7, $this->height, "", "", 0, 'C');
     $this->Ln();
     //end header kosong
     */
     $this->Cell($lheader1, $this->height, "", "", 0, 'L');
     $this->Cell($lheader7, $this->height, "", "", 0, 'C');
     $this->Ln(1);
     $this->Cell($this->lengthCell, $this->height, "", "TLR", 0, 'L');
     $this->Ln();
     $this->SetFont('BKANT', '', 10);
     $lbody = $this->lengthCell / 4;
     $lbody1 = $lbody * 1;
     $lbody2 = $lbody * 2;
     $lbody3 = $lbody * 3;
     $this->Cell(10, $this->height + 2, "", "L", 0, 'L');
     $this->Cell($lbody1 - 10, $this->height + 2, "NPWPD", "", 0, 'L');
     $this->Cell($lbody1, $this->height + 2, "", "", 0, 'L');
     $this->Cell($lbody2, $this->height + 2, "", "R", 0, 'L');
     $this->Ln($this->height - 4);
     $this->Cell($lbody1 + 3, $this->height, ":", "L", 0, 'R');
     $rep_npwd = str_replace(".", "", $data["npwd"]);
     $arr1 = str_split($rep_npwd);
     $this->kotak(1, 34, 1, $arr1[0]);
     $this->kotakKosong(1, 34, 1);
     $this->kotak(1, 34, 1, $arr1[1]);
     $this->kotakKosong(1, 34, 1);
     $this->kotak(1, 34, 1, $arr1[2]);
     $this->kotak(1, 34, 1, $arr1[3]);
     $this->kotak(1, 34, 1, $arr1[4]);
     $this->kotak(1, 34, 1, $arr1[5]);
     $this->kotak(1, 34, 1, $arr1[6]);
     $this->kotak(1, 34, 1, $arr1[7]);
     $this->kotak(1, 34, 1, $arr1[8]);
     $this->kotakKosong(1, 34, 1);
     $this->kotak(1, 34, 1, $arr1[9]);
     $this->kotak(1, 34, 1, $arr1[10]);
     $this->kotakKosong(1, 34, 1);
     $this->kotak(1, 34, 1, $arr1[11]);
     $this->kotak(1, 34, 1, $arr1[12]);
     $this->Ln(9);
     $this->SetWidths(array(20, 2, $this->lengthCell - 22));
     $this->SetAligns(array("L", "L", "L"));
     $posy = $this->getY();
     $this->setY($posy - 3);
     $today = getdate();
     $lkepada = $this->lengthCell / 5;
     $lkepada2 = $lkepada * 2;
     $lkepada3 = $lkepada * 3;
     $this->Cell($lkepada3, $this->height, "", "L", 0, 'L');
     //$this->Cell($lkepada2, $this->height, "Bandung, ".$data['letter_date_txt'], "R", 0, 'L');
     $this->Cell($lkepada2, $this->height, "", "R", 0, 'L');
     $this->Ln();
     $this->Cell($lkepada3, $this->height, "", "L", 0, 'L');
     $this->Cell($lkepada2, $this->height, "Kepada Yth,", "R", 0, 'L');
     $this->Ln();
     $this->SetAligns(array("L", "L", "L", "L"));
     $this->SetWidths(array($lkepada3, 22, 2, 63.7));
     $this->RowMultiBorderWithHeight(array("", "Pimpinan", ":", $data['company_name']), array("L", "", "", "R"), $this->height);
     /*$this->SetAligns(array("L","L","L","L"));
     		$this->SetWidths(array($lkepada3,22,2,63.7));
     		$this->RowMultiBorderWithHeight(
     			array("",
     				"NPWPD",
     				":",
     				$data['npwd']
     			),
     			array("L",
     				"",
     				"",
     				"R"
     			),
     			$this->height/2
     		);*/
     $this->SetWidths(array($lkepada3, $lkepada2));
     $this->SetAligns(array("L", "L"));
     $this->RowMultiBorderWithHeight(array("", $data["address"]), array("L", "R"), $this->height);
     $this->Cell($lkepada3, $this->height, "", "L", 0, 'L');
     $this->Cell($lkepada2, $this->height, "Di ", "R", 0, 'L');
     $this->Ln();
     $this->Cell($lkepada3, $this->height, "", "L", 0, 'L');
     //$this->Cell($lkepada2, $this->height, $data['kota'], "R", 0, 'L');
     $this->Cell($lkepada2, $this->height, "BANDUNG", "R", 0, 'L');
     $this->Ln();
     // $this->Cell($lkepada3, $this->height, "", "L", 0, 'L');
     // $this->Cell($lkepada2, $this->height, "", "R", 0, 'C');
     // $this->Ln();
     $this->Cell($lkepada3, $this->height, "", "L", 0, 'L');
     $this->Cell($lkepada2, $this->height, "", "R", 0, 'C');
     $this->Ln();
     $this->SetFont('BKANT', 'U', 10);
     // $this->Cell($this->lengthCell, $this->height, "", "LR", 0, 'C');
     // $this->newLine();
     $teg_ke = CCGetFromGet("teg_ke", 1);
     $this->Cell($this->lengthCell, $this->height, "SURAT TEGURAN " . numberToRoman($teg_ke), "LR", 0, 'C');
     $this->Ln();
     $this->SetFont('BKANT', '', 10);
     $data["letter_no"] = trim($data["letter_no"]);
     //echo $data["letter_no"];exit;
     if ($data["letter_no"] == "") {
         $this->Cell($this->lengthCell, $this->height, "Nomor : ..........................................", "LR", 0, 'C');
     } else {
         $this->Cell($this->lengthCell, $this->height, "Nomor : " . $data["letter_no"], "LR", 0, 'C');
     }
     $this->newLine();
     $this->SetFont('BKANT', '', 10);
     /*$this->Cell($this->lengthCell, $this->height, "Nomor: ".$data["letter_no"], "LR", 0, 'C');
     		$this->newLine();*/
     $this->SetWidths(array(10, 204.3, 5));
     $this->RowMultiBorderWithHeight(array("", "Menurut pembukuan kami hingga saat ini Saudara masih mempunyai tunggakan Pajak sebagai berikut:", ""), array("L", "", "R"), $this->height);
     //$this->newLine();
     // Tabel
     $ltable = ($this->lengthCell - 15) / 14;
     $ltable1 = $ltable * 1;
     $ltable2 = $ltable * 2;
     $ltable3 = $ltable * 3;
     $ltable6 = $ltable * 6;
     $ltable4 = $ltable * 4;
     $p_year_period_id = CCGetFromGet("p_year_period_id", 27);
     $p_settlement_type_id = CCGetFromGet("p_settlement_type_id", 4);
     $p_vat_type_id = CCGetFromGet("p_vat_type_id", "");
     $dbConn = new clsDBConnSIKP();
     $query = "select to_char(start_period,'dd-mm-yyyy') ||' s.d. '||to_char(end_period,'dd-mm-yyyy') as masa_pajak,  \r\n\t\t\t\tc.code,to_char(a.due_date,'dd-mm-yyyy') as due_date_short, \r\n\t\t\t\tround(nvl(total_vat_amount,0) + nvl(total_penalty_amount,0)) as piutang,\r\n\t\t\t\td.order_no,\r\n\t\t\t\tto_char(a.settlement_date,'dd-mm-yyyy') as tgl_ketetapan\r\n\t\t\t\tfrom t_vat_setllement a \r\n\t\t\t\tleft join t_payment_receipt b on a.t_vat_setllement_id = b.t_vat_setllement_id\r\n\t\t\t\tleft join p_settlement_type c on c.p_settlement_type_id = a.p_settlement_type_id\r\n\t\t\t\tleft join t_customer_order d on d.t_customer_order_id = a.t_customer_order_id\r\n\t\t\t\twhere a.t_cust_account_id = " . $data["t_cust_account_id"] . " \r\n\t\t\t\tand b.t_payment_receipt_id is NULL\r\n\t\t\t\tand a.p_settlement_type_id = " . $p_settlement_type_id . "\r\n\t\t\t\tand trunc(settlement_date) \r\n\t\t\t\t\tBETWEEN (select start_date from p_year_period where p_year_period_id = " . $p_year_period_id . ")\r\n\t\t\t\t\tand (select end_date from p_year_period where p_year_period_id = " . $p_year_period_id . ")\r\n\t\t\t\tORDER BY start_period ";
     //echo $query;exit;
     $dbConn->query($query);
     $data_piutang = array();
     while ($dbConn->next_record()) {
         $data_piutang[] = array('masa_pajak' => $dbConn->f("masa_pajak"), 'code' => $dbConn->f("code"), 'due_date' => $dbConn->f("due_date_short"), 'order_no' => $dbConn->f("order_no"), 'tgl_ketetapan' => $dbConn->f("tgl_ketetapan"), 'piutang' => $dbConn->f("piutang"));
     }
     $dbConn->close();
     $this->SetWidths(array(10, $ltable2 + 5, $ltable4 - 5, $ltable3, $ltable2, $ltable3, 5));
     $this->SetAligns(array("L", "C", "C", "C", "C", "C", "L"));
     //$title_kolom4 = 'SPTPD';
     //$title_kolom5 = 'Tgl. Setor';
     //if( $data["sequence_no"] == 3) {
     $title_kolom4 = 'No dan Tanggal SKPDKB';
     $title_kolom5 = 'Jumlah Tunggakan';
     //}
     $this->RowMultiBorderWithHeight(array("", "Jenis Pajak", "Masa Pajak", $title_kolom4, "Tanggal Jatuh Tempo", $title_kolom5, ""), array("LR", "TBLR", "TBLR", "TBLR", "TBLR", "TBLR", "LR"), $this->height);
     //$this->SetWidths(array(10, $ltable4, $ltable2+ $ltable2, $ltable3, 5));
     $this->SetAligns(array("L", "C", "C", "C", "C", "R", "L"));
     $tahun = explode(" ", $data["periode"]);
     $bulan_periode = explode(",", $data['debt_period_code']);
     $bulan_string = '';
     $i = 0;
     foreach ($bulan_periode as $item) {
         $bulan = explode(" ", $item);
         $bulan_string .= $bulan[0];
         $i++;
         if (!empty($bulan_periode[$i])) {
             $bulan_string .= "\n";
         }
     }
     $total_piutang = 0;
     foreach ($data_piutang as $item) {
         $this->RowMultiBorderWithHeight(array("", $data["vat_code"], $item["masa_pajak"], $item["order_no"] . ' - ' . $item["tgl_ketetapan"], $item["due_date"], number_format($item["piutang"], 0, ",", "."), ""), array("LR", "TBLR", "TBLR", "TBLR", "TBLR", "TBLR", "LR"), $this->height);
         $total_piutang += $item["piutang"];
     }
     $this->RowMultiBorderWithHeight(array("", "", "", "", "", number_format($total_piutang, 0, ",", "."), ""), array("LR", "TBLR", "TBLR", "TBLR", "TBLR", "TBLR", "LR"), $this->height);
     $lbody = $this->lengthCell / 4;
     $lbody1 = $lbody * 1;
     $lbody2 = $lbody * 2;
     $lbody3 = $lbody * 3;
     $data["terbilang"] = trim($data["terbilang"]);
     $this->Cell(20, $this->height, "", "L", 0, 'L');
     $this->Cell($lbody1 - 20, "", "", 0, 'L');
     $this->Cell($lbody3, $this->height, "", "R", 0, 'L');
     $this->Ln();
     $dbConn = new clsDBConnSIKP();
     $query = "select trim(f_terbilang) as terbilang \r\n\t\t\t\tfrom f_terbilang('" . $total_piutang . "','') ";
     //echo $query;exit;
     $dbConn->query($query);
     $dbConn->next_record();
     $terbilang = $dbConn->f("terbilang");
     $dbConn->close();
     if ($total_piutang != 0) {
         $this->SetWidths(array(10, $this->lengthCell - 20, 10));
         $this->SetAligns(array("L", "J", "L"));
         $this->RowMultiBorderWithHeight(array("", "Dengan huruf : (" . $terbilang . ")", ""), array("L", "", "R"), $this->height);
     }
     $teg_ke = CCGetFromGet("teg_ke", 1);
     $this->SetWidths(array(10, $this->lengthCell - 20, 10));
     $this->SetAligns(array("L", "J", "L"));
     if ($teg_ke == 1) {
         $this->RowMultiBorderWithHeight(array("", "\nUntuk mencegah tindakan penagihan dengan Surat Paksa berdasarkan Undang - Undang Nomor 28 " . "Tahun 2009 dan Peraturan Daerah Nomor 20 Tahun 2011 Ps 70, maka diminta kepada Saudara agar melunasi jumlah tunggakan " . "dalam waktu 7 (tujuh) hari sejak diterima Surat Teguran ini. Setelah batas waktu tersebut tindakan penagihan akan ditindaklanjuti " . "dengan penyerahan Surat Teguran II yang dapat diikuti dengan pemasangan Media Peringatan.", ""), array("L", "", "R"), $this->height);
     }
     if ($teg_ke == 2) {
         $this->RowMultiBorderWithHeight(array("", "\nUntuk mencegah tindakan penagihan dengan Surat Paksa berdasarkan Undang - Undang Nomor 28 " . "Tahun 2009 dan Peraturan Daerah Nomor 20 Tahun 2011 Ps 70, maka diminta kepada Saudara agar melunasi jumlah tunggakan " . "dalam waktu 7 (tujuh) hari sejak diterima Surat Teguran ini. Setelah batas waktu tersebut tindakan penagihan akan ditindaklanjuti " . "dengan penyerahan Surat Teguran III yang dapat dikenakan sanksi administrasi sesuai dengan ketentuan perundang-undangan.", ""), array("L", "", "R"), $this->height);
     }
     if ($teg_ke == 3) {
         $this->RowMultiBorderWithHeight(array("", "\nUntuk mencegah tindakan penagihan dengan Surat Paksa berdasarkan Undang - Undang Nomor 28 " . "Tahun 2009 dan Peraturan Daerah Nomor 20 Tahun 2011 Ps 70, maka diminta kepada Saudara agar melunasi jumlah tunggakan " . "dalam waktu 7 (tujuh) hari sejak diterima Surat Teguran ini. Setelah batas waktu tersebut tindakan penagihan akan ditindaklanjuti " . "dengan penyerahan Surat Paksa.", ""), array("L", "", "R"), $this->height);
     }
     $this->RowMultiBorderWithHeight(array("", "\nDalam hal saudara telah melunasi Tunggakan di atas, diminta agat Saudara segera melapor kepada Seksi Penyelesaian " . "Piutang pada Bidang Pajak Pendaftaran Dinas Pelayanan Pajak Kota Bandung (dengan membawa bukti pembayaran).", ""), array("L", "", "R"), $this->height);
     /*$this->tulis("Untuk mencegah tindakan penagihan dengan Surat Paksa berdasarkan Peraturan Daerah Kota Bandung", "FJ");
     		$this->tulis("2009 dan Peraturan Daerah Nomor 20 Tahun 2011 Ps 70, maka diminta kepada Saudara agar melunasi", "FJ");
     		$this->tulis("jumlah tunggakan dalam waktu 7 (tujuh) hari setelah Surat Teguran ini. Setelah batas waktu tersebut", "FJ");
     		$this->tulis("tindakan penagihan akan ditindaklanjuti dengan penyerahan Surat Paksa.", "L");
     		$this->tulis("", "L");
     		$this->tulis("Apabila saudara telah melaksanakan pembayaran pajak tersebut, kami mohon untuk dapat memperlihatkan", "FJ");
     		$this->tulis("SSPD yang telah divalidasi dengan melampirkan photo copy dokumen yang dimaksud.", "L");
     		$this->tulis("", "L");
     		$this->tulis("Demikian agar menjadi maklum, atas perhatian dan kerjasamanya kami ucapkan terima kasih.", "L");
     		*/
     // $this->Cell($this->lengthCell, $this->height, "", "LR", 0, 'L');
     // $this->Ln();
     // $this->Cell($this->lengthCell, $this->height, "", "LR", 0, 'L');
     // $this->Ln();
     $this->Cell($this->lengthCell, $this->height, "", "LR", 0, 'L');
     $this->Ln();
     $lbody = $this->lengthCell / 16;
     $lbody2 = $lbody * 2;
     $lbody4 = $lbody * 4;
     //setting ttd
     $ttd = CCGetFromGet("ttd", 1);
     if ($ttd == 1) {
         $this->Image('http://' . $_SERVER['HTTP_HOST'] . '/mpd/include/qrcode/generate-qr.php?param=' . str_replace(" ", "_", $data['company_name']) . "-" . $data["npwd"], 160, 153 + sizeof($data_piutang) * 4, 25, 25, 'PNG');
     }
     $this->Cell($this->lengthCell, $this->height, "", "LR", 0, 'L');
     $this->Ln();
     $this->Cell($lbody2, $this->height, "", "L", 0, 'C');
     $this->Cell($lbody4, $this->height, "", "", 0, 'C');
     $this->Cell($lbody4, $this->height, "", "", 0, 'C');
     //$this->Cell($lbody4, $this->height, "Bandung, " .$data['letter_date_txt'] /*. $data["tanggal"]*/, "", 0, 'C');
     $tgl_cetak = CCGetFromGet("tgl_cetak", 1);
     if ($tgl_cetak == 1) {
         $this->Cell($lbody4, $this->height, "Bandung, " . date('d-m-Y'), "", 0, 'C');
     } else {
         $this->Cell($lbody4, $this->height, "Bandung, .......................................", "", 0, 'C');
     }
     $this->Cell($lbody2, $this->height, "", "R", 0, 'C');
     $this->Ln();
     $this->Cell($lbody2, $this->height, "", "L", 0, 'C');
     $this->Cell($lbody4, $this->height, "", "", 0, 'C');
     $this->Cell($lbody4, $this->height, "", "", 0, 'C');
     $this->Cell($lbody4, $this->height, "KEPALA DINAS PELAYANAN PAJAK", "", 0, 'C');
     $this->Cell($lbody2, $this->height, "", "R", 0, 'C');
     $this->Ln();
     /*		$this->Cell($lbody2, $this->height, "", "L", 0, 'C');
     		$this->Cell($lbody4, $this->height, "", "", 0, 'C');
     		$this->Cell($lbody4, $this->height, "", "", 0, 'C');
     		$this->Cell($lbody4, $this->height, "Kepala Bidang Pajak Pendaftaran", "", 0, 'C');
     		$this->Cell($lbody2, $this->height, "", "R", 0, 'C');
     		$this->Ln();*/
     $this->Cell($this->lengthCell, $this->height, "", "LR", 0, 'L');
     $this->Ln();
     $this->Cell($this->lengthCell, $this->height, "", "LR", 0, 'L');
     $this->Ln();
     //$this->Image('../images/ttd_pa_gun_gun.jpg',$lbody2+$lbody4+$lbody4-20,168,$lbody4+48,20);
     //$this->Image('../images/ttd_pa_soni.jpg',$lbody2+$lbody4+$lbody4-20,168,$lbody4+48,20);
     $this->Cell($lbody2, $this->height, "", "L", 0, 'C');
     $this->Cell($lbody4, $this->height, "", "", 0, 'L');
     $this->Cell($lbody4 - 5, $this->height, "", "", 0, 'C');
     $this->Cell($lbody4 + 10, $this->height, "", "", 0, 'C');
     $this->Cell($lbody2 - 5, $this->height, "", "R", 0, 'C');
     $this->Ln();
     $this->Cell($this->lengthCell, $this->height, "", "LR", 0, 'L');
     $this->Ln();
     $this->Cell($this->lengthCell, $this->height, "", "LR", 0, 'L');
     $this->Ln();
     $this->Cell($lbody2, $this->height, "", "L", 0, 'C');
     $this->Cell($lbody4, $this->height, "", "", 0, 'L');
     $this->Cell($lbody4 - 5, $this->height, "", "", 0, 'C');
     //$this->Cell($lbody4+10, $this->height, "Drs. PRIANA WIRASAPUTRA, MM.", "B", 0, 'C');
     //$this->Cell($lbody4+10, $this->height, "H. SONI BAKHTIAR, S.Sos, M.Si.", "B", 0, 'C');
     $this->Cell($lbody4 + 10, $this->height, "Drs. H. EMA SUMARNA, M. Si", "B", 0, 'C');
     $this->Cell($lbody2 - 5, $this->height, "", "R", 0, 'C');
     $this->Ln();
     $this->Cell($lbody2, $this->height, "", "L", 0, 'C');
     $this->Cell($lbody4, $this->height, "", "", 0, 'L');
     $this->Cell($lbody4, $this->height, "", "", 0, 'C');
     //$this->Cell($lbody4 - 2, $this->height, "NIP. 19600308 198503 1 007", "", 0, 'C'); //isi nip
     //$this->Cell($lbody4 - 2, $this->height, "NIP. 19750625 199403 1 001", "", 0, 'C'); //isi nip
     $this->Cell($lbody4 - 2, $this->height, "NIP. 19661207 198603 1 006", "", 0, 'C');
     //isi nip
     $this->Cell(2, $this->height, "", "", 0, 'L');
     $this->Cell($lbody2, $this->height, "", "R", 0, 'C');
     $this->Ln();
     $this->Cell(10, $this->height, "", "BL", 0, 'L');
     //$this->Cell($this->lengthCell - 10, $this->height, "*) Coret yang tidak perlu", "BR", 0, 'L');
     $this->Cell($this->lengthCell - 10, $this->height, "", "BR", 0, 'L');
 }
 function PageCetak($data, $no_urut)
 {
     $this->AliasNbPages();
     $this->SetLeftMargin(10);
     $this->AddPage("P");
     $this->AddFont('BKANT');
     $this->SetFont('BKANT', '', 12);
     // $this->Image('../images/logo_pemda.png',25,17,25,25);
     $lheader = $this->lengthCell / 8;
     $lheader1 = $lheader * 1;
     $lheader2 = $lheader * 2;
     $lheader3 = $lheader * 3;
     $lheader4 = $lheader * 4;
     $lheader7 = $lheader * 7;
     $this->SetFont('BKANT', '', 12);
     // $this->Cell($lheader1, $this->height, "", "LT", 0, 'L');
     // $this->Cell($lheader7, $this->height, "", "TR", 0, 'C');
     // $this->Ln();
     // $this->Cell($lheader1, $this->height, "", "L", 0, 'L');
     // $this->Cell($lheader7, $this->height, "", "R", 0, 'C');
     // $this->Ln();
     // $this->Cell($lheader1, $this->height, "", "L", 0, 'L');
     // $this->Cell($lheader7, $this->height, "PEMERINTAH KOTA BANDUNG", "R", 0, 'C');
     // $this->Ln();
     // $this->SetFont('BKANT', '', 16);
     // $this->Cell($lheader1, $this->height, "", "L", 0, 'L');
     // $this->Cell($lheader7, $this->height, "DINAS PELAYANAN PAJAK", "R", 0, 'C');
     // $this->Ln();
     // $this->SetFont('BKANT', '', 12);
     // $this->Cell($lheader1, $this->height + 3, "", "L", 0, 'L');
     // $this->Cell($lheader7, $this->height + 3, "Jalan Wastukancana No. 2 Telp. 022. 4235052 - Bandung", "R", 0, 'C');
     // $this->Ln();
     // $this->Cell($lheader1, $this->height, "", "L", 0, 'L');
     // $this->Cell($lheader7, $this->height, "", "R", 0, 'C');
     // $this->Ln();
     // $this->Cell($lheader1, $this->height, "", "LB", 0, 'L');
     // $this->Cell($lheader7, $this->height, "", "BR", 0, 'C');
     // $this->Ln();
     $this->Cell($this->lengthCell, $this->height, "", "TLR", 0, 'L');
     $this->Ln();
     $lbody = $this->lengthCell / 4;
     $lbody1 = $lbody * 1;
     $lbody2 = $lbody * 2;
     $lbody3 = $lbody * 3;
     $this->SetWidths(array(20, 2, $this->lengthCell - 22));
     $this->SetAligns(array("L", "L", "L"));
     $posy = $this->getY();
     $data["letter_no"] = trim($data["letter_no"]);
     if (!empty($data["letter_no"])) {
         $this->RowMultiBorderWithHeight(array("Nomor", ":", ""), array("", "", ""), 3);
     } else {
         $this->RowMultiBorderWithHeight(array("Nomor", ":", ""), array("", "", ""), 3);
     }
     $this->RowMultiBorderWithHeight(array("Perihal", ":", "SURAT TEGURAN"), array("L", "", "R"), 3);
     $this->setY($posy - 3);
     $today = getdate();
     $lkepada = $this->lengthCell / 5;
     $lkepada2 = $lkepada * 2;
     $lkepada3 = $lkepada * 3;
     $this->Cell($lkepada3, $this->height, "", "L", 0, 'L');
     $this->Cell($lkepada2, $this->height, "Bandung, 30 April 2014", "R", 0, 'L');
     $this->Ln();
     $this->Cell($lkepada3, $this->height, "", "L", 0, 'L');
     $this->Cell($lkepada2, $this->height, "Kepada Yth,", "R", 0, 'L');
     $this->Ln();
     $this->SetAligns(array("L", "L", "L", "L"));
     $this->SetWidths(array($lkepada3, 22, 2, 63.7));
     $this->RowMultiBorderWithHeight(array("", "Pimpinan", ":", $data['wp_name']), array("L", "", "", "R"), $this->height);
     $this->SetAligns(array("L", "L", "L", "L"));
     $this->SetWidths(array($lkepada3, 22, 2, 63.7));
     $this->RowMultiBorderWithHeight(array("", "NPWPD", ":", $data['npwpd']), array("L", "", "", "R"), $this->height / 2);
     $this->SetWidths(array($lkepada3, $lkepada2));
     $this->SetAligns(array("L", "L"));
     $this->RowMultiBorderWithHeight(array("", $data["address"]), array("L", "R"), $this->height);
     $this->Cell($lkepada3, $this->height, "", "L", 0, 'L');
     $this->Cell($lkepada2, $this->height, "Di ", "R", 0, 'L');
     $this->Ln();
     $this->Cell($lkepada3, $this->height, "", "L", 0, 'L');
     $this->Cell($lkepada2, $this->height, "          Tempat", "R", 0, 'L');
     $this->Ln();
     // $this->Cell($lkepada3, $this->height, "", "L", 0, 'L');
     // $this->Cell($lkepada2, $this->height, "", "R", 0, 'C');
     // $this->Ln();
     $this->Cell($lkepada3, $this->height, "", "L", 0, 'L');
     $this->Cell($lkepada2, $this->height, "", "R", 0, 'C');
     $this->Ln();
     $this->SetFont('BKANT', '', 12);
     // $this->Cell($this->lengthCell, $this->height, "", "LR", 0, 'C');
     // $this->newLine();
     $this->Cell($this->lengthCell, $this->height, "SURAT TEGURAN " . numberToRoman($data["sequence_no"]), "LR", 0, 'C');
     $this->newLine();
     $this->SetFont('BKANT', '', 12);
     /*$this->Cell($this->lengthCell, $this->height, "Nomor: ".$data["letter_no"], "LR", 0, 'C');
     		$this->newLine();*/
     $this->SetWidths(array(10, 204.3, 5));
     $this->RowMultiBorderWithHeight(array("", "Menurut pembukuan kami hingga saat ini Saudara masih mempunyai tunggakan Pajak sebagai berikut:", ""), array("L", "", "R"), $this->height);
     //$this->newLine();
     // Tabel
     $ltable = ($this->lengthCell - 15) / 14;
     $ltable1 = $ltable * 1;
     $ltable2 = $ltable * 2;
     $ltable3 = $ltable * 3;
     $ltable6 = $ltable * 6;
     $ltable4 = $ltable * 4;
     $this->SetWidths(array(10, $ltable6, $ltable4, $ltable2, $ltable2, 5));
     $this->SetAligns(array("L", "C", "C", "C", "C", "L"));
     $this->RowMultiBorderWithHeight(array("", "PAJAK", "MASA PAJAK", "SPTPD", "TGL. SETOR", ""), array("LR", "TBLR", "TBLR", "TBLR", "TBLR", "LR"), $this->height);
     $tahun = explode(" ", $data["periode"]);
     $bulan_periode = explode(",", $data['debt_period_code']);
     $bulan_string = '';
     $i = 0;
     $new = 0;
     for ($i = 0; $i < count($data['masa_pajak']); $i++) {
         $this->SetWidths(array(10, $ltable6, $ltable4, $ltable2, $ltable2, 5));
         $this->SetAligns(array("L", "C", "C", "C", "C", "L"));
         $this->RowMultiBorderWithHeight(array("", $data["nama_ayat"], $data["masa_pajak"][$i], "-", "-", ""), array("LR", "TBLR", "TBLR", "TBLR", "TBLR", "LR"), $this->height);
     }
     $lbody = $this->lengthCell / 4;
     $lbody1 = $lbody * 1;
     $lbody2 = $lbody * 2;
     $lbody3 = $lbody * 3;
     $this->Cell(20, $this->height, "", "L", 0, 'L');
     $this->Cell($lbody1 - 20, "", "", 0, 'L');
     $this->Cell($lbody3, $this->height, "", "R", 0, 'L');
     $this->Ln();
     $this->tulis("Sampai saat ini belum melunasi pembayaran pajak.", "L");
     $this->tulis("", "L");
     $this->tulis("Untuk mencegah tindakan penagihan dengan Surat Paksa berdasarkan Undang-undang Nomor 28 Tahun", "FJ");
     $this->tulis("2009 dan Peraturan Daerah Nomor 20 Tahun 2011 Ps 70, maka diminta kepada Saudara agar melunasi", "FJ");
     $this->tulis("jumlah tunggakan dalam waktu 7 (tujuh) hari setelah Surat Teguran ini. Setelah batas waktu tersebut", "FJ");
     $this->tulis("tindakan penagihan akan ditindaklanjuti dengan penyerahan Surat Paksa.", "L");
     $this->tulis("", "L");
     $this->tulis("Apabila saudara telah melaksanakan pembayaran pajak tersebut, kami mohon untuk dapat memperlihatkan", "FJ");
     $this->tulis("SSPD yang telah divalidasi dengan melampirkan photo copy dokumen yang dimaksud.", "L");
     $this->tulis("", "L");
     $this->tulis("Demikian agar menjadi maklum, atas perhatian dan kerjasamanya kami ucapkan terima kasih.", "L");
     // $this->Cell($this->lengthCell, $this->height, "", "LR", 0, 'L');
     // $this->Ln();
     // $this->Cell($this->lengthCell, $this->height, "", "LR", 0, 'L');
     // $this->Ln();
     $this->Cell($this->lengthCell, $this->height, "", "LR", 0, 'L');
     $this->Ln();
     $lbody = $this->lengthCell / 16;
     $lbody2 = $lbody * 2;
     $lbody4 = $lbody * 4;
     $this->Cell($this->lengthCell, $this->height, "", "LR", 0, 'L');
     $this->Ln();
     $this->Cell($lbody2, $this->height, "", "L", 0, 'C');
     $this->Cell($lbody4, $this->height, "", "", 0, 'C');
     $this->Cell($lbody4, $this->height, "", "", 0, 'C');
     $this->Cell($lbody4, $this->height, "Bandung, 30 April 2014", "", 0, 'C');
     $this->Cell($lbody2, $this->height, "", "R", 0, 'C');
     $this->Ln();
     $this->Cell($lbody2, $this->height, "", "L", 0, 'C');
     $this->Cell($lbody4, $this->height, "", "", 0, 'C');
     $this->Cell($lbody4, $this->height, "", "", 0, 'C');
     $this->Cell($lbody4, $this->height, "an. KEPALA DINAS PELAYANAN PAJAK", "", 0, 'C');
     $this->Cell($lbody2, $this->height, "", "R", 0, 'C');
     $this->Ln();
     $this->Cell($lbody2, $this->height, "", "L", 0, 'C');
     $this->Cell($lbody4, $this->height, "", "", 0, 'C');
     $this->Cell($lbody4, $this->height, "", "", 0, 'C');
     $this->Cell($lbody4, $this->height, "Kepala Bidang Pajak Pendaftaran", "", 0, 'C');
     $this->Cell($lbody2, $this->height, "", "R", 0, 'C');
     $this->Ln();
     $this->Cell($this->lengthCell, $this->height, "", "LR", 0, 'L');
     $this->Ln();
     $this->Cell($this->lengthCell, $this->height, "", "LR", 0, 'L');
     $this->Ln();
     $this->Cell($this->lengthCell, $this->height, "", "LR", 0, 'L');
     $this->Ln();
     $this->Cell($this->lengthCell, $this->height, "", "LR", 0, 'L');
     $this->Ln();
     $this->Cell($lbody2, $this->height, "", "L", 0, 'C');
     $this->Cell($lbody4, $this->height, "", "", 0, 'L');
     $this->Cell($lbody4 - 5, $this->height, "", "", 0, 'C');
     $this->Cell($lbody4 + 10, $this->height, "H. SONI BAKHTIYAR, S.Sos, M.Si", "B", 0, 'C');
     $this->Cell($lbody2 - 5, $this->height, "", "R", 0, 'C');
     $this->Ln();
     $this->Cell($lbody2, $this->height, "", "L", 0, 'C');
     $this->Cell($lbody4, $this->height, "", "", 0, 'L');
     $this->Cell($lbody4, $this->height, "", "", 0, 'C');
     $this->Cell($lbody4 - 2, $this->height, "NIP. 19750625 199403 1 001", "", 0, 'C');
     //isi nip
     $this->Cell(2, $this->height, "", "", 0, 'L');
     $this->Cell($lbody2, $this->height, "", "R", 0, 'C');
     $this->Ln();
     $this->Cell(10, $this->height, "", "BL", 0, 'L');
     //$this->Cell($this->lengthCell - 10, $this->height, "*) Coret yang tidak perlu", "BR", 0, 'L');
     $this->Cell($this->lengthCell - 10, $this->height, "", "BR", 0, 'L');
 }
 function PageCetak($data, $no_urut)
 {
     $this->AliasNbPages();
     $this->SetLeftMargin(10);
     $this->SetTopMargin(2);
     $this->AddPage("P");
     $this->AddFont('BKANT');
     $this->SetFont('BKANT', '', 12);
     $lheader = $this->lengthCell / 8;
     $lheader1 = $lheader * 1;
     $lheader2 = $lheader * 2;
     $lheader3 = $lheader * 3;
     $lheader4 = $lheader * 4;
     $lheader7 = $lheader * 7;
     $this->SetFont('Arial', 'B', 8);
     /*$this->Image('../images/logo_pemda.png',3,3,15,15);
     		$this->Cell(8, 3, "", "", 0, 'L');
     		$this->Cell(70, 3, "PEMERINTAH KOTA BANDUNG", "", 0, 'C');
     		$this->Ln();
     		
     		//$this->SetFont('BKANT', '', 16);
     		$this->Cell(8, 3, "", "", 0, 'L');
     		$this->Cell(70, 3, "DINAS PELAYANAN PAJAK", "", 0, 'C');
     		$this->Ln();
     		
     		$this->SetFont('Arial', '', 6);
     		$this->Cell(8, 3, "", "", 0, 'L');
     		$this->Cell(70, 3, "JALAN WASTUKENCANA NO. 2 TELP 4235052 FAX. Pes. 33", "", 0, 'C');
     		$this->Ln();
     		$this->SetFont('Arial', 'B', 6);
     		$this->Cell(8, 3, "", "", 0, 'L');
     		$this->Cell(70, 3, "BANDUNG", "", 0, 'C');
     		$this->Ln();
     		*/
     $this->Cell(8, 3, "", "", 0, 'L');
     $this->Cell(70, 3, "", "", 0, 'C');
     $this->Ln();
     //$this->SetFont('BKANT', '', 16);
     $this->Cell(8, 3, "", "", 0, 'L');
     $this->Cell(70, 3, "", "", 0, 'C');
     $this->Ln();
     $this->SetFont('Arial', '', 6);
     $this->Cell(8, 3, "", "", 0, 'L');
     $this->Cell(70, 3, "", "", 0, 'C');
     $this->Ln();
     $this->SetFont('Arial', 'B', 6);
     $this->Cell(8, 3, "", "", 0, 'L');
     $this->Cell(70, 3, "", "", 0, 'C');
     $this->Ln();
     $this->Ln();
     $this->Cell($lheader1, $this->height, "", "", 0, 'L');
     $this->Cell($lheader7, $this->height, "", "", 0, 'C');
     $this->Ln();
     $this->Cell($lheader1, $this->height, "", "", 0, 'L');
     $this->Cell($lheader7, $this->height, "", "", 0, 'C');
     $this->Ln();
     $this->Cell($this->lengthCell, $this->height, "", "TLR", 0, 'L');
     $this->Ln();
     $this->SetFont('BKANT', '', 12);
     $lbody = $this->lengthCell / 4;
     $lbody1 = $lbody * 1;
     $lbody2 = $lbody * 2;
     $lbody3 = $lbody * 3;
     $this->SetWidths(array(20, 2, $this->lengthCell - 22));
     $this->SetAligns(array("L", "L", "L"));
     $posy = $this->getY();
     $data["letter_no"] = trim($data["letter_no"]);
     if (!empty($data["letter_no"])) {
         $this->RowMultiBorderWithHeight(array("Nomor", ":", ""), array("", "", ""), 3);
     } else {
         $this->RowMultiBorderWithHeight(array("Nomor", ":", ""), array("", "", ""), 3);
     }
     $this->RowMultiBorderWithHeight(array("Perihal", ":", "SURAT TEGURAN"), array("L", "", "R"), 3);
     $this->setY($posy - 3);
     $today = getdate();
     $lkepada = $this->lengthCell / 5;
     $lkepada2 = $lkepada * 2;
     $lkepada3 = $lkepada * 3;
     $this->Cell($lkepada3, $this->height, "", "L", 0, 'L');
     $this->Cell($lkepada2, $this->height, "Bandung, " . $data['letter_date_txt'], "R", 0, 'L');
     $this->Ln();
     $this->Cell($lkepada3, $this->height, "", "L", 0, 'L');
     $this->Cell($lkepada2, $this->height, "Kepada Yth,", "R", 0, 'L');
     $this->Ln();
     $this->SetAligns(array("L", "L", "L", "L"));
     $this->SetWidths(array($lkepada3, 22, 2, 63.7));
     $this->RowMultiBorderWithHeight(array("", "Pimpinan", ":", $data['company_brand']), array("L", "", "", "R"), $this->height);
     $this->SetAligns(array("L", "L", "L", "L"));
     $this->SetWidths(array($lkepada3, 22, 2, 63.7));
     $this->RowMultiBorderWithHeight(array("", "NPWPD", ":", $data['npwd']), array("L", "", "", "R"), $this->height / 2);
     $this->SetWidths(array($lkepada3, $lkepada2));
     $this->SetAligns(array("L", "L"));
     $this->RowMultiBorderWithHeight(array("", $data["brand_address_name"] . ' ' . $data["brand_address_no"]), array("L", "R"), $this->height);
     $this->Cell($lkepada3, $this->height, "", "L", 0, 'L');
     $this->Cell($lkepada2, $this->height, "Di ", "R", 0, 'L');
     $this->Ln();
     $this->Cell($lkepada3, $this->height, "", "L", 0, 'L');
     $this->Cell($lkepada2, $this->height, "          Tempat", "R", 0, 'L');
     $this->Ln();
     // $this->Cell($lkepada3, $this->height, "", "L", 0, 'L');
     // $this->Cell($lkepada2, $this->height, "", "R", 0, 'C');
     // $this->Ln();
     $this->Cell($lkepada3, $this->height, "", "L", 0, 'L');
     $this->Cell($lkepada2, $this->height, "", "R", 0, 'C');
     $this->Ln();
     $this->SetFont('BKANT', '', 12);
     // $this->Cell($this->lengthCell, $this->height, "", "LR", 0, 'C');
     // $this->newLine();
     $this->Cell($this->lengthCell, $this->height, "SURAT TEGURAN " . numberToRoman($data["sequence_no"]), "LR", 0, 'C');
     $this->newLine();
     $this->SetFont('BKANT', '', 12);
     /*$this->Cell($this->lengthCell, $this->height, "Nomor: ".$data["letter_no"], "LR", 0, 'C');
     		$this->newLine();*/
     $this->SetWidths(array(10, 204.3, 5));
     $this->RowMultiBorderWithHeight(array("", "Menurut pembukuan kami hingga saat ini Saudara masih mempunyai tunggakan Pajak sebagai berikut:", ""), array("L", "", "R"), $this->height);
     //$this->newLine();
     // Tabel
     $ltable = ($this->lengthCell - 15) / 14;
     $ltable1 = $ltable * 1;
     $ltable2 = $ltable * 2;
     $ltable3 = $ltable * 3;
     $ltable6 = $ltable * 6;
     $ltable4 = $ltable * 4;
     $this->SetWidths(array(10, $ltable4, $ltable2, $ltable2, $ltable3, $ltable3, 5));
     $this->SetAligns(array("L", "C", "C", "C", "C", "C", "L"));
     $title_kolom4 = 'SPTPD';
     $title_kolom5 = 'TGL. SETOR';
     if ($data["sequence_no"] == 3) {
         $title_kolom4 = 'NO SKPDKB';
         $title_kolom5 = 'SKPDKB JABATAN';
     }
     $this->RowMultiBorderWithHeight(array("", "JENIS PAJAK", "TAHUN", "BULAN", $title_kolom4, $title_kolom5, ""), array("LR", "TBLR", "TBLR", "TBLR", "TBLR", "TBLR", "LR"), $this->height);
     $this->SetWidths(array(10, $ltable4, $ltable2, $ltable2, $ltable3, $ltable3, 5));
     $this->SetAligns(array("L", "C", "C", "L", "C", "C", "L"));
     $tahun = explode(" ", $data["periode"]);
     $bulan_periode = explode(",", $data['debt_period_code']);
     $bulan_string = '';
     $i = 0;
     foreach ($bulan_periode as $item) {
         $bulan = explode(" ", $item);
         $bulan_string .= $bulan[0];
         $i++;
         if (!empty($bulan_periode[$i])) {
             $bulan_string .= "\n";
         }
     }
     if ($data["sequence_no"] == 3) {
         $this->RowMultiBorderWithHeight(array("", $data["vat_code"], $tahun[1], $bulan_string, $data["tap_no"], number_format($data["debt_amount"], 0, ",", "."), ""), array("LR", "TBLR", "TBLR", "TBLR", "TBLR", "TBLR", "LR"), $this->height);
     } else {
         $this->RowMultiBorderWithHeight(array("", $data["vat_code"], $tahun[1], $bulan_string, $data["tap_no"], "-", ""), array("LR", "TBLR", "TBLR", "TBLR", "TBLR", "TBLR", "LR"), $this->height);
     }
     $lbody = $this->lengthCell / 4;
     $lbody1 = $lbody * 1;
     $lbody2 = $lbody * 2;
     $lbody3 = $lbody * 3;
     $data["terbilang"] = trim($data["terbilang"]);
     $this->Cell(20, $this->height, "", "L", 0, 'L');
     $this->Cell($lbody1 - 20, "", "", 0, 'L');
     $this->Cell($lbody3, $this->height, "", "R", 0, 'L');
     $this->Ln();
     $this->tulis("Sampai saat ini belum melunasi pembayaran pajak.", "L");
     $this->tulis("", "L");
     $this->tulis("Untuk mencegah tindakan penagihan dengan Surat Paksa berdasarkan Undang-undang Nomor 28 Tahun", "FJ");
     $this->tulis("2009 dan Peraturan Daerah Nomor 20 Tahun 2011 Ps 70, maka diminta kepada Saudara agar melunasi", "FJ");
     $this->tulis("jumlah tunggakan dalam waktu 7 (tujuh) hari setelah Surat Teguran ini. Setelah batas waktu tersebut", "FJ");
     $this->tulis("tindakan penagihan akan ditindaklanjuti dengan penyerahan Surat Paksa.", "L");
     $this->tulis("", "L");
     $this->tulis("Apabila saudara telah melaksanakan pembayaran pajak tersebut, kami mohon untuk dapat memperlihatkan", "FJ");
     $this->tulis("SSPD yang telah divalidasi dengan melampirkan photo copy dokumen yang dimaksud.", "L");
     $this->tulis("", "L");
     $this->tulis("Demikian agar menjadi maklum, atas perhatian dan kerjasamanya kami ucapkan terima kasih.", "L");
     // $this->Cell($this->lengthCell, $this->height, "", "LR", 0, 'L');
     // $this->Ln();
     // $this->Cell($this->lengthCell, $this->height, "", "LR", 0, 'L');
     // $this->Ln();
     $this->Cell($this->lengthCell, $this->height, "", "LR", 0, 'L');
     $this->Ln();
     $lbody = $this->lengthCell / 16;
     $lbody2 = $lbody * 2;
     $lbody4 = $lbody * 4;
     $this->Cell($this->lengthCell, $this->height, "", "LR", 0, 'L');
     $this->Ln();
     $this->Cell($lbody2, $this->height, "", "L", 0, 'C');
     $this->Cell($lbody4, $this->height, "", "", 0, 'C');
     $this->Cell($lbody4, $this->height, "", "", 0, 'C');
     $this->Cell($lbody4, $this->height, "Bandung, " . $data['letter_date_txt'], "", 0, 'C');
     $this->Cell($lbody2, $this->height, "", "R", 0, 'C');
     $this->Ln();
     $this->Cell($lbody2, $this->height, "", "L", 0, 'C');
     $this->Cell($lbody4, $this->height, "", "", 0, 'C');
     $this->Cell($lbody4, $this->height, "", "", 0, 'C');
     $this->Cell($lbody4, $this->height, "an. KEPALA DINAS PELAYANAN PAJAK", "", 0, 'C');
     $this->Cell($lbody2, $this->height, "", "R", 0, 'C');
     $this->Ln();
     $this->Cell($lbody2, $this->height, "", "L", 0, 'C');
     $this->Cell($lbody4, $this->height, "", "", 0, 'C');
     $this->Cell($lbody4, $this->height, "", "", 0, 'C');
     $this->Cell($lbody4, $this->height, "Kepala Bidang Pajak Pendaftaran", "", 0, 'C');
     $this->Cell($lbody2, $this->height, "", "R", 0, 'C');
     $this->Ln();
     $this->Cell($this->lengthCell, $this->height, "", "LR", 0, 'L');
     $this->Ln();
     $this->Cell($this->lengthCell, $this->height, "", "LR", 0, 'L');
     $this->Ln();
     //$this->Image('../images/ttd_pa_gun_gun.jpg',$lbody2+$lbody4+$lbody4-20,168,$lbody4+48,20);
     //$this->Image('../images/ttd_pa_soni.jpg',$lbody2+$lbody4+$lbody4-20,168,$lbody4+48,20);
     $this->Cell($lbody2, $this->height, "", "L", 0, 'C');
     $this->Cell($lbody4, $this->height, "", "", 0, 'L');
     $this->Cell($lbody4 - 5, $this->height, "", "", 0, 'C');
     $this->Cell($lbody4 + 10, $this->height, "", "", 0, 'C');
     $this->Cell($lbody2 - 5, $this->height, "", "R", 0, 'C');
     $this->Ln();
     $this->Cell($this->lengthCell, $this->height, "", "LR", 0, 'L');
     $this->Ln();
     $this->Cell($this->lengthCell, $this->height, "", "LR", 0, 'L');
     $this->Ln();
     /*if ($_SERVER['HTTP_HOST']=='172.16.20.1'){
     			$this->Image('http://'.$_SERVER['HTTP_HOST'].'/include/qrcode/generate-qr.php?param='.
     			str_replace(" ","-",$data['letter_date_txt'])."_".
     			$data["npwd"]."_".
     			str_replace(" ","-",$data["periode"])
     			,15,170,25,25,'PNG');
     		}else{
     			$this->Image('http://'.$_SERVER['HTTP_HOST'].'/mpd/include/qrcode/generate-qr.php?param='.
     			str_replace(" ","-",$data['letter_date_txt'])."_".
     			$data["npwd"]."_".
     			str_replace(" ","-",$data["periode"])
     			,15,170,25,25,'PNG');
     		}*/
     $this->Image('http://' . $_SERVER['HTTP_HOST'] . '/mpd/include/qrcode/generate-qr.php?param=' . str_replace(" ", "-", $data['letter_date_txt']) . "_" . $data["npwd"] . "_" . str_replace(" ", "-", $data["periode"]), 28, 168, 25, 25, 'PNG');
     $this->Cell($lbody2, $this->height, "", "L", 0, 'C');
     $this->Cell($lbody4, $this->height, "", "", 0, 'L');
     $this->Cell($lbody4 - 5, $this->height, "", "", 0, 'C');
     $this->Cell($lbody4 + 10, $this->height, "Drs. H. GUN GUN SUMARYANA", "B", 0, 'C');
     //$this->Cell($lbody4+10, $this->height, "H. SONI BAKHTIAR, S.Sos, M.Si.", "B", 0, 'C');
     $this->Cell($lbody2 - 5, $this->height, "", "R", 0, 'C');
     $this->Ln();
     $this->Cell($lbody2, $this->height, "", "L", 0, 'C');
     $this->Cell($lbody4, $this->height, "", "", 0, 'L');
     $this->Cell($lbody4, $this->height, "", "", 0, 'C');
     $this->Cell($lbody4 - 2, $this->height, "NIP. 19700806 199101 1 001", "", 0, 'C');
     //isi nip
     //$this->Cell($lbody4 - 2, $this->height, "NIP. 19750625 199403 1 001", "", 0, 'C'); //isi nip
     $this->Cell(2, $this->height, "", "", 0, 'L');
     $this->Cell($lbody2, $this->height, "", "R", 0, 'C');
     $this->Ln();
     $this->Cell(10, $this->height, "", "BL", 0, 'L');
     //$this->Cell($this->lengthCell - 10, $this->height, "*) Coret yang tidak perlu", "BR", 0, 'L');
     $this->Cell($this->lengthCell - 10, $this->height, "", "BR", 0, 'L');
 }
Ejemplo n.º 5
0
function formatCallback($aVal)
{
    return '(' . numberToRoman($aVal) . ')';
}
 public static function getDisplay($tableRowId, $itemId, $itemDamage, $qty, $enchantments)
 {
     // load html
     $outputs = RenderHTML::LoadHTML('display.php');
     if (!is_array($outputs)) {
         echo 'Failed to load html!';
         exit;
     }
     // render enchantments
     $enchOutput = '';
     $nameOutput = '';
     $loreOutput = '';
     foreach ($enchantments as $key => $value) {
         if (!(isset($key) || isset($value))) {
             continue;
         }
         // custom name
         if (strcasecmp("<NAME>", $key) == 0) {
             $nameOutput = $outputs['custom name'];
             $tags = array('name' => $value);
             RenderHTML::RenderTags($nameOutput, $tags);
             unset($tags);
             continue;
         }
         // lore
         if (strcasecmp("<LORE>", $key) == 0) {
             $loreOutput = '';
             foreach (explode("\\\\n", trim($value)) as $line) {
                 if (!empty($loreOutput)) {
                     $loreOutput .= $outputs['lore split'];
                 }
                 $tags = array('line' => $line);
                 $tmp = $outputs['lore line'];
                 RenderHTML::RenderTags($tmp, $tags);
                 $loreOutput .= $tmp;
                 unset($tmp, $tags);
             }
             continue;
         }
         // enchantment
         $tmp = $outputs['enchantment'];
         $enchId = (int) $key;
         $level = (int) $value;
         $tags = array('ench id' => $enchId, 'ench name' => self::getEnchantmentTitle($enchId), 'ench title' => self::getEnchantmentTitle($enchId), 'ench level' => numberToRoman($level));
         RenderHTML::RenderTags($tmp, $tags);
         if (!empty($enchOutput)) {
             $enchOutput .= $outputs['enchantment split'];
         }
         $enchOutput .= $tmp;
         unset($tmp, $tags);
     }
     // render item block
     $output = $outputs['item'];
     $tags = array('table row id' => $tableRowId, 'item id' => $itemId, 'item damage' => self::getDamagedChargedStr($itemId, $itemDamage), 'item qty' => $qty, 'custom name' => $nameOutput, 'lore' => $loreOutput, 'enchantments' => $enchOutput, 'item name' => self::getItemName($itemId, $itemDamage), 'item title' => self::getItemTitle($itemId, $itemDamage), 'item image url' => self::getItemImageUrl($itemId, $itemDamage), 'market price each' => "--", 'market price total' => "--");
     $itemType = self::getItemType($itemId);
     if ($itemType != 'tool') {
         $tags['enchantments'] = '';
     }
     RenderHTML::RenderTags($output, $tags);
     RenderHTML::Block($output, 'has damage', !empty($tags['item damage']));
     RenderHTML::Block($output, 'has custom name', !empty($tags['custom name']));
     RenderHTML::Block($output, 'has lore', !empty($tags['lore']));
     RenderHTML::Block($output, 'has enchantments', !empty($tags['enchantments']));
     return $output;
 }