-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathperfil.php
More file actions
98 lines (79 loc) · 2.61 KB
/
perfil.php
File metadata and controls
98 lines (79 loc) · 2.61 KB
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
<?php
// Initialize the session
session_start();
// Check if the user is logged in, if not then redirect him to login page
if(!isset($_SESSION["loggedin"]) || $_SESSION["loggedin"] !== true){
header("location: login.php");
exit;
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" type="text/css" href="css/estilo.css" media="screen" />
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.css">
</head>
<body>
<div class="wrapper">
<div id="corpo_total">
<div id="topo" class="header">
<?php
include 'header.php';
?>
</div>
<div id="corpo" >
<img src="image/persona.png" height="100" />
<?php
echo "<br>";
if($_SESSION["perfil"]==1){
echo "<b>Perfil:</b> Perfil Administrador";
}
else if($_SESSION["perfil"]==2){
echo "<b>Perfil:</b> Perfil Supervisor";
}
else if($_SESSION["perfil"]==3){
echo "<b>Perfil:</b> Perfil Técnico";
}
echo "<br>";
?>
<div class="wrapper">
<form action="atualizarPerfil.php" method="post" >
<input type="hidden" name="id_usuario" class="form-control" value="<?php echo $_SESSION["id_usuario"]; ?>" >
<div class="form-group">
<label>Nome</label>
<input type="text" name="ds_nome" class="form-control" value="<?php echo $_SESSION["ds_nome"]; ?>">
<span class="help-block"></span>
</div>
<div class="form-group">
<label>Matricula</label>
<input type="text" name="matricula" class="form-control" value="<?php echo $_SESSION["matricula"]; ?>">
<span class="help-block"></span>
</div>
<div class="form-group">
<label>Email Novo</label>
<input type="text" name="email" class="form-control" value="<?php echo $_SESSION["email"]; ?>">
<span class="help-block"></span>
</div>
<div class="form-group" >
<label>Senha Nova</label>
<input type="text" name="senha" class="form-control" value="<?php echo $_SESSION["senha"]; ?>">
<span class="help-block"></span>
</div>
<div class="form-group">
<label>Telefone Novo</label>
<input type="text" name="telefone" class="form-control" value="<?php echo $_SESSION["telefone"]; ?>">
<span class="help-block"></span>
</div>
<div class="form-group">
<input type="submit" class="btn btn-primary" value="Atualizar Perfil">
<input type="reset" class="btn btn-default" value="Reset">
</div>
</form>
</div>
<div id="rodape">
<p style="font-size:14px";> ©copyright 2019 - todos os direitos estão reservados</p>
</div>
</div>
</body>
</html>