-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
79 lines (63 loc) · 2.5 KB
/
index.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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!--Bootstrap-->
<link rel="stylesheet" href="css/bootstrap.min.css">
<script src="js/jquery-3.4.1.min.js"></script>
<script src="js/popper.min.js"></script>
<script src="js/bootstrap.js"></script>
<!-- JS-ku -->
<script type="text/javascript" src="js/ajax.js"></script>
<title>Resto Simple</title>
</head>
<body style="background-color: orange; ">
<div class="container mt-5">
<h1 style="text-align: center;">Welcome to our restaurant</h1> <br>
<div class="row justify-content-md-center">
<div class="col-md-7">
<div class="card" style="background-color: rgba(245, 245, 245, 0.4)">
<div class="card-body">
<h4 class="card-title">Add Menu</h4>
<form method="post" action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]);?>">
<label>Nama Menu:</label>
<input class="form-control" type="text" placeholder="Onigiri" id="nama" name="nama"> <br>
<label>Harga (Rp.) :</label>
<input class="form-control" type="number" placeholder="70000" id="harga" name="harga"> <br>
<button type="button" class="btn btn-dark" id="tambah">Add Data</button>
</form>
</div>
</div>
</div>
</div>
<div class="row mt-4">
<div class="col">
<h2>Menu Restoran Wibu</h2>
<div id ="data">Loading data..</div> <br>
</div>
</div>
</div>
<!-- Modal -->
<div class="modal fade" id="myModal" role="dialog">
<div class="modal-dialog modal-sm">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title">Edit Menu</h4>
</div>
<div class="modal-body">
<label>Nama Menu:</label>
<input class="form-control" type="text" placeholder="Onigiri" id="editnama" name="editnama"> <br>
<label>Harga (Rp.) :</label>
<input class="form-control" type="number" placeholder="70000" id="editharga" name="editharga"> <br>
<button type="button" class="btn btn-warning" id="edit">Edit Data</button>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<!-- Modal -->
</body>
</html>