-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconsulta.html
152 lines (131 loc) · 5.46 KB
/
consulta.html
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
<html>
<head>
<meta charset="utf-8" />
<title>Orçamento pessoal</title>
<!-- Bootstrap início -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
<!-- Bootstrap fim -->
<!-- Font Awesome -->
<script defer src="https://use.fontawesome.com/releases/v5.0.8/js/all.js"></script>
<!-- Arquivo JS de lógica -->
<script src="js/app.js"></script>
</head>
<body onload="carregaListaDespesas()">
<nav class="navbar navbar-expand-lg navbar-dark bg-primary mb-5">
<div class="container">
<a class="navbar-brand" href="#">
<img src="img/logo.png" width="50" height="35" alt="Orçamento pessoal">
</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto">
<li class="nav-item">
<a class="nav-link" href="index.html">Cadastro</a>
</li>
<li class="nav-item active">
<a class="nav-link" href="consulta.html">Consulta</a>
</li>
</ul>
</div>
</div>
</nav>
<div class="container">
<div class="row mb-5">
<div class="col">
<h1 class="display-4">Consulta de despesas</h1>
</div>
</div>
<div class="row mb-2">
<div class="col-md-2">
<select class="form-control" id="ano">
<option value="">Ano</option>
<option value="2022">2022</option>
</select>
</div>
<div class="col-md-2">
<select class="form-control" id="mes">
<option value="">Mês</option>
<option value="1">Janeiro</option>
<option value="2">Fevereiro</option>
<option value="3">Março</option>
<option value="4">Abril</option>
<option value="5">Maio</option>
<option value="6">Junho</option>
<option value="7">Julho</option>
<option value="8">Agosto</option>
<option value="9">Setembro</option>
<option value="10">Outubro</option>
<option value="11">Novembro</option>
<option value="12">Dezembro</option>
</select>
</div>
<div class="col-md-2">
<input type="text" class="form-control" placeholder="Dia" id="dia" />
</div>
<div class="col-md-6">
<select class="form-control" id="tipo">
<option value="">Tipo</option>
<option value="1">Alimentação</option>
<option value="2">Educação</option>
<option value="3">Lazer</option>
<option value="4">Saúde</option>
<option value="5">Transporte</option>
</select>
</div>
</div>
<div class="row mb-5">
<div class="col-md-8">
<input type="text" class="form-control" placeholder="Descrição" id="descricao" />
</div>
<div class="col-md-2">
<input type="text" class="form-control" placeholder="Valor" id="valor" />
</div>
<div class="col-md-2 d-flex justify-content-end">
<button type="button" class="btn btn-primary" onclick="pesquisarDespesa()">
<i class="fas fa-search"></i>
</button>
</div>
</div>
<div class="row">
<div class="col">
<table class="table" >
<thead>
<tr>
<th>Data</th>
<th>Tipo</th>
<th>Descrição</th>
<th>Valor</th>
<th></th>
</tr>
</thead>
<tbody id="listaDespesasView">
</tbody>
</table>
</div>
</div>
</div>
<!-- Modal-->
<div class="modal fade" id="modalConsulta" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div id="header_color">
<h5 class="modal-title" id="exampleModalLabel"></h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div id="mensagem_modal" class="modal-body">
</div>
<div class="modal-footer">
<button id="btn_color" type="button" class="btn" data-dismiss="modal" onclick="window.location.reload()"></button>
</div>
</div>
</div>
</div> <!--Modal Fim -->
</body>
</html>