olshop/application/views/back/updateBarang.php
2020-01-02 23:12:35 +07:00

21 lines
943 B
PHP

<html>
<head></head>
<body>
<form id="form" class="form-" action="../update_conf" method="post" name="fo1">
<input type="hidden" name="id" value="<?php echo $barang->id?>"><br/>
<input type="text" placeholder="Nama" name="nama" value="<?php echo $barang->nama?>"><br/>
<input type="text" placeholder="Kode Barang" name="kode" value="<?php echo $barang->kdbarang?>"><br/>
<input type="text" placeholder="Harga" name="harga" value="<?php echo $barang->harga?>"><br/>
<input type="text" placeholder="Deskripsi" name="desc" value="<?php echo $barang->deskripsi?>"><br/>
Kategori<select name="kat">
<?php foreach ($kategori as $ka){
echo "<option value='".$ka->id."'>".$ka->nama."</option>";
}
?>
</select></br>
<input type="text" placeholder="Tags" name="tag" value="<?php echo $barang->tags?>"><br/>
<input type="text" placeholder="Stok" name="stok" value="<?php echo $barang->stok?>"><br/>
<button>OK</button>
</form>
</body>
</html>