-
Notifications
You must be signed in to change notification settings - Fork 2
/
dosen_berkas.php
158 lines (156 loc) · 6.02 KB
/
dosen_berkas.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
<?php
include_once("koneksi/conn.php");
$nip_dosen = $_GET['nip_dosen'];
$id_pengajuan = $_GET['id_pengajuan'];
$select_dosen = "SELECT * FROM dosen WHERE nip_dosen = '$nip_dosen'";
$rs_dosen = $koneksi->Execute($select_dosen);
if($rs_dosen->recordCount()>0){
while(!$rs_dosen->EOF){
$nama_dosen = $rs_dosen->fields[2];
$rs_dosen->MoveNext();
}
}
$select_rubrik = "SELECT * FROM rubrik";
$rs_rubrik = $koneksi->Execute($select_rubrik);
if($rs_rubrik->recordCount()>0){
while(!$rs_rubrik->EOF){
$data_rubrik[] = $rs_rubrik->fields;
$rs_rubrik->MoveNext();
}
}
$select_berkas = "SELECT * FROM berkas_pak ORDER BY id_berkas DESC LIMIT 1";
$rs_berkas = $koneksi->Execute($select_berkas);
if($rs_berkas->recordCount()>0){
while(!$rs_berkas->EOF){
$id_berkas = $rs_berkas->fields[0];
$rs_berkas->MoveNext();
}
}else{
$id_berkas = 0;
}
?>
<!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 rel="stylesheet" type="text/css" href="DataTables/assets/css/jquery.dataTables.min.css">
<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="dosen_beranda.php?nip_dosen=<?php echo $nip_dosen?>" class="list-group-item list-group-item-action bg-light">Beranda</a>
<a href="dosen_pengajuan_riwayat.php?nip_dosen=<?php echo $nip_dosen?>" class="list-group-item list-group-item-action bg-info text-light">Riwayat Pengajuan</a>
</div>
</div>
<div id="page-content-wrapper">
<?php include"include/navbar_dosen.php"?>
<div class="container-fluid">
<h1></h1>
<div class="card">
<div class="card-header bg-primary text-light"><b>MASUKKAN DATA BERKAS</b></div>
<div class="card-body">
<button style="margin: 0 0 0 1%;" class="btn btn-success" data-toggle="modal" data-target=".bd-example-modal-lg">
PILIH ASPEK & KEGIATAN
</button>
<h1></h1>
<div class="modal fade bd-example-modal-lg" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true">
<div class="modal-dialog modal-xl">
<div class="modal-content">
<div class="card">
<div class="card-header bg-primary text-light"><b>PILIH ASPEK & KEGIATAN</b></div>
<div class="card-body">
<h1></h1>
<div class="table-responsive">
<table class="table table-bordered" width="100%" cellspacing="0" id="example" class="display">
<thead>
<tr>
<th width="10">ID</th>
<th>ASPEK</th>
<th>KEGIATAN</th>
<th>POIN</th>
<th>ACTION</th>
</tr>
</thead>
<tbody>
<?php foreach($data_rubrik as $value_rubrik): ?>
<tr>
<td><?php echo $value_rubrik[0];?></td>
<td><?php echo $value_rubrik[1];?></td>
<td><?php echo $value_rubrik[2];?></td>
<td><?php echo $value_rubrik[3];?></td>
<td>
<a class="btn btn-sm btn-primary" href="dosen_berkas_input.php?nip_dosen=<?php echo $nip_dosen;?>&id_pengajuan=<?php echo $id_pengajuan;?>&kode_rubrik=<?php echo $value_rubrik[0];?>">Pilih</a>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
<form>
<div class="form-group">
<label class="control-label col-sm-12" for="aspek_rubrik">Aspek:</label>
<div class="col-sm-8">
<input type="text" class="form-control" name="aspek_rubrik" placeholder="Pilih aspek" readonly="readonly">
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-12" for="kegiatan_rubrik">Kegiatan:</label>
<div class="col-sm-8">
<textarea rows="7" class="form-control" name="kegiatan_rubrik" placeholder="Pilih kegiatan" readonly="readonly"></textarea>
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-12" for="poin">Poin</label>
<div class="col-sm-2">
<input type="text" class="form-control" name="poin" readonly="readonly" placeholder="Poin berkas">
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-12" for="bukti_berkas">Bukti:</label>
<div class="col-sm-8">
<input type="text" class="form-control" name="bukti_berkas" placeholder="Masukkan link google drive" readonly="readonly">
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-12" for="volume">Volume:</label>
<div class="col-sm-2">
<input type="text" class="form-control" name="volume" placeholder="Volume" readonly="readonly">
</div>
</div>
<input type="submit" name="simpan" value="Simpan Berkas" style="margin: 0 0 0 53%;" class="btn btn-primary" disabled="disabled">
</form>
</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>