-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpenilai_data_nilai_penilai1.php
179 lines (174 loc) · 6.65 KB
/
penilai_data_nilai_penilai1.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
171
172
173
174
175
176
177
178
179
<?php
error_reporting(0);
include_once("koneksi/conn.php");
$nip_penilai = $_GET['nip_penilai'];
$id_pengajuan = $_GET['id_pengajuan'];
$select_penilai = "SELECT * FROM penilai WHERE nip_penilai = '$nip_penilai'";
$rs_penilai = $koneksi->Execute($select_penilai);
if($rs_penilai->recordCount()>0){
while(!$rs_penilai->EOF){
$nama_penilai = $rs_penilai->fields[2];
$rs_penilai->MoveNext();
}
}
$select_berkas = "SELECT berkas_pak.id_berkas, rubrik.aspek_rubrik, rubrik.kegiatan_rubrik, berkas_pak.bukti_berkas, berkas_pak.poin_1, berkas_pak.status_berkas FROM berkas_pak INNER JOIN rubrik ON berkas_pak.kode_rubrik=rubrik.kode_rubrik WHERE id_pengajuan='$id_pengajuan'";
$rs_berkas = $koneksi->Execute($select_berkas);
if($rs_berkas->recordCount()>0){
while(!$rs_berkas->EOF){
$data_berkas[] = $rs_berkas->fields;
$rs_berkas->MoveNext();
}
}
$select_poin = "SELECT SUM(poin_1) FROM berkas_pak WHERE id_pengajuan='$id_pengajuan'";
$rs_poin=$koneksi->Execute($select_poin);
if($rs_poin->recordCount()>0){
while(!$rs_poin->EOF){
$total_poin = $rs_poin->fields[0];
$rs_poin->MoveNext();
}
}
$select_pengajuan = "SELECT pengajuan.tanggal_pengajuan, dosen.nip_dosen, dosen.nama_dosen, pengajuan.jabatan_asal, pengajuan.tanggal_sk, pengajuan.jabatan_tujuan, pengajuan.dokumen_pendukung, pengajuan.status_pengajuan, syarat_kum.total_pak FROM pengajuan INNER JOIN syarat_kum ON pengajuan.id_kum=syarat_kum.id_kum INNER JOIN dosen ON pengajuan.nip_dosen=dosen.nip_dosen WHERE id_pengajuan='$id_pengajuan'";
$rs_pengajuan = $koneksi->Execute($select_pengajuan);
if($rs_pengajuan->recordCount()>0){
while(!$rs_pengajuan->EOF){
$tanggal_pengajuan = $rs_pengajuan->fields[0];
$nip_dosen = $rs_pengajuan->fields[1];
$nama_dosen = $rs_pengajuan->fields[2];
$jabatan_asal = $rs_pengajuan->fields[3];
$tanggal_sk = $rs_pengajuan->fields[4];
$jabatan_tujuan = $rs_pengajuan->fields[5];
$dokumen_pendukung = $rs_pengajuan->fields[6];
$status_pengajuan = $rs_pengajuan->fields[7];
$syarat_pak = $rs_pengajuan->fields[8];
$rs_pengajuan->MoveNext();
}
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<title>Sistem Informasi PAK</title>
<link href="vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link href="css/simple-sidebar.css" rel="stylesheet">
<link href="vendor/fontawesome-free/css/all.min.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" type="text/css" href="DataTables/assets/css/jquery.dataTables.min.css">
</head>
<body>
<div class="d-flex" id="wrapper">
<div class="bg-light border-right" id="sidebar-wrapper">
<div class="sidebar-heading"><b>Main Menu</b></div>
<div class="list-group list-group-flush">
<a href="penilai_beranda.php?nip_penilai=<?php echo $nip_penilai;?>" class="list-group-item list-group-item-action bg-light">Beranda</a>
<a href="penilai_daftar_pengajuan.php?nip_penilai=<?php echo $nip_penilai;?>" class="list-group-item list-group-item-action bg-info text-light">Daftar Pengajuan</a>
<a href="penilai_tabel_pak.php?nip_penilai=<?php echo $nip_penilai;?>" class="list-group-item list-group-item-action bg-light">Tabel Nilai Angka Kredit</a>
</div>
</div>
<div id="page-content-wrapper">
<?php include"include/navbar_penilai.php"?>
<div class="container-fluid">
<h1></h1>
<div class="card">
<div class="card-header bg-primary text-light"><b>DATA PENGAJUAN</b></div>
<div class="card-body">
<div class="table-responsive">
<table class="table table-sm table-borderless" width="100%" cellspacing="0">
<tr>
<td>NIP Dosen</td>
<td><b><?php echo $nip_dosen;?></b></td>
</tr>
<tr>
<td>Nama Dosen</td>
<td><?php echo $nama_dosen;?></td>
</tr>
<tr>
<td>Jabatan</td>
<td><?php echo $jabatan_asal;?></td>
</tr>
<tr>
<td>Jabatan Tujuan</td>
<td><?php echo $jabatan_tujuan;?></td>
</tr>
<tr>
<td>Dokumen Pendukung</td>
<td><a target="_blank" href="<?php echo $dokumen_pendukung?>"><?php echo $dokumen_pendukung?></a></td>
</tr>
<tr>
<td>Syarat PAK</td>
<td><?php echo $syarat_pak;?></td>
</tr>
</table>
</div>
</div>
</div>
<h1></h1>
<div class="card">
<div class="card-header bg-primary text-light"><b>DATA BERKAS</b></div>
<div class="card-body">
<div class="table-responsive">
<table class="table table-bordered" width="100%" cellspacing="0" id="example" class="display">
<thead>
<tr>
<th width="10"><center>No</center></th>
<th><center>Aspek</center></th>
<th><center>Kegiatan</center></th>
<th width="100"><center>Bukti</center></th>
<th width="70"><center>Poin</center></th>
<th width="50"><center>Action</center></th>
</thead>
<tbody>
<?php
$count = 0;
foreach($data_berkas as $value_berkas):
$count++;?>
<tr>
<td><center><?php echo $count;?></center></td>
<td><?php echo $value_berkas[1];?></td>
<td><?php echo $value_berkas[2];?></td>
<td><a target="_blank" href="<?php echo $value_berkas[3];?>">Lihat Berkas</a></td>
<td><center><?php echo $value_berkas[4];?></center></td>
<td>
<a class="btn btn-sm btn-success" href="penilai_detail_nilai1.php?nip_penilai=<?php echo $nip_penilai;?>&id_berkas=<?php echo $value_berkas[0];?>&id_pengajuan=<?php echo $id_pengajuan;?>">Detail</a>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
<div class="table-responsive">
<table class="table">
<tr>
<td>
<p><b>Total PAK</b></p>
</td>
<td width="80">
<p><b><?php echo $total_poin;?></b></p>
</td>
<td width="90"></td>
</tr>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="vendor/jquery/jquery.min.js"></script>
<script src="vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
<script type="text/javascript" language="javascript" src="DataTables/assets/js/jquery.dataTables.min.js"></script>
<script type="text/javascript" class="init">
$(document).ready(function() {
$('#example').DataTable();
});
</script>
<script>
$("#menu-toggle").click(function(e) {
e.preventDefault();
$("#wrapper").toggleClass("toggled");
});
</script>
</body>
</html>