} ?> <table width="551" cellspacing="1" class="admintable"> <tr> <td width="115" class="key">Kegiatan</td> <td width="427"><input type="text" size="60" readonly="readonly" value="<?php echo nm_giat($value[2]); ?> " /></td> </tr> <tr> <td class="key">Output</td> <td><textarea readonly="readonly" cols="60" rows="3"><?php echo nm_output($value[2] . $value[3]); ?> </textarea></td> </tr> <tr> <td class="key">Indikator</td> <td><textarea readonly="readonly" cols="60" rows="3"><?php echo $value[4]; ?> </textarea></td> </tr> <tr> <td> </td> <td> <form name="form" method="post" action="index.php?p=<?php
$sql = "select VOL from d_output WHERE THANG='{$th}' and KDSATKER='{$kdsatker}' and KDGIAT='{$kdgiat}' and KDOUTPUT='{$kdoutput}'"; $aOutput_vol = mysql_query($sql); $Output_vol = mysql_fetch_array($aOutput_vol); $rencana_fisik = rencana_fisik($th, $kdgiat, $kdoutput, $kdtriwulan); $realisasi_fisik = realisasi_fisik($th, $kdgiat, $kdoutput, $kdtriwulan); ?> <tr class="<?php echo $class; ?> "> <td align="center" valign="top"><span class="style2"><?php echo $kdoutput; ?> </span></td> <td align="left" valign="top"><span class="style2"><?php echo nm_output($kdgiat . $kdoutput); ?> </span></td> <td align="right" valign="top"><span class="style2"><?php echo number_format($Output['pagu_output'], "0", ",", "."); ?> </span></td> <td align="right" valign="top"><span class="style2"><?php echo number_format($Output['rencana_output'], "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
<td width="24%" align="center">Penanggung<br> Jawab</td> </tr> <?php $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']; ?> </td> </tr>
} ?> <tr class="<?php echo $class; ?> "> <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
$kdgiat = $col[3][$k]; $oList_kak_output = mysql_query("SELECT * FROM thbp_kak_output WHERE th = '{$th}' AND kdgiat = '{$kdgiat}' "); while ($List_kak_output = mysql_fetch_array($oList_kak_output)) { ?> <tr class="<?php echo $class; ?> "> <td align="center"> </td> <td align="left"> </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']); ?> </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
echo $k + 1; ?> </td> <td align="left"> <?php if ($col[2][$k] != $col[2][$k - 1]) { ?> <?php echo nm_giat($col[2][$k]); ?> <?php } ?> </td> <td align="left"><?php echo nm_output($col[2][$k] . $col[3][$k]); ?> <br /></td> <td align="left"><?php echo $col[4][$k]; ?> </td> <td align="left"> </td> <td align="center"><?php echo $col[5][$k]; ?> </td> <td align="center"><?php echo $col[6][$k]; ?> </td>
</tr> <?php $sql = "select KDOUTPUT, sum(JUMLAH) as pagu_output from {$table} WHERE THANG='{$th}' and KDSATKER='{$kdsatker}' and KDGIAT='{$kdgiat}' group by KDOUTPUT"; $aOutput = mysql_query($sql); while ($Output = mysql_fetch_array($aOutput)) { ?> <tr class="<?php echo $class; ?> "> <td align="center"><font color="#FF0000"><?php echo $Output['KDOUTPUT']; ?> </font></td> <td colspan="5" align="left"><font color="#FF0000"><?php echo nm_output($kdgiat . $Output['KDOUTPUT']); ?> </font></td> <td align="right"><font color="#FF0000"><?php echo number_format($Output['pagu_output'], "0", ",", "."); ?> </font></td> </tr> <?php $sql = "select KDSOUTPUT, sum(JUMLAH) as pagu_soutput from {$table} WHERE THANG='{$th}' and KDSATKER='{$kdsatker}' and KDGIAT='{$kdgiat}' and KDOUTPUT='{$Output['KDOUTPUT']}' group by KDSOUTPUT"; $aSOutput = mysql_query($sql); while ($SOutput = mysql_fetch_array($aSOutput)) { ?> <tr class="<?php echo $class; ?>
$pdf->Cell($wo[1], $ln * 2, 'Kode', $border, 0, 'C'); $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]);
<tr> <td class="key"> </td> <td> </td> </tr> <tr> <td class="key">KEGIATAN</td> <td><?php echo '[' . $Output_bp['kdgiat'] . '] ' . nm_giat($Output_bp['kdgiat']); ?> </td> </tr> <tr> <td class="key">OUTPUT</td> <td><?php echo '[' . $Output_bp['kdoutput'] . '] ' . nm_output($Output_bp['kdgiat'] . $Output_bp['kdoutput']); ?> </td> </tr> <tr> <td class="key"> </td> <td> </td> </tr> <tr> <td colspan="2" class="key"><div align="center"><strong>Capaian/Target Triwulan I </strong></div></td> </tr> <tr> <td class="key">Persentase</td> <td><input type="text" name="<?php echo $field[5];
break; case '6': $sql = "SELECT * FROM thbp_kak_output WHERE th = '{$th}' and kdgiat = '{$kdgiat}' and kdunitkerja = '{$kdunitkerja}' ORDER BY kdoutput"; break; default: $sql = "SELECT * FROM thbp_kak_output WHERE th = '{$th}' and kdgiat = '{$kdgiat}' and kdunitkerja = '{$kdunitkerja}' ORDER BY kdoutput"; break; } $oOutput = mysql_query($sql); while ($Output = mysql_fetch_array($oOutput)) { $kdoutput = $Output['kdoutput']; $thn = $th - 1; $pdf->SetFont($font, '', $size - 2); $max = 0; $arrKode = $pdf->SplitToArray($w[0], $ln, $kdgiat . '.' . $kdoutput); $arrUraian = $pdf->SplitToArray($w[1], $ln, trim(nm_output($kdgiat . $kdoutput))); $arrPaguDipa = $pdf->SplitToArray($w[2], $ln, number_format(pagu_output($thn, $kdunitkerja, $kdgiat, $kdoutput), "0", ",", ".")); $arrPaguIni = $pdf->SplitToArray($w[3], $ln, number_format($Output['jml_anggaran'], "0", ",", ".")); if ($max < count($arrUraian)) { $max = count($arrUraian); } for ($i = 0; $i < $max; $i++) { $pdf->SetX($margin); $pdf->Cell($w[0], $ln, $arrKode[$i], 'LR', 0, 'C'); $pdf->SetX($margin + $w[0]); $pdf->Cell($w[1], $ln, $arrUraian[$i], 'LR', 0, 'L'); $pdf->SetX($margin + $w[0] + $w[1]); $pdf->Cell($w[2], $ln, $arrPaguDipa[$i], 'LR', 0, 'R'); $pdf->SetX($margin + $w[0] + $w[1] + $w[2]); $pdf->Cell($w[3], $ln, $arrPaguIni[$i], 'LR', 1, 'R'); }
} ?> <table width="551" cellspacing="1" class="admintable"> <tr> <td width="115" class="key">Kegiatan</td> <td width="427"><input type="text" size="60" readonly="readonly" value="<?php echo nm_giat($value[3]); ?> " /></td> </tr> <tr> <td class="key">Output</td> <td><textarea readonly="readonly" cols="60" rows="3"><?php echo nm_output($value[3] . $value[4]); ?> </textarea></td> </tr> <tr> <td> </td> <td> <form name="form" method="post" action="index.php?p=<?php echo $_GET['p']; ?> "> <div class="button2-right"> <div class="prev"> <a onclick="Back('index.php?p=<?php echo $p_next;
<tr> <td class="key"> </td> <td> </td> </tr> <tr> <td class="key">KEGIATAN</td> <td><?php echo '[' . $Output_capaian['kdgiat'] . '] ' . nm_giat($Output_capaian['kdgiat']); ?> </td> </tr> <tr> <td class="key">OUTPUT</td> <td><?php echo '[' . $Output_capaian['kdoutput'] . '] ' . nm_output($Output_capaian['kdgiat'] . $Output_capaian['kdoutput']); ?> </td> </tr> <tr> <td class="key"> </td> <td> </td> </tr> <?php if ($kdtriwulan == 1) { ?> <tr> <td colspan="2" class="key"><div align="center"><strong>Triwulan I (B3) </strong></div></td> </tr> <tr> <td class="key">Kendala</td>