0% found this document useful (0 votes)
45 views3 pages

$dbpasienlama

This document contains the code for a web application for Rumah Sakit ESA Medika. It includes the HTML markup for the header, navigation menu, footer, and main content section. The main content section contains a form for entering patient information and a table to display a list of existing patients retrieved from a database.

Uploaded by

Larva Hiro
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
45 views3 pages

$dbpasienlama

This document contains the code for a web application for Rumah Sakit ESA Medika. It includes the HTML markup for the header, navigation menu, footer, and main content section. The main content section contains a form for entering patient information and a table to display a list of existing patients retrieved from a database.

Uploaded by

Larva Hiro
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

1 <!

doctype html>
2 <html lang="en">
3 <head>
4 <!-- Required meta tags -->
5 <meta charset="utf-8">
6 <meta name="viewport" content="width=device-width, initial-scale=1,
shrink-to-fit=no">
7
8 <!-- Bootstrap CSS -->
9 <link rel="stylesheet"
href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T"
crossorigin="anonymous">
10 <link rel="stylesheet" href="css/style.css">
11 <link rel="icon" href="img/portfolio/rawat jalan.png"/>
12 <title>APLIKASI RS ESA MEDIKA</title>
13 </head>
14 <body>
15
16 <!-- jumbotron -->
17 <div class="jumbotron text-center">
18 <right><nav class="nav fixed-top-end">
19 <a class="nav-item nav-link btn btn-outline-primary" href="akunuser.php?logoutSubmit=1"
class="logout">Logout</a>
20 </nav></right>
21 <img src="img/index1.png" class="img-circle">
22 <h2> RUMAH SAKIT ESA MEDIKA</h2>
23 mutu pelayanan adalah keselamatan
24 <nav class="nav nav-pills nav-justified">
25 <a class="nav-item nav-link btn btn-outline-primary" href="PELAYANAN MEDIK
ADMIN.php">Pelayanan</a>
26 <a class="nav-item nav-link btn btn-outline-primary" href="pencarian
status.php">Status Pasien</a>
27 </nav>
28 </div>
29 <!-- akhir jumbotron -->
30 <!-- form -->
31 <section class="about" id="about">
32 <div class="container">
33 <div class="row">
34 <div class="col-sm-12">
35 <h2 class="text-center">Form Pasien Lama</h2>
36 <hr>
37 </div>
38 </div>
39 <div class="row">
40 <div class="col-sm-6">
41 <form method="post" action="simpan7.php">
42 <input type="hidden" value="<?php echo $dbpasienlama['id']; ?>">
43 <div class="form-group">
44 <table border="0" align="center">
45 <tr>
46 <td colspan="3" align="center"></td>
47 </tr>
48 <tr>
49 <td>Nama</td>
50 <td>:</td>
51 <td><input type="text" name="Nama" required /></td>
52 </tr>
53 <tr>
54 <td>TTL</td>
55 <td>:</td>
56 <td><input type="date" name="TTL" /></td>
57 </tr>
58 <tr>
59 <td>Alamat</td>
60 <td>:</td>
61 <td><input type="text" name="Alamat" /></td>
62 </tr>
63 <tr>
64 <td>NoHP</td>
65 <td>:</td>
66 <td><input type="text" name="NoHP" /></td>
67 </tr>
68 <tr>
69 <td>PoliTujuan</td>
70 <td>:</td>
71 <td><input type="text" name="PoliTujuan" /></td>
72 </tr>
73 <tr>
74 <td>JenisPembayaran</td>
75 <td>:</td>
76 <td><input type="text" name="JenisPembayaran" /></td>
77 </tr>
78 <td><input type="submit" name="simpan">
79 <input type="reset" value="Reset"/></td>
80 </table>
81 </div>
82 </form>
83 </div>
84 <div class="col-sm-6">
85 <?php
86 // koneksi ke database
87 $conn = mysqli_connect("localhost","root","","pasienlama");
88
89
90 // cek dulu tombol submit
91 if (isset($_POST['submit'])) {
92 $cari=$_POST['cari'];
93 $result = mysqli_query($conn, "SELECT * FROM dbpasienlama WHERE NoRM LIKE '$cari%'");
94 } else{
95 $result = mysqli_query($conn, "SELECT * FROM dbpasienlama");
96 }
97
98 // ambil data dari table daftar pasien/query daftar pasien
99
100 // ambil data dari object result
101
102 ?>
103 <!DOCTYPE html>
104
105 <h1>daftar pasien</h1>
106 <table border="1" cellpadding="10" cellspacing="0">
107
108
109 <tr>
110 <th>No Rekam Medis</th>
111 <th>aksi</th>
112 <th>Nama</th>
113 <th>TTL</th>
114 <th>Alamat</th>
115 <th>NoHP</th>
116 <th>PoliTujuan</th>
117 <th>JenisPembayaran</th>
118 </tr>
119 <?php $i = 990001234; ?>
120 <?php while ($row = mysqli_fetch_assoc($result) ) : ?>
121 <tr>
122 <td><?= $i; ?></td>
123 <td>
124 <a href="hapus4.php?id=<?php echo $row['id'] ?>">delete</a>
125 <td><?= $row["Nama"]; ?></td>
126 <td><?= $row["TTL"]; ?></td>
127 <td><?= $row["Alamat"]; ?></td>
128 <td><?= $row["NoHP"]; ?></td>
129 <td><?= $row["PoliTujuan"]; ?></td>
130 <td><?= $row["JenisPembayaran"]; ?></td>
131 </td>
132
133 </tr>
134 <?php $i++; ?>
135 <?php endwhile; ?>
136 </table>
137
138 </div>
139 </div>
140 </div>
141 </section>
142 <!-- akhir about -->
143
144 <!-- footer -->
145 <footer>
146 <div class="container">
147 <div class="row">
148 <div class="col-sm-12 text-center">
149 <p>&copy 2019 | built by. <a
href="https://www.esaunggul.ac.id/esa-medhika-clinic/?lang=en"></a></p>
150 </div>
151 </div>
152 </div>
153 </footer>
154 <!-- akhir footer -->
155
156 <!-- Optional JavaScript -->
157 <!-- jQuery first, then Popper.js, then Bootstrap JS -->
158 <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"
integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo"
crossorigin="anonymous"></script>
159 <script
src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"
integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1"
crossorigin="anonymous"></script>
160 <script
src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"
integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM"
crossorigin="anonymous"></script>
161 </body>
162 </html>

You might also like