-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdiagnosa_ubah.php
33 lines (33 loc) · 1.63 KB
/
diagnosa_ubah.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
<?php
$row = $db->get_row("SELECT * FROM tb_diagnosa WHERE kode_diagnosa='$_GET[ID]'");
?>
<div class="page-header">
<h1>Ubah Diagnosa</h1>
</div>
<div class="row">
<div class="col-sm-6">
<?php if ($_POST) include 'aksi.php' ?>
<form method="post">
<div class="form-group">
<label>Kode <span class="text-danger">*</span></label>
<input class="form-control" type="text" name="kode" readonly="readonly" value="<?= $row->kode_diagnosa ?>" />
</div>
<div class="form-group">
<label>Nama Alternatif <span class="text-danger">*</span></label>
<input class="form-control" type="text" name="nama" value="<?= set_value('nama', $row->nama_diagnosa) ?>" />
</div>
<div class="form-group">
<label>Keterangan <span class="text-danger">*</span></label>
<textarea class="form-control" name="keterangan"><?= set_value('keterangan', $row->keterangan) ?></textarea>
</div>
<div class="form-group">
<label>Referensi <span class="text-danger">*</span></label>
<input class="form-control" type="text" name="referensi" value="<?= set_value('referensi', $row->referensi) ?>" />
</div>
<div class="form-group">
<button class="btn btn-primary"><span class="glyphicon glyphicon-save"></span> Simpan</button>
<a class="btn btn-danger" href="?m=diagnosa"><span class="glyphicon glyphicon-arrow-left"></span> Kembali</a>
</div>
</form>
</div>
</div>