-
Notifications
You must be signed in to change notification settings - Fork 0
/
daftar_treatment_form.php
67 lines (61 loc) · 2.64 KB
/
daftar_treatment_form.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
60
61
62
63
64
65
66
67
<?php include('templates/header.php'); ?>
<div class="container mb-5">
<div class="row">
<div class="col-md-12">
<img src="img/header.jpg" class="img-fluid" alt="...">
</div>
</div>
<div class="row mt-3 mb-2">
<div class="col">
<?php include('menu.php'); ?>
</div>
</div>
<div class="row">
<div class="col-md-6">
<?php
$id_customer = $_GET['id_customer'];
$no = 1;
include 'templates/koneksi.php';
$query = mysqli_query($koneksi, "SELECT * FROM customer WHERE id_customer=$id_customer");
while ($d = mysqli_fetch_array($query)) {
?>
<form method="post" action="daftar_treatment_tambah.php" class="row g-3">
<h4 class="text-center">Daftar Treatment</h4>
<div class="col-12">
<label><b>Nomor RM</b></label>
<input type="text" name="id_customer" class="form-control" value="<?= $d['id_customer']; ?>"
readonly>
</div>
<div class="col-12">
<label><b>Nama Lengkap</b></label>
<input type="text" name="nama" class="form-control" value="<?= $d['nama']; ?>" readonly>
</div>
<div class="col-12">
<label><b>Nama Dokter</b></label>
<select name="dokter" class="form-select" aria-label="Default select example" required>
<option value="">Pilih</option>
<option value="dr. Ullya Nor Rosyidah">dr. Ullya Nor Rosyidah</option>
</select>
</div>
<div class="col-12">
<label><b>Konsultasi</b></label>
<select name="konsultasi" class="form-select" aria-label="Default select example" required>
<option value="">Pilih</option>
<option value="Ya">Ya</option>
<option value="Tidak">Tidak</option>
</select>
</div>
<div class="col-12">
<label><b>Kondisi Awal</b></label>
<input type="text" name="note" class="form-control" placeholder="Tambahkan catatan jika perlu.."
required>
</div>
<div class="col-12">
<button type="submit" class="btn btn-primary float-end">Daftarkan</button>
</div>
</form>
<?php } ?>
</div>
</div>
</div>
<?php include('templates/footer.php'); ?>