} else { $pagu_11 = 0; } if ($Giat['RPHPAGU'] != 0) { $pagu_12 = $Giat['JML_12'] / $Giat['RPHPAGU'] * 100; } else { $pagu_12 = 0; } if ($kdsatker == '') { $pagu = pagu_menteri($th); } else { $pagu = pagu_satker($th, $kdsatker); } for ($i = 1; $i <= 12; $i++) { if ($kdsatker == '') { $real_r[$i] = real_menteri_sdbulan($th, $i); if ($pagu != 0) { $real_p[$i] = $real_r[$i] / $pagu * 100; } else { $real_p[$i] = 0; } } else { $real_r[$i] = real_satker_sdbulan($th, $kdsatker, $i); if ($pagu != 0) { $real_p[$i] = $real_r[$i] / $pagu * 100; } else { $real_p[$i] = 0; } } if ($th == Date("Y")) { if (Date("m") < $i) {
<th rowspan="2"><font color="#006600">Lembaga</font><br /><strong>Satuan Kerja</strong><br/><font color="#0000FF">Kegiatan</font><br/><font color="#993333">Output</font></th> <th rowspan="2">Pagu Anggaran</th> <th colspan="3">Reaisasi Anggaran</th> <th width="10%" rowspan="2">Sisa<br />Anggaran</th> </tr> <tr> <th>Bulan ini </th> <th>s.d Bulan ini </th> <th>(%)</th> </tr> </thead> <tbody> <?php $pagu_menteri = pagu_menteri($th); $real_menteri_bulan = real_menteri_bulan($th, $kdbulan); $real_menteri_sdbulan = real_menteri_sdbulan($th, $kdbulan); $renc_menteri_sdbulan = renc_menteri_sdbulan($th, $kdbulan); ?> <tr> <td align="center" valign="top"> </td> <td align="center" valign="top"><font color="#009900"><strong><?php echo '023'; ?> </strong></font></td> <td align="left"><font color="#009900"><strong><?php echo strtoupper(nm_unit('231000')); ?> </strong></font></td> <td align="right" valign="top"><font color="#009900"><strong><?php echo number_format($pagu_menteri, "0", ",", "."); ?>
$pagu_9 = $Giat['JML09'] / 1000000000; $pagu_10 = $Giat['JML10'] / 1000000000; $pagu_11 = $Giat['JML11'] / 1000000000; $pagu_12 = $Giat['JML12'] / 1000000000; $real_1 = real_menteri_sdbulan($th, 1) / 1000000000; $real_2 = real_menteri_sdbulan($th, 2) / 1000000000; $real_3 = real_menteri_sdbulan($th, 3) / 1000000000; $real_4 = real_menteri_sdbulan($th, 4) / 1000000000; $real_5 = real_menteri_sdbulan($th, 5) / 1000000000; $real_6 = real_menteri_sdbulan($th, 6) / 1000000000; $real_7 = real_menteri_sdbulan($th, 7) / 1000000000; $real_8 = real_menteri_sdbulan($th, 8) / 1000000000; $real_9 = real_menteri_sdbulan($th, 9) / 1000000000; $real_10 = real_menteri_sdbulan($th, 10) / 1000000000; $real_11 = real_menteri_sdbulan($th, 11) / 1000000000; $real_12 = real_menteri_sdbulan($th, 12) / 1000000000; switch ($bl) { case 1: $sbx_grafik_2 = array($real_1); break; case 2: $sbx_grafik_2 = array($real_1, $real_2); break; case 3: $sbx_grafik_2 = array($real_1, $real_2, $real_3); break; case 4: $sbx_grafik_2 = array($real_1, $real_2, $real_3, $real_4); break; case 5: $sbx_grafik_2 = array($real_1, $real_2, $real_3, $real_4, $real_5);
$sql = "select \tsum(RPHPAGU) as RPHPAGU,\r\n\t\t\t\t\tsum(JML01) as JML01,\r\n\t\t\t\t\tsum(JML01+JML02) as JML02,\r\n\t\t\t\t\tsum(JML01+JML02+JML03) as JML03,\r\n\t\t\t\t\tsum(JML01+JML02+JML03+JML04) as JML04,\r\n\t\t\t\t\tsum(JML01+JML02+JML03+JML04+JML05) as JML05,\r\n\t\t\t\t\tsum(JML01+JML02+JML03+JML04+JML05+JML06) as JML06,\r\n\t\t\t\t\tsum(JML01+JML02+JML03+JML04+JML05+JML06+JML07) as JML07,\r\n\t\t\t\t\tsum(JML01+JML02+JML03+JML04+JML05+JML06+JML07+JML08) as JML08,\r\n\t\t\t\t\tsum(JML01+JML02+JML03+JML04+JML05+JML06+JML07+JML08+JML09) as JML09,\r\n\t\t\t\t\tsum(JML01+JML02+JML03+JML04+JML05+JML06+JML07+JML08+JML09+JML10) as JML10,\r\n\t\t\t\t\tsum(JML01+JML02+JML03+JML04+JML05+JML06+JML07+JML08+JML09+JML10+JML11) as JML11,\r\n\t\t\t\t\tsum(JML01+JML02+JML03+JML04+JML05+JML06+JML07+JML08+JML09+JML10+JML11+JML12) as JML12\r\n\t\t\t\t\tfrom d_trktrm WHERE THANG='{$th}' group by THANG"; $aTarik = mysql_query($sql); $Tarik = mysql_fetch_array($aTarik); $pagu_menteri = pagu_menteri($th); $real_menteri_bulan_1 = real_menteri_sdbulan($th, 1) / $pagu_menteri * 100; $real_menteri_bulan_2 = real_menteri_sdbulan($th, 2) / $pagu_menteri * 100; $real_menteri_bulan_3 = real_menteri_sdbulan($th, 3) / $pagu_menteri * 100; $real_menteri_bulan_4 = real_menteri_sdbulan($th, 4) / $pagu_menteri * 100; $real_menteri_bulan_5 = real_menteri_sdbulan($th, 5) / $pagu_menteri * 100; $real_menteri_bulan_6 = real_menteri_sdbulan($th, 6) / $pagu_menteri * 100; $real_menteri_bulan_7 = real_menteri_sdbulan($th, 7) / $pagu_menteri * 100; $real_menteri_bulan_8 = real_menteri_sdbulan($th, 8) / $pagu_menteri * 100; $real_menteri_bulan_9 = real_menteri_sdbulan($th, 9) / $pagu_menteri * 100; $real_menteri_bulan_10 = real_menteri_sdbulan($th, 10) / $pagu_menteri * 100; $real_menteri_bulan_11 = real_menteri_sdbulan($th, 11) / $pagu_menteri * 100; $real_menteri_bulan_12 = real_menteri_sdbulan($th, 12) / $pagu_menteri * 100; ?> <tr> <td rowspan="2" align="center"><font color="#009900"><strong><?php echo '023'; ?> </strong></font></td> <td rowspan="2" align="left"><font color="#009900"><strong><?php echo strtoupper(nm_unit('2320000')); ?> </strong></font></td> <td rowspan="2" align="right"><font color="#009900"><strong><?php echo number_format($pagu_menteri, "0", ",", "."); ?> </strong></font></td> <td align="right" valign="top"><font color="#009900"><strong><?php
$pagu_9 = $Giat['JML09'] / $Giat['RPHPAGU'] * 100; $pagu_10 = $Giat['JML10'] / $Giat['RPHPAGU'] * 100; $pagu_11 = $Giat['JML11'] / $Giat['RPHPAGU'] * 100; $pagu_12 = $Giat['JML12'] / $Giat['RPHPAGU'] * 100; $real_1 = real_menteri_sdbulan($th, 1) / $Giat['RPHPAGU'] * 100; $real_2 = real_menteri_sdbulan($th, 2) / $Giat['RPHPAGU'] * 100; $real_3 = real_menteri_sdbulan($th, 3) / $Giat['RPHPAGU'] * 100; $real_4 = real_menteri_sdbulan($th, 4) / $Giat['RPHPAGU'] * 100; $real_5 = real_menteri_sdbulan($th, 5) / $Giat['RPHPAGU'] * 100; $real_6 = real_menteri_sdbulan($th, 6) / $Giat['RPHPAGU'] * 100; $real_7 = real_menteri_sdbulan($th, 7) / $Giat['RPHPAGU'] * 100; $real_8 = real_menteri_sdbulan($th, 8) / $Giat['RPHPAGU'] * 100; $real_9 = real_menteri_sdbulan($th, 9) / $Giat['RPHPAGU'] * 100; $real_10 = real_menteri_sdbulan($th, 10) / $Giat['RPHPAGU'] * 100; $real_11 = real_menteri_sdbulan($th, 11) / $Giat['RPHPAGU'] * 100; $real_12 = real_menteri_sdbulan($th, 12) / $Giat['RPHPAGU'] * 100; switch ($bl) { case 1: $sbx_grafik_2 = array($real_1); break; case 2: $sbx_grafik_2 = array($real_1, $real_2); break; case 3: $sbx_grafik_2 = array($real_1, $real_2, $real_3); break; case 4: $sbx_grafik_2 = array($real_1, $real_2, $real_3, $real_4); break; case 5: $sbx_grafik_2 = array($real_1, $real_2, $real_3, $real_4, $real_5);
$aTarik = mysql_query($sql); $Tarik = mysql_fetch_array($aTarik); $pagu_menteri = pagu_menteri($th); $real_menteri_bulan_1 = real_menteri_bulan($th, 1); $real_menteri_bulan_2 = real_menteri_bulan($th, 2); $real_menteri_bulan_3 = real_menteri_bulan($th, 3); $real_menteri_bulan_4 = real_menteri_bulan($th, 4); $real_menteri_bulan_5 = real_menteri_bulan($th, 5); $real_menteri_bulan_6 = real_menteri_bulan($th, 6); $real_menteri_bulan_7 = real_menteri_bulan($th, 7); $real_menteri_bulan_8 = real_menteri_bulan($th, 8); $real_menteri_bulan_9 = real_menteri_bulan($th, 9); $real_menteri_bulan_10 = real_menteri_bulan($th, 10); $real_menteri_bulan_11 = real_menteri_bulan($th, 11); $real_menteri_bulan_12 = real_menteri_bulan($th, 12); $real_menteri_sdbulan = real_menteri_sdbulan($th, 12); ?> <tr> <td rowspan="2" align="center"><font color="#009900"><strong><?php echo '023'; ?> </strong></font></td> <td rowspan="2" align="left"><font color="#009900"><strong><?php echo strtoupper(nm_unit('2320000')); ?> </strong></font></td> <td rowspan="2" align="right"><font color="#009900"><strong><?php echo number_format($pagu_menteri, "0", ",", "."); ?> </strong></font></td> <td align="right" valign="top"><font color="#009900"><strong><?php