-
Notifications
You must be signed in to change notification settings - Fork 0
/
painel-geral.php
164 lines (117 loc) · 5.95 KB
/
painel-geral.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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
<?php
include "php/conexao.php";
session_start();
//Checkar se existe uma sessao
if(!$_SESSION['login']){
header("location: login.php");
die;
} elseif ($_SESSION['perfil'] != 'director geral' AND $_SESSION['perfil'] != 'administrador') {
header( "refresh:2; url=login.php" );
header( "Location: login.php" );
echo "<center> <h1> Acesso Restrito </h1> </center>";
die();
exit();
}
$id = $_SESSION['id_login'];
$login = $_SESSION['login'];
$password = $_SESSION['password'];
//In-Page DATA
$sql = mysqli_query($conexao, "SELECT * FROM funcionario WHERE Id_Login = '$id'");
while ($line = mysqli_fetch_array($sql)) {
//Pegar o Nome
$getCredential_Nome_Funcionario = $line['Nome_Funcionario'];
}
?>
<!doctype html>
<html class="no-js" lang="en" dir="ltr">
<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>ProjectoBD</title>
<link rel="stylesheet" href="css/foundation.css">
<link rel="stylesheet" href="css/app.css">
<!-- Estilizacao CSS -->
<link rel="stylesheet" href="css/css.css">
<!-- Professor -->
<!-- Font Awesome -->
<link rel="stylesheet" href="font/font-awesome/css/font-awesome.min.css">
</head>
<body>
<div class="grid-y medium-grid-frame">
<div class="cell medium-auto medium-cell-block-container">
<div class="grid-x grid-padding-x">
<div class="cell small-5 medium-4 large-3 medium-cell-block-y sidebar">
<ul class="multilevel-accordion-menu vertical menu align-left grid-padding-x" data-accordion-menu>
<li class="logo"> <img src="img/logo.svg" alt="CEF" height = "100" width = "100"> </li>
<li>
<a class="active" href="#"> <i class="fa fa-home" aria-hidden="true"> </i> Home <span class="subitem"> </span> </a>
</li>
<li>
<a href="#"> <i class="fa fa-file" aria-hidden="true"> </i> Secretariado <span class="subitem"> </span> </a>
<ul class="menu vertical sublevel-1">
<!-- <li><a class="subitem" href="#">Registrar Alunos</a></li> -->
<li><a class="subitem" href="pages/dir-geral/matricula">Matrícula</a></li>
<li><a class="subitem" href="pages/dir-geral/lista-nominal">Lista Nominal </a></li>
<!-- <li><a class="subitem" href="#">Emitir Declaração</a></li>
<li><a class="subitem" href="#">Pagamento de Propinas</a></li> -->
</ul>
</li>
<li>
<a href="#"> <i class="fa fa-usd" aria-hidden="true"> </i> Direcção Académica <span class="subitem"> </span> </a>
<ul class="menu vertical sublevel-1">
<li><a class="subitem" href="pages/dir-geral/criar-afectar-disciplina">Criar / Afectar Disciplina </a></li>
<li><a class="subitem" href="pages/dir-geral/cadastrar-turma">Cadastrar Turma</a></li>
<li><a class="subitem" href="pages/dir-geral/cadastrar-professor">Cadastrar Professor</a></li>
</ul>
<li>
<a href="pages/dir-geral/cadastrar-funcionario"> <i class="fa fa-users" aria-hidden="true"> </i> Cadastrar Funcionário <span class="subitem"> </span> </a>
</li>
<li>
<a href="pages/dir-geral/professor-curso-disciplina"> <i class="fa fa-book" aria-hidden="true"> </i> Afectar Professor / Disciplina <span class="subitem"> </span> </a>
</li>
</ul>
</div>
<div class="cell small-7 medium-8 large-9 medium-cell-block-y">
<div class="grid-x grid-margin-x panel">
<div class="cell small-12 medium-6 large-8 nome-escola">
<h1> Colegio Elizangela Filomena </h1>
</div>
<div class="cell small-6 medium-6 large-4 medium-cell-block-y usuario-log">
<!-- <img align="right" src="img/burundi.png" alt="usuario" float= "right" height = "52" width = "72"> -->
<ul class="">
<li class="img-user img-user-d">
<?php
If ($_SESSION['perfil'] != 'director geral'){
echo "Adminstrador do Sistema";
} else {
echo"$getCredential_Nome_Funcionario";
}
?>
</li>
<li class="img-user"> Admin. Geral | <a href="php/logout.php"> Log Out <i class="fa fa-sign-out"></i> </a> </li>
</ul>
</div>
</div>
<!-- Painel Actual em que se encontra o usuario-->
<div class="grid-x grid-margin-x controle-panel status-panel">
<h1> Painel Geral</h1>
</div>
</div>
</div>
</div>
<div class="grid-y footer">
<div class="cell small-10 medium-9 large-10 small-offset-2 medium-offset-3 large-offset-2">
<center>
© 2016 dominio-do-site, Todos os direitos reservados <br>
Powered / Made By: Grupo 2
</center>
</div>
</div>
</div>
<script src="js/vendor/jquery.js"></script>
<script src="js/vendor/what-input.js"></script>
<script src="js/vendor/foundation.js"></script>
<script src="js/app.js"></script>
</body>
</html>