[ Mini Kiebo ]
Server: Windows NT DESKTOP-5B8S0D4 6.2 build 9200 (Windows 8 Professional Edition) i586
Path:
D:
/
xampp182
/
htdocs
/
simkeu
/
keuangan
/
[
Home
]
File: export-pengeluaran.php
<?php require_once("configure_first.php"); if(isset($_POST["tgl1"])) $tgl = $_POST["tgl1"]; if(isset($_GET["tgl1"])) $tgl = $_GET["tgl1"]; if(isset($_POST["tgl2"])) $tgl2 = $_POST["tgl2"]; if(isset($_GET["tgl2"])) $tgl2 = $_GET["tgl2"]; ?> <html> <head> <title>Data UBPI</title> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script> <link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.10.19/css/jquery.dataTables.css"> <link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/buttons/1.6.5/css/buttons.dataTables.min.css"> <link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.10.19/css/jquery.dataTables.min.css"> <script type="text/javascript" charset="utf8" src="https://cdn.datatables.net/1.10.19/js/jquery.dataTables.js"></script> </head> <body> <div class="container"> <img src="univbpi.png" width="100%"> <div class="data-tables datatable-dark"> <form action="#" method="POST" enctype="multipart/form-data"> <div class="col-xs-12"> <div class="box-content"> <table id="datanilai" style="width:100%" border="1"> <thead> <tr> <td>No</td> <td>Tgl</td> <td>Jenis Pengeluaran</td> <td>Keterangan</td> <td>Nominal</td> </tr> </thead> <tbody> <?php $query="select * from keu_pengeluaran a left join keu_jpengeluaran b on a.id_jenispengeluaran = b.id where tgl between '".format_date($tgl)."' and '".format_date($tgl2)."' order by a.id asc"; if(isset($_GET["id_jenispengeluaran"]) and $_GET["id_jenispengeluaran"] > 0) { $query="select * from keu_pengeluaran a left join keu_jpengeluaran b on a.id_jenispengeluaran = b.id where tgl between '".format_date($tgl)."' and '".format_date($tgl2)."' and id_jenispengeluaran = ".$_GET["id_jenispengeluaran"]." order by a.id asc"; } $iData=sAllData($query); //echo $query; $ttl = 0; for($a=0,$b=count($iData);$a<$b;$a++) { $ttl = ($ttl+$iData[$a]["nominal"]); ?> <tr> <td><?php echo ($a+1);?>.</td> <td><?php echo format_date($iData[$a]["tgl"]);?></td> <td><?php echo $iData[$a]["jenis_pengeluaran"];?></td> <td><?php echo $iData[$a]["uraian"];?></td> <td><?php echo $iData[$a]["nominal"];?></td> </tr> <?php } ?> </tbody> </table> </div> <!-- /.box-content --> </div> </form> </div> </div> <script> $(document).ready(function() { $('#datanilai').DataTable( { dom: 'Bfrtip', buttons: [ 'copy','csv','excel', 'pdf', 'print' ] } ); } ); </script> <script src="https://code.jquery.com/jquery-3.5.1.js"></script> <script src="https://cdn.datatables.net/1.10.22/js/jquery.dataTables.min.js"></script> <script src="https://cdn.datatables.net/buttons/1.6.5/js/dataTables.buttons.min.js"></script> <script src="https://cdn.datatables.net/buttons/1.6.5/js/buttons.flash.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.53/pdfmake.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.53/vfs_fonts.js"></script> <script src="https://cdn.datatables.net/buttons/1.6.5/js/buttons.html5.min.js"></script> <script src="https://cdn.datatables.net/buttons/1.6.5/js/buttons.print.min.js"></script> </body> </html>