if (!empty($listkegiatan)) {
            foreach ($listkegiatan as $keg) {
                $pdf->Cell($wkiri / 100 * $width, $height, $kamuskegiatan[$keg], 1, 0, 'L', 1);
                $pdf->Cell($wlain / 100 * $width, $height, $kamussatuan[$keg], 1, 0, 'L', 1);
                $pdf->Cell($wlain / 100 * $width, $height, numberformat($dzArr[$keg][fisangset], 0), 1, 0, 'R', 1);
                $pdf->Cell($wlain / 100 * $width, $height, numberformat($dzArr[$keg][fisangbin], 0), 1, 0, 'R', 1);
                $pdf->Cell($wlain / 100 * $width, $height, numberformat($dzArr[$keg][fisangsdb], 0), 1, 0, 'R', 1);
                $pdf->Cell($wlain / 100 * $width, $height, numberformat($dzArr[$keg][fisreabin], 0), 1, 0, 'R', 1);
                $pdf->Cell($wlain / 100 * $width, $height, numberformat($dzArr[$keg][fisreasdb], 0), 1, 0, 'R', 1);
                $pdf->Cell($wlain / 100 * $width, $height, numberformat($dzArr[$keg][fispenset], 2), 1, 0, 'R', 1);
                $pdf->Cell($wlain / 100 * $width, $height, numberformat($dzArr[$keg][fispensdb], 2), 1, 0, 'R', 1);
                $pdf->Cell($wlain / 100 * $width, $height, numberformat($dzArr[$keg][hkmangset], 0), 1, 0, 'R', 1);
                $pdf->Cell($wlain / 100 * $width, $height, numberformat($dzArr[$keg][hkmangbin], 0), 1, 0, 'R', 1);
                $pdf->Cell($wlain / 100 * $width, $height, numberformat($dzArr[$keg][hkmangsdb], 0), 1, 0, 'R', 1);
                $pdf->Cell($wlain / 100 * $width, $height, numberformat($dzArr[$keg][hkmreabin], 0), 1, 0, 'R', 1);
                $pdf->Cell($wlain / 100 * $width, $height, numberformat($dzArr[$keg][hkmreasdb], 0), 1, 0, 'R', 1);
                $pdf->Cell($wlain / 100 * $width, $height, numberformat($dzArr[$keg][hkmpenset], 2), 1, 0, 'R', 1);
                $pdf->Cell($wlain / 100 * $width, $height, numberformat($dzArr[$keg][hkmpensdb], 2), 1, 0, 'R', 1);
                $pdf->Cell($wlain / 100 * $width, $height, numberformat($dzArr[$keg][humangset], 2), 1, 0, 'R', 1);
                $pdf->Cell($wlain / 100 * $width, $height, numberformat($dzArr[$keg][humangbin], 2), 1, 0, 'R', 1);
                $pdf->Cell($wlain / 100 * $width, $height, numberformat($dzArr[$keg][humangsdb], 2), 1, 0, 'R', 1);
                $pdf->Cell($wlain / 100 * $width, $height, numberformat($dzArr[$keg][humreabin], 2), 1, 0, 'R', 1);
                $pdf->Cell($wlain / 100 * $width, $height, numberformat($dzArr[$keg][humreasdb], 2), 1, 0, 'R', 1);
                $pdf->Ln();
            }
        }
        $pdf->Output();
        break;
    default:
        break;
}
        $pdf->Cell($w1 + $w2 + $w3 + $w4, $height, '', L, 0, 'C', 1);
        $pdf->Cell($w5 + $w6, $height, ': KHL', R, 0, 'L', 1);
        $pdf->Cell($w7, $height, numberformat($ltlangsungll, 0), 1, 0, 'R', 1);
        $pdf->Cell($w8, $height, numberformat($ltlangsunglp, 0), 1, 0, 'R', 1);
        $pdf->Cell($w9, $height, numberformat($ltlangsungl, 0), 1, 0, 'R', 1);
        $pdf->Cell($w10, $height, numberformat($ltlangsungll, 0), 1, 0, 'R', 1);
        $pdf->Cell($w11, $height, numberformat($ltlangsunglp, 0), 1, 0, 'R', 1);
        $pdf->Cell($w12, $height, numberformat($ltlangsungl, 0), 1, 0, 'R', 1);
        $pdf->Cell($w1, $height, 'VII.', L, 0, 'C', 1);
        $pdf->Cell($w2 + $w3 + $w4 + $w5 + $w6, $height, 'PERUMAHAN', TR, 0, 'L', 1);
        $pdf->Cell($w7 + $w8 + $w9, $height, numberformat($rumah, 0), 1, 0, 'R', 1);
        $pdf->Cell($w10 + $w11 + $w12, $height, numberformat($rumah, 0), 1, 0, 'R', 1);
        $pdf->Ln();
        $pdf->Cell($w1 + $w2 + $w3, $height, '', LB, 0, 'C', 1);
        $pdf->Cell($w4 + $w5 + $w6, $height, '- Rasio Karyawan L+TL/Ha', RB, 0, 'L', 1);
        $pdf->Cell($w7, $height, numberformat($rhaltlangsungl, 2), 1, 0, 'R', 1);
        $pdf->Cell($w8, $height, numberformat($rhaltlangsungp, 2), 1, 0, 'R', 1);
        $pdf->Cell($w9, $height, numberformat($rhaltlangsung, 2), 1, 0, 'R', 1);
        $pdf->Cell($w10, $height, numberformat($rhaltlangsungl, 2), 1, 0, 'R', 1);
        $pdf->Cell($w11, $height, numberformat($rhaltlangsungp, 2), 1, 0, 'R', 1);
        $pdf->Cell($w12, $height, numberformat($rhaltlangsung, 2), 1, 0, 'R', 1);
        $pdf->Cell($w1, $height, '', LB, 0, 'C', 1);
        $pdf->Cell($w2 + $w3 + $w4 + $w5 + $w6, $height, '- Rasio Rumah/Karyawan', RB, 0, 'L', 1);
        $pdf->Cell($w7 + $w8 + $w9, $height, numberformat($rharumah, 2), 1, 0, 'R', 1);
        $pdf->Cell($w10 + $w11 + $w12, $height, numberformat($rharumah, 2), 1, 0, 'R', 1);
        $pdf->Ln();
        $pdf->Output();
        break;
    default:
        break;
}
        $pdf->SetFillColor(255, 255, 255);
        // pdf array content =========================================================================
        if (!empty($listkegiatan2)) {
            foreach ($listkegiatan2 as $keg) {
                $pdf->Cell($wkiri / 100 * $width, $height, $kamuskegiatan[$keg], 1, 0, 'L', 1);
                $pdf->Cell($wlain / 100 * $width, $height, numberformat($dzArr[$keg][aktbin], 2), 1, 0, 'R', 1);
                $pdf->Cell($wlain / 100 * $width, $height, numberformat($dzArr[$keg][aktsdb], 2), 1, 0, 'R', 1);
                $pdf->Cell($wlain / 100 * $width, $height, numberformat($dzArr[$keg][glybin], 2), 1, 0, 'R', 1);
                $pdf->Cell($wlain / 100 * $width, $height, numberformat($dzArr[$keg][glysdb], 2), 1, 0, 'R', 1);
                $pdf->Cell($wlain / 100 * $width, $height, numberformat($dzArr[$keg][flobin], 2), 1, 0, 'R', 1);
                $pdf->Cell($wlain / 100 * $width, $height, numberformat($dzArr[$keg][flosdb], 2), 1, 0, 'R', 1);
                $pdf->Cell($wlain / 100 * $width, $height, numberformat($dzArr[$keg][parbin], 2), 1, 0, 'R', 1);
                $pdf->Cell($wlain / 100 * $width, $height, numberformat($dzArr[$keg][parsdb], 2), 1, 0, 'R', 1);
                $pdf->Cell($wlain / 100 * $width, $height, numberformat($dzArr[$keg][metsdb], 2), 1, 0, 'R', 1);
                $pdf->Cell($wlain / 100 * $width, $height, numberformat($dzArr[$keg][metsdb], 2), 1, 0, 'R', 1);
                $pdf->Cell($wlain2 / 100 * $width, $height, numberformat($dzArr[$keg][efiglybin], 2), 1, 0, 'R', 1);
                $pdf->Cell($wlain2 / 100 * $width, $height, numberformat($dzArr[$keg][efiglysdb], 2), 1, 0, 'R', 1);
                $pdf->Cell($wlain2 / 100 * $width, $height, numberformat($dzArr[$keg][efiflobin], 2), 1, 0, 'R', 1);
                $pdf->Cell($wlain2 / 100 * $width, $height, numberformat($dzArr[$keg][efiflosdb], 2), 1, 0, 'R', 1);
                $pdf->Cell($wlain2 / 100 * $width, $height, numberformat($dzArr[$keg][efiparbin], 2), 1, 0, 'R', 1);
                $pdf->Cell($wlain2 / 100 * $width, $height, numberformat($dzArr[$keg][efiparsdb], 2), 1, 0, 'R', 1);
                $pdf->Cell($wlain2 / 100 * $width, $height, numberformat($dzArr[$keg][efimetbin], 2), 1, 0, 'R', 1);
                $pdf->Cell($wlain2 / 100 * $width, $height, numberformat($dzArr[$keg][efimetsdb], 2), 1, 0, 'R', 1);
                $pdf->Ln();
            }
        }
        $pdf->Output();
        break;
    default:
        break;
}
function PresentCost($input)
{
    $output = "£" . numberformat($input, 2);
    return $output;
}
示例#5
0
$groups = $temp[3];
$uid = $temp[4];
unset($temp);
//Just neatness
if (isset($groups[0])) {
    //Because IPs and other new users don't have groups
    echo wfMsg('usergroups') . ": ";
    echo implode(', ', $groups);
    //Why is this in 3 lines?
    echo "<br />";
}
unset($groups);
if ($deleted > 0) {
    //Users who have edited before 2006 (when the editcount field was added) have negative deleted edits
    echo wfMsg('total') . ": " . numberformat($total) . "<br />";
    echo wfMsg('deleted') . ": " . numberformat($deleted) . "<br />";
}
echo "<b>" . wfMsg('live') . ": " . numberformat($live) . "</b><br />";
//The end all answer!!!
if ($live == 0) {
    toDie("<br /><br />User does not have any contribs.\n");
}
if (isset($_GET['debug'])) {
    echo "<span style=\"font-size:100%;\">" . wfMsg('executed', number_format(microtime(1) - $time, 2, '.', '')) . "</span>";
}
//Calculate time taken to execute
$exectime = number_format(microtime(1) - $time, 2, '.', '');
echo "<br /><hr><span style=\"font-size:100%;\">" . wfMsg('executed', $exectime) . "</span>";
echo "<br />" . wfMsg('memory', number_format(memory_get_usage() / (1024 * 1024), 2, '.', ''));
//Output footer
include '/data/project/xtools/public_html/common/footer.php';
 function Header()
 {
     global $periode;
     global $unit;
     global $optNm;
     global $optBulan;
     global $tahun;
     global $bulan;
     global $dbname;
     global $luas;
     global $wkiri, $wlain;
     global $luasbudg, $luasreal;
     $width = $this->w - $this->lMargin - $this->rMargin;
     $height = 20;
     $this->SetFillColor(220, 220, 220);
     $this->SetFont('Arial', 'B', 12);
     $this->Cell($width / 2, $height, "21. " . strtoupper($_SESSION['lang']['biaya'] . " " . $_SESSION['lang']['bukalahan']) . "  (TB)", NULL, 0, 'L', 1);
     $this->Cell($width / 2, $height, $_SESSION['lang']['bulan'] . " : " . $optBulan[$bulan] . " " . $tahun, NULL, 0, 'R', 1);
     $this->Ln();
     $this->Cell($width, $height, $_SESSION['lang']['unit'] . " : " . $optNm[$unit] . " (" . $unit . ")", NULL, 0, 'L', 1);
     $this->Ln();
     $this->Ln();
     $height = 15;
     $this->SetFont('Arial', 'B', 7);
     $this->Cell(3 / 100 * $width + ($wlain + $wkiri) / 100 * $width, $height, $_SESSION['lang']['luasareal'] . ' TB:', 0, 0, 'R', 1);
     $this->Cell($wlain * 9 / 100 * $width, $height, numberformat($luasbudg, 2) . ' Ha', 0, 0, 'C', 1);
     $this->Cell($wlain * 6 / 100 * $width, $height, numberformat($luasreal, 2) . ' Ha', 0, 0, 'C', 1);
     $this->Cell($wlain * 2 / 100 * $width, $height, '', 0, 0, 'L', 1);
     $this->Ln();
     $this->Cell(3 / 100 * $width, $height, '', TRL, 0, 'C', 1);
     $this->Cell($wkiri / 100 * $width, $height, '', TRL, 0, 'C', 1);
     $this->Cell($wlain / 100 * $width, $height, '', TRL, 0, 'C', 1);
     $this->Cell($wlain * 9 / 100 * $width, $height, $_SESSION['lang']['anggaran'], 1, 0, 'C', 1);
     $this->Cell($wlain * 6 / 100 * $width, $height, $_SESSION['lang']['realisasi'], 1, 0, 'C', 1);
     $this->Cell($wlain * 2 / 100 * $width, $height, '', TRL, 0, 'C', 1);
     $this->Ln();
     $this->Cell(3 / 100 * $width, $height, 'No.', RL, 0, 'C', 1);
     $this->Cell($wkiri / 100 * $width, $height, $_SESSION['lang']['pekerjaan'], RL, 0, 'C', 1);
     $this->Cell($wlain / 100 * $width, $height, $_SESSION['lang']['satuan'], RL, 0, 'C', 1);
     $this->Cell($wlain * 3 / 100 * $width, $height, $_SESSION['lang']['setahun'], 1, 0, 'C', 1);
     $this->Cell($wlain * 3 / 100 * $width, $height, $_SESSION['lang']['bulanini'], 1, 0, 'C', 1);
     $this->Cell($wlain * 3 / 100 * $width, $height, $_SESSION['lang']['sdbulanini'], 1, 0, 'C', 1);
     $this->Cell($wlain * 3 / 100 * $width, $height, $_SESSION['lang']['bulanini'], 1, 0, 'C', 1);
     $this->Cell($wlain * 3 / 100 * $width, $height, $_SESSION['lang']['sdbulanini'], 1, 0, 'C', 1);
     $this->Cell($wlain * 2 / 100 * $width, $height, $_SESSION['lang']['pencapaian'], BRL, 0, 'C', 1);
     $this->Ln();
     $this->Cell(3 / 100 * $width, $height, '', BRL, 0, 'C', 1);
     $this->Cell($wkiri / 100 * $width, $height, '', BRL, 0, 'C', 1);
     $this->Cell($wlain / 100 * $width, $height, '', BRL, 0, 'C', 1);
     $this->Cell($wlain / 100 * $width, $height, 'Volume', 1, 0, 'C', 1);
     $this->Cell($wlain / 100 * $width, $height, 'Rp. (000)', 1, 0, 'C', 1);
     $this->Cell($wlain / 100 * $width, $height, 'Rp./Sat', 1, 0, 'C', 1);
     $this->Cell($wlain / 100 * $width, $height, 'Volume', 1, 0, 'C', 1);
     $this->Cell($wlain / 100 * $width, $height, 'Rp. (000)', 1, 0, 'C', 1);
     $this->Cell($wlain / 100 * $width, $height, 'Rp./Sat', 1, 0, 'C', 1);
     $this->Cell($wlain / 100 * $width, $height, 'Volume', 1, 0, 'C', 1);
     $this->Cell($wlain / 100 * $width, $height, 'Rp. (000)', 1, 0, 'C', 1);
     $this->Cell($wlain / 100 * $width, $height, 'Rp./Sat', 1, 0, 'C', 1);
     $this->Cell($wlain / 100 * $width, $height, 'Volume', 1, 0, 'C', 1);
     $this->Cell($wlain / 100 * $width, $height, 'Rp. (000)', 1, 0, 'C', 1);
     $this->Cell($wlain / 100 * $width, $height, 'Rp./Sat', 1, 0, 'C', 1);
     $this->Cell($wlain / 100 * $width, $height, 'Volume', 1, 0, 'C', 1);
     $this->Cell($wlain / 100 * $width, $height, 'Rp. (000)', 1, 0, 'C', 1);
     $this->Cell($wlain / 100 * $width, $height, 'Rp./Sat', 1, 0, 'C', 1);
     $this->Cell($wlain / 100 * $width, $height, $_SESSION['lang']['setahun'], 1, 0, 'C', 1);
     $this->Cell($wlain / 100 * $width, $height, $_SESSION['lang']['sdbulanini'], 1, 0, 'C', 1);
     $this->Ln();
 }
 function Header()
 {
     global $periode;
     global $unit;
     global $optNm;
     global $optBulan;
     global $tahun;
     global $bulan;
     global $dbname;
     global $luas;
     global $wkiri, $wlain;
     global $luasbudg, $luasreal;
     $width = $this->w - $this->lMargin - $this->rMargin;
     $height = 20;
     $this->SetFillColor(220, 220, 220);
     $this->SetFont('Arial', 'B', 12);
     $this->Cell($width / 2, $height, '23. BIAYA KAPITAL NON TANAMAN', NULL, 0, 'L', 1);
     $this->Cell($width / 2, $height, $_SESSION['lang']['bulan'] . " : " . $optBulan[$bulan] . " " . $tahun, NULL, 0, 'R', 1);
     $this->Ln();
     $this->Cell($width, $height, $_SESSION['lang']['unit'] . " : " . $optNm[$unit] . " (" . $unit . ")", NULL, 0, 'L', 1);
     $this->Ln();
     $this->Ln();
     $height = 15;
     $this->SetFont('Arial', 'B', 7);
     $this->Cell(3 / 100 * $width + $wkiri / 100 * $width, $height, 'Areal diusahakan:', 0, 0, 'R', 1);
     $this->Cell($wlain * 2 / 100 * $width, $height, numberformat($luasreal, 2) . ' Ha', 0, 0, 'C', 1);
     $this->Cell($wlain * 10 / 100 * $width, $height, '', 0, 0, 'C', 1);
     $this->Ln();
     $this->Cell(3 / 100 * $width, $height, '', TRL, 0, 'C', 1);
     $this->Cell($wkiri / 100 * $width, $height, '', TRL, 0, 'C', 1);
     $this->Cell($wlain * 6 / 100 * $width, $height, $_SESSION['lang']['anggaran'], 1, 0, 'C', 1);
     $this->Cell($wlain * 4 / 100 * $width, $height, $_SESSION['lang']['realisasi'], 1, 0, 'C', 1);
     $this->Cell($wlain * 2 / 100 * $width, $height, '', TRL, 0, 'C', 1);
     $this->Ln();
     $this->Cell(3 / 100 * $width, $height, 'No.', RL, 0, 'C', 1);
     $this->Cell($wkiri / 100 * $width, $height, $_SESSION['lang']['pekerjaan'], RL, 0, 'C', 1);
     $this->Cell($wlain * 2 / 100 * $width, $height, $_SESSION['lang']['setahun'], 1, 0, 'C', 1);
     $this->Cell($wlain * 2 / 100 * $width, $height, $_SESSION['lang']['bulanini'], 1, 0, 'C', 1);
     $this->Cell($wlain * 2 / 100 * $width, $height, $_SESSION['lang']['sdbulanini'], 1, 0, 'C', 1);
     $this->Cell($wlain * 2 / 100 * $width, $height, $_SESSION['lang']['bulanini'], 1, 0, 'C', 1);
     $this->Cell($wlain * 2 / 100 * $width, $height, $_SESSION['lang']['sdbulanini'], 1, 0, 'C', 1);
     $this->Cell($wlain * 2 / 100 * $width, $height, $_SESSION['lang']['pencapaian'], BRL, 0, 'C', 1);
     $this->Ln();
     $this->Cell(3 / 100 * $width, $height, '', BRL, 0, 'C', 1);
     $this->Cell($wkiri / 100 * $width, $height, '', BRL, 0, 'C', 1);
     $this->Cell($wlain / 100 * $width, $height, 'Rp. (000)', 1, 0, 'C', 1);
     $this->Cell($wlain / 100 * $width, $height, 'Rp./Ha', 1, 0, 'C', 1);
     $this->Cell($wlain / 100 * $width, $height, 'Rp. (000)', 1, 0, 'C', 1);
     $this->Cell($wlain / 100 * $width, $height, 'Rp./Ha', 1, 0, 'C', 1);
     $this->Cell($wlain / 100 * $width, $height, 'Rp. (000)', 1, 0, 'C', 1);
     $this->Cell($wlain / 100 * $width, $height, 'Rp./Ha', 1, 0, 'C', 1);
     $this->Cell($wlain / 100 * $width, $height, 'Rp. (000)', 1, 0, 'C', 1);
     $this->Cell($wlain / 100 * $width, $height, 'Rp./Ha', 1, 0, 'C', 1);
     $this->Cell($wlain / 100 * $width, $height, 'Rp. (000)', 1, 0, 'C', 1);
     $this->Cell($wlain / 100 * $width, $height, 'Rp./Ha', 1, 0, 'C', 1);
     $this->Cell($wlain / 100 * $width, $height, $_SESSION['lang']['setahun'], 1, 0, 'C', 1);
     $this->Cell($wlain / 100 * $width, $height, $_SESSION['lang']['sdbulanini'], 1, 0, 'C', 1);
     $this->Ln();
 }
 function Header()
 {
     global $periode;
     global $unit;
     global $optNm;
     global $optBulan;
     global $tahun;
     global $bulan;
     global $dbname;
     global $luas;
     global $wkiri, $wlain, $afdId;
     global $kgbgth, $kgbgbi, $kgbgsd, $kgrebi, $kgresd;
     $width = $this->w - $this->lMargin - $this->rMargin;
     $height = 20;
     $this->SetFillColor(220, 220, 220);
     $this->SetFont('Arial', 'B', 12);
     $this->Cell($width / 2, $height, '20. ' . strtoupper($_SESSION['lang']['biaya'] . ' ' . $_SESSION['lang']['produksi']) . ' (RP./KG)', NULL, 0, 'L', 1);
     $this->Cell($width / 2, $height, $_SESSION['lang']['bulan'] . " : " . $optBulan[$bulan] . " " . $tahun, NULL, 0, 'R', 1);
     $this->Ln();
     $this->Cell($width, $height, $_SESSION['lang']['unit'] . " : " . $optNm[$unit] . " (" . $unit . ")", NULL, 0, 'L', 1);
     if ($afdId != '') {
         $this->Ln();
         $this->Cell($width, $height, $_SESSION['lang']['afdeling'] . " : " . $optNm[$afdId] . " (" . $afdId . ")", NULL, 0, 'L', 1);
     }
     $this->Ln();
     $this->Ln();
     $height = 15;
     $this->SetFont('Arial', 'B', 7);
     $this->Cell(3 / 100 * $width + $wkiri / 100 * $width, $height, 'Produksi (kg):', 0, 0, 'R', 1);
     $this->Cell($wlain * 2 / 100 * $width, $height, numberformat($kgbgth, 2) . '', 0, 0, 'C', 1);
     $this->Cell($wlain * 2 / 100 * $width, $height, numberformat($kgbgbi, 2) . '', 0, 0, 'C', 1);
     $this->Cell($wlain * 2 / 100 * $width, $height, numberformat($kgbgsd, 2) . '', 0, 0, 'C', 1);
     $this->Cell($wlain * 2 / 100 * $width, $height, numberformat($kgrebi, 2) . '', 0, 0, 'C', 1);
     $this->Cell($wlain * 2 / 100 * $width, $height, numberformat($kgresd, 2) . '', 0, 0, 'C', 1);
     $this->Cell($wlain * 2 / 100 * $width, $height, '', 0, 0, 'L', 1);
     $this->Ln();
     $this->Cell(3 / 100 * $width, $height, '', TRL, 0, 'C', 1);
     $this->Cell($wkiri / 100 * $width, $height, '', TRL, 0, 'C', 1);
     $this->Cell($wlain * 6 / 100 * $width, $height, $_SESSION['lang']['anggaran'], 1, 0, 'C', 1);
     $this->Cell($wlain * 4 / 100 * $width, $height, $_SESSION['lang']['realisasi'], 1, 0, 'C', 1);
     $this->Cell($wlain * 2 / 100 * $width, $height, '', TRL, 0, 'C', 1);
     $this->Ln();
     $this->Cell(3 / 100 * $width, $height, 'No.', RL, 0, 'C', 1);
     $this->Cell($wkiri / 100 * $width, $height, $_SESSION['lang']['pekerjaan'], RL, 0, 'C', 1);
     $this->Cell($wlain * 2 / 100 * $width, $height, $_SESSION['lang']['setahun'], 1, 0, 'C', 1);
     $this->Cell($wlain * 2 / 100 * $width, $height, $_SESSION['lang']['bulanini'], 1, 0, 'C', 1);
     $this->Cell($wlain * 2 / 100 * $width, $height, $_SESSION['lang']['sdbulanini'], 1, 0, 'C', 1);
     $this->Cell($wlain * 2 / 100 * $width, $height, $_SESSION['lang']['bulanini'], 1, 0, 'C', 1);
     $this->Cell($wlain * 2 / 100 * $width, $height, $_SESSION['lang']['sdbulanini'], 1, 0, 'C', 1);
     $this->Cell($wlain * 2 / 100 * $width, $height, $_SESSION['lang']['pencapaian'], BRL, 0, 'C', 1);
     $this->Ln();
     $this->Cell(3 / 100 * $width, $height, '', BRL, 0, 'C', 1);
     $this->Cell($wkiri / 100 * $width, $height, '', BRL, 0, 'C', 1);
     $this->Cell($wlain / 100 * $width, $height, 'Rp. (000)', 1, 0, 'C', 1);
     $this->Cell($wlain / 100 * $width, $height, 'Rp./kg', 1, 0, 'C', 1);
     $this->Cell($wlain / 100 * $width, $height, 'Rp. (000)', 1, 0, 'C', 1);
     $this->Cell($wlain / 100 * $width, $height, 'Rp./kg', 1, 0, 'C', 1);
     $this->Cell($wlain / 100 * $width, $height, 'Rp. (000)', 1, 0, 'C', 1);
     $this->Cell($wlain / 100 * $width, $height, 'Rp./kg', 1, 0, 'C', 1);
     $this->Cell($wlain / 100 * $width, $height, 'Rp. (000)', 1, 0, 'C', 1);
     $this->Cell($wlain / 100 * $width, $height, 'Rp./kg', 1, 0, 'C', 1);
     $this->Cell($wlain / 100 * $width, $height, 'Rp. (000)', 1, 0, 'C', 1);
     $this->Cell($wlain / 100 * $width, $height, 'Rp./kg', 1, 0, 'C', 1);
     $this->Cell($wlain / 100 * $width, $height, $_SESSION['lang']['setahun'], 1, 0, 'C', 1);
     $this->Cell($wlain / 100 * $width, $height, $_SESSION['lang']['sdbulanini'], 1, 0, 'C', 1);
     $this->Ln();
 }
        $pdf->Cell($wlain / 100 * $width, $height, numberformat($empat2, 0), 1, 0, 'R', 1);
        $pdf->Ln();
        $pdf->Cell(5 / 100 * $width, $height, '', 1, 0, 'R', 1);
        $pdf->Cell($wlain / 100 * $width, $height, '3. MN 3-6 bulan', 1, 0, 'L', 1);
        $pdf->Cell($wlain / 100 * $width, $height, numberformat($empat3, 0), 1, 0, 'R', 1);
        $pdf->Ln();
        $pdf->Cell(5 / 100 * $width, $height, '', 1, 0, 'R', 1);
        $pdf->Cell($wlain / 100 * $width, $height, '4. PN 6-9 bulan', 1, 0, 'L', 1);
        $pdf->Cell($wlain / 100 * $width, $height, numberformat($empat4, 0), 1, 0, 'R', 1);
        $pdf->Ln();
        $pdf->Cell(5 / 100 * $width, $height, '', 1, 0, 'R', 1);
        $pdf->Cell($wlain / 100 * $width, $height, '5. MN 9-12 bulan', 1, 0, 'L', 1);
        $pdf->Cell($wlain / 100 * $width, $height, numberformat($empat5, 0), 1, 0, 'R', 1);
        $pdf->Ln();
        $pdf->Cell(5 / 100 * $width, $height, '', 1, 0, 'R', 1);
        $pdf->Cell($wlain / 100 * $width, $height, '6. MN 12-14 bulan', 1, 0, 'L', 1);
        $pdf->Cell($wlain / 100 * $width, $height, numberformat($empat6, 0), 1, 0, 'R', 1);
        $pdf->Ln();
        $pdf->Cell(5 / 100 * $width, $height, '', 1, 0, 'R', 1);
        $pdf->Cell($wlain / 100 * $width, $height, '7. PN > 14 bulan', 1, 0, 'L', 1);
        $pdf->Cell($wlain / 100 * $width, $height, numberformat($empat7, 0), 1, 0, 'R', 1);
        $pdf->Ln();
        $pdf->Cell(5 / 100 * $width, $height, '', 1, 0, 'R', 1);
        $pdf->Cell($wlain / 100 * $width, $height, 'Total', 1, 0, 'C', 1);
        $pdf->Cell($wlain / 100 * $width, $height, numberformat($empattotal, 0), 1, 0, 'R', 1);
        $pdf->Ln();
        $pdf->Output();
        break;
    default:
        break;
}
 function get()
 {
     switch ($this->type) {
         case DCO_DATA_BOOL:
             return $this->value ? true : false;
         case DCO_DATA_INTEGER:
             return intval($this->value);
         case DCO_DATA_NUMBER:
             return is_numeric($this->value) ? numberformat($this->value) : $this->value;
         case DCO_DATA_DATE:
             return strpos($this->value, '-') ? shortdate($this->value) : $this->value;
         case DCO_DATA_PLAIN:
             return $this->value;
         default:
             if (is_array($this->value)) {
                 $sval = stripslashes(implode('|', $this->value));
                 if ($this->autohtml) {
                     if ($this->autoentities) {
                         $sval = htmlentities($sval, ENT_QUOTES, $this->charset_encoding);
                     }
                     $sval = nl2br($sval);
                 }
                 return explode('|', $sval);
             } else {
                 $sval = stripslashes($this->value);
                 if ($this->autohtml) {
                     if ($this->autoentities) {
                         $sval = htmlentities($sval, ENT_QUOTES, $this->charset_encoding);
                     }
                     $sval = nl2br($sval);
                 }
                 return $sval;
             }
     }
 }