-
Notifications
You must be signed in to change notification settings - Fork 0
/
home1.php
84 lines (72 loc) · 2.8 KB
/
home1.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
<?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">
<title>Home</title>
<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" />
<link rel="stylesheet" href="barra.css">
<link rel="stylesheet" href="perfil.css">
<title>Perfil Funcionário</title>
</head>
<body>
<div class="navigation">
<ul>
<li>
<a href="perfil.html">
<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>
<div class="page">
<div class="card">
<div class="w-100 box">
<form class="box" id="form-form">
<!-- image -->
<div class="image-upload box">
<img id="image-preview" src="" class="w-100 h-100">
<i class="bi bi-cloud-arrow-up"></i>
<input id="image-field" type="file">
</div>
</form>
</div>
<h1>Perfil Funcionário</h1>
<p> <?php echo $linha['nome']; ?> </p>
<p> <?php echo $linha['cod_matricula']; ?> </p>
<p> <?php echo $linha['setor']; ?> </p>
</body>
</html>