-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathusuarios.php
139 lines (114 loc) · 6.75 KB
/
usuarios.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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
<?php
session_start();
if (!isset($_SESSION['campo_email']) || empty($_SESSION['campo_email'])) {
header("Location: login.php");
}
?>
<!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="icon" type="image/png" href="img/icon_siege.png" />
<title>SIEGE - Registros </title>
<link rel="stylesheet" type="text/css" href="CSS/reset.css">
<link rel="stylesheet" type="text/css" href="CSS/forms.css">
<link rel="stylesheet" type="text/css" href="CSS/texto.css">
<link rel="stylesheet" type="text/css" href="CSS/main_nav.css">
<link rel="stylesheet" type="text/css" href="CSS/user_footer.css">
<link rel="stylesheet" type="text/css" href="CSS/inputs.css">
<link rel="stylesheet" type="text/css" href="CSS/modal.css">
<link rel="stylesheet" type="text/css" href="CSS/modulos.css">
<link rel="stylesheet" type="text/css" href="CSS/consultas.css">
<link rel="stylesheet" type="text/css" href="CSS/componentes.css">
<link rel="stylesheet" type="text/css" href="CSS/usuarios.css">
<link rel="stylesheet" type="text/css" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-giJF6kkoqNQ00vy+HMDP7azOuL0xtbfIcaT9wjKHr8RbDVddVHyTfAAsrekwKmP1" crossorigin="anonymous">
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta2/css/all.min.css" rel="stylesheet">
<script src="https://kit.fontawesome.com/a076d05399.js" crossorigin="anonymous"></script>
<script src="JS/filtro_pesquisa_usuario.js" type="module" defer></script>
<script src="JS/modal-atualizar.js" async></script>
<script src="JS/modal-excluir.js" async></script>
<script src="JS/relatorios.js" defer></script>
</head>
<body>
<?php
include('componentes/main_nav.php');
?>
<main>
<?php
if ($_SESSION['tip_usu'] == 1) {
echo "<h1 class='titulo-principal centralizar-texto'>Pessoas do seu ambiente escolar</h1>";
} else {
echo "<h1 class='titulo-principal centralizar-texto'>Usuários cadastrados</h1>";
}
?>
<div class="box_search" style='margin-right: 20px;'>
<input type="text" id="barra_pesquisa" name="barra_pesquisa" placeholder="Pesquisar">
<i class="fa fa-search" aria-hidden="true"></i>
</div>
<form class="user" action="#" method="post">
<?php
if ($_SESSION['tip_usu'] == 1) {
echo "<label style='margin-left: 20px;'>Marque o(s) tipo(s) de membro(s) da escola que gostaria de ver os registros:</label> <br><br>";
echo "<input type='checkbox' style='margin-left: 20px;' class='cargoFiltro' id='dir' name='dir' value='diretor'>";
echo "<label for='dir' class='label_filtrosUsuarios'> Diretores e Vices</label>  ";
echo "<input type='checkbox' class='cargoFiltro' id='prof' name='prof' value='professor'>";
echo "<label for='prof' class='label_filtrosUsuarios'>Professores</label>  ";
echo "<input type='checkbox' class='cargoFiltro' id='alu' name='alu' value='aluno'>";
echo "<label for='alu' class='label_filtrosUsuarios'>Alunos</label><br>";
} else {
echo "<label style='margin-left: 20px;'>Marque o(s) tipo(s) de usuário(s) que gostaria de ver os registros:</label> <br><br>";
echo "<input type='checkbox' style='margin-left: 20px;' class='cargoFiltro' id='dir' name='dir' value='diretor'>";
echo "<label for='dir' class='label_filtrosUsuarios'> Diretores e Vices</label>  ";
echo "<input type='checkbox' class='cargoFiltro' id='secr' name='secr' value='secretario'>";
echo "<label for='secr' class='label_filtrosUsuarios'> Secretários</label>  ";
echo "<input type='checkbox' class='cargoFiltro' id='sup' name='sup' value='supervisor'>";
echo "<label for='sup' class='label_filtrosUsuarios'>Supervisores</label>  ";
echo "<input type='checkbox' class='cargoFiltro' id='prof' name='prof' value='professor'>";
echo "<label for='prof' class='label_filtrosUsuarios'>Professores</label>  ";
echo "<input type='checkbox' class='cargoFiltro' id='alu' name='alu' value='aluno'>";
echo "<label for='alu' class='label_filtrosUsuarios'>Alunos</label><br>";
}
?>
</form>
<br><br>
<?php
if ($_SESSION['tip_usu'] == 3) {
echo "<div id='conjuntoGerarRelatorio' style='float: right; margin-top: -35px; margin-right: 20px;vertical-align: middle;'>";
echo "<form method='POST' target='_blank' id='form_relatorio' action='Relatorios/Usuario/gerarPDF.php?opvl='>";
echo "<select class='select_relatoriosPDF' name='select_relatorios' id='select_relatorios' onclick='entityAddress(\"Usuario\")'>";
echo "<option class='ignorar' value='' selected>-- Opções de relatórios PDF --</option>";
echo "<option class='options_validos' value='usuarios'>Todos os usuários</option>";
echo "<option class='options_validos' value='funcionarios'>Todos os funcionários</option>";
echo "<option class='options_validos' value='gerenciadores'>Gerenciadores</option>";
echo "<option class='options_validos' value='diretores_vices'>Diretores e Vices</option>";
echo "<option class='options_validos' value='supervisores'>Supervisores</option>";
echo "<option class='options_validos' value='secretarios'>Secretários</option>";
echo "<option class='options_validos' value='professores'>Professores</option>";
echo "<option class='options_validos' value='alunos'>Alunos</option>";
echo "</select>";
echo "<button type='submit' class='btn_relatorioPDF' name='btnRelatorios' id='gr' style='cursor: not-allowed;' disabled>Gerar PDF <img class='img_boletim_funcionarios' draggable='false' src='img/files.png'></button>";
echo "</form>";
echo "</div>";
}
?>
<center>
<ul id="busca_resultado" style="margin-top:85px;">
</ul>
</center>
<?php
include('componentes/user_footer.php');
?>
</main>
<div id="modal-screen">
<div id="modal-block">
<div id="close-button">
<p>x</p>
</div>
<iframe src="formularios-cadastro.php?id=default">
</div>
</div>
</body>
</html>