-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlihat_p.php
95 lines (78 loc) · 3.77 KB
/
lihat_p.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<title>Pengaduan</title>
<!-- Custom fonts for this template-->
<link href="vendor/fontawesome-free/css/all.min.css" rel="stylesheet" type="text/css">
<link href="https://fonts.googleapis.com/css?family=Nunito:200,200i,300,300i,400,400i,600,600i,700,700i,800,800i,900,900i" rel="stylesheet">
<!-- Custom styles for this template-->
<link href="css/sb-admin-2.min.css" rel="stylesheet">
</head>
<body id="page-top">
<div class="card shadow">
<div class="card-header text-dark">
Lihat Laporan
</div>
<div class="card-body">
<table class="table table-hover">
<?php
include "koneksi.php";
if(!isset($_SESSION['nama'])){
echo "<font color='red'>Harap Login Terlebih Dahulu</font><hr>";
}else{
?>
<thead>
<tr>
<th class="text-dark">No.</th>
<th class="text-dark">Judul Laporan</th>
<th class="text-dark">Tanggal</th>
<th class="text-dark">Status</th>
<th class="text-dark">Aksi</th>
</tr>
</thead>
<tbody>
<?php
$no = 1;
$query = mysqli_query($conn, "SELECT * FROM pengaduan WHERE nik='$_SESSION[nik]'");
while ($d = mysqli_fetch_array($query)) {
?>
<tr>
<td><?php echo $no++ ?></td>
<td><?php echo $d['judul_laporan']; ?></td>
<td><?php echo $d['tgl_pengaduan'];?></td>
<td><?php echo $d['status'];?></td>
<td>
<a href="?url=detail_pengaduan&id=<?php echo $d['id_pengaduan'];?>" class="btn btn-info btn-icon-split btn-sm">
<span class="icon text-white-50">
<i class="fas fa-info"></i>
</span>
<span class="text">Detail</span>
</a>
<a href="?url=lihat_tanggapan&id=<?php echo $d['id_pengaduan'];?>" class="btn btn-primary btn-icon-split btn-sm">
<span class="icon text-white-50">
<i class="fas fa-eye"></i>
</span>
<span class="text">Lihat Tanggapan</span>
</a>
</td>
</tr>
<?php } }?>
</tbody>
</table>
</div>
</div>
<!-- Bootstrap core JavaScript-->
<script src="vendor/jquery/jquery.min.js"></script>
<script src="vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
<!-- Core plugin JavaScript-->
<script src="vendor/jquery-easing/jquery.easing.min.js"></script>
<!-- Custom scripts for all pages-->
<script src="js/sb-admin-2.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/sweetalert2@10"></script>
</body>
</html>