echo $col[1][$k]; ?> &th=<?php echo $col[0][$k]; ?> &kdgiat=<?php echo $Giat['KDGIAT']; ?> " title="Data Realisasi Detil"><font size="1"> Realisasi Kegiatan>></font></a></td> </tr> <?php $sql = "select KDOUTPUT, sum(TOTNILMAK) as real_output from m_spmind WHERE THANG='{$th}' and KDSATKER='{$kdsatker}' and KDGIAT = '{$Giat['KDGIAT']}' group by KDOUTPUT"; $aOutput = mysql_query($sql); while ($Output = mysql_fetch_array($aOutput)) { $pagu_output = pagu_output($th, $col[1][$k], $Giat['KDGIAT'], $Output['KDOUTPUT']); ?> <tr class="<?php echo $class; ?> "> <td align="center" valign="top"><font color="#993333"><?php echo $Output['KDOUTPUT']; ?> </font></td> <td align="left" valign="top"><font color="#993333"><?php echo nm_output_th($th, $Giat['KDGIAT'] . $Output['KDOUTPUT']); ?> </font></td> <td align="right" valign="top"><font color="#993333"><?php echo number_format($pagu_output, "0", ",", ".");
case '6': $sql = "SELECT * FROM thbp_kak_output WHERE th = '{$th}' and kdgiat = '{$kdgiat}' and kdunitkerja = '{$kdunitkerja}' ORDER BY kdoutput"; break; default: $sql = "SELECT * FROM thbp_kak_output WHERE th = '{$th}' and kdgiat = '{$kdgiat}' and kdunitkerja = '{$kdunitkerja}' ORDER BY kdoutput"; break; } $oOutput = mysql_query($sql); while ($Output = mysql_fetch_array($oOutput)) { $kdoutput = $Output['kdoutput']; $thn = $th - 1; $pdf->SetFont($font, '', $size - 2); $max = 0; $arrKode = $pdf->SplitToArray($w[0], $ln, $kdgiat . '.' . $kdoutput); $arrUraian = $pdf->SplitToArray($w[1], $ln, trim(nm_output($kdgiat . $kdoutput))); $arrPaguDipa = $pdf->SplitToArray($w[2], $ln, number_format(pagu_output($thn, $kdunitkerja, $kdgiat, $kdoutput), "0", ",", ".")); $arrPaguIni = $pdf->SplitToArray($w[3], $ln, number_format($Output['jml_anggaran'], "0", ",", ".")); if ($max < count($arrUraian)) { $max = count($arrUraian); } for ($i = 0; $i < $max; $i++) { $pdf->SetX($margin); $pdf->Cell($w[0], $ln, $arrKode[$i], 'LR', 0, 'C'); $pdf->SetX($margin + $w[0]); $pdf->Cell($w[1], $ln, $arrUraian[$i], 'LR', 0, 'L'); $pdf->SetX($margin + $w[0] + $w[1]); $pdf->Cell($w[2], $ln, $arrPaguDipa[$i], 'LR', 0, 'R'); $pdf->SetX($margin + $w[0] + $w[1] + $w[2]); $pdf->Cell($w[3], $ln, $arrPaguIni[$i], 'LR', 1, 'R'); } $pdf->Line($margin, $pdf->GetY(), $margin + $w[0] + $w[1] + $w[2] + $w[3], $pdf->GetY());
<td align="left"> </td> <td align="center"> </td> <td align="center"><?php echo $List_kak_output['kdoutput']; ?> </td> <td width="44%" align="left"><?php echo nm_output($kdgiat . $List_kak_output['kdoutput']); ?> </td> <td width="9%" align="center"><?php echo $List_kak_output['volume'] . ' ' . $List_kak_output['satuan']; ?> </td> <td align="right"><?php echo number_format(pagu_output($th, $kdunitkerja, $kdgiat, $List_kak_output['kdoutput']), "0", ",", "."); ?> </td> <td align="center"> <a href="index.php?p=180&th=<?php echo $th; ?> &kdsatker=<?php echo $kdsatker; ?> &kdgiat=<?php echo $kdgiat; ?> &kdoutput=<?php echo $List_kak_output['kdoutput']; ?> &pagess=<?php