-
Notifications
You must be signed in to change notification settings - Fork 0
/
perfil.php
99 lines (85 loc) · 3.15 KB
/
perfil.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
<?php
session_start();
//Conectar com o MySQL
$host = 'localhost';
$user = 'root';
$pass = '';
$pontoidbd = 'pontoidbd';
$link = mysqli_connect($host,$user,$pass,$pontoidbd) or die(mysqli_error());
$cod_matricula=$_SESSION['cod_matricula'];
$sql = "SELECT*FROM funcionario WHERE cod_matricula = $cod_matricula";
$result = mysqli_query($link,$sql);
$linha = mysqli_fetch_assoc($result);
?>
<!DOCTYPE html>
<html lang="pt-BR">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.1/css/all.min.css" integrity="sha512-KfkfwYDsLkIlwQp6LFnl8zNdLGxu9YAA1QvwINks4PhcElQSvqcyVLLD9aMhXd13uQjoXtEKNosOWaZqXgel0g==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<title>Home</title>
<link rel="stylesheet" href="barra.css">
<link rel="stylesheet" href="perfil.css">
</head>
<body>
<nav>
<div class="navigation">
<ul>
<li>
<a href="perfil.php">
<span class="icon"><i class="fa-solid fa-user"></i></span>
<span class="title">Perfil</span>
</a>
</li>
<li>
<a href="ponto.html">
<span class="icon"><i class="fa-solid fa-calendar-xmark"></i></span>
<span class="title">Ponto</span>
</a>
</li>
<li>
<a href="sobre.html">
<span class="icon"><i class="fa-solid fa-circle-question"></i></span>
<span class="title">Sobre</span>
</a>
</li>
<li>
<a href="login.html">
<span class="icon"><i class="fa-solid fa-right-from-bracket"></i></span>
<span class="title">Sair</span>
</a>
</li>
</ul>
</div>
</nav>
<div class="box-degrade">
<div class="page">
<div class="card">
<div class="w-100 box">
<form class="box" id="form-form">
<!-- image -->
<div class="image-upload-box">
<br> <img id="image-preview" src="perfil-de-usuario.png" class="w-100 h-100"> </br.>
</div>
</form>
</div>
<br>
<h1>Perfil Funcionário</h1>
<h2>Nome: <?php echo $linha['nome']; ?> </h2>
<h3>RM: <?php echo $linha['cod_matricula']; ?></h3>
<h3>SETOR: <?php echo $linha['setor']; ?> </h3>
</div>
</div>
</div>
<div class="toggle" onclick="toggleMenu();"></div>
<script type="text/javascript">
function toggleMenu(){
let navigation = document.querySelector('.navigation');
let toggle = document.querySelector('.toggle');
navigation.classList.toggle('active');
toggle.classList.toggle('active');
}
</script>
</body>
</html>