-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex_admin.php
284 lines (241 loc) · 10.4 KB
/
index_admin.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
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
<!--
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>SRH Training Center</title>
<link href="Assets/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<link href="Assets/css/dataTables.bootstrap.min.css" rel="stylesheet" type="text/css" />
<link href="Assets/font-awesome-4.5.0/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="https://www.w3schools.com/lib/w3-colors-flat.css">
<script src="Assets/js/jquery.js" type="text/javascript"></script>
<script src="Assets/js/bootstrap.min.js" type="text/javascript"></script>
<script src="Assets/js/jquery.dataTables.min.js" type="text/javascript"></script>
<script src="Assets/js/dataTables.bootstrap.min.js" type="text/javascript"></script>
<style type="text/css">
body {
margin-top: 70px;
}
.modalDialog {
position: fixed;
font-family: Arial, Helvetica, sans-serif;
top: 0;
right: 0;
bottom: 0;
left: 0;
background: rgba(0, 0, 0, 0.8);
z-index: 99999;
opacity: 0;
transition: opacity 200ms ease-in;
pointer-events: none;
}
.modalDialog:target {
opacity: 1;
pointer-events: auto;
}
.modalDialog>div {
width: 400px;
position: relative;
margin: 10% auto;
padding: 5px 20px 13px 20px;
border-radius: 10px;
background: #fff;
background: linear-gradient(#fff, #aaa);
}
.close:hover {
background: #00d9ff;
}
.close {
background: #606061;
color: #FFFFFF;
line-height: 25px;
position: absolute;
text-align: center;
top: -10px;
right: -12px;
width: 24px;
text-decoration: none;
font-weight: bold;
border-radius: 12px;
box-shadow: 1px 1px 3px #000;
}
button {
background-color: #4CAF50;
color: white;
padding: 14px 20px;
margin: 8px 0;
border: none;
cursor: pointer;
width: 100%;
}
</style>
</head>
<body>
<?php //mengambil file menu.php
// require 'akun.php';
?>
<?php //mengambil file menu.php
// require 'menu.php';
?>
<?php //mengambil file menu.php
// require 'content_admin.php';
?>
<?php //mengambil file menu.php
// require 'footer.php';
?>
<script type="text/javascript">
$(function() {
$('#dtskripsi').dataTable();
});
</script>
</body>
</html> -->
<!--
=========================================================
* Soft UI Dashboard - v1.0.3
=========================================================
* Product Page: https://www.creative-tim.com/product/soft-ui-dashboard
* Copyright 2021 Creative Tim (https://www.creative-tim.com)
* Licensed under MIT (https://www.creative-tim.com/license)
* Coded by Creative Tim
=========================================================
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-->
<?php
session_start();
//Aktifkan session
require 'config/koneksi.php'; ?>
<!DOCTYPE html>
<html lang="en">
<head>
<?php include 'split/head.php'; ?>
</head>
<body class="g-sidenav-show bg-gray-100">
<?php include 'split/aside.php'; ?>
<main class="main-content position-relative max-height-vh-100 h-100 mt-1 border-radius-lg ">
<!-- Navbar -->
<?php include 'split/navbar.php'; ?>
<!-- End Navbar -->
<div class="container-fluid py-4">
<div class="row mb-4">
<div class="col-xl-3 col-sm-12 mb-xl-0 mb-4">
<div class="card">
<div class="card-body p-3">
<div class="row">
<div class="col-8">
<div class="numbers">
<p class="text-sm mb-0 text-capitalize font-weight-bold">Peserta</p>
<h5 class="font-weight-bolder mb-0">
<?php
$n = mysqli_query($koneksi, "select * from peserta");
$d = mysqli_num_rows($n);
echo $d;
?>
<span class="text-primary text-sm font-weight-bolder"> Orang</span>
</h5>
</div>
</div>
<div class="col-4 text-end">
<div class="icon icon-shape bg-gradient-primary shadow text-center border-radius-md">
<i class="ni ni-money-coins text-lg opacity-10" aria-hidden="true"></i>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-xl-3 col-sm-12 mb-xl-0 mb-4">
<div class="card">
<div class="card-body p-3">
<div class="row">
<div class="col-8">
<div class="numbers">
<p class="text-sm mb-0 text-capitalize font-weight-bold">Instruktur</p>
<h5 class="font-weight-bolder mb-0">
<?php
$n = mysqli_query($koneksi, "select * from instruktur");
$d = mysqli_num_rows($n);
echo $d;
?>
<span class="text-warning text-sm font-weight-bolder"> Orang</span>
</h5>
</div>
</div>
<div class="col-4 text-end">
<div class="icon icon-shape bg-gradient-primary shadow text-center border-radius-md">
<i class="ni ni-world text-lg opacity-10" aria-hidden="true"></i>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-xl-3 col-sm-12 mb-xl-0 mb-4">
<div class="card">
<div class="card-body p-3">
<div class="row">
<div class="col-8">
<div class="numbers">
<p class="text-sm mb-0 text-capitalize font-weight-bold">Pembayaran</p>
<h5 class="font-weight-bolder mb-0">
<?php
$n = mysqli_query($koneksi, "select * from bayar");
$d = mysqli_num_rows($n);
echo $d;
?>
<span class="text-success text-sm font-weight-bolder"> Kali</span>
</h5>
</div>
</div>
<div class="col-4 text-end">
<div class="icon icon-shape bg-gradient-primary shadow text-center border-radius-md">
<i class="ni ni-paper-diploma text-lg opacity-10" aria-hidden="true"></i>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-xl-3 col-sm-12 mb-xl-0 mb-4">
<div class="card">
<div class="card-body p-3">
<div class="row">
<div class="col-8">
<div class="numbers">
<p class="text-sm mb-0 text-capitalize font-weight-bold">Total Kursus</p>
<h5 class="font-weight-bolder mb-0">
<?php
$n = mysqli_query($koneksi, "select * from kursus");
$d = mysqli_num_rows($n);
echo $d;
?>
<span class="text-danger text-sm font-weight-bolder"> Terdaftar</span>
</h5>
</div>
</div>
<div class="col-4 text-end">
<div class="icon icon-shape bg-gradient-primary shadow text-center border-radius-md">
<i class="ni ni-paper-diploma text-lg opacity-10" aria-hidden="true"></i>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-lg-12 mb-lg-0">
<div class="card py-3">
<div class="card-body px-3 py-1">
<?php include 'content_admin.php'; ?>
</div>
</div>
</div>
</div>
<?php include 'split/footer.php'; ?>
</div>
</main>
<!-- Core JS Files -->
<?php include 'split/js.php'; ?>
</body>
</html>