[ Mini Kiebo ]
Server: Windows NT DESKTOP-5B8S0D4 6.2 build 9200 (Windows 8 Professional Edition) i586
Path:
D:
/
xampp182
/
htdocs
/
simkeu
/
sia
/
[
Home
]
File: RekapAsset.inc.php
<?php $id = ""; $uraian = ""; $nominal = ""; $tgl = ""; $buton = "Proses"; $u_pswd = "-"; $u_name = "-"; $nominal = "-"; $ktp = "-"; $kota_asal = "-"; $alamat = "-"; $tgl = "-"; $uraian = "-"; if(isset($_POST["Tahun"])) $Tahun = $_POST["Tahun"]; if(isset($_POST["Cetak"])) { echo "<script>window.open('rekap_pengeluaran.php?tahun=".$_POST["Tahun"]."');</script>"; } ?> <div class="container-fluid"> <!-- Page Heading --> <!-- DataTales Example --> <div class="card shadow mb-4"> <div class="card-header py-3"> <h6 class="m-0 font-weight-bold text-primary">DataTables Asset</h6> </div> <div class="card-header py-3"> <button name="Cetak" type="button" class="btn btn-primary btn-block" onclick="window.open('cetak_assets.php');">Cetak</button> </div> <div class="card-body"> <div class="table-responsive"> <table class="table table-bordered" width="100%" cellspacing="0"> <thead> <tr> <th>No</th> <th>Tanggal</th> <th>Keterangan</th> <th>Kategori</th> <th>Nominal</th> </tr> </thead> <tbody> <?php $no = 0; $jtotal = 0; $sql = "SELECT * FROM keu_pengeluaran a left join keu_jpengeluaran b on a.id_jenispengeluaran = b.id where id_jenispengeluaran = 27 or id_jenispengeluaran = 29 or id_jenispengeluaran = 34 order by id_jenispengeluaran asc, tgl desc"; $result = mysqli_query($conn, $sql); if(mysqli_num_rows($result) > 0) { while($row = mysqli_fetch_assoc($result)) { $no = ($no+1); $jtotal = ($jtotal+$row['nominal']); ?> <tr> <td><?php echo $no;?></td> <td><?php echo $row['tgl'];?></td> <td><?php echo $row['uraian'];?></td> <td><?php echo $row['jenis_pengeluaran'];?></td> <td align="right">Rp. <?php echo format_currency($row['nominal']);?></td> </tr> <?php } } ?> <tr> <td colspan="4" align="center">TOTAL</td> <td align="right">Rp. <?php echo format_currency($jtotal);?></td> </tr> </tbody> </table> </div> </div> </div> </div>