-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
205 lines (147 loc) · 6.57 KB
/
index.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
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
<!DOCTYPE html>
<!-- saved from url=(0056)https://getbootstrap.com.br/docs/4.1/examples/dashboard/ -->
<html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<link type="image/png" sizes="16x16" rel="icon" href="icons8-partilhar-16.png">
<script src="https://kit.fontawesome.com/4d1a88761e.js" crossorigin="anonymous"></script>
<title>Exemplo de Dashboard</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
</style>
<style type="text/css">
@media only screen and (max-width: 600px) {
body {
width : 350px;
text-align: center;
}
}
</style>
</head>
<body>
<nav class="navbar navbar-expand-lg d-none d-sm-block" style="background-color: #250352; color: #fff">
<a class="navbar-brand" href="#" style="text-decoration: none;color: #fff"><img src="https://user-images.githubusercontent.com/1256531/43319337-f5ea7a92-9169-11e8-9622-a3c7f0a0e5c4.png" width="50px" height="50px"> Painel</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Alterna navegação">
<span class="navbar-toggler-icon"></span>
</button>
<div class="container" style="margin-top: -50px">
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav ml-auto">
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" style="text-decoration: none;color: #fff">
Exemplo Dropdown
</a>
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
<a class="dropdown-item" href="#">Ação</a>
<a class="dropdown-item" href="#">Outra ação</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="#">Algo mais aqui</a>
</div>
</li>
</ul>
</div>
</div>
</nav>
<div class="container-fluid" >
<div class="row">
<nav class="col-md-2 d-none d-md-block sidebar" style='background-color:#fff;border-right: 1px solid #f3f3f3'>
<div class="sidebar-sticky">
<ul class="nav flex-column" style="padding-top: 20px">
<li class="nav-item">
<a class="nav-link active" href="?pagina" style="color:#000;text-decoration: none">
<i class="fas fa-tachometer-alt"></i> Dashboard <span class="sr-only">(atual)</span>
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="?pagina=pedidos" style="color:#000;text-decoration: none">
<i class="fas fa-box"></i> Pedidos
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="?pagina=clientes" style="color:#000;text-decoration: none">
<i class="far fa-user"></i> Cadastrar Clientes
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="?pagina=vendas" style="color:#000;text-decoration: none">
<i class="fas fa-dollar-sign"></i> Cadastrar Vendas
</a>
</li>
</ul>
</div>
</nav>
<!-- conteudo -->
<main role="main" class="col-md-9 ml-sm-auto col-lg-10 px-4">
<div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom">
<h1 class="h2">Dashboard</h1>
<div class="btn-toolbar mb-2 mb-md-0">
<div class="btn-group mr-2">
</div>
</div>
</div>
<?php
if(isset($_GET['pagina'])) {
switch ($_GET['pagina']) {
case 'pedidos':
echo '<h2>Pedidos</h2>';
include 'graficos/graficoArea.php';
break;
case 'clientes':
include 'cadastro_cliente.php';
break;
case 'vendas':
include 'cadastro_vendas.php';
break;
default:
include 'painel.php'; include 'painel2.php';
break;
}
}
?>
</main>
</div>
</div>
<div class="d-block d-sm-none">
<nav class="navbar fixed-bottom navbar-light bg-light">
<a class="navbar-brand" href="#">Opções</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#conteudoNavbarSuportado" aria-controls="conteudoNavbarSuportado" aria-expanded="false" aria-label="Alterna navegação">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="conteudoNavbarSuportado">
<ul class="navbar-nav mr-auto">
<a class="nav-link active" href="?pagina">
Dashboard <span class="sr-only">(atual)</span>
</a>
</li>
<li class="nav-item" >
<a class="nav-link" href="?pagina=pedidos" style="text-decoration: none">
Pedidos
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="?pagina=clientes">
Cadastrar Clientes
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="?pagina=vendas">
Cadastrar Vendas
</a>
</li>
</ul>
</div>
</nav>
</div>
<!-- Principal JavaScript do Bootstrap
================================================== -->
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script>
<script type="text/javascript">
$(window).resize(function(){
drawChart();
drawChart2();
});
</script>
</body>
</html>