$jatahcuti = $data['jatahcuti']; $norek = $data['norek']; $namarek = $data['namarek']; $npwp = $data['npwp']; $admin .= '<form class="form-inline" method="post" action="" enctype ="multipart/form-data" id="posts"> <table class="table table-striped table-hover"> <tr> <td>NIP</td> <td><input type="text" name="nip" value="' . $nip . '" size="30" class="form-control"></td> </tr> <tr> <td>Nama Lengkap</td> <td><input type="text" name="nama" value="' . $nama . '" size="30" class="form-control"></td> </tr> <tr> <td>Kota Lahir</td> <td><input type="text" name="kotalahir" value="' . $kotalahir . '" size="30" class="form-control"></td> </tr> <tr> <td>Tanggal Lahir</td> <td><input type="text" name="tgllahir" id="tgllahir" value="' . $tgllahir . '" size="30" class="form-control"></td> </tr> <tr> <td>Jenis Kelamin</td> <td><select name="kelamin" class="form-control">'; $hasil = $koneksi_db->sql_query("SELECT * FROM hrd_kelamin ORDER BY kelamin"); $admin .= '<option value="-">== Jenis Kelamin ==</option>'; while ($datas = $koneksi_db->sql_fetchrow($hasil)) { $pilihan = $datas['id'] == $kelamin ? "selected" : ''; $admin .= '<option value="' . $datas['id'] . '" ' . $pilihan . '>' . $datas['kelamin'] . '</option>'; }
</tr> <tr> <td>Negara</td> <td>: ' . $negara . '</td> </tr> <tr> <td>Telepon</td> <td>: ' . $telepon . '</td> </tr> <tr> <td>Handphone</td> <td>: ' . $handphone . '</td> </tr> <tr> <td>Pendidikan Terakhir</td> <td>: ' . getpendidikan($pendidikan_terakhir) . '</td> </tr>'; if ($departemen) { echo '<tr> <td>Departemen</td> <td>: ' . getdepartemen($departemen) . '</td> </tr>'; } if ($jabatan) { echo ' <tr> <td>Jabatan</td> <td>: ' . getjabatan($jabatan) . '</td> </tr>'; } if ($status) {
<th>Nama</th> <th>Agama</th> <th>Pendidikan</th> <th>Jabatan</th> <th>Status</th> <th>Lama Kerja</th> </tr></thead><tbody>'; $no = 1; $s = mysql_query("SELECT * FROM hrd_karyawan where tipe='1' ORDER BY nama"); while ($data = mysql_fetch_array($s)) { $date2 = $data['tglditerima']; $date3 = date("Y-m-d"); $lamakerja = floor(daysBetween($date2, $date3)); $lamakerja2 = floor($lamakerja / 365); //$lamakerja2 = dateDifference($date2, $date3,'%y Tahun,%m Bulan'); $urutan = $no + 1; echo ' <tr align="left"> <td class="text-center">' . $no . '</td> <td>' . $data['nip'] . '</td> <td>' . $data['nama'] . '</td> <td>' . getagama($data['agama']) . '</td> <td>' . getpendidikan($data['pendidikan_terakhir']) . '</td> <td>' . getjabatan($data['jabatan']) . '</td> <td>' . getstatus($data['status']) . '</td> <td>' . $lamakerja2 . ' Tahun</td> </tr>'; $no++; } echo "</body</html>"; echo "<script language=javascript>\nwindow.print();\n</script>";
$large = $normal2 . $simpan; create_thumbnail($uploaddir, $large, $new_width = 600, $new_height = auto, $quality = 100); unlink($uploaddir); $nfotolama = $normal2 . $lampiranlama; unlink($nfotolama); $hasil = $koneksi_db->sql_query("update hrd_karyawan set tipe='{$tipe}',tglresign='{$tglresign}',alasan='{$alasan}',lampiran='{$simpan}' where id='{$id}'"); } else { $hasil = $koneksi_db->sql_query("update hrd_karyawan set tipe='{$tipe}',tglresign='{$tglresign}',alasan='{$alasan}' where id='{$id}'"); } } } $hasil = $koneksi_db->sql_query("SELECT * FROM hrd_karyawan WHERE id={$id}"); $data = $koneksi_db->sql_fetchrow($hasil); $idkary = $data['id']; $nip = $data['nip']; $nama = text_filter($data['nama']); $departemen = $data['departemen']; $jabatan = $data['jabatan']; $status = $data['status']; $fotolama = $data['foto']; $tipe = $data['tipe']; $tglresign = $data['tglresign']; $alasan = $data['alasan']; $lampiran = $data['lampiran']; $lampiranlama = $data['lampiran']; $admin .= '<form class="form-inline" method="post" action="" enctype ="multipart/form-data" id="posts"> <table class="table table-striped table-hover"> <tr> <td>Foto</td> <td></td> </tr>';