-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdashboard_admin.php
52 lines (44 loc) · 1.36 KB
/
dashboard_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
<?php include 'layout/header.php'; ?>
<div class="page-header d-print-none">
<div class="row align-items-center">
<div class="col">
<!-- Page pre-title -->
<h2 class="page-title">
Dashboard
</h2>
<div class="page-pretitle">
Panel dashboard admin
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-4">
<div class="card">
<div class="card-header"><b>Jumlah Iklan Adopsi</b></div>
<div class="card-body text-center">
<?php $query = mysqli_query($koneksi, "SELECT * FROM kucing WHERE status = 'acc'"); ?>
<h1><?= mysqli_num_rows($query); ?></h1>
</div>
</div>
</div>
<div class="col-md-4">
<div class="card">
<div class="card-header"><b>Jumlah Berhasil Adopsi</b></div>
<div class="card-body text-center">
<?php $query = mysqli_query($koneksi, "SELECT * FROM adopsi WHERE is_adoption = '1'"); ?>
<h1><?= mysqli_num_rows($query); ?></h1>
</div>
</div>
</div>
<div class="col-md-4">
<div class="card">
<div class="card-header"><b>Jumlah User</b></div>
<div class="card-body text-center">
<?php $query = mysqli_query($koneksi, "SELECT * FROM user WHERE akses = 'user'"); ?>
<h1><?= mysqli_num_rows($query); ?></h1>
</div>
</div>
</div>
</div>
<?php include 'layout/footer.php'; ?>