Beispiel #1
0
        } else {
            $class = "row1";
        }
        ?>
    <tr bgcolor="#B9EEFF"> 
      <td colspan="3" align="left" valign="top" class="row7"><?php 
        echo ket_unit(substr($col[2][$k], 0, 3) . '000');
        ?>
      </td>
      <td align="right" valign="top" class="row7"><?php 
        echo number_format($col[4][$k], "0", ",", ".");
        ?>
 </td>
      <td align="right" valign="top" class="row7">
	  <?php 
        if (renja_output_deputi($th, substr($col[2][$k], 0, 3)) != $col[5][$k]) {
            ?>
	  <font color="#FF0000"><?php 
            echo number_format($col[5][$k], "0", ",", ".");
            ?>
</font>
	  <?php 
        } else {
            echo number_format($col[5][$k], "0", ",", ".");
            ?>
	  <?php 
        }
        ?>
	  </td>
      <td width="13%" align="center" valign="top" class="row7"> </td>
    </tr>
        }
        ?>
	  </td>
      <td align="right" valign="top" class="row7">
	  <?php 
        if (renja_output_deputi($th, substr($col[2][$k], 0, 3)) != $col[5][$k]) {
            ?>
	  <font color="#660033"><?php 
            echo renja_output_deputi($th, substr($col[2][$k], 0, 3));
            ?>
</font>
	  <?php 
        } else {
            ?>
	  <?php 
            echo renja_output_deputi($th, substr($col[2][$k], 0, 3));
            ?>
	  <?php 
        }
        ?>
	  </td>
    </tr>
<?php 
        switch ($xlevel) {
            case '3':
                $sql = "SELECT * FROM thbp_kak_kegiatan WHERE th = '{$th}' and kdunitkerja = '{$xkdunit}' order by concat(kdunitkerja,kdgiat)";
                break;
            case '4':
                $sql = "SELECT * FROM thbp_kak_kegiatan WHERE th = '{$th}' and left(kdunitkerja,3) = '{$kddeputi_dt}' order by concat(kdunitkerja,kdgiat)";
                break;
            case '5':