-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
121 lines (110 loc) · 6.07 KB
/
index.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
<?php
$erro = isset($_GET['erro']) ? $_GET['erro'] : 0;
$sucesso = isset($_GET['sucesso']) ? $_GET['sucesso'] : 0;
$logout = isset($_GET['logout']) ? $_GET['logout'] : 0; // IF Ternario
?>
<!-- Front End -->
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="description" content="Sistema auxilidar empresarial"> <!--Descrição do Site -->
<meta name="keywords" content="sistema, empresa, TI, tickets, sistema web,"/> <!--Chaves de busca -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1."/>
<title>Quick Ticket - Entrar</title>
<!-- Desativar toque destaque no IE -->
<meta name="msapplication-tap-highlight" content="no">
<!-- Manifesto de Aplicação Web -->
<link rel="manifest" href="manifest.json">
<!-- Adicione à tela inicial do Chrome no Android -->
<meta name="mobile-web-app-capable" content="yes">
<meta name="application-name" content="Web Starter Kit">
<link rel="icon" sizes="192x192" href="images/touch/chrome-touch-icon-192x192.png">
<!-- Adicione à tela inicial o Safari no iOS -->
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-title" content="Web Starter Kit">
<link rel="apple-touch-icon" href="images/touch/apple-touch-icon.png">
<!-- Icone azulejo Win8 (144x144 + cor azulejo) -->
<meta name="msapplication-TileImage" content="images/touch/ms-touch-icon-144x144-precomposed.png">
<meta name="msapplication-TileColor" content="#2F3BA2">
<!-- Cor da barra de status em dispositivos móveis -->
<meta name="theme-color" content="#02203c">
<!-- Material Icones -->
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<!-- Fonte de boas vindas -->
<link href="https://fonts.googleapis.com/css?family=Pacifico" rel="stylesheet">
<!-- Folhas de estilos -->
<link href="styles/materialize.css" type="text/css" rel="stylesheet" media="screen,projection"/>
<link href="styles/style.css" type="text/css" rel="stylesheet" media="screen,projection"/>
</head>
<body id="login-wall">
<div class="section no-pad-bot" id="index-banner">
<div class="container">
<div class="center">
<img src="images/quick-ticket.png">
</div>
</div>
</div>
<br>
<div class="container">
<div class="row center">
<div class="col s12 m6 offset-m3">
<div class="card small z-depth-3" id="card-login">
<br><span class="card-title" id="bem-vindo">Seja Bem Vindo !</span>
<div class="row center">
<form class="" method="POST" action="validar_acesso.php">
<br>
<div class="input-field col s8 m8 l10 offset-m1 offset-s1 offset-l1">
<i class="material-icons prefix icon_color_login" >email</i>
<input id="icon_prefix email email" name="email" required value="" type="email" class="validate <?= $erro == 1 ? 'invalid' : '' ?>">
<label for="icon_prefix">Email</label>
</div>
<div class="input-field col s8 m8 l10 offset-m1 offset-s1 offset-l1">
<i class="material-icons prefix icon_color_login">lock</i>
<input id="icon_prefix senha" name="senha" type="password" required value="" class="validate <?= $erro == 1 ? 'invalid' : '' ?>">
<label for="icon_prefix">Senha</label>
</div>
<div class="row">
<button class="btn waves-effect waves-light light-blue darken-4" type="submit" name="action">Entrar
<i class="material-icons right">send</i>
</button>
</div>
<br>
<?php
if($erro == 1)
echo '<div class="col offset-s1 s10 card-panel" style="background:rgba(100,0,0,0.6);padding-top:6px;"><i class="material-icons">error</i> Usuario e ou Senha inválido(s)!</div>';
if($erro == 2)
echo '<div class="col offset-s1 s10 card-panel" style="background:rgba(100,0,0,0.6);padding-top:6px;"><i class="material-icons">error</i> Erro ao efetuar login!</div>';
if($sucesso == 1)
echo '<div class="col offset-s1 s10 card-panel" style="background:rgba(0, 80, 0, 0.4);padding-top:6px;"><i class="material-icons">check</i> Cadastro efetuado com sucesso!</div>';
if($logout == 1)
echo '<div class="col offset-s1 s10 card-panel" style="background:rgba(30, 90, 150, 0.4);padding-top:6px;"> Você efetuou Logout!</div>';
?>
<div class="fixed-action-btn toolbar">
<a class="btn-floating btn-large light-blue darken-4 pulse">
<i class="large material-icons">feedback</i>
</a>
<ul>
<li class="waves-effect waves-light"><a href="#!"><i class="material-icons">create</i></a></li> <!-- Entrar em contato -->
<li class="waves-effect waves-light"><a href="cadastro.php"><i class="material-icons">supervisor_account</i></a></li> <!-- Criar uma conta -->
<li class="waves-effect waves-light"><a href="#!"><i class="material-icons">bug_report</i></a></li> <!-- Reportar bug -->
</ul>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
<!-- Scripts-->
<script src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
<script src="scripts/materialize.js"></script>
<script src="scripts/init.js"></script>
<script src="scripts/main.js"></script>
<script src="scripts/service-init.js" async></script>
</body>
</html>