[ Mini Kiebo ]
Server: Windows NT DESKTOP-5B8S0D4 6.2 build 9200 (Windows 8 Professional Edition) i586
Path:
D:
/
xampp182
/
htdocs
/
simkeu
/
keuangan
/
[
Home
]
File: cetak_va.php
<?php require_once("configure_first.php"); ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Invoice</title> <link href="https://fonts.googleapis.com/css?family=Nunito" rel="stylesheet"> <style media="screen"> body { font-family: 'Nunito', sans-serif; } table, th, td { } table { border-collapse: collapse; margin: 10px auto; } th, td { padding: 6px 0; } th { padding-left: 4px; background-color: #F1F1F1; } td { padding-left: 4px; padding-right: 8px; } </style> </head> <body onload="window.print();"> <table border="1" width="100%"> <tr> <td colspan="5"><img src="univbpi.png" width="100%"></td> </tr> <?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"]; 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>"; $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>Rp. ".format_currency($iData[$a]["bayar"])." </td>"; echo "</tr>"; } ?> <tr> <td align=center colspan="4"><b>T O T A L</b></td> <td align=right>Rp. <?=format_currency($tbayar);?> </td> </tr> </table><br> <table border="0" width="100%"> <tr> <td> </td> <td> </td> <td> </td> <td> </td> <td align="center">Jakarta, <?php echo $_GET["tgl"];?><br>Bagian Keuangan</td> </tr> <tr> <td align="center" colspan="5" align="center"><br><br><br><br><br></td> </tr> <tr> <td> </td> <td> </td> <td> </td> <td> </td> <td align="center">Ananda Maulida, S.Ak</td> </tr> </table> </body> </html>