Exemple #1
0
        ?>
</strong></td>
      <td align="right"><strong><?php 
        echo number_format(blokir_belanja_satker($th, $col[1][$k], '52'), "0", ",", ".");
        ?>
</strong></td>
      <td align="right"><strong><?php 
        echo number_format(blokir_belanja_satker($th, $col[1][$k], '53'), "0", ",", ".");
        ?>
</strong></td>
      <td align="right"><strong><?php 
        echo number_format(blokir_belanja_satker($th, $col[1][$k], '524'), "0", ",", ".");
        ?>
</strong></td>
      <td align="right"><strong><?php 
        echo number_format(blokir_belanja_satker($th, $col[1][$k], '57'), "0", ",", ".");
        ?>
</strong></td>
    </tr>
    <?php 
        $kdsatker = $col[1][$k];
        $sql = "select KDGIAT, sum(JUMLAH) as pagu_giat, sum(RPHBLOKIR) as blokir_giat from {$table} WHERE THANG='{$th}' and KDSATKER='{$kdsatker}' group by KDGIAT";
        $aGiat = mysql_query($sql);
        while ($Giat = mysql_fetch_array($aGiat)) {
            ?>
    <tr class="<?php 
            echo $class;
            ?>
"> 
      <td rowspan="2" align="center" valign="top"><font color="#0033CC"><?php 
            echo $Giat['KDGIAT'];
        ?>
</strong></td>
      <td align="right"><strong><?php 
        echo number_format(blokir_belanja_satker($th, $kdsatker, '52'), "0", ",", ".");
        ?>
</strong></td>
      <td align="right"><strong><?php 
        echo number_format(blokir_belanja_satker($th, $kdsatker, '53'), "0", ",", ".");
        ?>
</strong></td>
      <td align="right"><strong><?php 
        echo number_format(blokir_belanja_satker($th, $kdsatker, '524'), "0", ",", ".");
        ?>
</strong></td>
      <td align="right"><strong><?php 
        echo number_format(blokir_belanja_satker($th, $kdsatker, '57'), "0", ",", ".");
        ?>
</strong></td>
    </tr>
    
    <?php 
    }
}
?>
  </tbody>
  <tfoot>
    <tr> 
      <td colspan="10">&nbsp;</td>
    </tr>
  </tfoot>
</table>