<?php } else { foreach ($col[0] as $k => $val) { if ($k % 2 == 1) { $class = "row0"; } else { $class = "row0"; } ?> <tr class="<?php echo $class; ?> "> <td width="6%" align="center" valign="top"> </td> <?php $real_satker_bulan = real_satker_bulan($th, $col[0][$k], $kdbulan); $real_satker_sdbulan = real_satker_sdbulan($th, $col[0][$k], $kdbulan); ?> <td width="6%" align="center" valign="top"><strong><?php echo $col[0][$k]; ?> </strong></td> <td width="54%" align="left"><strong><?php echo nm_satker($col[0][$k]); ?> </strong></td> <td width="12%" align="right" valign="top"><strong><?php echo number_format($col[1][$k], "0", ",", "."); ?> </strong></td> <td width="11%" align="right" valign="top"><strong><?php
$kdsatker = $col[1][$k]; $sql = "select \tsum(RPHPAGU) as RPHPAGU,\r\n\t\t\t\t\tsum(JML01) as JML01,\r\n\t\t\t\t\tsum(JML02) as JML02,\r\n\t\t\t\t\tsum(JML03) as JML03,\r\n\t\t\t\t\tsum(JML04) as JML04,\r\n\t\t\t\t\tsum(JML05) as JML05,\r\n\t\t\t\t\tsum(JML06) as JML06,\r\n\t\t\t\t\tsum(JML07) as JML07,\r\n\t\t\t\t\tsum(JML08) as JML08,\r\n\t\t\t\t\tsum(JML09) as JML09,\r\n\t\t\t\t\tsum(JML10) as JML10,\r\n\t\t\t\t\tsum(JML11) as JML11,\r\n\t\t\t\t\tsum(JML12) as JML12\r\n\t\t\t\t\tfrom d_trktrm WHERE THANG='{$th}' AND KDSATKER = '{$kdsatker}' group by KDSATKER"; $aTarik = mysql_query($sql); $Tarik = mysql_fetch_array($aTarik); $real_satker_bulan_1 = real_satker_bulan($th, $col[1][$k], 1); $real_satker_bulan_2 = real_satker_bulan($th, $col[1][$k], 2); $real_satker_bulan_3 = real_satker_bulan($th, $col[1][$k], 3); $real_satker_bulan_4 = real_satker_bulan($th, $col[1][$k], 4); $real_satker_bulan_5 = real_satker_bulan($th, $col[1][$k], 5); $real_satker_bulan_6 = real_satker_bulan($th, $col[1][$k], 6); $real_satker_bulan_7 = real_satker_bulan($th, $col[1][$k], 7); $real_satker_bulan_8 = real_satker_bulan($th, $col[1][$k], 8); $real_satker_bulan_9 = real_satker_bulan($th, $col[1][$k], 9); $real_satker_bulan_10 = real_satker_bulan($th, $col[1][$k], 10); $real_satker_bulan_11 = real_satker_bulan($th, $col[1][$k], 11); $real_satker_bulan_12 = real_satker_bulan($th, $col[1][$k], 12); $real_satker_sdbulan = real_satker_sdbulan($th, $col[1][$k], 12); ?> <td width="6%" rowspan="2" align="center"><strong><?php echo $col[1][$k]; ?> </strong></td> <td width="54%" rowspan="2" align="left"><strong><?php echo nm_satker($col[1][$k]); ?> </strong></td> <td width="12%" rowspan="2" align="right"><strong><?php echo number_format($col[2][$k], "0", ",", "."); ?> </strong></td> <td width="11%" align="right" valign="top"><strong><?php