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
|
<!DOCTYPE html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>Sivana - Area Restrita</title> <link rel="stylesheet" href="css/style.default.css" type="text/css" />
<script type="text/javascript" src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script type="text/javascript"> $(function($) { // Quando o formulário for enviado, essa função é chamada $('#frlogin').submit(function(){ var email = $("#email").val(); // Exibe mensagem de carregamento // Fazemos a requisão ajax com o arquivo envia.php e enviamos os valores de cada campo através do método POST $("#enviar").hide(); $("#loading").show(); $("#status").html("<table width='292'><tr ><td class='alert alert-block alert-info' height='25'> Aguarde! Processando tarefa.</td></rtr></table>"); $("#status").slideDown(); $.post('recuperar-submissao.php', {email:email }, function(resposta) {
if (resposta != false) { $("#status").html(resposta); $("#loading").hide(); $("#enviar").show(); } else { $("#status").html("<div class='alert alert-block alert-info'>Sua senha foi enviada para o e-mail de seu cadastro.<br />Em poucos instantes você receberá um e-mail com sua senha.<br /><strong>Obrigado!</strong></div><br><a href=index.php>Voltar</a>"); $("#loading").hide(); $("#email").val(""); $("#enviar").show(); } }); }); });
</script> </head>
<body class="loginbody">
<div class="loginwrapper"> <div class="loginwrap zindex100 animate2 bounceInDown"> <h1 class="logintitle"><span class="iconfa-lock"></span> Esqueceu a senha?<span class="subtitle">Digite seu e-mail de contato:</span></h1> <div class="loginwrapperinner"> <form id="frlogin" class="form-horizontal" method="post" action="javascript:func()"> <div style="margin-bottom: 25px" class="input-group"> <span class="input-group-addon"><i class="glyphicon glyphicon-user"></i></span> <input id="email" type="text" class="form-control" name="email" value="" placeholder="E-mail" required> </div>
<div style="margin-top:10px" class="form-group"> <!-- Button -->
<div class="controls"> <input name="enviar" type="submit" id="enviar" class="button" value="Enviar" >
</div> <div id="loading" style="display:none"> <img id="loading" src="../loading.gif" > </div> <div id="status"></div> </div>
</form> </div><!--loginwrapperinner--> </div> <div class="loginshadow animate3 fadeInUp"></div> </div><!--loginwrapper-->
</body> </html>
|