-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdashboard_data_ulasan.php
249 lines (232 loc) · 12.1 KB
/
dashboard_data_ulasan.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
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
<?php
include "koneksi.php";
session_start();
$qulasan = "select * from ulasan";
$data_ulasan = $conn->query($qulasan);
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Dashboard AUTOIN</title>
<link rel="shortcut icon" href="assets/img/favicon.ico">
<!-- 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 Icons -->
<link rel="stylesheet" href="assets/adminlte/plugins/fontawesome-free/css/all.min.css">
<!-- IonIcons -->
<link rel="stylesheet" href="https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css">
<!-- Theme style -->
<link rel="stylesheet" href="assets/adminlte/dist/css/adminlte.min.css">
</head>
<body class="hold-transition sidebar-mini">
<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="index.php" class="nav-link">Home</a>
</li>
</ul>
<!-- Right navbar links -->
<ul class="navbar-nav ml-auto">
<li class="nav-item">
<a class="nav-link" data-widget="fullscreen" href="#" role="button">
<i class="fas fa-expand-arrows-alt"></i>
</a>
</li>
<li class="nav-item">
<a class="nav-link" data-widget="control-sidebar" data-slide="true" href="#" role="button">
<i class="fas fa-th-large"></i>
</a>
</li>
</ul>
</nav>
<!-- /.navbar -->
<!-- Main Sidebar Container -->
<aside class="main-sidebar sidebar-dark-primary elevation-4 navbarkiri">
<!-- Brand Logo -->
<a href="#" class="brand-link">
<img src="assets/img/favicon.ico" alt="AUTOIN LOGO" class="brand-image img-circle" style="opacity: .8">
<span class="brand-text font-weight-light">AUTOIN</span>
</a>
<!-- Sidebar -->
<div class="sidebar">
<!-- Sidebar Menu -->
<nav class="mt-2">
<ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" role="menu" data-accordion="false">
<li class="nav-item menu-open">
<a href="dashboard.php" class="nav-link">
<i class="nav-icon fas fa-tachometer-alt"></i>
<p>
Dashboard
</p>
</a>
</li>
<li class="nav-item">
<a href="#" class="nav-link">
<i class="nav-icon fas fa-edit"></i>
<p>
Data
<i class="fas fa-angle-left right"></i>
</p>
</a>
<ul class="nav nav-treeview ">
<li class="nav-item">
<a href="dashboard_data_ulasan.php" class="nav-link">
<i class="far fa-circle nav-icon"></i>
<p>ulasan</p>
</a>
</li>
<li class="nav-item">
<a href="dashboard_data_dealer.php" class="nav-link">
<i class="far fa-circle nav-icon"></i>
<p>Data Dealer AUTOIN</p>
</a>
</li>
<li class="nav-item">
<a href="dashboard_data_informasi_mobil.php" class="nav-link">
<i class="far fa-circle nav-icon"></i>
<p>Data Informasi Mobil</p>
</a>
</li>
<li class="nav-item">
<a href="dashboard_data_wisata.php" class="nav-link">
<i class="far fa-circle nav-icon"></i>
<p>Data Daftar Wisata</p>
</a>
</li>
<li class="nav-item">
<a href="dashboard_data_mobil.php" class="nav-link">
<i class="far fa-circle nav-icon"></i>
<p>Data Mobil</p>
</a>
</li>
<li class="nav-item">
<a href="dashboard_data_pesanan.php" class="nav-link">
<i class="far fa-circle nav-icon"></i>
<p>Data Pesanan</p>
</a>
</li>
</ul>
</li>
</ul>
</nav>
<!-- /.sidebar-menu -->
</div>
<!-- /.sidebar -->
</aside>
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<div class="content-header">
<div class="container-fluid">
<div class="row mb-2">
<div class="col-sm-6">
<h1 class="m-0">Data Ulasan</h1>
</div><!-- /.col -->
<div class="col-sm-6">
<ol class="breadcrumb float-sm-right">
<li class="breadcrumb-item"><a href="index.php">Home</a></li>
<li class="breadcrumb-item active">Dashboard v3</li>
</ol>
</div><!-- /.col -->
</div><!-- /.row -->
</div><!-- /.container-fluid -->
</div>
<!-- /.content-header -->
<!-- Main content -->
<div class="content">
<div class="row">
<div class="col-12">
<div class="card">
<!-- ./card-header -->
<div class="card-body">
<table class="table table-bordered table-hover">
<thead style="background-color: #343A40; color: #FFFFFF">
<tr>
<th>Nama</th>
<th>Email</th>
<th>Subyek</th>
<th>Aksi</th>
</tr>
</thead>
<?php
foreach($data_ulasan as $index => $value){
?>
<tbody>
<tr data-widget="expandable-table" aria-expanded="false">
<td><?php echo $value['nama'] ?></td>
<td><?php echo $value['email'] ?></td>
<td><?php echo $value['subjek'] ?></td>
<td>
<a href="edit_ulasan.php?id_ulasan=<?php echo $value['id_ulasan'] ?>" class="btn btn-warning btn-xs">
<span class="fa fa-pen"></span>
</a>
<a href="hapus_ulasan.php?id_ulasan=<?php echo $value['id_ulasan'] ?>" class="btn btn-danger btn-xs">
<span class="fa fa-trash-alt"></span>
</a>
</td>
</tr>
<tr class="expandable-body">
<td colspan="1">
<p>
<?php echo $value['pesan'] ?>
</p>
</td>
<td colspan="3">
<p>
<?php echo $value['balasan'] ?>
</p>
</td>
</tr>
</tbody>
<?php
}
?>
</table>
</div>
<!-- /.card-body -->
</div>
<!-- /.card -->
</div>
</div>
</div>
<!-- /.content -->
</div>
<!-- /.content-wrapper -->
<!-- Control Sidebar -->
<aside class="control-sidebar control-sidebar-dark">
<!-- Control sidebar content goes here -->
</aside>
<!-- /.control-sidebar -->
<!-- Main Footer -->
<footer class="main-footer">
<strong>Copyright © 2014-2021 <a href="https://adminlte.io">AdminLTE.io</a>.</strong>
All rights reserved.
<div class="float-right d-none d-sm-inline-block">
<b>Version</b> 3.1.0
</div>
</footer>
</div>
<!-- ./wrapper -->
<!-- REQUIRED SCRIPTS -->
<!-- jQuery -->
<script src="assets/adminlte/plugins/jquery/jquery.min.js"></script>
<!-- Bootstrap -->
<script src="assets/adminlte/plugins/bootstrap/js/bootstrap.bundle.min.js"></script>
<!-- AdminLTE -->
<script src="assets/adminlte/dist/js/adminlte.js"></script>
<!-- OPTIONAL SCRIPTS -->
<script src="assets/adminlte/plugins/chart.js/Chart.min.js"></script>
<!-- AdminLTE for demo purposes -->
<script src="assets/adminlte/dist/js/demo.js"></script>
<!-- AdminLTE dashboard demo (This is only for demo purposes) -->
<script src="assets/adminlte/dist/js/pages/dashboard3.js"></script>
</body>
</html>