-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcadObra.php
147 lines (134 loc) · 5.92 KB
/
cadObra.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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<title>LITTERAE | Cadastro de Obras</title>
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|Roboto+Slab:400,700|Material+Icons">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/latest/css/font-awesome.min.css"><link rel='stylesheet' href='https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css'><link rel="stylesheet" href="css/styleCad.css">
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@8"></script>
</head>
<body>
<!-- partial:index.partial.html -->
<?php
if (isset($_GET["erro"])) {
switch ($_GET["erro"]) {
case 'erroU':
echo "<script> Swal.fire({
title: 'Usuário já existente!',
text: 'O nome de usuário escolhido já está sendo usado.',
type: 'error'
}) </script>";
break;
case 'erroE':
echo "<script> Swal.fire({
title: 'E-mail já existente!',
text: 'Este endereço de e-mail já foi cadastrado.',
type: 'error'
}) </script>";
break;
case 'erroS':
echo "<script> Swal.fire({
title: 'As senhas devem ser iguais!',
text: '',
type: 'warning'
}) </script>";
break;
}
}
if (isset($_GET["sucesso"])) {
switch ($_GET["sucesso"]) {
case 'SucessoCadJ':
echo "<script> Swal.fire({
title: 'Cadastro realizado com sucesso!',
text: '',
width: 450,
type: 'success',
showConfirmButton: false,
timer: 1500
}) </script>";
break;
}
}
?>
<div class="image-container set-full-height" style="background-image: url(img/login01.jpg);">
<!-- Big container -->
<div class="container">
<form method="post" action="acaoObras.php">
<div class="row">
<div class="col-sm-8 col-sm-offset-2">
<!-- Wizard container -->
<div class="wizard-container">
<div class="card wizard-card" data-color="red" id="wizard">
<!-- You can switch " data-color="blue" " with one of the next bright colors: "green", "orange", "red", "purple" -->
<div class="wizard-header">
<!--<h3 class="wizard-title">
Book a Room
</h3>
<h5>This information will let us know more about you.</h5>-->
</div>
<div class="wizard-navigation">
<ul>
<!--<li><a href="#details" data-toggle="tab"> </a></li>-->
<li><a href="#cadastro" data-toggle="tab">Cadastro de Obras</a></li>
<!--<li><a href="#description" data-toggle="tab"> </a></li>-->
</ul>
</div>
<div class="tab-content">
<div class="tab-pane" id="cadastro">
<div class="row">
<div class="col-sm-12">
<h4 class="info-text"> Preencha os seguintes campos</h4>
</div>
<div class="col-sm-6">
<div class="input-group">
<span class="input-group-addon">
<i class="material-icons">account_circle</i>
</span>
<div class="form-group label-floating">
<label class="control-label">Pseudônimo</label>
<input name="pseudonimo" type="text" class="form-control" required="true">
</div>
</div>
</div>
<div class="col-sm-6">
<div class="input-group">
<span class="input-group-addon">
<i class="material-icons">people</i>
</span>
<div class="form-group label-floating">
<label class="control-label">Turma</label>
<input name="turma" type="text" class="form-control" required="true">
</div>
</div>
</div>
</div>
</div>
<div class="wizard-footer">
<div class="pull-right">
<input name="idconcurso" type="hidden" value="1">
<button class='btn btn-finish btn-fill btn-danger btn-wd' name='cadO'>Cadastrar</button>
</div>
<div class="pull-left">
<div class="footer-checkbox">
<div class="col-sm-12">
</div>
</div>
</div>
<div class="clearfix"></div>
</div>
</div>
</div> <!-- wizard container -->
</div>
</div> <!-- row -->
</form>
</div> <!-- big container -->
<div class="footer">
<div class="container text-center">
</div>
</div>
</div>
</body>
<!-- partial -->
<script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.0/jquery.min.js'></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/js/bootstrap.min.js'></script><script src="js/scriptCad.js"></script>
</html>