-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtambahAddOns.php
136 lines (133 loc) · 6.81 KB
/
tambahAddOns.php
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Pareanom</title>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-KK94CHFLLe+nY2dmCWGMq91rCGa5gtU4mk92HdvYe+M/SXH301p5ILy+dN9+nJOZ" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-ENjdO4Dr2bkBIFxQpeoTz1HIcje39Wm4jDKdf19U8gI4ddQ3GYNS7NTKfAdVQSZe" crossorigin="anonymous">
</script>
<script type="text/javascript" src="assets/scripts/tambahProduk.js"></script>
<link rel="stylesheet" href="assets/styles/tambahAddOns.css">
</head>
<body>
<main>
<nav>
<header>
<a href="index.php">
<!--? Halaman Produk -->
<div class="garis-bawah-gambar">
<img src="assets/image/Logo Pareanom.png" alt="Logo Pareanom">
</div>
</a>
<h1>PAREANOM</h1>
<h1>CHICKEN BAR</h1>
</header>
<ul>
<a href="index.php">
<li>
<div class="kotak-ikon">
<img src="assets/image/Produk.png">
</div>
<p>PRODUK</p>
</li>
</a>
<a href="halamanBahan.php">
<li>
<div class="kotak-ikon">
<img src="assets/image/Bahan.png">
</div>
<p>BAHAN</p>
</li>
</a>
<a href="halamanRekap.php">
<li>
<div class="kotak-ikon">
<img src="assets/image/Rekap.png">
</div>
<p>REKAP</p>
</li>
</a>
<a href="halamanReject.php">
<li>
<div class="kotak-ikon">
<img src="assets/image/Reject.png">
</div>
<p>REJECT</p>
</li>
</a>
</ul>
</nav>
<article>
<div class="judul">
<h1>TAMBAH ADD ONS</h1>
</div>
<section>
<form action="DBInsert_add_ons.php" method="post">
<div class="mb-3">
<label for="NamaAddOns" class="form-label">Nama Add Ons</label>
<input type="text" name="nama_add_ons" class="form-control" id="NamaAddOns"
aria-describedby="emailHelp" placeholder="Input Nama Add Ons"
oninvalid="this.setCustomValidity('Silahkan Masukkan Nama Add Ons Terlebih Dahulu')"
oninput="setCustomValidity('')" required>
</div>
<div class="mb-3">
<div class="dropdown">
<label for="bahan" class="form-label">Bahan</label>
<select class="form-select form-select-mb-1 " name="bahan_baku[]" multiple
multiselect-search="true" multiselect-max-items="8" aria-label=".form-select-mb example"
style=" padding: 7.5px;">
<?php
include 'database.php';
$queryBahanBaku = mysqli_query($connect, "SELECT * FROM bahan_baku WHERE jenis_bahan = 'Otomatis'");
while($bahanBaku = mysqli_fetch_array($queryBahanBaku)) :
?>
<option value="<?php echo $bahanBaku['nama_bahan'] ?>">
<?php echo $bahanBaku['nama_bahan'] ?>
</option>
<?php endwhile ?>
</select>
</div>
</div>
<div class="mb-3">
<label for="harga" class="form-label">Harga</label>
<input type="text" name="harga" placeholder="Input Harga Produk" class="form-control" id="harga"
oninvalid="this.setCustomValidity('Silahkan Masukkan Harga Produk Terlebih Dahulu')"
oninput="setCustomValidity('')" required>
</div>
<div class="mb-3">
<label for="formFile" class="form-label">Gambar</label>
<select name="gambar" class="form-select form-select-mb-1"
oninvalid="this.setCustomValidity('Silahkan Upload Gambar Produk Terlebih Dahulu')"
oninput="setCustomValidity('')" required>
<option value="selected">Silahkan Pilih Foto Yang Sesuai</option>
<option value="AirMineral.png">Air Mineral</option>
<option value="ChickenPops.png">Chicken Pops</option>
<option value="Dada.png">Dada</option>
<option value="KulitAyam.png">Kulit Ayam</option>
<option value="Nasi.png">Nasi</option>
<option value="PahaAtas.png">Paha Atas</option>
<option value="PahaBawah.png">Paha Bawah</option>
<option value="PareanomCombo.png">Pareanom Combo</option>
<option value="PareanomKomplitBesar.png">Pareanom Komplit Besar</option>
<option value="PareanomKomplitKecil.png">Pareanom Komplit Kecil</option>
<option value="PareanomMantapBesar.png">Pareanom Mantap Besar</option>
<option value="PareanomMantapKecil.png">Pareanom Mantap Kecil</option>
<option value="PareanomPuas.png">Pareanom Puas</option>
<option value="Sauce.png">Sauce</option>
<option value="Sayap.png">Sayap</option>
<option value="TehKotak.png">Teh Kotak</option>
<option value="Telur.png">Telur</option>
<option value="VeggieCrumbs.png">Veggie Crumbs</option>
</select>
</div>
<button type="submit">Tambah</button>
</form>
</section>
</article>
</main>
</body>
</html>