-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbantuan_ubah.php
30 lines (30 loc) · 1.44 KB
/
bantuan_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
<?php
$id = stripslashes(strip_tags(htmlspecialchars($_GET['ID'],ENT_QUOTES)));
$row = $db->get_row("SELECT * FROM tb_bantuan WHERE kode_bantuan='".$id."'");
?>
<div class="page-header">
<h1>Ubah Bantuan</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 bantuan <span class="text-danger">*</span></label>
<input class="form-control" type="text" name="kode_bantuan" value="<?=set_value('kode_bantuan', $row->kode_bantuan)?>"/>
</div>
<div class="form-group">
<label>Nama bantuan <span class="text-danger">*</span></label>
<input class="form-control" type="text" name="nama_bantuan" value="<?=set_value('nama_bantuan', $row->nama_bantuan)?>"/>
</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">
<button class="btn btn-primary"><span class="glyphicon glyphicon-save"></span> Simpan</button>
<a class="btn btn-danger" href="?m=bantuan"><span class="glyphicon glyphicon-arrow-left"></span> Kembali</a>
</div>
</form>
</div>
</div>