-
Notifications
You must be signed in to change notification settings - Fork 0
/
kas_masuk.php
69 lines (56 loc) · 1.77 KB
/
kas_masuk.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
<?php include "header.php" ?>
<div id="page-wrapper">
<div class="main-page">
<h3 class="title1"> <span class="fa fa-folder-o"></span> Kas Siswa <small>/ Kas Masuk</small> </h3>
<hr style="border: 1px solid #f50057;">
<div class="blank-page widget-shadow scroll" id="style-2 div1">
<div class="panel panel-default">
<div class="panel-heading">
<h3><span class="fa fa-folder-o"></span> Daftar Kas Masuk</h3>
</div>
<div class="panel-body">
<div class="table-responsive">
<table class="table table-striped table-bordered table-hover data">
<thead>
<tr>
<th>No.</th>
<th>Nama Siswa</th>
<th>Kelas</th>
<th>tanggal</th>
<th>keterangan</th>
<th>jumlah</th>
</thead>
<tbody>
<?php
$no = 1;
$total=0;
$sql = $konek->query("select * from db_kas where jenis = 'masuk' ");
while ($data=$sql->fetch_assoc()) {
# code...
?>
<tr class="odd gradeX">
<td><?php echo $no++; ?>.</td>
<td><?php echo $data['namasiswa'];?></td>
<td><?php echo $data['kelas'];?></td>
<td><?php echo date('d F Y', strtotime( $data['tgl']));?></td>
<td><?php echo $data['keterangan'];?></td>
<td align="right"><?php echo number_format( $data['jumlah']).",-";?></td>
</tr>
<?php
$total=$total+$data['jumlah'];
}
?>
</tbody>
<tr>
<th colspan="5" style="text-align: center;">Total Kas Masuk</th>
<th style="text-align: center;"><?php echo "Rp.".number_format( $total).",-"; ?></th>
</tr>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<?php include "footer.php" ?>