-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
107 lines (59 loc) · 1.76 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
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
<?php
include_once("header.php");
include_once("functions.php");
?>
<div class="container">
<div class="col-md-12">
<h1 style="">Welcome to RicoPizza!</h1>
</div>
<form name="build_pizza_form" method="POST" action="add_to_cart.php">
<div class="row">
<div class="col-md-4">
<h3>Select Quantity, Crust and Size</h3>
<select name="quantity" id="quantity" onclick="updateSelectedToppings()" required>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
</option>
</select>
<?php
getCrustList();
getSizes();
?>
</div>
<div class="col-md-4">
<h3>Select Toppings</h3>
<?php
getToppings();
?>
</div>
<div class="col-md-4">
<h3>Review</h3>
<ul>
<li>Selected Quantity: <span id="selectedQuantity"></span></li>
<li>Selected Crust: <span id="selectedCrust"></span></li>
<li>Selected Size: <span id="selectedSize"></span></li>
<li>Selected Toppings: <ul>
<span id="selectedToppings"></span>
</ul>
</li>
<li>Subtotal: <span id="selectedSubtotal">$0.00</span></li>
</ul>
<input type="submit" name="btnBuyNow" value="Buy Now">
or
<input type="submit" name="btnAddToCart" value="Add to Cart">
<span id="result"></span>
<?php
if(isset($_GET["msg"])){
echo '<div class="alert alert-success" role="alert">'.$_GET["msg"].'</div>';
}
?>
</div>
</div>
</form>
</div>
<?php
include_once("footer.php");
?>