-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
60 lines (53 loc) · 1.61 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
<?php
session_start();
if(isset($_COOKIE["tema"])){
$tema = $_COOKIE["tema"];
}else{
setcookie("tema","a", (time() + (500 * 24 * 3600)));
}?>
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="utf=8">
<title>Tela inicial</title>
<link rel="stylesheet" type="text/css" href="css/es.css">
<link type='image/x-icon' rel='shortcut icon' href='icones/ufamicon.ico'>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" charset="utf-8"></script>
<?php
if(isset($_SESSION['ifon'])){
echo $_SESSION['ifon'];
unset ($_SESSION['ifon']);
}
if(isset($_COOKIE["tema"]) AND $_COOKIE["tema"] <> "a"){
echo "<link rel='stylesheet' type='text/css' href='css/$tema.css'>";
}
?>
</head>
<body class="pes_nome_body">
<form method="Post" action="login_funcao.php" enctype="multipart/form-data" class="formulario_login">
<h1>Login</h1>
<div class="txtb">
<input name="nuso" type="text" required>
<span data-placeholder="Usuario"></span>
</div>
<div class="txtb">
<input name="senuso" type="password" required></input>
<span data-placeholder="Senha"></span>
</div>
<input class="logbtn" name="btnlo" type="submit" value="Entrar"></input>
<br/><a href='recupera_senha.php'>Esqueceu a senha ?</a>
</form>
<script type="text/javascript">
$(".txtb input").on("focus",function(){
$(this).addClass("focus");
});
$(".txtb input").on("blur",function(){
if($(this).val() == "")
$(this).removeClass("focus");
});
</script>
</body>
<footer>
<label >©2019 N.B.O <br>Suporte: [email protected]<label>
</footer>
</html>