[ Mini Kiebo ]
Server: Windows NT DESKTOP-5B8S0D4 6.2 build 9200 (Windows 8 Professional Edition) i586
Path:
D:
/
xampp182
/
htdocs
/
simkeu
/
keuangan
/
Laporan
/
[
Home
]
File: LapTabungan.inc.php
<?php $title = $nmsd." : Report Transaksi"; $nmForm = "index.php?LapTabungan"; $nmTable = "keu_p_tabungan"; //hak akses $formnama = "r_tabungan"; $registerform = lastlogin($_SESSION["user-id"],$formnama); if(isset($_SESSION["id-profil"])) $idlogprof = $_SESSION["id-profil"]; else $idlogprof = 0; if($idlogprof == 0) echo "<script>window.alert('".$lsm."');location.href='index.php';</script>"; $hakakses = cekhakakses($idlogprof,$formnama); if($hakakses[0] == 0) echo "<script>window.alert('".$erme."');location.href='mainform.php';</script>"; if($hakakses[1] == 0) $bt_simpan = " "; if($hakakses[3] == 0) $bt_multipledelete = " "; //deskripsikan get variabel $edit = ""; if(!isset($_GET["edit"])) $_GET["edit"] = ""; else $edit = $_GET["edit"]; $delete = ""; if(!isset($_GET["delete"])) $_GET["delete"] = ""; else $delete = $_GET["delete"]; //deskripsikan nama variabel $tabungan_id = ""; $id_siswa = ""; $tabungan_nominal = ""; $alert = 0; 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(isset($_GET["siswa_id"])) { $query = "select siswa_id,siswa_nama,kelas_nama,siswa_kelas_skr from m_siswa a left join m_kelas b on a.siswa_kelas_skr = b.kelas_id where siswa_id = ".MyIdDecode($_GET["siswa_id"]); $iData=sAllData($query); for($a=0,$b=count($iData);$a<$b;$a++) { $siswa_id = $iData[$a]["siswa_id"]; $siswa_nama = $iData[$a]["siswa_nama"]; $siswa_kelas = $iData[$a]["kelas_nama"]; $siswa_kelas_skr = $iData[$a]["siswa_kelas_skr"]; } } ?> <link type="text/css" rel="stylesheet" href="<?php echo $mdkdatelib;?>/dhtmlgoodies_calendar.css?random=20051112" media="screen"></LINK> <SCRIPT type="text/javascript" src="<?php echo $mdkdatelib;?>/dhtmlgoodies_calendar.js?random=20060118"></script> <script> function showprint() { open('r_tabungan_print.php?siswa_id=<?php echo $_POST["siswa_id"];?>','Soffan','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=no,width=950,height=500,left=50, top=50'); } </script> <section id="content" class="content-alt"> <div class="container"> <div class="card"> <div class="card-header"> <h2>Laporan Pembayaran VA Mahasiswa<small>Form berikut ini berisi tentang laporan transaksi tiap siswa</small></h2> </div> <div class="card-body"> <?php echo "<table class=\"table table-hover\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" style=\" margin: 0; width: 100%;\">"; echo "<tr>"; echo "<th width=2% align=center>NO</th>"; echo "<th width=22% align=center>VA</th>"; echo "<th width=22% align=center>Mahasiswa</th>"; echo "<th width=15% align=right>Total Harus Di Bayar</th>"; echo "<th width=15% align=right>Total Uang Masuk (VA)</th>"; echo "<th width=15% align=right>Kurang Bayar</th>"; echo "</tr>"; $query="SELECT siswa_nama,total_bayar,va,nama,sum(bayar) as total FROM m_siswa a left join 0_mandiriva b on a.siswa_nama = b.nama group by b.va order by siswa_nama asc"; // echo $query; $iData=sAllData($query); $no = 0; $kekurangan = 0; $UM = 0; $Total = 0; $TB = 0; for($a=0,$b=count($iData);$a<$b;$a++) { $kekurangan = ($iData[$a]["total_bayar"])-($iData[$a]["total"]); if($kekurangan < 0) $kekurangan = 0; $Total = ($Total+$kekurangan); $UM = ($UM+$iData[$a]["total"]); $TB = ($TB+$iData[$a]["total_bayar"]); echo "<tr>"; echo "<td align=left>".($a+1).".</td>"; echo "<td align=left>".$iData[$a]["va"]." </td>"; echo "<td align=left>".$iData[$a]["siswa_nama"]." </td>"; echo "<td align=right>Rp. ".format_currency($iData[$a]["total_bayar"])." </td>"; echo "<td align=right>Rp. ".format_currency($iData[$a]["total"])." </td>"; echo "<td align=right>Rp. ".format_currency($kekurangan)." </td>"; echo "</tr>"; } echo "<tr>"; echo "<th width=2% align=center>-</th>"; echo "<th width=22% align=center>Total</th>"; echo "<th width=22% align=center>-</th>"; echo "<th width=22% align=center>".format_currency($TB)."</th>"; echo "<th width=22% align=center>".format_currency($UM)."</th>"; echo "<th width=22% align=center>".format_currency($Total)."</th>"; echo "</tr>"; echo "</table>"; // echo "<div align=center><input type=button value=Print onclick=showprint();></div>"; echo "</form>"; ?> </div> </div> </div> </section>