<td width="11%" align="right"><strong><?php echo number_format($col[2][$k], "0", ",", "."); ?> </strong></td> <td width="7%" align="center"><strong><?php echo number_format($col[2][$k] / $pagu_satker * 100, "2", ",", "."); ?> </strong></td> <td align="right"> </td> </tr> <?php $kdsatker = $col[1][$k]; $sql = "select KDGIAT, sum(TOTNILMAK) as real_giat from m_spmind WHERE THANG='{$th}' and KDSATKER='{$kdsatker}' and ( KDGIAT <> '0000' or KDOUTPUT = '00 ' OR KDOUTPUT = '000' ) group by KDGIAT"; $aGiat = mysql_query($sql); while ($Giat = mysql_fetch_array($aGiat)) { $pagu_giat = pagu_giat($th, $col[1][$k], $Giat['KDGIAT']); ?> <tr class="<?php echo $class; ?> "> <td align="center" valign="top"><font color="#0000FF"><?php echo $Giat['KDGIAT']; ?> </font></td> <td align="left" valign="top"><font color="#0000FF"><?php echo nm_giat($Giat['KDGIAT']); ?> </font></td> <td align="right" valign="top"><font color="#0000FF"><?php echo number_format($pagu_giat, "0", ",", ".");
echo $col[10][$k]; ?> </strong></td> <td align="center"><strong><?php echo $col[3][$k]; ?> </strong></td> <td colspan="2" align="left"><strong><?php echo nm_satker($col[10][$k]); ?> <br /><?php echo '(' . nm_giat($col[3][$k]) . ')'; ?> </strong></td> <td align="right"><strong><?php echo number_format(pagu_giat($col[1][$k], $col[2][$k], $col[3][$k]), "0", ",", "."); ?> </strong></td> <td width="11%" align="center"> </td> </tr> <?php $th = $col[1][$k]; $kdunitkerja = $col[2][$k]; $kdsatker = $col[10][$k]; $kdgiat = $col[3][$k]; $oList_kak_output = mysql_query("SELECT * FROM thbp_kak_output WHERE th = '{$th}' AND kdgiat = '{$kdgiat}' and kdsatker = '{$kdsatker}' ORDER BY kdoutput"); while ($List_kak_output = mysql_fetch_array($oList_kak_output)) { $kdoutput = $List_kak_output['kdoutput']; ?> <tr class="<?php echo $class;