-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpsetoran.php
48 lines (45 loc) · 933 Bytes
/
psetoran.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<!DOCTYPE html>
<?php
include'koneksi.php';
$query = mysql_query("select * from tb_setoran");
?>
<?php
$hari_ini = date("d-m-Y");
?>
<html>
<head>
<title>Laporan</title>
</head>
<body>
<h2><center>Laporan Data Setoran</center></h2>
<center>Tanggal : <?php echo $hari_ini; ?> </center><br>
<table align="center" border="1" cellpadding="5" cellspacing="0">
<thead>
<tr>
<tr><td>No Setoran</td>
<td>Kode Pemilik</td>
<td>Tgl Setoran</td>
<td>Jumlah</td>
</tr>
</thead>
<tbody>
<?php
$no=0;
while ($hasil=mysql_fetch_array($query)) {
$no++;
echo "<tr>
<td>$hasil[No_Setoran]</td>
<td>$hasil[Kode_Pemilik]</td>
<td>$hasil[Tgl_Setoran]</td>
<td>$hasil[Jumlah]</td>";
}
?>
</tbody>
</table>
<center>________________________________________________________________________________</center>
<h4><center>RAHMAD TRANSPORT</center></h4>
</body>
</html>
<script>
window.print();
</script>