<tr><td align="center" colspan="4">Tidak ada data!</td></tr><?php } else { foreach ($col[0] as $k => $val) { if ($k % 2 == 1) { $class = "row0"; } else { $class = "row1"; } ?> <tr class="<?php echo $class; ?> "> <td align="left"><?php if ($col[6][$k] != $col[6][$k - 1]) { echo outcome_deputi($col[6][$k]); } ?> </td> <td align="left"><?php echo $col[4][$k]; ?> </td> <td align="left"><?php echo $col[5][$k]; ?> </td> <td align="left"><?php if (nm_program(kdprogram_subprogram($col[6][$k])) != nm_program(kdprogram_subprogram($col[6][$k - 1]))) { echo nm_program(kdprogram_subprogram($col[6][$k])); }
<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>"; } ?> </td> </tr> <tr> <td class="key">Sasaran</td> <td><?php echo outcome_deputi(substr($Kegiatan_bp[kdunitkerja], 0, 3) . '000'); ?> </td> </tr> <tr> <td class="key">IKU</td> <td> <?php $sql = "SELECT iku FROM m_iku_program WHERE kddeputi = '" . substr($Kegiatan_bp[kdunitkerja], 0, 3) . '000' . "'"; $oIKU = mysql_query($sql); $n = 0; while ($IKU = mysql_fetch_array($oIKU)) { $n += 1; echo $n . ". " . $IKU['iku'] . "<br>"; } ?>
$pdf->Cell($wb[1], $ln, $arrNomor[$i], '', 0, 'L'); $pdf->SetX($margin + $wb[0] + $wb[1]); $pdf->Cell($wb[2] + $wb[3] + $wb[4], $ln, $arrUraian[$i], '', 1, 'L'); } } $pdf->Ln(); $pdf->SetFont($font, 'B', $size + 2); $pdf->SetX($margin); $pdf->Cell($w[0], $ln, '', '', 0, 'C'); $pdf->SetX($margin + $w[0]); $pdf->Cell($w[1], $ln, 'E. Sasaran', '', 0, 'L'); $pdf->SetX($margin + $w[0] + $w[1]); $pdf->Cell($w[2], $ln, '', '', 1, 'L'); $pdf->SetFont($font, '', $size + 2); $max = 0; $arrUraian = $pdf->SplitToArray($w[1] + $w[2] + $w[3], $ln, trim(outcome_deputi(substr($Kegiatan_bp[kdunitkerja], 0, 3) . '000'))); if ($max < count($arrUraian)) { $max = count($arrUraian); } for ($i = 0; $i < $max; $i++) { $pdf->SetX($margin + $w[0]); $pdf->Cell($w[1] + $w[2] + $w[3], $ln, $arrUraian[$i], '', 1, 'L'); } $pdf->Ln(); $pdf->SetFont($font, 'B', $size + 2); $pdf->SetX($margin); $pdf->Cell($w[0], $ln, '', '', 0, 'C'); $pdf->SetX($margin + $w[0]); $pdf->Cell($w[1] + $w[2] + $w[3], $ln, 'F. Indikator Kinerja Utama (IKU)', '', 1, 'L'); $pdf->SetFont($font, '', $size + 2); $sql = "SELECT iku FROM m_iku_program WHERE kddeputi = '" . substr($Kegiatan_bp[kdunitkerja], 0, 3) . '000' . "'";