[ Mini Kiebo ]
Server: Windows NT DESKTOP-5B8S0D4 6.2 build 9200 (Windows 8 Professional Edition) i586
Path:
D:
/
xampp182
/
htdocs
/
siakad
/
simkeu
/
keuangan
/
Laporan
/
[
Home
]
File: LapBulanan.inc.php
<?php $title = $nmsd." : Report Tabungan"; $nmForm = "index.php?LapTabunganBulanan"; $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"]; } } if(isset($_POST["Proses"])) { echo "<script>window.open('cpembayaran.php?tahun=".$_POST["thn"]."&id_kelas=".$_POST["id_kelas"]."');</script>"; } if(isset($_POST["thn"])) $thn = $_POST["thn"]; else $thn = 0; ?> <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 Bulanan <small>Form berikut ini berisi tentang laporan pembayaran bulanan</small></h2> </div> <div class="card-body"> <?php echo "<form name=\"fanform\" method=\"POST\" action=\"index.php?LapBulanan\">"; echo "<table class=\"table table-striped\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" style=\" margin: 0; width: 100%;\">"; echo "<tr>"; echo "<td><b>Prodi</b></td>"; echo "<td>:</td>"; if(isset($_POST["id_kelas"])) $id_kelas = $_POST["id_kelas"]; else $id_kelas = 0; $cmbox = "<select class=\"form-control\" name=\"id_kelas\">"; $query="select * from m_kelas where length(kelas_kode) = 4 order by kelas_id asc"; $iDataArray=sAllData($query); for($a=0,$b=count($iDataArray);$a<$b;$a++) { $cmbox .= iComboB($iDataArray[$a]["kelas_id"],$iDataArray[$a]["kelas_id"],$id_kelas,$iDataArray[$a]["kelas_nama"]); } $cmbox .= "</select>"; echo "<td>".$cmbox."</td>"; echo "</tr>"; echo "<tr>"; echo "<td><b>Tahun Pembayaran</b></td>"; echo "<td>:</td>"; $cmbox2 = "<select class=\"form-control\" name=\"thn\">"; for($a2=0,$b2=count($thName);$a2<$b2;$a2++) { $cmbox2 .= iComboB($thName[$a2],$thName[$a2],$thn,$thName[$a2]); } $cmbox2 .= "</select>"; echo "<td> ".$cmbox2."</td>"; echo "</tr>"; echo "<tr>"; echo "<td> </td>"; echo "<td> </td>"; echo "<td>".iSbmt("Proses")."</td>"; echo "</tr>"; echo "</table>"; ?> <br> <?php /* echo "<table class=\"table table-hover\" border=\"1\" cellspacing=\"0\" cellpadding=\"0\" style=\" margin: 0; width: 100%;\">"; echo "<tr>"; echo "<th width=1% align=center>No</th>"; echo "<th width=7% align=center>NPM</th>"; echo "<th width=7% align=left>Nama</th>"; for($a = 0,$b = count($monthName); $a < $b; $a++) { echo "<th width=5% align=center>".$monthName[($a+1)]."</th>"; } echo "</tr>"; //$query="select * from 0_mandiriva a left join m_siswa b on a.nama = b.siswa_nama where siswa_kelas_skr = ".$id_kelas." order by tgl asc"; $query="select * from m_siswa where siswa_kelas_skr = ".$id_kelas." order by siswa_nis asc"; //echo $query; $iData=sAllData($query); $no = 0; if($id_kelas > 0) { for($a=0,$b=count($iData);$a<$b;$a++) { echo "<tr>"; echo "<td align=left>".($a+1)." </td>"; echo "<td align=left>".$iData[$a]["siswa_nis"]." </td>"; echo "<td align=left>".($iData[$a]["siswa_nama"])." </td>"; for($aa = 0,$bb = count($monthName); $aa < $bb; $aa++) { $sql = "select sum(bayar) as total from 0_mandiriva where nama = '".addslashes($iData[$a]["siswa_nama"])."' and tgl between '2023-".($aa+1)."-01' and '2023-".($aa+1)."-31'"; $iData2=sAllData($sql); echo "<td align=left>Rp. ".format_currency($iData2[0]["total"])." </td>"; } echo "</tr>"; } } echo "</table>"; echo "</form>"; */ ?> </div> </div> </div> </section>