-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpainel.php
124 lines (102 loc) · 4.69 KB
/
painel.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
<?php
ob_start(); session_start();
require 'funcoes/banco/conexao.php';
require 'funcoes/login/login.php';
require 'funcoes/crud/crud.php';
logado('usuarios');
if (isset($_GET['logout']) && $_GET['logout'] == 'true') :
session_destroy();
header("Location: index.php");
endif;
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Admin com PDO</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="css/bootstrap.min.css" rel="stylesheet" media="screen">
<link href="css/estilos.css" rel="stylesheet" media="screen">
</head>
<body>
<nav class="navbar navbar-default" role="navigation">
<div class="container">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">HOME ADMIN</a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse navbar-ex1-collapse">
<p class="pull-right logout">
<a href="#" > <?php $_SESSION['usuarios']->email; ?></a>
<a href="?logout=true" class="btn btn-danger">Sair</a>
</p>
</div><!-- /.navbar-collapse -->
</div>
</nav>
<div class="container">
<div class="row">
<div class="col-lg-9">
<h2 class="linha">HOME</h2>
<div class="box">
<div class="box-title">USUÁRIOS</div>
<div class="box-content nopadding">
<table class="table table-striped">
<thead>
<tr>
<th>Nome</th>
<th>Telefone</th>
<th>Email(Login)</th>
<th>Nivel</th>
<th width="200">Ação</th>
</tr>
</thead>
<tbody>
<tr>
<td colspan="5"><img src="img/load.svg" class="load" alt="Carregando" /></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div class="col-lg-3">
<h2 class="linha">Menu</h2>
<div class="bloco">
<ul class="list-group">
<li class="list-group-item">
<span class="badge"><?php echo count(listarAdmin()); ?></span>
Registros
</li>
</ul>
<div class="list-group">
<a href="#" class="list-group-item active">Administrador</a>
<a href="#" class="list-group-item" id="janela">Cadastrar</a>
</div>
</div>
</div>
</div>
<div class="modal fade" id="myModal" tabindex="-1" role="dialog">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title">Cadastro</h4>
</div>
<div class="modal-body">
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div><!-- /.modal -->
</div>
<script src="http://code.jquery.com/jquery-1.10.1.min.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<script type="text/javascript" src="js/painel.js"></script>
</body>
</html>
<?php ob_end_flush(); ?>