-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
98 lines (80 loc) · 3.07 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
<?php
include_once('componentes/header.php');
?>
<?php
if(isset($_GET['postar']))
{
require_once 'controller/participanteController.php';
$participanteController = new ParticipanteController();
$idade = $_POST['idade'];
$peso = $_POST['peso'];
$altura = $_POST['altura'];
$curso = $_POST['curso'];
$logica = $_POST['logica'];
$freq = $_POST['freq'];
$participanteController->inserir($idade, $peso, $altura, $curso, $logica, $freq);
header("Location: quiz.php");
}
?>
<div class="row">
<div class="col-md-3 bg"> </div>
<div class="col-md-6">
<form class="form-horizontal" action="index.php?postar=1" method="post">
<fieldset>
<div class="form-group" style="margin-top: 30px;">
<h1 class="titulo">Preencha o formulário antes de continuar</h1>
</div>
<div class="form-group">
<label class="col-md-4 control-label" for="idade">Idade</label>
<div class="col-md-12">
<input id="idade" name="idade" type="text" placeholder="Idade" class="form-control input-md" required="">
</div>
</div>
<div class="form-group">
<label class="col-md-4 control-label" for="peso">Peso</label>
<div class="col-md-12">
<input id="peso" name="peso" type="text" placeholder="Peso" class="form-control input-md" required="">
</div>
</div>
<div class="form-group">
<label class="col-md-4 control-label" for="altura">Altura</label>
<div class="col-md-12">
<input id="altura" name="altura" type="text" placeholder="Altura" class="form-control input-md" required="">
</div>
</div>
<div class="form-group">
<label class="col-md-4 control-label" for="curso">Curso</label>
<div class="col-md-12">
<select id="curso" name="curso" class="form-control">
<option value="Informática">Informática</option>
<option value="Eletroeletrônica">Eletroeletrônica</option>
</select>
</div>
</div>
<div class="form-group">
<label class="col-md-12 control-label" for="logica">Nível de facilidade com questões de lógica</label>
<div class="col-md-12">
<select id="logica" name="logica" class="form-control">
<option value="Baixo">Baixo</option>
<option value="Médio">Médio</option>
<option value="Alto">Alto</option>
</select>
</div>
</div>
<div class="form-group">
<label class="col-md-4 control-label" for="freq">Frequência Cardíaca</label>
<div class="col-md-12">
<input id="freq" name="freq" type="text" placeholder="Frequência Cardíaca" class="form-control input-md" required="">
</div>
</div>
<div class="form-group">
<div class="col-md-12">
<button type="submit" class="btn btn-success btn-lg btn-block mb-5">Jogar!</button>
</div>
</div>
</fieldset>
</form>
</div>
<div class="col-md-3 bg"> </div>
</div>
<?php include_once('componentes/footer.php'); ?>