function BuatEntry($PejabatID, $t, $lebar, $arrGelombang, $prevtahun, $tahun, $p) { $arrHadirWawancara = array(); $arrHadirSupporting = array(); FillArrayCurPeriod($PejabatID, $arrGelombang, $arrHadirWawancara, $arrHadirSupporting, $arrTotal, $tahun); $p->SetFont('Helvetica', '', 8); $countWawancara = 0; $countSupporting = 0; $p->SetFillColor(255, 255, 255); foreach ($arrGelombang as $stat) { $isiBlok = ''; if ($arrHadirWawancara[$stat] > 0) { $countWawancara++; $isiBlok = 'WAW'; } else { if ($arrHadirSupporting[$stat] > 0) { $countSupporting++; $isiBlok = empty($IsiBlok) ? 'SUP' : $IsiBlok; } } if ($isiBlok == 'WAW') { $p->SetFillColor(255, 0, 0); } else { if ($isiBlok == 'SUP') { $p->SetFillColor(0, 0, 255); } } $p->Cell($lebar, $t, '', 1, 0, 'C', true); $p->SetFillColor(255, 255, 255); } $p->Cell($lebar + 4, $t, $countWawancara, 1, 0, 'C'); $p->Cell($lebar + 4, $t, $countSupporting, 1, 0, 'C'); $p->Cell($lebar + 4, $t, $countWawancara + $countSupporting, 1, 0, 'C'); }
function BuatEntry($PresenterID, $arrStatusAplikan, $arrRevStatusAplikan, $t, $lebar, $p, &$arrPrevPeriod, &$arrCurPeriod, $prevtahun, $tahun) { $arrTempPrev = array(); $arrTempCur = array(); FillArrayPrevPeriod($PresenterID, $arrTempPrev, $arrRevStatusAplikan, $prevtahun); FillArrayCurPeriod($PresenterID, $arrTempCur, $arrRevStatusAplikan, $tahun); foreach ($arrStatusAplikan as $stat) { $p->Cell($lebar, $t, '', '', 0); $p->Cell($lebar, $t, $arrTempPrev[$stat], 'B', 0, 'R'); $p->Cell($lebar, $t, 'V', 'B', 0, 'R'); $p->Cell($lebar, $t, $arrTempCur[$stat], 'B', 0, 'R'); $p->Cell($lebar, $t, '%', 'B', 0, 'R'); } }
function BuatEntry($Urutan, $arrStatusAplikan, &$arrPrevTotal, &$arrCurTotal, $t, $lebar, $prevtahun, $tahun, $p) { $arrTempPrev = array(); $arrTempCur = array(); FillArrayPrevPeriod($Urutan, $arrTempPrev, $arrPrevTotal, $arrStatusAplikan, $prevtahun); FillArrayCurPeriod($Urutan, $arrTempCur, $arrCurTotal, $arrStatusAplikan, $tahun); $p->SetFont('Helvetica', '', 6); foreach ($arrStatusAplikan as $stat) { $p->Cell($lebar, $t, $arrTempPrev[$stat], 1, 0, 'C'); $p->Cell($lebar, $t, number_format(0, 1, ",", ".") . '%', 1, 0, 'C'); //$target = GetaField('pmbperiod', "Tahun='$tahun' and Urutan", $Urutan, 'Target'.$stat); $target = $arrTempPrev[$stat] * $_SESSION['Kelipatan']; $p->Cell($lebar, $t, $target, 1, 0, 'C'); $p->Cell($lebar, $t, $arrTempCur[$stat], 1, 0, 'C'); $persen = $target <= 0 ? 0 : number_format($arrTempCur[$stat] / $target * 100, 1, ",", "."); $p->Cell($lebar, $t, $persen . '%', 1, 0, 'C'); } }
function BuatEntry($PresenterID, $arrStatusAplikan, $t, $lebar, &$arrCurPeriod, &$arrTotal, $prevtahun, $tahun, $jenistable, $p) { $arrTempCur = array(); FillArrayCurPeriod($PresenterID, $arrTempCur, $arrTotal, $arrStatusAplikan, $tahun); $p->SetFont('Helvetica', '', 8); foreach ($arrStatusAplikan as $stat) { $p->Cell($lebar, $t, $arrTempCur[$stat], 'B', 0, 'R'); $p->Cell(8, $t, '', 'B', 0); } $persen = $arrTempCur['APL'] == 0 ? 0 : floor($arrTempCur['REG'] / $arrTempCur['APL'] * 100); $_persen = $persen . "%"; $p->Cell($lebar, $t, $_persen, 'B', 0, 'R'); $p->Cell(8, $t, "", 'B', 0); $perbandingan = $arrTempCur['REG'] == 0 ? 0 : number_format($arrTempCur['APL'] / $arrTempCur['REG'], 2, ",", "."); $_perbandingan = "1 : " . $perbandingan; $p->Cell(3 * $lebar, $t, $_perbandingan, 'B', 0, 'C'); $p->Cell(8, $t, '', 'B', 0); if ($jenistable == 1) { $fee = $arrTempCur['REG'] * $_SESSION['Fee']; $fee = $fee <= 0 ? '-' : number_format($fee, 0, ",", "."); $p->Cell(2, $t, 'Rp', 'B', 0, 'L'); $p->Cell(3 * $lebar - 2, $t, $fee, 'B', 0, 'R'); } }