codeigniter_test2/application/views/edit_barang.php

54 lines
1.8 KiB
PHP
Raw Permalink Normal View History

2020-01-02 23:07:40 +07:00
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>Halaman Admin</title>
<link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>css/css2.css">
</head>
<body>
<div class="wrapper">
<div class="header"><img src="image/Untitled-2.png"class="img" />
<a href="<?php echo base_url().'index.php/user_controller/logout'; ?>" class="link">logout</a></div>
<div class="header2">
</div>
<div class="sidebar1">
<ul class="nav">
<li id="menuunchoosen"><a href="<?php echo base_url().'index.php/barang_controller/barang'; ?>">Dashboard</a></li>
<li id="menuchoosen"><a href="">Kelola Data Barang</a></li>
</ul>
</div>
<div class="content">
<?php
$att = array('id' => 'biodata-form');
echo form_open('barang_controller/simpan_update_barang', $att);
echo form_hidden('id',$edit->id);
?>
<div class="border">
<div class="bordhead"><p>Edit Data</p></div>
<table class="add" cellspacing="20">
<tr>
<td>Nama Barang</td>
<td colspan="3"><input type="text" name="nama_barang" value="<?php echo $edit->nama; ?>" class="input"/></td>
</tr>
<tr>
<td>Harga</td>
<td colspan="3"><input type="text" name="harga" value="<?php echo $edit->harga; ?>" class="input"/></td>
</tr>
<tr><td></td>
<td></td>
<td><input type="submit" name="submit" value="Simpan"/></td>
<td><button type="button" name="Cancel" value="OK">Cancel</button></td>
</tr>
</table>
</div>
</div>
</div>
</body>
</html>