-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcetak_pasien.php
55 lines (55 loc) · 2.13 KB
/
cetak_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
<?php
include("koneksi.php");
$nik=$_GET['nik'];
$query=mysqli_query($config,"select * from pasien where nik='$nik'");
$ambil_data=mysqli_fetch_array($query);
?>
<!DOCTYPE>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Klinik Tong Fang</title>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="css/bootstrap.min.css">
</head>
<body>
<div> </div>
<script>
window.print();
</script>
<div class="col" text-center>
<div class="card" align="center">
<h5>Klinik</h5>
<h6>Klinik Tong Fang</h6>
<div class="card" align="center">
<div class="row">
<div class="col">
<table class="table">
<tr>
<th width="20%">NIK</th>
<td>:</td>
<td><?php echo $ambil_data['nik']; ?></td>
</tr>
<tr>
<th>Nama</th>
<td>:</td>
<td><?php echo $ambil_data['nama']; ?></td>
</tr>
<tr>
<th>TTL</th>
<td>:</td>
<td><?php echo $ambil_data['tempat_lahir'].", ".date('d-m-Y',strtotime($ambil_data['tgl_lahir'])); ?></td>
</tr>
<tr>
<th>Alamat</th>
<td>:</td>
<td><?php echo $ambil_data['alamat']; ?></td>
</tr>
</table>
</div>
</div>
</div>
</div>
</div>
</body>
</html>