-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
54 lines (50 loc) · 2.23 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
<?php
include_once("templates/header.php");
include_once("process/pizza.php");
?>
<div id="main-banner">
<h1>Faça seu Pedido</h1>
</div>
<div id="main-container">
<div class="container">
<div class="row">
<div class="col-md-12">
<h2>Monte a pizza como desejar:</h2>
<form action="process/pizza.php" method="POST" id="pizza-form">
<div class="form-group">
<label for="borda"> Borda: </label>
<select name="borda" id="borda" class="form-control">
<option value="">Seleciona a borda</option>
<?php foreach ($bordas as $borda) : ?>
<option value="<?=$borda['id']?>"> <?=$borda["tipo"] ?> </option>
<?php endforeach; ?>
</select>
</div>
<div class="form-group">
<label for="massa"> Massa: </label>
<select name="massa" id="massa" class="form-control">
<option value="">Seleciona a massa</option>
<?php foreach ($massas as $massa) : ?>
<option value="<?=$massa['id']?>"> <?=$massa["tipo"] ?> </option>
<?php endforeach; ?>
</select>
</div>
<div class="form-group">
<label for="sabores"> Sabores: (Máximo 3)</label>
<select multiple name="sabores[]" id="sabores" class="form-control">
<?php foreach ($sabores as $sabor) : ?>
<option value="<?=$sabor['id']?>"> <?=$sabor["nome"] ?> </option>
<?php endforeach; ?>
</select>
</div>
<div class="form-group">
<input type="submit" class="btn btn-primary" value="Fazer Pedido!">
</div>
</form>
</div>
</div>
</div>
</div>
<?php
include_once("templates/footer.php");
?>