Files
sidak/report/laporan_datang.php
wartana 74b8f572a2 Enhancement: Complete overhaul of SIDAK application
- Report: Added printable reports for all categories.
- Dashboard: Fixed broken links and implemented gender balance filtering.
- Logic: Auto-integration of Arrivals and Births into Resident/KK data.
- Fix: Solved deletion popup bug in Birth Data.
- Feature: Added Full KK History view.
- Feature: Implemented Dynamic Village Profile for letter templates.
2026-01-18 16:25:38 +08:00

56 lines
1.7 KiB
PHP

<?php
include "../inc/koneksi.php";
$tanggal = date("d/m/y");
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>LAPORAN DATA PENDATANG</title>
</head>
<body>
<center>
<h2>PEMERINTAH KABUPATEN PERCONTOHAN</h2>
<h3>KECAMATAN PERCONTOHAN <br> DESA PERCONTOHAN</h3>
<p>________________________________________________________________________</p>
<h3>LAPORAN DATA PENDATANG</h3>
<p align="left">Dicetak Tanggal : <?php echo $tanggal; ?></p>
</center>
<table border="1" cellspacing="0" style="width: 100%">
<thead>
<tr>
<th>No</th>
<th>NIK</th>
<th>Nama</th>
<th>Jekel</th>
<th>Tanggal Datang</th>
<th>Pelapor</th>
</tr>
</thead>
<tbody>
<?php
$no=1;
$sql_tampil = "SELECT d.nik, d.nama_datang, d.jekel, d.tgl_datang, p.nama as pelapor
FROM tb_datang d
INNER JOIN tb_pdd p ON d.pelapor=p.id_pend";
$query_tampil = mysqli_query($koneksi, $sql_tampil);
while ($data = mysqli_fetch_array($query_tampil,MYSQLI_BOTH)) {
?>
<tr>
<td align="center"><?php echo $no++; ?></td>
<td>'<?php echo $data['nik']; ?></td>
<td><?php echo $data['nama_datang']; ?></td>
<td align="center"><?php echo $data['jekel']; ?></td>
<td><?php echo $data['tgl_datang']; ?></td>
<td><?php echo $data['pelapor']; ?></td>
</tr>
<?php } ?>
</tbody>
</table>
<script>
window.print();
</script>
</body>
</html>