-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathorder.php
More file actions
90 lines (78 loc) · 1.76 KB
/
order.php
File metadata and controls
90 lines (78 loc) · 1.76 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="styles.css">
<title>Food Website</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
}
header {
background-color: #333;
color: white;
text-align: center;
padding: 10px;
}
#menu-container {
display: flex;
flex-wrap: wrap;
justify-content: space-around;
}
.menu-item {
border: 1px solid #ccc;
padding: 10px;
margin: 10px;
text-align: center;
}
.menu-item img {
max-width: 100%;
}
.price {
font-weight: bold;
color: green;
}
.cart {
border: 1px solid #333;
padding: 10px;
position: fixed;
top: 0;
right: 0;
background-color: #fff;
}
.cart ul {
list-style-type: none;
padding: 0;
}
.cart button {
background-color: #4CAF50;
color: white;
padding: 10px;
border: none;
cursor: pointer;
}
</style>
</head>
<body>
<header>
<h1>Menu</h1>
</header>
<section id="menu-container">
<!-- Menu items will be dynamically added here using JavaScript -->
</section>
<div class="cart">
<h2>Shopping Cart</h2>
<ul id="cart-items"></ul>
<p>Total: Rs.<span id="cart-total">0.00</span></p>
<form id="frm_kushal" action="order_kushal.php" method="post">
<input type="hidden" name="amount" id="amountInput">
<input type="hidden" name="order" id="orderInput">
</form>
<button onclick="checkout()">Checkout</button>
</div>
<script src="script.js"></script>
</body>
</html>