-
Notifications
You must be signed in to change notification settings - Fork 0
/
finish.php
95 lines (59 loc) · 2.24 KB
/
finish.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
<?php
include_once('componentes/header.php');
?>
<?php
if(isset($_GET['postar']))
{
require_once 'controller/resultadoController.php';
$resultadoController = new ResultadoController();
$data = $resultadoController->pegarID();
$aidx = $data['res_id'];
$freq = $_POST['freq'];
$resultadoController->pegarFreqFinal($freq, $aidx);
header("Location: noice.php?freq=$freq&aidx=$aidx");
}
?>
<div class="row ">
<div class="col-md-3 bg"> </div>
<div class="col-md-6 h-100 d-inline-block">
<form class="form-horizontal" action="finish.php?postar=1" method="post">
<fieldset>
<input type="hidden" name="acao">
<div class="form-group">
<h1 class="titulo" style="padding-top: 170px">Foi massa bro?
<?php
if($_GET['acertos'] == '0'){
echo 'Tu n acertou nenhuma bixo';
}else if($_GET['acertos'] == '6'){
echo 'Tu acertou tudo bixo. Mizeravi';
}else if($_GET['acertos'] == '5'){
echo 'Acertou 5, com sorte passa em medicina um dia';
}else if($_GET['acertos'] == '4'){
echo 'Tu acertou 4. Quanto é 4+4?';
}else if($_GET['acertos'] == '3'){
echo 'Tu acertou 3, como quer passar no ENEM assim?';
}else if($_GET['acertos'] == '2'){
echo 'Acertasse duas, mais uma e ficava na media';
}else if($_GET['acertos'] == '1'){
echo 'Tu acertou uma, Einstein';
} ?>
</h1>
<h2 style="font-size: 12px; margin-left: 15px;">Fala pra gente teus batimentos cardíacos depois do teste!</h2>
</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" style="margin-bottom: 700px">Enviar</button>
</div>
</div>
</fieldset>
</form>
</div>
<div class="col-md-3 bg"> </div>
</div>
<?php include_once('componentes/footer.php'); ?>