-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmake_pizza.php
85 lines (79 loc) · 3.4 KB
/
make_pizza.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
<?php
require('requires.php');
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/css/bootstrap.min.css" integrity="sha384-rwoIResjU2yc3z8GV/NPeZWAv56rSmLldC3R/AZzGRnGxQQKnKkoFVhFQhNUwEyJ" crossorigin="anonymous">
<link rel="stylesheet" href="style.min.css">
</head>
<body>
<div class="container container-fluid col-md-9">
<h1>Design Your Pizza</h1>
<form action="review.php" method="POST">
<div class="form-group">
<span>Order Type</span>
<?php while ($row = $order_types->fetch_object()) { ?>
<label>
<input type="radio" name="order_type" value="<?php echo $row->order_type_cd; ?>">
<?php echo $row->order_type_cd_desc; ?>
</label>
<?php } ?>
</div>
<div class="form-group">
<span>Size</span>
<?php while ($row = $sizes->fetch_object()) { ?>
<label>
<input type="radio" name="size" value="<?php echo $row->size_id; ?>">
<?php echo $row->size_desc.' $'.$row->price; ?>
</label>
<?php } ?>
</div>
<div class="form-group">
<span>Cheese</span>
<?php while ($row = $cheeses->fetch_object()) {?>
<label>
<input type="radio" name="cheese" value="<?php echo $row->topping_id; ?>">
<?php echo $row->topping_desc.' $'.$row->topping_price; ?>
</label>
<?php } ?>
</div>
<div class="form-group">
<span>Meat</span>
<?php while ($row = $meats->fetch_object()) {?>
<label>
<input type="checkbox" name="meats[]" value="<?php echo $row->topping_id; ?>">
<?php echo $row->topping_desc.' $'.$row->topping_price; ?>
</label>
<?php } ?>
</div>
<div class="form-group">
<span>Vegetables</span>
<?php while ($row = $veggies->fetch_object()) {?>
<label>
<input type="checkbox" name="veggies[]" value="<?php echo $row->topping_id; ?>">
<?php echo $row->topping_desc.' $'.$row->topping_price; ?>
</label>
<?php } ?>
</div>
<div class="form-group">
<span>Fruits</span>
<?php while ($row = $fruits->fetch_object()) {?>
<label>
<input type="checkbox" name="fruits[]" value="<?php echo $row->topping_id; ?>">
<?php echo $row->topping_desc.' $'.$row->topping_price; ?>
</label>
<?php } ?>
</div>
<div class="form-group">
<button class="btn btn-primary btn-lg" type="submit">Submit</button>
</div>
</form>
</div>
<script src="https://code.jquery.com/jquery-3.1.1.slim.min.js" integrity="sha384-A7FZj7v+d/sdmMqp/nOQwliLvUsJfDHW+k9Omg/a/EheAdgtzNs3hpfag6Ed950n" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/tether/1.4.0/js/tether.min.js" integrity="sha384-DztdAPBWPRXSA/3eYEEUWrWCy7G5KFbe8fFjk5JAIxUYHKkDx6Qin1DkWx51bBrb" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/js/bootstrap.min.js" integrity="sha384-vBWWzlZJ8ea9aCX4pEW3rVHjgjt7zpkNpZk+02D9phzyeVkE+jo0ieGizqPLForn" crossorigin="anonymous"></script>
</body>
</html>