-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathkewajiban_khusus.php
executable file
·139 lines (134 loc) · 7.75 KB
/
kewajiban_khusus.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
<?php require(realpath('header.php')); ?>
<?php
$id_user = $_SESSION['id_user'];
?>
<section class="content">
<div class="container-fluid">
<div class="row clearfix">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
<div class="card">
<div class="header">
<h2>
TAMBAH KEWAJIBAN KHUSUS
</h2>
</div>
<div class="body">
<form action="pages/tambah_kewajiban_khusus.php" method="POST" enctype="multipart/form-data">
<input type="hidden" name="id_user" value="<?php echo $id_user?>">
<div class="row clearfix">
<div class="form-group form-float">
<div class="col-md-4">
<div class="form-group">
<div class="form-line">
<label class="">Tahun</label>
<input type="text" id="" name="tahun" class="form-control" required>
</div>
</div>
</div>
<div class="col-md-4">
<div class="form-group">
<div class="form-line">
<label class="">Judul Karya</label>
<input type="text" id="" name="judul_karya" class="form-control" required>
</div>
</div>
</div>
<div class="col-md-4" >
<div class="form-group">
<div class="form-line">
<label>Jenis Karya</label>
<select class="form-control show-tick" name="jenis_karya" required>
<option>-- Please Select --</option>
<option value="Lanjutkan">Lanjutkan</option>
<option>asasa</option>
</select>
</div>
</div>
</div>
</div>
</div>
<div class="row clearfix">
<div class="form-group form-float">
<div class="col-md-4">
<div class="form-group">
<div class="form-line">
<label class="">Forum Publikasi</label>
<input type="text" id="" name="forum_publikasi" class="form-control" required>
</div>
</div>
</div>
<div class="col-md-4">
<div class="form-group">
<div class="form-line" style="">
<label class="">Bukti Dokumen</label>
<input type="file" id="" name="file" class="form-control" required>
</div>
</div>
</div>
<div class="col-md-4">
<div class="form-group">
<button type="submit" name="simpan" class="btn btn-success m-t-15 waves-effect" style="top: 20px">SAVE</button>
</div>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
<div class="row clearfix">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
<div class="card">
<div class="header">
<h2>
KINERJA KEWAJIBAN KHUSUS
</h2>
</div>
<div class="body">
<div class="table-responsive">
<table class="table table-bordered table-striped table-hover js-basic-example dataTable">
<thead>
<tr>
<th>TAHUN</th>
<th>JUDUL KARYA</th>
<th>JENIS KARYA</th>
<th>FORUM PUBLIKASI</th>
<th>BUKTI DOKUMEN</th>
<th>AKSI</th>
</tr>
</thead>
<tbody>
<?php
$no = 0;
$query = "SELECT * FROM kewajiban_khusus where id_user = '$id_user' AND id_tahun = (SELECT id FROM tahun_ajaran WHERE status = 1)";
$result = mysqli_query($conn, $query);
while ($row = mysqli_fetch_array($result)) {
?>
<tr>
<td><?php echo $row['tahun']?></td>
<td><?php echo $row['judul_karya']?></td>
<td><?php echo $row['jenis_karya']?></td>
<td><?php echo $row['forum_publikasi']?></td>
<td><a href="files/kewajiban_khusus/<?php echo $row['bukti_dokumen']?>" target="_blank"><?php echo $row['bukti_dokumen']?></a></td>
<td><div class="btn-toolbar" role="toolbar" aria-label="Toolbar with button groups">
<div class="btn-group" role="group" aria-label="First group">
<button type="button" class="btn btn-warning waves-effect" onclick="window.location.href='ubah_kewajiban.php?id=<?php echo $row['id_kewajiban']; ?>'">Ubah</button>
<button type="button" class="btn btn-danger waves-effect" onclick="window.location.href='pages/hapus_kewajiban.php?id=<?php echo $row['id_kewajiban']; ?>'">Hapus</button>
</div>
</div></td>
</tr>
<?php
$no++;
}
?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<?php require(realpath('footer.php')); ?>