-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtambahstok.php
More file actions
37 lines (37 loc) · 1.18 KB
/
Copy pathtambahstok.php
File metadata and controls
37 lines (37 loc) · 1.18 KB
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
31
32
33
34
35
36
37
</!DOCTYPE html>
<html>
<head>
<?php include ('partials/head.php'); ?>
</head>
<body>
<?php include ('partials/menu.php'); ?>
<div class="container">
<div class="card">
<h2>Tambah Stok Kopi</h2><hr>
<form action="updatestok.php" method="POST">
<?php $id = $_GET['id'];?>
<?php
$tampil=mysqli_query($dbc,"SELECT * FROM kopi WHERE idkopi = $id");
while($row=mysqli_fetch_array($tampil)){
?>
<input type="hidden" name="idkopi" value="<?php echo $id ?>">
<label>Nama Kopi : </label>
<div class="kolom">
<input type="text" name="nama" placeholder="Masukkan Nama Kopi" value="<?php echo $row['nama']; ?>" readonly><br>
</div>
<label>Stok : </label>
<div class="kolom">
<input type="text" name="stok" placeholder="Masukkan Stok" required><br>
<input type="hidden" name="stoklama" value="<?php echo $row['stok']; ?>">
</div>
<div class="card-button">
<input class="simpan" type="submit" name="submit" value="Simpan">
<input class="reset" type="reset" name="reset" value="Reset">
<input class="cancel" type="button" value="Kembali" onclick="history.back(-1)">
<?php } ?>
</div>
</form>
</div>
</div>
</body>
</html>