Files
silaras-rssa/app/Views/pasien.php
T
2026-05-13 08:55:17 +07:00

28 lines
537 B
PHP

<h3>Daftar Pasien</h3>
<?php if (!empty($pasien)): ?>
<table border="1" cellpadding="8">
<tr>
<th>No</th>
<th>RM</th>
<th>Nama</th>
<th>Tgl Lahir</th>
<th>Gender</th>
<th>Alamat</th>
</tr>
<?php $no=1; foreach($pasien as $p): ?>
<tr>
<td><?= $no++ ?></td>
<td><?= $p['rm'] ?></td>
<td><?= $p['nama'] ?></td>
<td><?= $p['tgl_lahir'] ?></td>
<td><?= $p['gender'] ?></td>
<td><?= $p['alamat'] ?></td>
</tr>
<?php endforeach; ?>
</table>
<?php else: ?>
<p>Belum ada data</p>
<?php endif; ?>