-
Notifications
You must be signed in to change notification settings - Fork 0
/
conectar.php
111 lines (94 loc) · 4.98 KB
/
conectar.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
<?php
include './classes/Config.inc.php';
if (!session_id()) {
session_start();
}
$login = new Login();
$dataLogin = filter_input_array(INPUT_POST, FILTER_DEFAULT);
if (!empty($dataLogin['logar'])) {
$login->exeLogin($dataLogin);
if (!$login->getResult()) {
WSErro($login->getError()[0], $login->getError()[1]);
} else {
header('Location: index.php');
}
}
if ($login->checkLogin()) {
header('Location: index.php');
}
?>
<!doctype html>
<!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="pt"> <![endif]-->
<!--[if IE 7]> <html class="no-js ie7 oldie" lang="pt"> <![endif]-->
<!--[if IE 8]> <html class="no-js ie8 oldie" lang="pt"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="pt"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Sistema ELFI</title>
<meta name="description" content="">
<meta name="author" content="Elfi Service">
<meta name="viewport" content="width=device-width,initial-scale=1">
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<link rel="stylesheet" href="estilos.css">
<script src="js/jquery.min.js" type="text/javascript"></script>
<script src="js/recuperar-senha.js"></script>
</head>
<body>
<div style="background: url(imagens/topo1.png) repeat-x; padding:5px 0px 30px 0px;">
</div>
<div >
<h2 style="text-align: center;" >Acesso ao Sistema Integrado da ELFI SERVICE para os Colaboradores </h2>
</div>
<section class="w3-container">
<div class="w3-content">
<form class="w3-container" name="AdminLoginForm" action="" method="post">
<div class="w3-row-padding">
<div class="w3-half">
<label>Email</label>
<input class="w3-input w3-border" name="login" type="email" id="login" maxlength="200" >
</div>
<div class="w3-half">
<label>Senha</label>
<input class="w3-input w3-border" name="senha" type="password" id="senha" maxlength="16" >
</div>
<div class="w3-col w3-center w3-margin-top">
<input class="w3-btn" type="submit" name="logar" value="Entrar" id="logar" />
</div>
</div>
</form>
</div>
</section>
<div class="w3-container w3-center w3-margin-top">
<div class="w3-row-padding">
<div class="w3-col">
<button onclick="document.getElementById('id01').style.display = 'block'" class="w3-button w3-black w3-small">Esqueceu a senha ?</button>
<div id="id01" class="w3-modal">
<div class="w3-modal-content">
<section class="w3-container">
<span onclick="document.getElementById('id01').style.display = 'none'"
class="w3-button w3-display-topright">×</span>
<div class="w3-content w3-margin-bottom">
<p class="w3-padding-top">Esqueceu a Senha, entre com seu Email de Login e te enviaremos uma senha temporaria!</p>
<form class="w3-container" name="EsqueciSenhaForm" action="" method="post" enctype="multipart/form-data">
<input type="hidden" name="callback" value="Recuperar-senha"/>
<input type="hidden" name="callback_action" value="enviar-senha-temp"/>
<div class="w3-row-padding">
<div class="w3-col">
<label>Email</label>
<input class="w3-input w3-border" name="email-recuperar" type="email" id="email-recuperar" maxlength="200" >
</div>
<div class="w3-col w3-center w3-margin-top">
<input class="w3-btn" type="submit" name="recuperar-senha-btn" value="Enviar" id="recuperar-senha-btn" />
<img class="form_load" style="margin-left: 10px;" alt="Enviando Requisição!" title="Enviando Requisição!" src="imagens/load.gif"/>
</div>
</div>
</form>
</div>
</section>
</div>
</div>
</div>
</div>
</body>
</html>