-
Notifications
You must be signed in to change notification settings - Fork 0
/
cadastro.html
70 lines (69 loc) · 3.73 KB
/
cadastro.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- -->
<script src="https://code.jquery.com/jquery-3.6.0.min.js"
integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js"
integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous">
</script>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css"
integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
<!-- -->
<script src="js/cadastro.js"></script>
<!-- -->
<link rel="stylesheet" type="text/css" href="css/cadastro.css">
<!-- -->
<script src="https://kit.fontawesome.com/00a4711f34.js" crossorigin="anonymous"></script>
<title>Cadastro</title>
</head>
<body>
<a href="#" class="btn btn-sm btn-dark mt-2 ml-2" style='font-size: 20px; width: 90px;' id='mostrarSenha'
onclick='window.open("index.php","_self")'><i class="fas fa-long-arrow-alt-left"></i></a>
<div class='container'style='width: 500px;'>
<h1 class='text-center'>Cadastrar-se</h1>
<form id='form' class='row' action='cadastro.php' method="POST">
<div class='pt-3 col'>
<label for="email">E-mail:</label>
<input type='text' id='email' class='form-control mb-1' placeholder="E-mail" name='email' maxlength="50"
autofocus>
<label for="senha">Senha:</label>
<input type='password' id='senha' class='form-control mb-1' placeholder="Senha" name='senha'
maxlength="50">
<label for="senha">Confirme sua senha:</label>
<input type='password' id='senha2' class='form-control mb-1' placeholder="Senha" name='senha2'
maxlength="50">
<a href="#" class="btn btn-dark mt-2 btn-block" id='mostrarSenha' onclick="mostraSenha();">Mostrar Senha</a>
</div>
<div class='pt-3 col'>
<label for="nome">Nome:</label>
<input type='text' id='nome' class='form-control mb-1' placeholder="Nome" name='nome' maxlength="50">
<label for="nascimento">Nascimento:</label>
<input type='date' id='nascimento' class='form-control mb-1' placeholder="Data de Nascimento"
name='nascimento'>
<label for="empresa">Empresa:</label>
<input type='text' id='empresa' class='form-control mb-1' placeholder="Empresa" name='empresa'
maxlength="50">
<a href="#" class="btn btn-dark mt-2 btn-md btn-block" onclick='enviaForm()'>Criar Conta</a>
</div>
</form>
<div class="justify-content-end erro">
<div class="alert alert-danger text-center" id='emailincorreto' style='width: 200px;' role="alert">
O e-mail deve ser válido!
</div>
<div class="alert alert-danger text-center" id='senhaincorreta' style='width: 200px;' role="alert">
As senhas informadas devem ser iguais!
</div>
<div class="alert alert-danger text-center" id='datamaior' style='width: 200px;' role="alert">
Data maior que a atual!
</div>
<div class="alert alert-danger text-center" id='dataantiga' style='width: 200px;' role="alert">
Data muito antiga!
</div>
</div>
</div>
</body>
</html>