コード例 #1
0
ファイル: pagu_indikatif.php プロジェクト: abbeet/server39
    $sql = "SELECT SUM(jml_anggaran_renstra) as jml_anggaran_renstra, SUM(jml_anggaran_dipa) as jml_anggaran_dipa,\r\n\t\t\t               SUM(jml_anggaran_indikatif) as jml_anggaran_indikatif FROM thbp_kak_kegiatan WHERE th = '{$th}' ";
    $qu = mysql_query($sql);
    $row = mysql_fetch_array($qu);
    ?>
    <tr> 
      <td colspan="3"><strong><?php 
    echo nm_unit('480000');
    ?>
</strong></td>
      <td align="right"><strong><?php 
    echo number_format($row['jml_anggaran_dipa'], "0", ",", ".");
    ?>
</strong></td>
      <td align="right"><strong>
        <?php 
    if (renja_output_lembaga($th) != $row['jml_anggaran_indikatif']) {
        ?>
        <font color="#FF0000"><?php 
        echo number_format($row['jml_anggaran_indikatif'], "0", ",", ".");
        ?>
</font>
        <?php 
    } else {
        ?>
        <?php 
        echo number_format($row['jml_anggaran_indikatif'], "0", ",", ".");
        ?>
        <?php 
    }
    ?>
        </strong></td>
コード例 #2
0
    }
    ?>
        </strong></td>
      <td align="right"><strong>
      <?php 
    if (renja_output_lembaga($th) != $row['jml_anggaran_indikatif']) {
        ?>
	  <font color="#660033"><?php 
        echo renja_output_lembaga($th);
        ?>
</font>
	  <?php 
    } else {
        ?>
	  <?php 
        echo renja_output_lembaga($th);
        ?>
	  <?php 
    }
    ?>
</strong>	  </td>
    </tr>
    
    <?php 
    foreach ($col[0] as $k => $val) {
        $kddeputi_dt = substr($col[2][$k], 0, 3);
        $th = $col[1][$k];
        if ($k % 2 == 1) {
            $class = "row0";
        } else {
            $class = "row1";