68 lines
2.3 KiB
PHP
68 lines
2.3 KiB
PHP
<div class="col-sm-10" id="contents">
|
|
<a href="#"><h3>Tambah Barang</h3></a>
|
|
<hr>
|
|
<div class="col-sm-7">
|
|
<form class="form-horizontal" id="form" action="tambah_conf" method="post" name="fo1">
|
|
<div class="form-group">
|
|
<label class="col-sm-2 control-label">Nama</label>
|
|
<div class="col-sm-10">
|
|
<input type="text" class="form-control" placeholder="Nama" name="nama" required>
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-sm-2 control-label">Kode</label>
|
|
<div class="col-sm-10">
|
|
<input type="text" class="form-control" placeholder="Kode Barang" name="kode" required>
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-sm-2 control-label">Harga</label>
|
|
<div class="col-sm-10">
|
|
<input type="number" class="form-control" placeholder="Harga" name="harga" required>
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-sm-2 control-label">Deskripsi</label>
|
|
<div class="col-sm-10">
|
|
<textarea class="form-control" rows="3" name="desc" placeholder="Deskripsi Produk" required></textarea>
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-sm-2 control-label">Kategori</label>
|
|
<div class="col-sm-10">
|
|
<select class="form-control" name="kat">
|
|
<?php foreach ($kategori as $ka){
|
|
echo "<option value='".$ka->id."'>".$ka->nama."</option>";
|
|
}
|
|
?>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-sm-2 control-label">Stok</label>
|
|
<div class="col-sm-10">
|
|
<input type="number" class="form-control" placeholder="Stok" name="stok" required>
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-sm-2 control-label">Tags</label>
|
|
<div class="col-sm-10">
|
|
<input type="text" class="form-control" placeholder="Tags" name="Tags" required>
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-sm-2 control-label">Foto</label>
|
|
<div class="col-sm-10">
|
|
<input type="text" class="form-control" placeholder="Pilih File" name="foto" required>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="form-group">
|
|
<div class="col-sm-offset-2 col-sm-10">
|
|
<button type="submit" class="btn btn-default">Save</button>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|