Example #1
0
                    ?>
</span></td>
      <td align="center" valign="top"><span class="style2"><?php 
                    echo number_format($Output['rencana_output'] / $Output['pagu_output'] * 100, "2", ",", ".");
                    ?>
</span></td>
      <td align="right" valign="top"><span class="style2"><?php 
                    echo number_format($real_output, "0", ",", ".");
                    ?>
</span></td>
      <td align="center" valign="top"><span class="style2"><?php 
                    echo number_format($real_output / $Output['pagu_output'] * 100, "2", ",", ".");
                    ?>
</span></td>
      <td align="center" valign="top"><?php 
                    echo $Output_vol['VOL'] . ' ' . sat_output($kdgiat . $kdoutput);
                    ?>
</td>
      <td align="center" valign="top"><?php 
                    if ($rencana_fisik > 0) {
                        echo $rencana_fisik . ' %';
                    }
                    ?>
</span></td>
      <td align="center" valign="top"><?php 
                    if ($realisasi_fisik > 0) {
                        echo $realisasi_fisik . ' %';
                    }
                    ?>
</span></td>
    </tr>
Example #2
0
        mysql_query($sql);
        $row = mysql_fetch_array($qu);
        $sql = "SELECT KDPROGRAM FROM t_giat WHERE KDGIAT = '" . $row['KDGIAT'] . "'";
        $qu3 = mysql_query($sql);
        $row3 = mysql_fetch_array($qu3);
        $sql = "INSERT INTO thbp_kak_kegiatan VALUES ('','" . $tahun . "','" . $row2['KDUNITKERJA'] . "','" . $row['KDDEPT'] . "','" . $row['KDUNIT'] . "','" . $row3['KDPROGRAM'] . "','" . $row['KDGIAT'] . "','','" . $row['anggaran_dipa'] . "','','{$kdsatker}')";
        # echo $sql.";<br>";
        mysql_query($sql);
        #}
        $sql = "SELECT KDOUTPUT, SUM(JUMLAH) as dipa_output FROM d_item WHERE THANG='{$tahun}' and KDGIAT='{$row['KDGIAT']}' and KDSATKER = '{$kdsatker}' GROUP BY KDOUTPUT ORDER BY KDOUTPUT";
        $qu4 = mysql_query($sql);
        while ($row4 = mysql_fetch_array($qu4)) {
            $sql = "SELECT VOL FROM d_output WHERE THANG='{$tahun}' and KDDEPT='{$row['KDDEPT']}' and KDUNIT='{$row['KDUNIT']}' and KDPROGRAM='{$row3['KDPROGRAM']}' and KDGIAT='{$row['KDGIAT']}' and KDOUTPUT='{$row4['KDOUTPUT']}'";
            $qu5 = mysql_query($sql);
            $row5 = mysql_fetch_array($qu5);
            $sat_output = sat_output($row['KDGIAT'] . $row4['KDOUTPUT']);
            $sql = "INSERT INTO thbp_kak_output VALUES ('','" . $tahun . "','" . $row2['KDUNITKERJA'] . "','" . $row['KDGIAT'] . "','" . $row4['KDOUTPUT'] . "','" . $row4['dipa_output'] . "','" . $row5['VOL'] . "','{$sat_output}','{$kdsatker}')";
            #echo $sql.";<br>";
            mysql_query($sql);
            #}
        }
        ?>
			
			<meta http-equiv="refresh" content="0;URL=index.php?p=<?php 
        echo $p_next;
        ?>
&cari=<?php 
        echo $tahun;
        ?>
"><?php 
    }