[ Mini Kiebo ]
Server: Windows NT DESKTOP-5B8S0D4 6.2 build 9200 (Windows 8 Professional Edition) i586
Path:
D:
/
Backup
/
14082024
/
Data
/
htdocs
/
htdocs
/
simkeu
/
keuangan
/
[
Home
]
File: function_ajax.php
<?php require_once("configure_first.php"); if(isset($_GET["status"])) $status = $_GET["status"]; else $status = 0; if(isset($_GET["nama"])) $nama = $_GET["nama"]; else $nama = 0; if(isset($_GET["id"])) $sid = $_GET["id"]; else $sid = 0; if(isset($_GET["thn"])) $thn = $_GET["thn"]; else $thn = 0; if(isset($_GET["bln"])) $bln = $_GET["bln"]; else $bln = 0; if($status == "dt_pembayaran") { ?> <table border="1" width="100%"> <tr> <td colspan="4">Detail Pembayaran</td> </tr> <tr> <td>No</td> <td>Keterangan</td> <td>Tanggal</td> <td>Nominal</td> </tr> <?php $sql = "select * from 0_mandiriva where nama = '".addslashes($nama)."' and tgl between '".$thn."-".$bln."-01' and '".$thn."-".$bln."-31'"; $iData=sAllData($sql); for($a=0,$b=count($iData);$a<$b;$a++) { $no = ($no+1); ?> <tr> <td><?php echo $no;?></td> <td>VA <?php echo $iData[$a]["va"];?></td> <td><?php echo format_date($iData[$a]["tgl"]);?></td> <td align="right">Rp. <?php echo format_currency($iData[$a]["bayar"]);?></td> </tr> <?php } $sql2 = "select * from keu_p_pembayaran_siswa where id_siswa = '".($sid)."' and pembayaran_tgl between '".$thn."-".$bln."-01' and '".$thn."-".$bln."-31'"; //echo $sql2; $iData2=sAllData($sql2); for($a=0,$b=count($iData2);$a<$b;$a++) { $no = ($no+1); ?> <tr> <td><?php echo $no;?></td> <td>Transfer Lain</td> <td><?php echo format_date($iData2[$a]["pembayaran_tgl"]);?></td> <td align="right">Rp. <?php echo format_currency($iData2[$a]["pembayaran_total"]);?></td> </tr> <?php } ?> </table> <?php } ?>