-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathorders.php
More file actions
59 lines (56 loc) · 1.22 KB
/
orders.php
File metadata and controls
59 lines (56 loc) · 1.22 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
<html>
<head>
<link rel="stylesheet" href="orders.css">
<title>ordersphp</title>
<style>
div.entries{
border: 1px solid #888;
height: 50%;
width: 25%;
background-color:white;
padding:10px;
margin:0 auto;
margin-top:100px;
text-align:center;
letter-spacing:2px;
overflow-x:hidden;
overflow-y:auto;
}
</style>
</head>
<body>
<form method="post">
<div style="position:fixed;top:0;background-color: grey;width:100%; text-align: center;color: white;">
<h2>Your Orders</h2>
</div>
<div class="entries">
<h3 style="letter-spacing:2px;">Total Summary: </h3>
<?php
foreach ($_POST as $drink=>$rate)
{
if($drink=="submit")
{
continue;
}
echo '<center><div>'.$drink=str_replace('_',' ',$drink).': <b>'.$rate.'</b></div></center>';
}
?>
</div>
<br><br>
<div class="box">
<center><a class="button" href="#popup1">Confirm My Order</a></center>
</div>
<div id="popup1" class="overlay">
<div class="popup">
<h2>Confirmation</h2>
<a class="close" href="#">×</a>
<div class="content">
Your order has been confirmed. Thank you.<br>
</div>
<br><br><center><a class="button" href="logout.php">Logout</a></center>
</div>
</div>
</div>
</form>
</body>
</html>