Tanggapan

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 7

coba_lihatpgd.

php

<?php
session_start();
if(!isset($_SESSION['nama']))
{
die("Anda Belum Login");
}
?>

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-
scale=1">
<title>AdminLTE 3 | Blank Page</title>

<!-- Google Font: Source Sans Pro -->


<link rel="stylesheet" href="https://fonts.googleapis.com/css?
family=Source+Sans+Pro:300,400,400i,700&display=fallback">
<!-- Font Awesome -->
<link rel="stylesheet"
href="plugins/fontawesome-free/css/all.min.css">
<!-- Theme style -->
<link rel="stylesheet" href="dist/css/adminlte.min.css">
</head>
<body class="hold-transition sidebar-mini">
<!-- Site wrapper -->
<div class="wrapper">
<!-- Navbar -->
<nav class="main-header navbar navbar-expand navbar-white navbar-
light">
<!-- Left navbar links -->
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link" data-widget="pushmenu" href="#"
role="button"><i class="fas fa-bars"></i></a>
</li>
<li class="nav-item d-none d-sm-inline-block">
<a href="index3.html" class="nav-link">Home</a>
</li>
<li class="nav-item d-none d-sm-inline-block">
<a href="#" class="nav-link">Contact</a>
</li>
</ul>
</nav>
<!-- /.navbar -->

<!-- Main Sidebar Container -->


<aside class="main-sidebar sidebar-dark-primary elevation-4">
<!-- Brand Logo -->
<a href="index3.html" class="brand-link">
<img src="dist/img/AdminLTELogo.png" alt="AdminLTE Logo"
class="brand-image img-circle elevation-3" style="opacity: .8">
<span class="brand-text font-weight-light">AdminLTE 3</span>
</a>

<!-- Sidebar -->


<div class="sidebar">
<!-- Sidebar user (optional) -->
<div class="user-panel mt-3 pb-3 mb-3 d-flex">
<div class="image">
<img src="dist/img/user2-160x160.jpg" class="img-circle
elevation-2" alt="User Image">
</div>
<div class="info">
<a href="#" class="d-block"><?php echo $_SESSION['nama'];?
></a>
</div>
</div>

<!-- SidebarSearch Form -->


<div class="form-inline">
<div class="input-group" data-widget="sidebar-search">
<input class="form-control form-control-sidebar"
type="search" placeholder="Search" aria-label="Search">
<div class="input-group-append">
<button class="btn btn-sidebar">
<i class="fas fa-search fa-fw"></i>
</button>
</div>
</div>
</div>

<!-- Nav Item - Dashboard -->


<li class="nav-item">
<a class="nav-link" href="masyarakat.php">
<i class="fas fa-fw fa-tachometer-alt"></i>
<span>Dashboard</span></a>
</li>
<!-- Nav Item - Charts -->
<li class="nav-item">
<a class="nav-link" href="?url=tulis_pengaduan">
<i class="fas fa-edit"></i>
<span>Tulis Pengaduan</span></a>
</li>

<!-- Nav Item - Tables -->


<li class="nav-item">
<a class="nav-link" href="?url=lihat_pengaduan">
<i class="fas fa-search"></i>
<span>Lihat Laporan</span></a>
</li>

<!-- Divider -->


<hr class="sidebar-divider d-none d-md-block">

<li class="nav-item">
<a class="nav-link" href="logout.php">
<i class="fas fa-sign-out-alt"></i>
<span>Keluar</span></a>
</li>
</nav>
<!-- /.sidebar-menu -->
</div>
<!-- /.sidebar -->
</aside>

<!-- Content Wrapper. Contains page content -->


<div class="content-wrapper">
<!-- Content Header (Page header) -->
<!-- DataTales Example -->
<div class="card shadow mb-4">
<div class="card-header py-3">
<h6 class="m-0 font-weight-bold text-secondary">Data
Pengaduan</h6>
</div>
<div class="card-body">
<div class="table-responsive">
<table class="table table-bordered" id="dataTable"
width="100%" cellspacing="0">
<thead>
<tr align="center">
<th>ID</th>
<th>Tanggal</th>
<th>NIK</th>
<th>Isi Laporan</th>
<th>Foto</th>
<th>Status</th>
<th>Aksi</th>
</tr>
</thead>

<!-- /.content -->


</div>
<!-- /.content-wrapper -->

<footer class="main-footer">
<div class="float-right d-none d-sm-block">
<b>Version</b> 3.2.0
</div>
<strong> <a href="https://adminlte.io"></a>.</strong>
</footer>

<!-- Control Sidebar -->


<aside class="control-sidebar control-sidebar-dark">
<!-- Control sidebar content goes here -->
</aside>
<!-- /.control-sidebar -->
</div>
<!-- ./wrapper -->

<!-- jQuery -->


<script src="plugins/jquery/jquery.min.js"></script>
<!-- Bootstrap 4 -->
<script src="plugins/bootstrap/js/bootstrap.bundle.min.js"></script>
<!-- AdminLTE App -->
<script src="dist/js/adminlte.min.js"></script>
<!-- AdminLTE for demo purposes -->
<script src="dist/js/demo.js"></script>
</body>
</html>

Lihat_tanggapan.php

<!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>SB Admin 2 - Blank</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">
Detail Pengaduan
</div>
<div class="card-body">
<div class="form-group" cols-sm-6>
<a href="?url=lihat_pengaduan" class="btn btn-primary btn-
icon-split">
<span class="icon text-white-50">
<i class="fas fa-arrow-left"></i>
</span>
<span class="text">Kembali</span>
</a>
</div>

<form action="" method="post" class="form-horizontal"


enctype="multipart/form-data">

<?php
require 'koneksi.php';

$sql=mysqli_query($conn, "select * from


pengaduan,tanggapan where tanggapan.id_pengaduan='$_GET[id]' and
tanggapan.id_pengaduan=pengaduan.id_pengaduan");
$cek=mysqli_num_rows($sql);
if ($cek<1)
{
echo "tidak ditemukan";
}
else
{
if ($data=mysqli_fetch_array($sql))
{
?>

<div class="form-group cols-sm-6">


<label>Tanggal Tanggapan</label>
<input type="text" name="tgl_pengaduan" value="<?php
echo $data['tgl_tanggapan']; ?>" class="form-control" readonly>
</div>
<div class="form-group cols-sm-6">
<label>Pengaduan</label>
<textarea name="isi_laporan" class="form-control"
rows="7" readonly>
<?php echo $data['isi_laporan']; ?>
</textarea>
</div>
<div class="form-group cols-sm-6">
<label>Tanggapan</label>
<textarea name="isi_laporan" class="form-control"
rows="7" readonly>
<?php echo $data['tanggapan']; ?>
</textarea>
</div>
<div class="form-group cols-sm-1">
<label>Bukti Foto</label><br>
<img src="../foto/<?php echo $data['foto_bukti'];
?>" width=500 class="form-control h-25 w-50 p-2">
</div>

<?php } } ?>
</form>

<!-- 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>

</body>

</html>>

You might also like