[ 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-rekapva.php
<?php require_once("configure_first.php"); if(isset($_POST["tabungan_tgl"])) $tabungan_tgl = $_POST["tabungan_tgl"]; if(isset($_GET["tabungan_tgl"])) $tabungan_tgl = $_GET["tabungan_tgl"]; if(isset($_POST["tabungan_tgl_sd"])) $tabungan_tgl_sd = $_POST["tabungan_tgl_sd"]; if(isset($_GET["tabungan_tgl_sd"])) $tabungan_tgl_sd = $_GET["tabungan_tgl_sd"]; if($bulan) { $title = "Rekap Pembayaran VA perhari"; }else{ $title = "Rekap Pembayaran VA Mahasiswa"; } ?> <html> <head> <title><?=$title;?></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> <?php echo "<tr>"; echo "<th width=2% align=center>No</th>"; echo "<th width=12% align=center>Tanggal</th>"; echo "<th width=22% align=center>VA</th>"; echo "<th width=22% align=center>Mahasiswa</th>"; echo "<th width=22% align=center>Nominal</th>"; echo "</tr>"; ?> </thead> <tbody> <?php $query="select distinct a.id_bayar,a.tgl,va,nama,bayar,chanel from 0_mandiriva a where tgl between '".format_date($tabungan_tgl)."' and '".format_date($tabungan_tgl_sd)."' order by tgl asc,va asc,nama asc"; //echo $query; $iData=sAllData($query); $no = 0; $tbayar = 0; for($a=0,$b=count($iData);$a<$b;$a++) { $no = ($no+1); $tbayar = ($tbayar+$iData[$a]["bayar"]); echo "<tr>"; echo "<td align=center>".$no." </td>"; echo "<td align=center>".format_date($iData[$a]["tgl"])." </td>"; echo "<td align=center>".$iData[$a]["va"]." </td>"; echo "<td align=left>".$iData[$a]["nama"]." </td>"; echo "<td align=right> ".($iData[$a]["bayar"])."</td>"; echo "</tr>"; } ?> </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>