-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdetail_pasien.php
56 lines (56 loc) · 2 KB
/
detail_pasien.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
<?php
include("header.php");
$nik=$_GET['nik'];
$query=mysqli_query($config,"select * from pasien where nik='$nik'");
$ambil_data=mysqli_fetch_array($query);
?>
<div class="card col">
<h5 class="card-header">Detail Pasien
<?php echo $ambil_data['nama']; ?></h5>
<div class="card-body">
<div class="row">
<div class="col-9">
<table class="table">
<tr>
<th width="20%">NIK</th>
<td>:</td>
<td><?php echo $ambil_data['nik']; ?></td>
</tr>
<tr>
<th>Nama Lengkap</th>
<td>:</td>
<td><?php echo $ambil_data['nama']; ?></td>
</tr>
<tr>
<tr>
<th>Tempat Lahir</th>
<td>:</td>
<td><?php echo $ambil_data['tempat_lahir']; ?></td>
</tr>
<tr>
<th>Tgl. Lahir</th>
<td>:</td>
<td><?php echo date('d-m-Y',strtotime($ambil_data['tgl_lahir'])); ?></td>
</tr>
<tr>
<th>No HP</th>
<td>:</td>
<td><?php echo $ambil_data['no_hp']; ?></td>
</tr>
<tr>
<th>Alamat</th>
<td>:</td>
<td><?php echo $ambil_data['alamat']; ?></td>
</tr>
<tr>
<td colspan="3" align="right">
<a href="pasien.php">
<button class="btn btn-primary">Kembali</button>
</a>
</td>
</tr>
</table>
</div>
</div>
</div>
</div>