35 lines
1.3 KiB
PHP
35 lines
1.3 KiB
PHP
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html>
|
|
<head>
|
|
<title><?php echo $judul; ?></title>
|
|
<link href="../../css/edit_barang.css" rel="stylesheet" type="text/css" />
|
|
</head>
|
|
<body style="background-color:#CF9">
|
|
<div style="background-color:#FFF;border-radius:10px 10px 10px 10px;width:40%;height:180px;margin-top:5%;margin-left:30%;position:fixed">
|
|
|
|
<?php
|
|
$att = array('id' => 'biodata-form');
|
|
echo form_open('barang_controller/simpan_update_barang', $att);
|
|
echo form_hidden('id',$edit->id);
|
|
?>
|
|
<fieldset style="margin:5% 5% 5% 5%">
|
|
<legend>Update Data Barang</legend>
|
|
<table>
|
|
<tr>
|
|
<td>Nama Barang</td>
|
|
<td><input type="text" name="nama_barang" value="<?php echo $edit->nama; ?>"/></td>
|
|
</tr>
|
|
<tr>
|
|
<td>Harga</td>
|
|
<td><input type="text" name="harga" value="<?php echo $edit->harga; ?>"/></td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td><input type="submit" value="Simpan" alert("Berhasil");/></td>
|
|
</tr>
|
|
</table>
|
|
</fieldset>
|
|
</form>
|
|
</div>
|
|
</body>
|
|
</html>
|