?> <tr class="<?php echo $class; ?> "> <td align="center"><?php echo $k + 1; ?> </td> <td align="left"><?php if ($col[2][$k] != $col[2][$k - 1]) { echo nm_program('04201' . $col[2][$k]); ?> <br /> <strong>Outcome : </strong><br /><?php echo outcome_program('04201' . $col[2][$k]); ?> <?php } ?> </td> <td align="center"><?php echo $col[3][$k]; ?> </td> <td align="left"><?php if ($col[6][$k] != $col[6][$k - 1]) { echo outcome_deputi($col[6][$k]); } ?> </td>
echo $Fungsi['kdfungsi'] . ". " . $Fungsi['nmfungsi'] . "<br>"; } ?> </td> </tr> <tr> <td class="key">Program</td> <td><?php echo nm_program($Kegiatan_bp['kddept'] . $Kegiatan_bp['kdunit'] . $Kegiatan_bp['kdprogram']); ?> </td> </tr> <tr> <td class="key">Outcome</td> <td><?php echo outcome_program($Kegiatan_bp['kddept'] . $Kegiatan_bp['kdunit'] . $Kegiatan_bp['kdprogram']); ?> </td> </tr> <tr> <td class="key">Tujuan</td> <td> <?php $sql = "SELECT alasan FROM m_iku_program WHERE kddeputi = '" . substr($Kegiatan_bp[kdunitkerja], 0, 3) . '000' . "'"; $oTujuan = mysql_query($sql); $n = 0; while ($Tujuan = mysql_fetch_array($oTujuan)) { $n += 1; echo $n . ". " . $Tujuan['alasan'] . "<br>"; } ?>
} for ($i = 0; $i < $max; $i++) { $pdf->SetX($margin); $pdf->Cell($w[0], $ln, $arrNomor[$i], '', 0, 'L'); $pdf->SetX($margin + $w[0]); $pdf->Cell($w[1], $ln, $arrLabel[$i], '', 0, 'L'); $pdf->SetX($margin + $w[0] + $w[1]); $pdf->Cell($w[2], $ln, $arrTitik[$i], '', 0, 'L'); $pdf->SetX($margin + $w[0] + $w[1] + $w[2]); $pdf->Cell($w[3], $ln, $arrUraian[$i], '', 1, 'L'); } $max = 0; $arrNomor = $pdf->SplitToArray($w[0], $ln, ''); $arrLabel = $pdf->SplitToArray($w[1], $ln, 'Outcome'); $arrTitik = $pdf->SplitToArray($w[2], $ln, ':'); $arrUraian = $pdf->SplitToArray($w[3], $ln, trim(outcome_program($Kegiatan_bp['kddept'] . $Kegiatan_bp['kdunit'] . $Kegiatan_bp['kdprogram']))); if ($max < count($arrUraian)) { $max = count($arrUraian); } for ($i = 0; $i < $max; $i++) { $pdf->SetX($margin); $pdf->Cell($w[0], $ln, $arrNomor[$i], '', 0, 'L'); $pdf->SetX($margin + $w[0]); $pdf->Cell($w[1], $ln, $arrLabel[$i], '', 0, 'L'); $pdf->SetX($margin + $w[0] + $w[1]); $pdf->Cell($w[2], $ln, $arrTitik[$i], '', 0, 'L'); $pdf->SetX($margin + $w[0] + $w[1] + $w[2]); $pdf->Cell($w[3], $ln, $arrUraian[$i], '', 1, 'L'); } $pdf->Ln(); $pdf->SetFont($font, 'B', $size + 2);