-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjenis_ubah.php
26 lines (26 loc) · 1.17 KB
/
jenis_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
<?php
$id = stripslashes(strip_tags(htmlspecialchars($_GET['ID'],ENT_QUOTES)));
$row = $db->get_row("SELECT * FROM tb_jenis WHERE kode_jenis='".$id."'");
?>
<div class="page-header">
<h1>Ubah Jenis</h1>
</div>
<div class="row">
<div class="col-sm-6">
<?php if($_POST) include 'aksi.php' ?>
<form method="post" action="?m=jenis_ubah&ID=<?=$row->kode_jenis?>">
<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_jenis?>"/>
</div>
<div class="form-group">
<label>Nama Jenis <span class="text-danger">*</span></label>
<input class="form-control" type="text" name="nama" value="<?=$row->nama_jenis?>"/>
</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=jenis"><span class="glyphicon glyphicon-arrow-left"></span> Kembali</a>
</div>
</form>
</div>
</div>