-
Notifications
You must be signed in to change notification settings - Fork 0
/
participar.php
138 lines (111 loc) · 5.38 KB
/
participar.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
<!DOCTYPE html>
<html>
<head>
<meta charset='UTF-8'>
<title>Join- Sharing Dreams</title>
<link rel="stylesheet" href="http://sharingdreams.url.ph/css/bootstrap.css">
<link rel="stylesheet" href="http://sharingdreams.url.ph/css/index.css">
<link rel="stylesheet" href="http://sharingdreams.url.ph/css/cadastro.css">
<link href='http://fonts.googleapis.com/css?family=Raleway:500' rel='stylesheet' type='text/css'>
<script src="http://anontime.com/vunch/js/jquery.js"></script>
<script src="http://anontime.com/vunch/js/jquery-ui-1.10.4.custom.min.js"></script>
<script src="http://anontime.com/vunch/js/jquery-ui-1.10.4.custom.js"></script>
<script src="http://anontime.com/vunch/js/bootstrap.js"></script>
<script type="text/javascript" src="http://anontime.com/vunch/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="http://sharingdreams.url.ph/css/datepicker.css">
<script src="http://sharingdreams.url.ph/js/datepicker.js"></script>
</head>
<body>
<div class="top">
<div class="logo">
<a href="http://sharingdreams.url.ph"><img src="http://sharingdreams.url.ph/img/logo.png"></a>
</div>
<ul>
<li>About</li>
<li>Join</li>
<li><a href="http://sharingdreams.url.ph/login" id="menu">Login</a></li>
</ul>
</div>
<div class="hr" style="margin-top:15px;"></div>
<div class='form' style="text-align:center;">
<center>
<div class="que_bom">How nice your interest to join us!</div>
<small>You, which have 18 years old or less, help poor kids around the world and be recognized!</small>
<div style="height:30px;"></div>
<form method='POST'>
<input type='hidden' name='id' value='<?php echo $cadastro['id']; ?>'>
<label>
<input type='text' name='usuario' value='<?php echo htmlspecialchars($cadastro['usuario']); ?>' placeholder='Create a username' autofocus>
<?php if ($tem_erros && isset($erros_validacao['usuario'])) : ?>
<span class="erro"><?php echo $erros_validacao['usuario']; ?></span>
<?php endif; ?>
<?php if ($tem_erros && isset($erros_validacao['verificacao'])) : ?>
<span class="erro"><?php echo $erros_validacao['verificacao']; ?></span>
<?php endif; ?>
</label>
<br>
<label>
<input type='text' class='datepicker' name='data_nascimento' value='<?php echo htmlspecialchars(traduz_data_nascimento_para_exibir($cadastro['data_nascimento'])); ?>' placeholder='Birthday: mm/dd/yyyy'>
<?php if ($tem_erros && isset($erros_validacao['data_nascimento'])) : ?>
<span class='erro'><?php echo $erros_validacao['data_nascimento']; ?></span>
<? endif; ?>
</label>
<br>
<br>
<label>
Select your gender:
<select name='sexo'>
<option name='sexo' value='1' <?php echo ($cadastro['sexo'] == 1) ? 'selected' : ''; ?> >I'm a boy</option>
<option name='sexo' value='2' <?php echo ($cadastro['sexo'] == 2) ? 'selected' : ''; ?> >I'm a girl</option>
</select>
</label>
<br>
<br>
<label>
<input type='text' name='nome' value='<?php echo htmlspecialchars($cadastro['nome']); ?>' placeholder='Type here your full name' autocomplete='off'>
<?php if ($tem_erros && isset($erros_validacao['nome'])) : ?>
<span class='erro'><?php echo $erros_validacao['nome']; ?></span>
<? endif; ?>
</label>
<label>
<input type='text' name='email' value='<?php echo htmlspecialchars($cadastro['email']); ?>' placeholder='Type here your email'>
<?php if ($tem_erros && isset($erros_validacao['email'])) : ?>
<span class='erro'><?php echo $erros_validacao['email']; ?></span>
<?php endif; ?>
</label>
<label>
<input type='text' name='endereco' value='<?php echo htmlspecialchars($cadastro['endereco']); ?>' placeholder='City, Country'>
<?php if ($tem_erros && isset($erros_validacao['endereco'])) : ?>
<span class='erro'><?php echo $erros_validacao['endereco']; ?></span>
<?php endif; ?>
</label>
<br></br>
<label>
Tell us about you! (optional)
<textarea name='sobre'><?php echo htmlspecialchars($cadastro['sobre']); ?></textarea>
</label>
<label>
<input type='password' name='senha' id='senha' placeholder='Type here your password'>
<?php if ($tem_erros && isset($erros_validacao['senha'])) : ?>
<span class="erro"><?php echo $erros_validacao['senha']; ?></span>
<?php endif; ?>
</label>
<label>
<input type='password' name='senha2' placeholder='Type here your password again!'>
<?php if ($tem_erros && isset($erros_validacao['senha2'])) : ?>
<span class="erro"><?php echo $erros_validacao['senha2']; ?></span>
<?php endif; ?>
</label>
<div style="height:20px;"></div>
<button type='submit' class='btn2 like' name='cadastrar'>Ok!</button>
<div style="height:100px;"></div>
</form>
</center>
</div>
<script>
$(document).ready(function () {
$('.datepicker').datepicker();
});
</script>
</body>
</html>