[ 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: LapPengeluaran.inc.php
<?php $title = $nmsd." : Report Pengeluaran"; $nmForm = "index.php?LapPengeluaran"; $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["tgl"])) $tgl = $_POST["tgl"]; if(isset($_GET["tgl"])) $tgl = $_GET["tgl"]; if(isset($_POST["tgl_sd"])) $tgl_sd = $_POST["tgl_sd"]; if(isset($_GET["tgl_sd"])) $tgl_sd = $_GET["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["Cetak"])) { if(isset($_POST["id_jenispengeluaran"])) $id_jenispengeluaran = $_POST["id_jenispengeluaran"]; echo "<script>window.open('cetak_pengeluaran.php?id_jenispengeluaran=".$id_jenispengeluaran."&tgl1=".$tgl."&tgl2=".$tgl_sd."');</script>"; } if(isset($_POST["Excel"])) { if(isset($_POST["id_jenispengeluaran"])) $id_jenispengeluaran = $_POST["id_jenispengeluaran"]; echo "<script>window.open('export-pengeluaran.php?id_jenispengeluaran=".$id_jenispengeluaran."&tgl1=".$tgl."&tgl2=".$tgl_sd."');</script>"; } ?> <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> <link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css"> <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> <script> function tampilkan(a) { document.getElementById('id01').style.display='block'; document.getElementById('gambar').innerHTML="<br><br><div align='center'><img width='400' src='mediamanager/"+a+"'></div>"; } </script> <section id="content" class="content-alt"> <div class="container"> <div class="card"> <div class="card-header"> <h2>Laporan Pengeluaran Stikes<small>Form berikut ini berisi tentang laporan Pengeluaran Stikes</small></h2> </div> <div class="card-body"> <?php echo "<form name=\"fanform\" method=\"POST\" action=\"".$nmForm."\">"; echo "<table class=\"table table-striped\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" style=\" margin: 0; width: 100%;\">"; echo "<tr>"; echo "<td width=27%><b>Tanggal Pengeluaran</b></td>"; echo "<td width=3%>:</td>"; echo "<td width=70%>".iTextDate("tgl",$tgl)." s/d ".iTextDate("tgl_sd",$tgl_sd)."</td>"; echo "</tr>"; echo "<tr>"; echo "<td><b>Jenis Pengeluaran</b></td>"; echo "<td width=2%>:</td>"; if(isset($_POST["id_jenispengeluaran"])) $id_jenispengeluaran = $_POST["id_jenispengeluaran"]; $cmbox = "<select class=\"form-control\" id=\"id_jenispengeluaran\" name=\"id_jenispengeluaran\">"; $cmbox .= iComboB(0,0,$id_sem,""); $query="select * from keu_jpengeluaran order by id asc"; $iDataArray=sAllData($query); for($a=0,$b=count($iDataArray);$a<$b;$a++) { $cmbox .= iComboB($iDataArray[$a]["id"],$iDataArray[$a]["id"],$id_jenispengeluaran,$iDataArray[$a]["jenis_pengeluaran"]); } $cmbox .= "</select>"; echo "<td>".$cmbox."</td>"; echo "</tr>"; echo "<tr>"; echo "<td> </td>"; echo "<td> </td>"; echo "<td>".iSbmt("Proses")." ".iSbmt("Cetak")." ".iSbmt("Excel")."</td>"; echo "</tr>"; echo "</table>"; ?> <br> <?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=12% align=center>Tanggal</th>"; echo "<th width=22% align=center>Jenis Pengeluaran</th>"; echo "<th width=22% align=center>Keterangan</th>"; echo "<th width=22% align=center>Nominal</th>"; echo "<th width=22% align=center>Struk</th>"; echo "</tr>"; $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($tgl_sd)."' order by a.id asc"; if(isset($_POST["id_jenispengeluaran"]) and $_POST["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($tgl_sd)."' and id_jenispengeluaran = ".$_POST["id_jenispengeluaran"]." order by a.id asc"; } $iData=sAllData($query); $ttl = 0; for($a=0,$b=count($iData);$a<$b;$a++) { $ttl = ($ttl+$iData[$a]["nominal"]); echo "<tr>"; echo "<td align=left>".($a+1).". </td>"; echo "<td align=center>".format_date($iData[$a]["tgl"])." </td>"; echo "<td align=left>".$iData[$a]["jenis_pengeluaran"]." </td>"; echo "<td align=left>".$iData[$a]["uraian"]." </td>"; echo "<td align=right>Rp. ".format_currency($iData[$a]["nominal"])." </td>"; if(strlen($iData[$a]["upload_bukti"]) > 0) { echo "<td align=left><a href='#' onclick=\"tampilkan('".$iData[$a]["upload_bukti"]."');\"><i class=\"zmdi zmdi-collection-image\"></i></a></td>"; }else{ echo "<td align=left><a href='#' onclick=\"tampilkan('empty.jpg');\"><i class=\"zmdi zmdi-broken-image\"></i></a></td>"; } echo "</tr>"; } echo "<tr>"; echo "<td colspan=4>TOTAL PENGELUARAN</td>"; echo "<td align=right>Rp. ".format_currency($ttl)."</td>"; echo "<td> </td>"; echo "</tr>"; echo "</table>"; // echo "<div align=center><input type=button value=Print onclick=showprint();></div>"; echo "</form>"; ?> </div> </div> </div> </section> <div id="id01" class="w3-modal"> <div class="w3-modal-content w3-card-4 w3-animate-zoom" style="max-width:600px"> <div class="w3-center"><br> <span onclick="document.getElementById('id01').style.display='none'" class="w3-button w3-xlarge w3-hover-red w3-display-topright" title="Close Modal">×</span> </div> <form class="w3-container" action="/action_page.php"> <div class="w3-section"> <span id="gambar"></span> </div> </form> <div class="w3-container w3-border-top w3-padding-16 w3-light-grey"> <button onclick="document.getElementById('id01').style.display='none'" type="button" class="w3-button w3-red">Close</button> </div> </div> </div>