-
Notifications
You must be signed in to change notification settings - Fork 0
/
detail_laporan.php
170 lines (166 loc) · 3.71 KB
/
detail_laporan.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
<?php
error_reporting(0);
?>
<!DOCTYPE html>
<html lang="eng">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>LAPORAN DATA PEGAWAI</title>
<link rel="stylesheet" href="css/print.css" type="text/css" />
</head>
<style>
@media print {
input.noPrint {
display: none;
}
}
</style>
<body class="body">
<div id="wrapper2">
<?php
include "config/koneksi.php";
include "config/fungsi_indotgl.php";
include "config/class_paging.php";
include "config/kode_auto.php";
include "config/fungsi_combobox.php";
include "config/fungsi_nip.php";
$ambil=mysql_query("select * from pegawai where nip='$_GET[id]'");
$data=mysql_fetch_array($ambil);
?>
<h2 class='head'>Data Pegawai</h2>
<div class='foto'>
<?php
if($data[foto]==""){
echo "<img src='image_peg/no.jpg' width='200' height='240' />";
}else{
echo "<img src='image_peg/$data[foto]' width='200' height='240' />";
}
?>
</div>
<table class='tabelform tabpad'>
<tr>
<td>Nip</td>
<td>:</td>
<td><?php echo $data['nip'];?></td>
</tr>
<tr>
<td>Nama Pegawai</td>
<td>:</td>
<td><?php echo $data['nama'];?></td>
</tr>
<tr>
<td>Tempat Lahir</td>
<td>:</td>
<td><?php echo $data['tmpt_lahir'];?></td>
</tr>
<tr>
<td>Tanggal Lahir</td>
<td>:</td>
<td><?php echo $data['tgl_lahir'];?></td>
</tr>
<tr>
<td>Jenis Kelamin</td>
<td>:</td>
<td>
<?php
if($data['jenis_kelamin']=='L'){
echo "Pria";
}else {
echo "Wanita";
}
?>
<tr>
<td>Alamat</td>
<td>:</td>
<td><?php echo $data['alamat'];?></td>
</tr>
<tr>
<td>Tanggal Masuk</td>
<td>:</td>
<td><?php echo $data['tgl_masuk'];?></td>
</tr>
<tr>
<td>Golongan</td>
<td>:</td>
<td>
<?php
$gol=mysql_query("select * from gol_pangkat where id_golongan='$data[id_gol]'");
$bag=mysql_fetch_array($gol);
echo $bag['nama_pangkat'];
?>
</td>
</tr>
<tr>
<td>Jabatan</td>
<td>:</td>
<td>
<?php
$jab=mysql_query("select * from jabatan where id_jab='$data[id_jab]'");
$jbtn=mysql_fetch_array($jab);
echo $jbtn['n_jab'];
?>
</td>
</tr>
</table>
<div class='rp' >
<div style='clear:both'></div>
<h2 class='head'>Riwayat pendidikan</h2>
<table class='tabel'>
<thead>
<tr>
<td>Tahun</td>
<td>Detail Pendidikan</td>
</tr>
</thead>
<?php
$nip=$_SESSION['namauser'];
$ri=mysql_query("select * from pendidikan where nip='$_GET[id]' order by idp ASC");
if(mysql_num_rows($ri)==0){
echo "<tr><td colspan='2'>*Tidak Ada Data*</td></tr>";
}else {
while($p=mysql_fetch_array($ri)){
echo "
<tr>
<td>$p[t_pdk]</td>
<td>".nl2br($p['d_pdk'])."</td>
</tr>";
}
}
?>
</table>
</div>
<div class='rp2'>
<h2 class='head'>PENGALAMAN KERJA</h2>
<table class='tabel'>
<thead>
<tr>
<td>Nama Pekerjaan</td>
<td>Detail Pekerjaan</td>
</tr>
</thead>
<?php
$nip=$_SESSION['namauser'];
$ri=mysql_query("select * from pengalaman_kerja where nip='$_GET[id]' order by id_peker ASC");
if(mysql_num_rows($ri)==0){
echo "<tr><td colspan='2'>*Tidak Ada Data*</td></tr>";
}else {
while($p=mysql_fetch_array($ri)){
echo "
<tr>
<td>$p[nm_pekerjaan]</td>
<td>".nl2br($p['d_pekerjaan'])." </td>
</tr>";
}
}
echo "
</table>
</div>
<div style='clear:both'></div>";
?>
<div style="text-align:center;padding:20px;">
<input class="noPrint" type="button" value="Cetak Halaman" onclick="window.print()">
<?php echo "<input type=button value=Batal onclick=self.history.back()>";?>
</div>
</div>
</body>
</html>