-
Notifications
You must be signed in to change notification settings - Fork 2
/
penilai_nilai2.php
132 lines (129 loc) · 4.85 KB
/
penilai_nilai2.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
<?php
include_once("koneksi/conn.php");
$nip_penilai = $_GET['nip_penilai'];
$id_berkas = $_GET['id_berkas'];
$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_2/berkas_pak.volume, berkas_pak.volume, berkas_pak.poin_2 FROM berkas_pak INNER JOIN rubrik ON berkas_pak.kode_rubrik=rubrik.kode_rubrik WHERE id_berkas = $id_berkas;";
$rs_berkas = $koneksi->Execute($select_berkas);
if($rs_berkas->recordCount()>0){
while(!$rs_berkas->EOF){
$aspek_rubrik = $rs_berkas->fields[1];
$kegiatan_rubrik = $rs_berkas->fields[2];
$bukti_berkas = $rs_berkas->fields[3];
$poin_awal = $rs_berkas->fields[4];
$volume = $rs_berkas->fields[5];
$poin_2 = $rs_berkas->fields[6];
$rs_berkas->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">
</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>TENTUKAN NILAI BERKAS</b></div>
<div class="card-body">
<h1></h1>
<div class="table-responsive">
<table class="table" id="tabelberkas" width="100%" cellspacing="0">
<tr>
<td width="150">Aspek</td>
<td><?php echo $aspek_rubrik;?></td>
</tr>
<tr>
<td>Kegiatan</td>
<td><?php echo $kegiatan_rubrik;?></td>
</tr>
<tr>
<td>Bukti</td>
<td><a target="_blank" href="<?php echo $bukti_berkas;?>"><?php echo $bukti_berkas;?></a></td>
</tr>
</table>
</div>
<div class="table-responsive table-borderless">
<table class="table" id="tabelberkas" width="100%" cellspacing="0">
<tr>
<td width="133">Poin</td>
<td>
<div class="col-sm-2">
<input class="form-control" type="text" name="poin_awal" id="poin_awal" value="<?php echo $poin_awal;?>"> <a href="javascript: void(0)" onClick="calc()"></a>
</div>
</td>
</tr>
<tr>
<td>Volume</td>
<td>
<div class="col-sm-2">
<input class="form-control" readonly="readonly" type="text" name="volume" id="volume" value="<?php echo $volume;?>">
</div>
</td>
</tr>
<form action="penilai_nilai2_code.php?nip_penilai=<?php echo $nip_penilai;?>&id_berkas=<?php echo $id_berkas;?>&id_pengajuan=<?php echo $id_pengajuan;?>" method="POST">
<tr>
<td>Total Poin</td>
<td>
<div class="col-sm-2">
<input class="form-control" readonly="readonly" type="text" name="poin_2" id="poin_2" value="<?php echo $poin_2;?>">
</div>
</td>
</tr>
<tr>
<td></td>
<td>
<input type="submit" name="simpan" value="Simpan" style="margin: 0 0 0 1.75%;" class="btn btn-success">
</td>
</tr>
</form>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
<script src="vendor/jquery/jquery.min.js"></script>
<script type="text/javascript">
$("#poin_awal,#volume").keyup(function () {
$('#poin_2').val($('#volume').val() * $('#poin_awal').val());
});
</script>
<script>
$("#menu-toggle").click(function(e) {
e.preventDefault();
$("#wrapper").toggleClass("toggled");
});
</script>
</body>
</html>