예제 #1
0
$sql = "SELECT * FROM thbp_kak_output WHERE kdgiat = '" . $Kegiatan_bp[kdgiat] . "' and th = '" . $Kegiatan_bp[th] . "' order by kdoutput";
$oOutput = mysql_query($sql);
$n = 0;
while ($Output = mysql_fetch_array($oOutput)) {
    ?>
          <tr> 
            <td><?php 
    echo $Output['kdoutput'];
    ?>
</td>
            <td><?php 
    echo nm_output($Output['kdgiat'] . $Output['kdoutput']);
    ?>
</td>
            <td align="center"><?php 
    echo $Output['volume'] . ' ' . nm_satuan($Output['kdsatuan']);
    ?>
</td>
            <td align="right"><?php 
    echo number_format($Output['jml_anggaran'], "0", ",", ".");
    ?>
</td>
            <td align="left"><?php 
    echo $Output['id_pjawab'];
    ?>
&nbsp;</td>
          </tr>
          <?php 
}
?>
        </table></td>
예제 #2
0
        ?>
">
					<td align="center"><?php 
        echo $k + 1;
        ?>
</td>
					<td align="center"><?php 
        echo $col[1][$k];
        ?>
</td>
					<td align="left"><?php 
        echo nm_output($kdgiat . $col[1][$k]);
        ?>
</td>
					<td align="center"><?php 
        echo $col[2][$k] . ' ' . nm_satuan($col[3][$k]);
        ?>
</td>
					<td align="right"><?php 
        echo number_format($col[4][$k], "0", ",", ".");
        ?>
</td>
					<td align="center">
						<a href="index.php?p=119&u=<?php 
        echo $u;
        ?>
&g=<?php 
        echo $kdgiat;
        ?>
&t=<?php 
        echo $th;
예제 #3
0
    <tr class="<?php 
            echo $class;
            ?>
"> 
      <td align="center">&nbsp;</td>
      <td align="left">&nbsp;</td>
      <td align="center"><?php 
            echo $List_kak_output['kdoutput'];
            ?>
</td>
      <td width="47%" align="left"><?php 
            echo nm_output($kdgiat . $List_kak_output['kdoutput']);
            ?>
</td>
      <td width="9%" align="center"><?php 
            echo $List_kak_output['volume'] . ' ' . nm_satuan($List_kak_output['kdsatuan']);
            ?>
&nbsp;</td>
      <td align="right"><?php 
            echo number_format($List_kak_output['jml_anggaran'], "0", ",", ".");
            ?>
</td>
      <td align="left"><?php 
            echo $List_kak_output['id_pjawab'];
            ?>
</td>
      <?php 
            $kdoutput = $List_kak_output['kdoutput'];
            $oList_kak_output_uk = mysql_query("SELECT id FROM thuk_kak_output WHERE th = '{$th}' AND kdgiat = '{$kdgiat}' AND kdoutput='{$kdoutput}'");
            $List_kak_output_uk = mysql_fetch_array($oList_kak_output_uk);
            ?>
예제 #4
0
$pdf->SetX($margin + $wo[0] + $wo[1]);
$pdf->Cell($wo[2], $ln * 2, 'Output', $border, 0, 'C');
$pdf->SetX($margin + $wo[0] + $wo[1] + $wo[2]);
$pdf->Cell($wo[3], $ln * 2, 'Volume', $border, 0, 'C');
$pdf->SetX($margin + $wo[0] + $wo[1] + $wo[2] + $wo[3]);
$pdf->Cell($wo[4], $ln * 2, 'Anggaran', $border, 0, 'C');
$pdf->SetX($margin + $wo[0] + $wo[1] + $wo[2] + $wo[3] + $wo[4]);
$pdf->Cell($wo[5], $ln * 2, 'Penanggung Jawab', $border, 1, 'C');
$lno = 4;
$sql = "SELECT * FROM thbp_kak_output WHERE kdgiat = '" . $Kegiatan_bp[kdgiat] . "' and th = '" . $Kegiatan_bp[th] . "' order by kdoutput";
$oOutput = mysql_query($sql);
while ($Output = mysql_fetch_array($oOutput)) {
    $jml_anggaran += $Output['jml_anggaran'];
    $arrNomor = $pdf->SplitToArray($wo[1], $ln, $Output['kdoutput']);
    $arrUraian = $pdf->SplitToArray($wo[2], $ln, trim(nm_output($Output['kdgiat'] . $Output['kdoutput'])));
    $arrVolume = $pdf->SplitToArray($wo[3], $ln, trim($Output['volume'] . ' ' . nm_satuan($Output['kdsatuan'])));
    $arrAnggaran = $pdf->SplitToArray($wo[4], $ln, number_format($Output['jml_anggaran'], "0", ",", "."));
    $arrNama = $pdf->SplitToArray($wo[5], $ln, trim($Output['id_pjawab']));
    if ($max < count($arrUraian)) {
        $max = count($arrUraian);
    }
    if ($max < count($arrNama)) {
        $max = count($arrNama);
    }
    for ($i = 0; $i < $max; $i++) {
        $pdf->SetX($margin + $wo[0]);
        $pdf->Cell($wo[1], $lno, $arrNomor[$i], 'LR', 0, 'C');
        $pdf->SetX($margin + $wo[0] + $wo[1]);
        $pdf->Cell($wo[2], $lno, $arrUraian[$i], 'LR', 0, 'L');
        $pdf->SetX($margin + $wo[0] + $wo[1] + $wo[2]);
        $pdf->Cell($wo[3], $lno, $arrVolume[$i], 'LR', 0, 'C');