<td align="center" valign="top"><font color="#0000FF"><?php echo number_format($real_giat_sdtriwulan / $Giat['pagu_giat'] * 100, "2", ",", "."); ?> </font></td> <td align="right" valign="top"><font color="#0000FF"><?php echo number_format($Giat['pagu_giat'] - $real_giat_sdtriwulan, "0", ",", "."); ?> </font></td> </tr> <?php $kdunitkerja = $Giat['kdunitkerja']; $sql = "select KDOUTPUT, sum(jumlah) as pagu_output from {$table} WHERE THANG='{$th}' and KDSATKER='{$kdsatker}' and KDGIAT = '{$Giat['KDGIAT']}' group by KDOUTPUT"; $aOutput = mysql_query($sql); while ($Output = mysql_fetch_array($aOutput)) { $real_output_triwulan = real_output_triwulan($th, $kdsatker, $Giat['KDGIAT'], $Output['KDOUTPUT'], $kdtriwulan); $real_output_sdtriwulan = real_output_sdtriwulan($th, $kdsatker, $Giat['KDGIAT'], $Output['KDOUTPUT'], $kdtriwulan); ?> <tr class="<?php echo $class; ?> "> <td align="center" valign="top"> </td> <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
?> </font><?php } ?> </td> <td align="right" valign="top"><font color="#0000FF"><?php echo number_format($Giat['pagu_giat'] - $real_giat_sdtriwulan, "0", ",", "."); ?> </font></td> </tr> <?php $sql = "select KDOUTPUT, sum(jumlah) as pagu_output from {$table} WHERE THANG = '{$th}' AND KDSATKER = '{$kdsatker}' AND KDGIAT = '{$Giat['KDGIAT']}' group by KDOUTPUT"; $aOutput = mysql_query($sql); while ($Output = mysql_fetch_array($aOutput)) { $real_output_triwulan = real_output_triwulan($th, $col[0][$k], $Giat['KDGIAT'], $Output['KDOUTPUT'], $kdtriwulan); $real_output_sdtriwulan = real_output_sdtriwulan($th, $col[0][$k], $Giat['KDGIAT'], $Output['KDOUTPUT'], $kdtriwulan); ?> <tr class="<?php echo $class; ?> "> <td align="left" valign="top"> </td> <td align="center" valign="top"><font color="#993333"><?php echo $Output['KDOUTPUT']; ?> </font></td> <td align="left"><font color="#993333"><?php echo nm_output_th($th, $Giat['KDGIAT'] . $Output['KDOUTPUT']); ?> </font></td> <td align="right" valign="top"><font color="#993333"><?php