-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathberanda.php
More file actions
118 lines (97 loc) · 3.82 KB
/
Copy pathberanda.php
File metadata and controls
118 lines (97 loc) · 3.82 KB
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
<?php
// Include the database connection file
include "koneksi.php";
// Rest of your code
$siswa = mysqli_num_rows(mysqli_query($koneksi, "SELECT * FROM siswa"));
$tabungan = mysqli_num_rows(mysqli_query($koneksi, "SELECT *, COUNT(*) AS total FROM tabungan GROUP BY id_siswa"));
$uang = mysqli_query($koneksi, "SELECT tabungan.id_tabungan,
tabungan.setoran,
tabungan.penarikan,
sum(tabungan.penarikan) as jumlah_penarikan,
sum(tabungan.setoran) as jumlah_setoran
FROM tabungan");
$row = mysqli_fetch_array($uang);
// Rest of your code
// Rest of your code
?>
<!-- Rest of your HTML and display code -->
<div class="row">
<!-- fix for small devices only -->
<div class="clearfix visible-sm-block"></div>
<!-- /.col -->
<div class="col-lg-3 col-xs-6">
<!-- small box -->
<div class="small-box bg-yellow">
<div class="inner">
<h3><?php echo $siswa; ?></h3>
<p>Jumlah Siswa</p>
</div>
<div class="icon">
<i class="ion ion-person"></i>
</div>
<a href="siswa.html" class="small-box-footer">
Lihat Selengkapnya <i class="fa fa-arrow-circle-right"></i>
</a>
</div>
</div>
<div class="col-lg-3 col-xs-6">
<!-- small box -->
<div class="small-box bg-blue">
<div class="inner">
<h3><?php echo $tabungan; ?></h3>
<p>Jumlah Tabungan</p>
</div>
<div class="icon">
<i class="ion ion-ios-book"></i>
</div>
<a href="tabungan.html" class="small-box-footer">
Lihat Selengkapnya <i class="fa fa-arrow-circle-right"></i>
</a>
</div>
</div>
<div class="col-lg-3 col-xs-6">
<!-- small box -->
<div class="small-box bg-green">
<div class="inner">
<h3>Rp. <?php echo format_rupiah($row['jumlah_setoran']); ?></h3>
<p>Jumlah Setoran</p>
</div>
<div class="icon">
<i class="ion ion-ios-cash"></i>
</div>
<a href="tabungan.html" class="small-box-footer">
Lihat Selengkapnya <i class="fa fa-arrow-circle-right"></i>
</a>
</div>
</div>
<div class="col-lg-3 col-xs-6">
<!-- small box -->
<div class="small-box bg-green">
<div class="inner">
<h3>Rp. <?php echo format_rupiah($row['jumlah_penarikan']); ?></h3>
<p>Jumlah Penarikan</p>
</div>
<div class="icon">
<i class="ion ion-ios-cash"></i>
</div>
<a href="tabungan.html" class="small-box-footer">
Lihat Selengkapnya <i class="fa fa-arrow-circle-right"></i>
</a>
</div>
</div>
<div class="col-lg-3 col-xs-6">
<!-- small box -->
<div class="small-box bg-green">
<div class="inner">
<h3>Rp. <?php echo format_rupiah($row['jumlah_setoran'] - $row['jumlah_penarikan']); ?></h3>
<p>Jumlah Saldo</p>
</div>
<div class="icon">
<i class="ion ion-ios-cash"></i>
</div>
<a href="tabungan.html" class="small-box-footer">
Lihat Selengkapnya <i class="fa fa-arrow-circle-right"></i>
</a>
</div>
</div>
</div>