示例#1
0
		  <th align="center">11</th>
		  <th align="center">12</th>
		  <th align="center">13</th>
		  <th align="center">14</th>
		  <th align="center">15</th>
		  <th align="center">16</th>
		  <th align="center">17</th>
		  <th align="center">18</th>
		</tr>
	</thead>
	<tbody>
	<?php 
$no = 0;
while ($skp_dtl = mysql_fetch_array($qu_3)) {
    $no += 1;
    $perhitungan = nilai_perhitungan($nib_penilai, $id_skp, $skp_dtl['no_tugas']);
    $total_hitung += $perhitungan;
    ?>
				<tr class="<?php 
    echo $class;
    ?>
">
					<td align="center" valign="top"><?php 
    echo $skp_dtl['no_tugas'];
    ?>
</td>
					<td align="left" valign="top"><?php 
    echo $skp_dtl['nama_tugas'];
    ?>
</td>
					<td align="center" valign="top"><?php 
        ?>
" disabled="disabled"/>
					<input name="biaya_nilai[]" type="hidden" id="biaya_nilai" size="5" value="<?php 
        echo nilai_biaya($nib_penilai, $id_skp, $skp_dtl['no_tugas']);
        ?>
"/><input name="noxyz1[]" id="noxyz1" type="hidden" size="5" value="<?php 
        echo $skp_dtl['biaya_target'];
        ?>
"/>
					<?php 
    }
    ?>
								</td>
			        <td align="center" valign="top">
                    <input name="penghitungan[]" id="penghitungan"  type="text" size="5" value="<?php 
    echo number_format(nilai_perhitungan($nib_penilai, $id_skp, $skp_dtl['no_tugas']), "2", ".", ",");
    ?>
"/></td>
		          <td align="center" valign="top">
                  
                  <!--ajie 18 june-->
                  
					<input name="nilai_capaian[]" id="nilai_capaian" type="text" size="5" value="<?php 
    echo number_format(nilai_capaian($nib_penilai, $id_skp, $skp_dtl['no_tugas']), "2", ".", ",");
    ?>
" onFocus="startCalculate(<?php 
    echo $no - 1;
    ?>
)" onBlur="stopCalc()"/></td>
				  <td align="center" valign="top">
                  
$y = $pdf->GetY();
$pdf->SetXY($margin + $w2[0] + $w2[1] + $w2[2] * 2 + $w2[3] * 2 + $w2[4] + $w2[5] + $w2[6], $y);
$pdf->Cell($w2[4], $ln, 'Kualitas', $noborder, 0, 'C');
$pdf->SetXY($margin + $w2[0] + $w2[1] + $w2[2] * 2 + $w2[3] * 2 + $w2[4] + $w2[5] + $w2[6], $y + 4);
$pdf->Cell($w2[4], $ln, '/Mutu', $noborder, 0, 'C');
$pdf->SetXY($margin + $w2[0] + $w2[1] + $w2[2] * 2 + $w2[3] * 2 + $w2[4] + $w2[5] + $w2[6], $y);
$pdf->Cell($w2[4], $ln * 2, '', $border, 0, 'C');
$pdf->SetX($margin + $w2[0] + $w2[1] + $w2[2] * 2 + $w2[3] * 2 + $w2[4] * 2 + $w2[5] + $w2[6]);
$pdf->Cell($w2[5], $ln * 2, 'Waktu', $border, 0, 'C');
$pdf->SetX($margin + $w2[0] + $w2[1] + $w2[2] * 2 + $w2[3] * 2 + $w2[4] * 2 + $w2[5] * 2 + $w2[6]);
$pdf->Cell($w2[6], $ln * 2, 'Biaya', $border, 1, 'C');
$pdf->SetFont($font, '', $size - 3);
$oList = mysql_query("SELECT * FROM dtl_skp WHERE id_skp = '{$id_skp}' ORDER BY no_tugas");
while ($List = mysql_fetch_array($oList)) {
    $no += 1;
    $perhitungan = nilai_perhitungan($nib_penilai, $id_skp, $List['no_tugas']);
    $total_hitung += $perhitungan;
    $max = 0;
    $arrNo = $pdf->SplitToArray($w2[0], $ln, $List['no_tugas'] . '.');
    $arrUraian = $pdf->SplitToArray($w2[1], $ln, trim($List['nama_tugas']));
    $arrAk_kredit = $pdf->SplitToArray($w2[2], $ln, number_format($List['ak_target'], "4", ",", "."));
    $arrOutput = $pdf->SplitToArray($w2[3], $ln, $List['jumlah_target'] . ' ' . trim($List['satuan_jumlah']));
    $arrMutu = $pdf->SplitToArray($w2[4], $ln, $List['kualitas_target'] . ' %');
    $arrWaktu = $pdf->SplitToArray($w2[5], $ln, $List['waktu_target'] . ' ' . trim($List['satuan_waktu']));
    $arrBiaya = $pdf->SplitToArray($w2[6], $ln, number_format($List['biaya_target'], "0", ",", "."));
    $arrAk_kredit_r = $pdf->SplitToArray($w2[2], $ln, number_format($List['ak_real_awal'], "4", ",", "."));
    $arrOutput_r = $pdf->SplitToArray($w2[3], $ln, nilai_jumlah($nib_penilai, $id_skp, $List['no_tugas']) . ' ' . trim($List['satuan_jumlah']));
    $arrMutu_r = $pdf->SplitToArray($w2[4], $ln, nilai_kualitas($nib_penilai, $id_skp, $List['no_tugas']) . ' %');
    $arrWaktu_r = $pdf->SplitToArray($w2[5], $ln, nilai_waktu($nib_penilai, $id_skp, $List['no_tugas']) . ' ' . trim($List['satuan_waktu']));
    $arrBiaya_r = $pdf->SplitToArray($w2[6], $ln, number_format(nilai_biaya($nib_penilai, $id_skp, $List['no_tugas']), "0", ",", "."));
    $arrHitung = $pdf->SplitToArray($w2[7], $ln, number_format($perhitungan, "2", ",", "."));