?> </td> <td class="align-center"></td> </tr> <tr> <td class="align-right">Nilai rata-rata</td> <td class="align-center"><?php if (isset($pk->rata_perilaku_kerja)) { echo $pk->rata_perilaku_kerja; } else { echo "0"; } ?> </td> <td class="align-center"><?php echo keterangan_nilai($pk->rata_perilaku_kerja); ?> </td> </tr> <tr> <td class="align-right">Bobot</td> <td class="align-center">40%</td> <td class="align-center"></td> </tr> <tr> <td class="align-right">Nilai Perilaku Kerja</td> <td class="align-center"><?php if (isset($pk->nilai_perilaku_kerja)) { echo $pk->nilai_perilaku_kerja; } else { echo "0";
?> </td> <td><?php echo $item->nama_pejabat_penilai; ?> </td> <td><?php echo $item->nama_atasan_pejabat_penilai; ?> </td> <td><?php echo $item->nilai_prestasi_kerja; ?> </td> <td><?php echo keterangan_nilai($item->nilai_prestasi_kerja); ?> </td> <td><?php echo $item->status; ?> </td> <td> <div class="visible-md visible-lg hidden-sm hidden-xs action-buttons"> <button id="detailpenilaian" value="<?php echo $item->id; ?> " class="btn btn-primary btn-xs padding-20" rel="tooltip" title="Lihat Detail Penilaian" data-placement="bottom"> <i class="icon-eye-open"></i>Detail </button> <button id="unduh_pdf" value="<?php
public function unduh_pdf($id) { $pk = $this->model_penilaian_prestasi_kerja->get($id); $tugas_jabatan = $this->model_penilaian_skp->get_where(array('id_prestasi_kerja' => $pk->id, 'jenis_kegiatan' => 1)); $tugas_tambahan = $this->model_penilaian_skp->get_where(array('id_prestasi_kerja' => $pk->id, 'jenis_kegiatan' => 2)); $kreatifitas = $this->model_penilaian_skp->get_where(array('id_prestasi_kerja' => $pk->id, 'jenis_kegiatan' => 3)); $pegawai = $this->model_pegawai->get($pk->nip); $detail_pegawai = $this->model_pegawai->get_detail($pk->nip); $jabatan_pegawai = $this->model_jabatan->get($pegawai->id_jabatan); $pejabat_penilai = $this->model_pegawai->get($pk->nip_pejabat_penilai); $detail_pejabat_penilai = $this->model_pegawai->get_detail($pk->nip_pejabat_penilai); $jabatan_pejabat_penilai = $this->model_jabatan->get($pejabat_penilai->id_jabatan); $atasan_pejabat_penilai = $this->model_pegawai->get($pk->nip_atasan_pejabat_penilai); $detail_atasan_pejabat_penilai = $this->model_pegawai->get_detail($pk->nip_atasan_pejabat_penilai); $jabatan_atasan_pejabat_penilai = $this->model_jabatan->get($atasan_pejabat_penilai->id_jabatan); $this->load->library('fpdf'); $this->fpdf->FPDF('L', 'cm', 'A4'); $this->fpdf->Open(); $this->fpdf->SetMargins(0.5, 1, 1, 0.5); //Menambahkan Halaman $this->fpdf->AddPage(); //font $this->fpdf->SetFont('Arial', 'B', 16); //cetak text PDF $teks = 'FORMULIR SASARAN KERJA'; $teks2 = 'PEGAWAI NEGERI SIPIL'; $this->fpdf->Cell(0, 0, $teks, 0, 0, 'C'); //pindah baris $this->fpdf->Ln(0.7); $this->fpdf->Cell(0, 0, $teks2, 2, 0, 'C'); //tabel $this->fpdf->ln(1); $x = 1; //lebar $x_merger = 15; $tb = 0.5; // tinggi tabel $this->fpdf->SetX($x); $this->fpdf->SetFont('Arial', '', 8); $this->fpdf->Cell(1, $tb, 'No', 1, 0, 'C'); $this->fpdf->Cell(12, $tb, 'I. PEJABAT PENILAI', 1, 0, 'C'); $this->fpdf->Cell(1, $tb, 'No', 1, 0, 'C'); $this->fpdf->Cell(14, $tb, 'II.PEGAWAI NEGERI SIPIL YANG DINILAI', 1, 0, 'C'); //ganti baris $this->fpdf->Ln(); $this->fpdf->SetX($x); $this->fpdf->Cell(1, $tb, '1', 1, 0, 'C'); $this->fpdf->Cell(4, $tb, 'Nama', 1, 0, 'L'); $this->fpdf->Cell(8, $tb, $pk->nama_pejabat_penilai, 1, 0, 'L'); $this->fpdf->Cell(1, $tb, '1', 1, 0, 'C'); $this->fpdf->Cell(4, $tb, 'Nama', 1, 0, 'L'); $this->fpdf->Cell(10, $tb, $pk->nama_atasan_pejabat_penilai, 1, 0, 'L'); //ganti baris $this->fpdf->Ln(); $this->fpdf->SetX($x); $this->fpdf->Cell(1, $tb, '2', 1, 0, 'C'); $this->fpdf->Cell(4, $tb, 'NIP', 1, 0, 'L'); $this->fpdf->Cell(8, $tb, $pk->nip_pejabat_penilai, 1, 0, 'L'); $this->fpdf->Cell(1, $tb, '2', 1, 0, 'C'); $this->fpdf->Cell(4, $tb, 'NIP', 1, 0, 'L'); $this->fpdf->Cell(10, $tb, $pk->nip_atasan_pejabat_penilai, 1, 0, 'L'); //ganti baris $this->fpdf->Ln(); $this->fpdf->SetX($x); $this->fpdf->Cell(1, $tb, '3', 1, 0, 'C'); $this->fpdf->Cell(4, $tb, 'Pangkat/Gol.Ruang', 1, 0, 'L'); $this->fpdf->Cell(8, $tb, $detail_pejabat_penilai->peg_gol_pangkat, 1, 0, 'L'); $this->fpdf->Cell(1, $tb, '3', 1, 0, 'C'); $this->fpdf->Cell(4, $tb, 'Pangkat/Gol.Ruang', 1, 0, 'L'); $this->fpdf->Cell(10, $tb, $detail_atasan_pejabat_penilai->peg_gol_pangkat, 1, 0, 'L'); //ganti baris $this->fpdf->Ln(); $this->fpdf->SetX($x); $this->fpdf->Cell(1, $tb, '4', 1, 0, 'C'); $this->fpdf->Cell(4, $tb, 'Jabatan', 1, 0, 'L'); $this->fpdf->Cell(8, $tb, $jabatan_pejabat_penilai->deskripsi, 1, 0, 'L'); $this->fpdf->Cell(1, $tb, '4', 1, 0, 'C'); $this->fpdf->Cell(4, $tb, 'Jabatan', 1, 0, 'L'); $this->fpdf->Cell(10, $tb, $jabatan_atasan_pejabat_penilai->deskripsi, 1, 0, 'L'); //ganti baris $this->fpdf->Ln(); $this->fpdf->SetX($x); $this->fpdf->Cell(1, 1, 'NO', 1, 0, 'C'); $this->fpdf->Cell(12, 1, 'III. KEGIATAN TUGAS JABATAN', 1, 0, 'C'); $this->fpdf->Cell(1, 1, 'AK', 1, 0, 'C'); $this->fpdf->Cell(14, $tb, 'TARGET', 1, 0, 'C'); $this->fpdf->Ln(); $this->fpdf->SetX($x_merger); $this->fpdf->Cell(4, $tb, 'Kuant/Output', 1, 0, 'C'); $this->fpdf->Cell(3, $tb, 'Kual/Mutu', 1, 0, 'C'); $this->fpdf->Cell(4, $tb, 'Waktu', 1, 0, 'C'); $this->fpdf->Cell(3, $tb, 'Biaya', 1, 0, 'C'); //ganti garis // lopping database $no = 1; foreach ($tugas_jabatan as $tj) { $this->fpdf->Ln(); $this->fpdf->SetX($x); $this->fpdf->Cell(1, $tb, $no, 1, 0, 'C'); $this->fpdf->Cell(12, $tb, $tj->kegiatan, 1, 0, 'L'); $this->fpdf->Cell(1, $tb, $tj->target_angka_kredit, 1, 0, 'C'); $this->fpdf->Cell(2, $tb, $tj->target_kuantitas, 1, 0, 'C'); $this->fpdf->Cell(2, $tb, $tj->satuan_kuantitas, 1, 0, 'C'); $this->fpdf->Cell(3, $tb, $tj->target_kualitas, 1, 0, 'C'); $this->fpdf->Cell(2, $tb, $tj->target_waktu, 1, 0, 'C'); $this->fpdf->Cell(2, $tb, $tj->satuan_waktu, 1, 0, 'L'); $this->fpdf->Cell(3, $tb, number_format($tj->target_biaya, 0, ",", "."), 1, 0, 'C'); $no++; } //ganti baris $this->fpdf->Ln(1); $this->fpdf->SetX(22); $this->fpdf->Cell(1, 0, 'Cepu,' . date_format(date_create($pk->tanggal_persetujuan), "d-m-Y"), 0, 0, 'C'); $this->fpdf->Ln(0.5); $this->fpdf->SetX(8); $this->fpdf->Cell(1, 0, 'Pejabat Penilai,', 0, 0, 'C'); $this->fpdf->SetX(21.5); $this->fpdf->Cell(2, 0, 'Pegawai Negeri Sipil Yang dinilai,', 0, 0, 'C'); //ganti baris $this->fpdf->Ln(2); $this->fpdf->SetX(8); $this->fpdf->Cell(1, 0, $pk->nama_pejabat_penilai, 0, 0, 'C'); $this->fpdf->SetX(22); $this->fpdf->Cell(1, 0, $detail_pegawai->peg_nm, 0, 0, 'C'); //ganti baris $this->fpdf->Ln(0.5); $this->fpdf->SetX(8); $this->fpdf->Cell(1, 0, $pk->nip_pejabat_penilai, 0, 0, 'C'); $this->fpdf->SetX(22); $this->fpdf->Cell(1, 0, $pk->nip, 0, 0, 'C'); //buat halaman baru Pengukuran $this->fpdf->AddPage(); $this->fpdf->SetMargins(0.5, 1, 1, 0.5); //font $this->fpdf->SetFont('Arial', 'B', 16); //cetak text PDF $teks = 'PEGAWAI NEGERI SIPIL'; $this->fpdf->Cell(0, 0, $teks, 0, 0, 'C'); //tabel pengukuran $this->fpdf->ln(1); $x = 0.5; //lebar $y = 2; $x_merger = 8; $tb = 0.5; // tinggi tabel $tb_warna = 0.25; // tinggi tabel $tb_merger = 1; // tinggi tabel merger $this->fpdf->SetX($x); $this->fpdf->SetFont('Arial', '', 8); $this->fpdf->Cell(1, $tb_merger, 'No', 1, 0, 'C'); $this->fpdf->Cell(5.5, $tb_merger, 'KEGIATAN TUGAS JABATAN', 1, 0, 'C'); $this->fpdf->Cell(1, $tb_merger, 'AK', 1, 0, 'C'); $this->fpdf->Cell(8, $tb, 'TARGET', 1, 0, 'C'); $this->fpdf->ln(); $this->fpdf->SetX($x_merger); $this->fpdf->Cell(2, $tb, 'Kuant/Output', 1, 0, 'C'); $this->fpdf->Cell(2, $tb, 'Kual/Mutu', 1, 0, 'C'); $this->fpdf->Cell(2, $tb, 'Waktu', 1, 0, 'C'); $this->fpdf->Cell(2, $tb, 'Biaya', 1, 0, 'C'); $this->fpdf->SetY($y); $this->fpdf->SetX(16); $this->fpdf->Cell(1, $tb_merger, 'AK', 1, 0, 'C'); $this->fpdf->Cell(8, $tb, 'REALISASI', 1, 0, 'C'); $this->fpdf->ln(); $this->fpdf->SetX(17); $this->fpdf->Cell(2, $tb, 'Kuant/Output', 1, 0, 'C'); $this->fpdf->Cell(2, $tb, 'Kual/Mutu', 1, 0, 'C'); $this->fpdf->Cell(2, $tb, 'Waktu', 1, 0, 'C'); $this->fpdf->Cell(2, $tb, 'Biaya', 1, 0, 'C'); $this->fpdf->SetY($y); $this->fpdf->SetX(25); $this->fpdf->Cell(2.5, $tb_merger, 'PENGHITUNGAN', 1, 0, 'C'); $this->fpdf->Cell(1.5, $tb_merger, 'NILAI SKP', 1, 0, 'C'); //ganti baris $this->fpdf->Ln(); $this->fpdf->SetX($x); $this->fpdf->SetFont('Arial', '', 7); $this->fpdf->SetFillColor(192, 192, 192); $this->fpdf->Cell(1, $tb_warna, '1', 1, 0, 'C', true); $this->fpdf->Cell(5.5, $tb_warna, '2', 1, 0, 'C', true); $this->fpdf->Cell(1, $tb_warna, '3', 1, 0, 'C', true); $this->fpdf->Cell(2, $tb_warna, '4', 1, 0, 'C', true); $this->fpdf->Cell(2, $tb_warna, '5', 1, 0, 'C', true); $this->fpdf->Cell(2, $tb_warna, '6', 1, 0, 'C', true); $this->fpdf->Cell(2, $tb_warna, '7', 1, 0, 'C', true); $this->fpdf->Cell(1, $tb_warna, '8', 1, 0, 'C', true); $this->fpdf->Cell(2, $tb_warna, '9', 1, 0, 'C', true); $this->fpdf->Cell(2, $tb_warna, '10', 1, 0, 'C', true); $this->fpdf->Cell(2, $tb_warna, '11', 1, 0, 'C', true); $this->fpdf->Cell(2, $tb_warna, '12', 1, 0, 'C', true); $this->fpdf->Cell(2.5, $tb_warna, '13', 1, 0, 'C', true); $this->fpdf->Cell(1.5, $tb_warna, '14', 1, 0, 'C', true); $no = 1; foreach ($tugas_jabatan as $tj) { $this->fpdf->Ln(); $this->fpdf->SetFont('Arial', '', 8); $this->fpdf->SetX($x); $this->fpdf->Cell(1, $tb, $no, 1, 0, 'C'); $this->fpdf->Cell(5.5, $tb, $tj->kegiatan, 1, 0, 'L'); $this->fpdf->Cell(1, $tb, $tj->target_angka_kredit, 1, 0, 'C'); $this->fpdf->Cell(1, $tb, $tj->target_kuantitas, 1, 0, 'C'); $this->fpdf->Cell(1, $tb, $tj->satuan_kuantitas, 1, 0, 'C'); $this->fpdf->Cell(2, $tb, $tj->target_kualitas, 1, 0, 'C'); $this->fpdf->Cell(1, $tb, $tj->target_waktu, 1, 0, 'C'); $this->fpdf->Cell(1, $tb, $tj->satuan_waktu, 1, 0, 'C'); $this->fpdf->Cell(2, $tb, number_format($tj->target_biaya, 0, ",", "."), 1, 0, 'C'); $this->fpdf->Cell(1, $tb, $tj->realisasi_angka_kredit, 1, 0, 'C'); $this->fpdf->Cell(1, $tb, $tj->realisasi_kuantitas, 1, 0, 'C'); $this->fpdf->Cell(1, $tb, $tj->satuan_kuantitas, 1, 0, 'C'); $this->fpdf->Cell(2, $tb, $tj->realisasi_kualitas, 1, 0, 'C'); $this->fpdf->Cell(1, $tb, $tj->realisasi_waktu, 1, 0, 'C'); $this->fpdf->Cell(1, $tb, $tj->satuan_waktu, 1, 0, 'C'); $this->fpdf->Cell(2, $tb, number_format($tj->realisasi_biaya, 0, ",", "."), 1, 0, 'C'); $this->fpdf->Cell(2.5, $tb, $tj->penghitungan, 1, 0, 'C'); $this->fpdf->Cell(1.5, $tb, $tj->nilai_capaian_skp, 1, 0, 'C'); $no++; } $this->fpdf->Ln(); $angka_tmbhan = 1; $this->fpdf->SetFont('Arial', '', 8); $this->fpdf->SetX($x); $this->fpdf->Cell(1, $angka_tmbhan, '', 1, 0, 'C'); $this->fpdf->MultiCell(5.5, 0.5, 'II. TUGAS TAMBAHAN DAN KREATIFITAS', 'LTRB', 'L', false); $this->fpdf->SetY(3.75); $this->fpdf->SetX(7); $this->fpdf->Cell(1, $angka_tmbhan, '', 1, 0, 'C'); $this->fpdf->Cell(8, $angka_tmbhan, '', 1, 0, 'C'); $this->fpdf->Cell(1, $angka_tmbhan, '', 1, 0, 'C'); $this->fpdf->Cell(8, $angka_tmbhan, '', 1, 0, 'C'); $this->fpdf->Cell(2.5, $angka_tmbhan, '', 1, 0, 'C'); $this->fpdf->Cell(1.5, $angka_tmbhan, '', 1, 0, 'C'); //ganti baris //looping database $i = 0; foreach ($tugas_tambahan as $tt) { $this->fpdf->Ln(); $angka_tmbhan = 1; $this->fpdf->SetFont('Arial', '', 8); $this->fpdf->SetX($x); $this->fpdf->Cell(1, $tb, $i == 0 ? 1 : '', 1, 0, 'C'); $this->fpdf->Cell(5.5, $tb, $tt->kegiatan, 1, 0, 'L'); $this->fpdf->Cell(1, $tb, '', 1, 0, 'C'); $this->fpdf->Cell(8, $tb, '', 1, 0, 'C'); $this->fpdf->Cell(1, $tb, '', 1, 0, 'C'); $this->fpdf->Cell(8, $tb, '', 1, 0, 'C'); $this->fpdf->Cell(2.5, $tb, '', 1, 0, 'C'); $this->fpdf->Cell(1.5, $tb, $tt->nilai_capaian_skp, 1, 0, 'C'); $i++; } $i = 0; foreach ($kreatifitas as $kr) { $this->fpdf->Ln(); $angka_tmbhan = 1; $this->fpdf->SetFont('Arial', '', 8); $this->fpdf->SetX($x); $this->fpdf->Cell(1, $tb, $i == 0 ? 2 : '', 1, 0, 'C'); $this->fpdf->Cell(5.5, $tb, $kr->kegiatan, 1, 0, 'L'); $this->fpdf->Cell(1, $tb, '', 1, 0, 'C'); $this->fpdf->Cell(8, $tb, '', 1, 0, 'C'); $this->fpdf->Cell(1, $tb, '', 1, 0, 'C'); $this->fpdf->Cell(8, $tb, '', 1, 0, 'C'); $this->fpdf->Cell(2.5, $tb, '', 1, 0, 'C'); $this->fpdf->Cell(1.5, $tb, $kr->nilai_capaian_skp, 1, 0, 'C'); $i++; } //ganti baris $this->fpdf->Ln(); $this->fpdf->SetX($x); $this->fpdf->Cell(27, $tb, '', 1, 0, 'C'); $this->fpdf->Cell(1.5, $tb, '', 1, 0, 'C'); //ganti baris $this->fpdf->Ln(); $this->fpdf->SetX($x); $this->fpdf->Cell(27, $angka_tmbhan, 'Nilai Capaian SKP', 1, 0, 'C'); $this->fpdf->Cell(1.5, $tb, $pk->rata_capaian_skp, 1, 0, 'C'); $this->fpdf->Ln(); $this->fpdf->SetX(27.5); $this->fpdf->Cell(1.5, $tb, keterangan_nilai($pk->rata_capaian_skp), 1, 0, 'C'); //ganti baris $this->fpdf->Ln(1); $this->fpdf->SetX(24); $this->fpdf->Cell(1.5, $tb, 'Cepu, ' . date_format(date_create($pk->tanggal_dibuat_penilai), "d-m-Y"), 2, 0, 'C'); $this->fpdf->Ln(); $this->fpdf->SetX(24); $this->fpdf->Cell(1.5, $tb, 'Pejabat Penilai', 2, 0, 'C'); $this->fpdf->Ln(2); $this->fpdf->SetX(24); $this->fpdf->Cell(1.5, $tb, $pk->nama_pejabat_penilai, 2, 0, 'C'); $this->fpdf->Ln(); $this->fpdf->SetX(24); $this->fpdf->Cell(1.5, $tb, 'NIP ' . $pk->nip_pejabat_penilai, 2, 0, 'C'); //ganti page halaman Penilaian //buat halaman baru Pengukuran $this->fpdf->SetMargins(0.5, 0.5, 0, 0); $this->fpdf->AddPage(); //font $this->fpdf->SetFont('Arial', 'B', 8); $x = 0.5; //lebar $y = 2; $x_merger = 8; $tb1 = 0.75; // tinggi tabel $tb = 1; // tinggi tabel $tb_merger = 8.75; // tinggi tabel merger $this->fpdf->SetX($x); $this->fpdf->SetFont('Arial', 'B', 10); $this->fpdf->Cell(1, $tb_merger, '4.', 1, 0, 'C'); $this->fpdf->Cell(12, $tb, 'UNSUR YANG DINILAI', 1, 0, 'L'); $this->fpdf->Cell(2, $tb, 'Jumlah', 1, 0, 'C'); //ganti baris $this->fpdf->Ln(); $this->fpdf->SetFont('Arial', 'B', 8); $this->fpdf->SetX(1.5); $this->fpdf->Cell(12, $tb, 'a. Sasaran Kerja Pegawai (SKP)', 1, 0, 'L'); $this->fpdf->Cell(2, $tb, $pk->nilai_capaian_skp, 1, 0, 'C'); //ganti baris $this->fpdf->Ln(); $this->fpdf->SetX(1.5); $this->fpdf->Cell(3, 6.75, 'b. Perilaku Kerja', 1, 0, 'L'); $this->fpdf->SetFont('Arial', '', 8); $this->fpdf->Cell(5, $tb1, '1. Orientasi Pelayanan', 1, 0, 'L'); $this->fpdf->Cell(2, $tb1, $pk->nilai_orientasi_pelayanan, 1, 0, 'C'); $this->fpdf->Cell(2, $tb1, keterangan_nilai($pk->nilai_orientasi_pelayanan), 1, 0, 'C'); $this->fpdf->Cell(2, $tb1, '', 1, 0, 'C'); //ganti baris $this->fpdf->Ln(); $this->fpdf->SetX(4.5); $this->fpdf->Cell(5, $tb1, '2. Integritas', 1, 0, 'L'); $this->fpdf->Cell(2, $tb1, $pk->nilai_integritas, 1, 0, 'C'); $this->fpdf->Cell(2, $tb1, keterangan_nilai($pk->nilai_integritas), 1, 0, 'C'); $this->fpdf->Cell(2, $tb1, '', 1, 0, 'C'); //ganti baris $this->fpdf->Ln(); $this->fpdf->SetX(4.5); $this->fpdf->Cell(5, $tb1, '3. Komitmen', 1, 0, 'L'); $this->fpdf->Cell(2, $tb1, $pk->nilai_komitmen, 1, 0, 'C'); $this->fpdf->Cell(2, $tb1, keterangan_nilai($pk->nilai_komitmen), 1, 0, 'C'); $this->fpdf->Cell(2, $tb1, '', 1, 0, 'C'); //ganti baris $this->fpdf->Ln(); $this->fpdf->SetX(4.5); $this->fpdf->Cell(5, $tb1, '4. Disiplin', 1, 0, 'L'); $this->fpdf->Cell(2, $tb1, $pk->nilai_disiplin, 1, 0, 'C'); $this->fpdf->Cell(2, $tb1, keterangan_nilai($pk->nilai_disiplin), 1, 0, 'C'); $this->fpdf->Cell(2, $tb1, '', 1, 0, 'C'); //ganti baris $this->fpdf->Ln(); $this->fpdf->SetX(4.5); $this->fpdf->Cell(5, $tb1, '5. Kerjasama', 1, 0, 'L'); $this->fpdf->Cell(2, $tb1, $pk->nilai_kerjasama, 1, 0, 'C'); $this->fpdf->Cell(2, $tb1, keterangan_nilai($pk->nilai_kerjasama), 1, 0, 'C'); $this->fpdf->Cell(2, $tb1, '', 1, 0, 'C'); //ganti baris $this->fpdf->Ln(); $this->fpdf->SetX(4.5); $this->fpdf->Cell(5, $tb1, '6. Kepemimpinan', 1, 0, 'L'); $this->fpdf->Cell(2, $tb1, $pk->nilai_kepemimpinan, 1, 0, 'C'); $this->fpdf->Cell(2, $tb1, keterangan_nilai($pk->nilai_kepemimpinan), 1, 0, 'C'); $this->fpdf->Cell(2, $tb1, '', 1, 0, 'C'); //ganti baris $this->fpdf->Ln(); $this->fpdf->SetX(4.5); $this->fpdf->Cell(5, $tb1, 'Jumlah', 1, 0, 'L'); $this->fpdf->Cell(2, $tb1, $pk->jumlah_perilaku_kerja, 1, 0, 'C'); $this->fpdf->Cell(2, $tb1, '', 1, 0, 'L'); $this->fpdf->Cell(2, $tb1, '', 1, 0, 'C'); //ganti baris $this->fpdf->Ln(); $this->fpdf->SetX(4.5); $this->fpdf->Cell(5, $tb1, 'Nilai Rata-rata', 1, 0, 'L'); $this->fpdf->Cell(2, $tb1, $pk->rata_perilaku_kerja, 1, 0, 'C'); $this->fpdf->Cell(2, $tb1, keterangan_nilai($pk->rata_perilaku_kerja), 1, 0, 'C'); $this->fpdf->Cell(2, $tb1, '', 1, 0, 'C'); //ganti baris $this->fpdf->Ln(); $this->fpdf->SetX(4.5); $this->fpdf->Cell(5, $tb1, 'Nilai Perilaku Kerja', 1, 0, 'L'); $this->fpdf->Cell(2, $tb1, $pk->rata_perilaku_kerja, 1, 0, 'C'); $this->fpdf->Cell(2, $tb1, 'x 40%', 1, 0, 'C'); $this->fpdf->Cell(2, $tb1, $pk->nilai_perilaku_kerja, 1, 0, 'C'); //ganti baris $this->fpdf->Ln(); $this->fpdf->SetX(0.5); $this->fpdf->Cell(13, $tb, 'NILAI PRESTASI KERJA', 1, 0, 'C'); $this->fpdf->Cell(2, 0.5, $pk->nilai_prestasi_kerja, 1, 0, 'C'); $this->fpdf->Ln(); $this->fpdf->SetX(13.5); $this->fpdf->Cell(2, 0.5, keterangan_nilai($pk->nilai_prestasi_kerja), 1, 0, 'C'); //GANTI BARIS $this->fpdf->Ln(); $this->fpdf->SetX(0.5); //isian Keberatan $this->fpdf->MultiCell(15, 8.25, $pk->keberatan, 'LTRB', 'L', false); $this->fpdf->SetY(8.5); $this->fpdf->SetX(0.5); $this->fpdf->Cell(13, 6, '5. KEBERATAN DARI PEGAWAI NEGERI L YANG DINILAI (APABILA ADA)', 0, 0, 'L'); $this->fpdf->SetY(16); $this->fpdf->SetX(7); //isi tanggal $tanggal_keberatan = $pk->keberatan == NULL ? '' : date_format(date_create($pk->tanggal_keberatan), "d-m-Y"); $this->fpdf->Cell(4, 2, 'Tanggal, ' . $tanggal_keberatan, 0, 0, 'L'); //PENILAIAN Prestasi KERJA $x = 0.5; //lebar $y = 2; $x_merger = 8; $tb = 0.5; // tinggi tabel $tb1 = 0.75; $tb_merger = 4.5; // tinggi tabel merger $this->fpdf->SetFont('Arial', 'B', '10'); $this->fpdf->Image('assets/images/garuda.jpg', 22, 0.5, 2); $this->fpdf->SetY(2.75); $this->fpdf->SetX(17); $this->fpdf->Cell(12, $tb, 'PENILAIAN PRESTASI KERJA', 0, 0, 'C'); $this->fpdf->SetY(3.25); $this->fpdf->SetX(22); $this->fpdf->Cell(2, $tb, 'PEGAWAI NEGERI SIPIL', 0, 0, 'C'); $this->fpdf->SetFont('Arial', '', '8'); $this->fpdf->SetY(4); $this->fpdf->SetX(16); $this->fpdf->Cell(2, $tb, 'KEMENTRIAN ESDM', 0, 0, 'l'); $this->fpdf->SetX(25); $this->fpdf->Cell(2, $tb, 'JANGKA WAKTU PENILAIAN', 0, 0, 'l'); $this->fpdf->SetY(4.5); $this->fpdf->SetX(16); $this->fpdf->Cell(2, $tb, 'PUSDIKLAT MIGAS', 0, 0, 'l'); $this->fpdf->SetX(25); //ISIAN PERIODE $this->fpdf->Cell(2, $tb, 'BULAN : ' . date_format(date_create($pk->awal_penilaian), "d-m") . ' s.d ' . date_format(date_create($pk->akhir_penilaian), "d-m-Y"), 0, 0, 'l'); //TABLE $this->fpdf->SetY(5); $this->fpdf->SetX(16); $this->fpdf->SetFont('Arial', 'B', 8); $this->fpdf->Cell(1, $tb_merger, '1.', 1, 0, 'C'); $this->fpdf->SetY(5); $this->fpdf->SetX(17); $this->fpdf->Cell(12, 0.75, 'UNSUR YANG DINILAI', 1, 0, 'L'); $this->fpdf->SetFont('Arial', '', 8); $this->fpdf->SetY(5.75); $this->fpdf->SetX(17); $this->fpdf->Cell(6, $tb1, 'a. Nama.', 1, 0, 'L'); $this->fpdf->Cell(6, $tb1, $detail_pegawai->peg_nm, 1, 0, 'L'); $this->fpdf->SetY(6.5); $this->fpdf->SetX(17); $this->fpdf->Cell(6, $tb1, 'b. NIP.', 1, 0, 'L'); $this->fpdf->Cell(6, $tb1, $pegawai->nip, 1, 0, 'L'); $this->fpdf->SetY(7.25); $this->fpdf->SetX(17); $this->fpdf->Cell(6, $tb1, 'c. Pangkat, Golongan ruang, TMT.', 1, 0, 'L'); $this->fpdf->Cell(6, $tb1, $detail_pegawai->peg_gol_pangkat, 1, 0, 'L'); $this->fpdf->SetY(8); $this->fpdf->SetX(17); $this->fpdf->Cell(6, $tb1, 'd. Jabatan/Pekerjaan.', 1, 0, 'L'); $this->fpdf->Cell(6, $tb1, $jabatan_pegawai->deskripsi, 1, 0, 'L'); $this->fpdf->SetY(8.75); $this->fpdf->SetX(17); $this->fpdf->Cell(6, $tb1, 'e. Unit Organisasi.', 1, 0, 'L'); $this->fpdf->Cell(6, $tb1, $jabatan_pegawai->unit_kerja, 1, 0, 'L'); //tabel no 2 $this->fpdf->SetY(9.5); $this->fpdf->SetX(16); $this->fpdf->SetFont('Arial', 'B', 8); $this->fpdf->Cell(1, $tb_merger, '2.', 1, 0, 'C'); $this->fpdf->SetY(9.5); $this->fpdf->SetX(17); $this->fpdf->Cell(12, 0.75, 'PEJABAT PENILAI', 1, 0, 'L'); $this->fpdf->SetFont('Arial', '', 8); $this->fpdf->SetY(10.25); $this->fpdf->SetX(17); $this->fpdf->Cell(6, $tb1, 'a. Nama.', 1, 0, 'L'); $this->fpdf->Cell(6, $tb1, $pk->nama_pejabat_penilai, 1, 0, 'L'); $this->fpdf->SetY(11); $this->fpdf->SetX(17); $this->fpdf->Cell(6, $tb1, 'b. NIP.', 1, 0, 'L'); $this->fpdf->Cell(6, $tb1, $pk->nip_pejabat_penilai, 1, 0, 'L'); $this->fpdf->SetY(11.75); $this->fpdf->SetX(17); $this->fpdf->Cell(6, $tb1, 'c. Pangkat, Golongan ruang, TMT.', 1, 0, 'L'); $this->fpdf->Cell(6, $tb1, $detail_pejabat_penilai->peg_gol_pangkat, 1, 0, 'L'); $this->fpdf->SetY(12.5); $this->fpdf->SetX(17); $this->fpdf->Cell(6, $tb1, 'd. Jabatan/Pekerjaan.', 1, 0, 'L'); $this->fpdf->Cell(6, $tb1, $jabatan_pejabat_penilai->deskripsi, 1, 0, 'L'); $this->fpdf->SetY(13.25); $this->fpdf->SetX(17); $this->fpdf->Cell(6, $tb1, 'e. Unit Organisasi.', 1, 0, 'L'); $this->fpdf->Cell(6, $tb1, $jabatan_pejabat_penilai->unit_kerja, 1, 0, 'L'); //tabel no 3 $this->fpdf->SetY(14); $this->fpdf->SetX(16); $this->fpdf->SetFont('Arial', 'B', 8); $this->fpdf->Cell(1, $tb_merger, '3.', 1, 0, 'C'); $this->fpdf->SetY(14); $this->fpdf->SetX(17); $this->fpdf->Cell(12, 0.75, 'ATASAN PEJABAT PENILAI', 1, 0, 'L'); $this->fpdf->SetFont('Arial', '', 8); $this->fpdf->SetY(14.75); $this->fpdf->SetX(17); $this->fpdf->Cell(6, $tb1, 'a. Nama.', 1, 0, 'L'); $this->fpdf->Cell(6, $tb1, $pk->nama_atasan_pejabat_penilai, 1, 0, 'L'); $this->fpdf->SetY(15.5); $this->fpdf->SetX(17); $this->fpdf->Cell(6, $tb1, 'b. NIP.', 1, 0, 'L'); $this->fpdf->Cell(6, $tb1, $pk->nip_atasan_pejabat_penilai, 1, 0, 'L'); $this->fpdf->SetY(16.25); $this->fpdf->SetX(17); $this->fpdf->Cell(6, $tb1, 'c. Pangkat, Golongan ruang, TMT.', 1, 0, 'L'); $this->fpdf->Cell(6, $tb1, $detail_atasan_pejabat_penilai->peg_gol_pangkat, 1, 0, 'L'); $this->fpdf->SetY(17); $this->fpdf->SetX(17); $this->fpdf->Cell(6, $tb1, 'd. Jabatan/Pekerjaan.', 1, 0, 'L'); $this->fpdf->Cell(6, $tb1, $jabatan_atasan_pejabat_penilai->deskripsi, 1, 0, 'L'); $this->fpdf->SetY(17.75); $this->fpdf->SetX(17); $this->fpdf->Cell(6, $tb1, 'e. Unit Organisasi.', 1, 0, 'L'); $this->fpdf->Cell(6, $tb1, $jabatan_atasan_pejabat_penilai->unit_kerja, 1, 0, 'L'); //ganti page halaman Penilaian //buat halaman baru $this->fpdf->SetMargins(0.5, 0.5, 0, 0); $this->fpdf->AddPage(); //font $this->fpdf->SetFont('Arial', 'B', 8); $x = 0.5; //lebar $y = 9.25; $x_merger = 8; $tb = 1; // tinggi tabel $tb_merger = 8.75; // tinggi tabel merger $this->fpdf->SetX($x); $this->fpdf->SetFont('Arial', 'B', 8); $this->fpdf->Cell(15, $tb_merger, '8. REKOMENDASI: ' . $pk->rekomendasi, 1, 0, 'C'); $this->fpdf->SetY($y); $this->fpdf->Cell(15, $tb_merger, '', 1, 0, 'L'); $this->fpdf->SetY(9.5); $this->fpdf->SetX(7.5); $this->fpdf->Cell(6, $tb, '9. DIBUAT TANGGAL, ' . date_format(date_create($pk->tanggal_dibuat_penilai), "d-m-Y"), 0, 0, 'L'); $this->fpdf->SetY(10); $this->fpdf->SetX(8.5); $this->fpdf->Cell(7, $tb, 'PEJABAT PENILAI,', 0, 0, 'C'); $this->fpdf->SetY(11.5); $this->fpdf->SetX(8.5); $this->fpdf->Cell(7, $tb, $pk->nama_pejabat_penilai, 0, 0, 'C'); $this->fpdf->SetY(13); $this->fpdf->SetX($x); $this->fpdf->Cell(6, $tb, '10. DITERIMA TANGGAL, ' . date_format(date_create($pk->tanggal_diterima_yang_dinilai), "d-m-Y"), 0, 0, 'L'); $this->fpdf->SetY(13.5); $this->fpdf->SetX(1); $this->fpdf->Cell(6, $tb, 'PEGAWAI NEGERI SIPIL YANG DINILAI,', 0, 0, 'l'); $this->fpdf->SetY(15); $this->fpdf->SetX($x); $this->fpdf->Cell(7, $tb, $detail_pegawai->peg_nm, 0, 0, 'C'); // Nomor NIP $this->fpdf->SetFont('Arial', '', 8); $this->fpdf->SetY(12); $this->fpdf->SetX(8.5); $this->fpdf->Cell(7, $tb, 'NIP, ' . $pk->nip_pejabat_penilai, 0, 0, 'C'); $this->fpdf->SetFont('Arial', '', 8); $this->fpdf->SetY(15.5); $this->fpdf->SetX($x); $this->fpdf->Cell(7, $tb, 'NIP, ' . $pk->nip, 0, 0, 'C'); //HALAMAN TANGGAPAN PEJABAT PENILAI //font $this->fpdf->SetFont('Arial', 'B', 8); $x = 16; //lebar $x1 = 16.5; //lebar $y = 0.5; $y1 = 9.25; $y2 = 9.75; $tb = 1; // tinggi tabel $tb_merger = 8.75; // tinggi tabel merger //TABEL HALAMAN TANGGAPAN PEJABAT PENILAI //FONT $this->fpdf->SetFont('Arial', 'B', 8); $this->fpdf->SetY($y); $this->fpdf->SetX($x); $this->fpdf->MultiCell(13, $tb_merger, '', 'LTRB', 'L', false); $this->fpdf->SetY($y); $this->fpdf->SetX($x); $this->fpdf->Cell(10, $tb, '6. TANGGAPAN PEJABAT PENILAI', 0, 0, 'L'); $this->fpdf->SetY(1); $this->fpdf->SetX($x1); $this->fpdf->Cell(10, $tb, 'ATAS KEBERATAN', 0, 0, 'L'); $this->fpdf->SetY(7.5); $this->fpdf->SetX(19); $tanggal_tanggapan = $pk->tanggapan == NULL ? '' : date_format(date_create($pk->tanggal_tanggapan), "d-m-Y"); $this->fpdf->Cell(5, 1, 'Tanggal, ' . $tanggal_tanggapan, 0, 0, 'C'); $this->fpdf->SetFont('Arial', '', 8); $this->fpdf->SetY(3); $this->fpdf->SetX(17); $this->fpdf->MultiCell(11.5, 0.5, $pk->tanggapan, '', 'L', false); //ganti halaman $this->fpdf->SetFont('Arial', 'B', 8); $this->fpdf->SetY($y1); $this->fpdf->SetX($x); $this->fpdf->MultiCell(13, $tb_merger, '', 'LTRB', 'L', false); $this->fpdf->SetY($y1); $this->fpdf->SetX($x); $this->fpdf->Cell(10, $tb, '7. KEPUTUSAN ATASAN PEJABAT', 0, 0, 'L'); $this->fpdf->SetY($y2); $this->fpdf->SetX(16.5); $this->fpdf->Cell(10, $tb, 'PENILAI ATAS KEBERATAN', 0, 0, 'L'); $this->fpdf->SetY(16.5); $this->fpdf->SetX(19); $tanggal_keputusan = $pk->keputusan == NULL ? '' : date_format(date_create($pk->tanggal_keputusan), "d-m-Y"); $this->fpdf->Cell(5, $tb, 'Tanggal, ' . $tanggal_keputusan, 0, 0, 'C'); $this->fpdf->SetFont('Arial', '', 8); $this->fpdf->SetY(11.5); $this->fpdf->SetX(17); $this->fpdf->MultiCell(11.5, 0.5, $pk->keputusan, '', 'L', false); //output $this->fpdf->Ln(); $this->fpdf->Output(); }