-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathriwayat-pendaftaran.php
59 lines (53 loc) · 1.86 KB
/
riwayat-pendaftaran.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
49
50
51
52
53
54
55
56
57
58
59
<?php
include('./inc/koneksi.php');
include('./layout/header.php');
?>
<div class="container-fluid">
<section class="content">
<div class="container-fluid">
<div class="row">
<div class="col-12">
<div class="card">
<div class="card-header">
<h3 class="card-title">Data Riwayat Pendaftaran</h3>
</div>
<!-- /.card-header -->
<div class="card-body">
<table id="example2" class="table table-bordered table-hover">
<thead>
<tr>
<th>No</th>
<th>No Rekam Medis</th>
<th>Nama Pasien</th>
<th>Nama Poli</th>
<th>Tanggal Booking</th>
</tr>
</thead>
<tbody>
<?php
$s = $_SESSION['user'];
$sql = "SELECT tb_pasien.nik , booking_registrasi.no_rkm_medis, booking_registrasi.nama_pasien, booking_registrasi.nama_poli, booking_registrasi.tgl_booking FROM tb_pasien , booking_registrasi where tb_pasien.nik='$s' AND booking_registrasi.nik='$s'";
$data = $db->prepare($sql);
$data->execute();
$no = 1;
while($hasil = $data->fetch()){
?>
<tr>
<td><?= $no?></td>
<td><?= $hasil['no_rkm_medis']?>
</td>
<td><?= $hasil['nama_pasien']?></td>
<td><?= $hasil['nama_poli']?></td>
<td><?= $hasil['tgl_booking']?></td>
</tr>
<?php $no++;} ?></table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<?php
include('./layout/footer.php');
?>