-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconsulta.html
172 lines (144 loc) · 5.96 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
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
<!DOCTYPE html>
<head>
<meta charset="utf-8" />
<link rel="shortcut icon" href="#" type="image/x-icon">
<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 -->
<!-- js -->
<script src="js/script.js"></script>
<!-- Font Awesome -->
<script defer src="https://use.fontawesome.com/releases/v5.0.8/js/all.js"></script>
<!-- css -->
<link rel="stylesheet" href="css/style.css">
</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="assets/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 id="headerMsg" class="display-4">Consulta de despesas</h1>
</div>
</div>
<div class="row mb-2">
<div class="col-md-2 mb-2">
<select class="form-control" id="ano">
<option value="">Ano</option>
<option value="2021">2021</option>
<option value="2022">2022</option>
<option value="2023">2023</option>
</select>
</div>
<div class="col-md-2 mb-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 mb-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">
<div class="col-md-8 mb-2">
<input type="text" class="form-control" placeholder="Descrição" id="descricao" />
</div>
<div class="col-md-2 mb-2">
<input type="text" class="form-control" placeholder="Valor" id="valor" />
</div>
<div class="col-md-2 d-flex justify-content-end mb-2" id="divSearch">
<button type="button" class="btn btn-primary" id="search" onclick="pesquisarDespesa()">
<i class="fas fa-search"></i>
</button>
</div>
</div>
<button id="cancel" class="btn btn-danger mt-3 mr-4 hide" onclick="cancelarEdicao()">Cancelar Edição</button>
<button id="save" class="btn btn-primary mt-3 hide" onclick="salvarEdicaoDespesa()">Salvar</button>
<div class="d-flex justify-content-center aling-items-center col-md-0 my-4" id="cancelarAcao"></div>
<div class="table-responsive">
<table class="table">
<thead>
<tr>
<th>Data</th>
<th>Tipo</th>
<th>Descrição</th>
<th>Valor</th>
<th class="text-center">Ação</th>
</tr>
</thead>
<tbody id="listaDespesas">
</tbody>
</table>
</div>
<!-- Modal -->
<div class="modal fade" id="modalRegistraDespesa" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"
aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div id="div_modal_titulo">
<h5 class="modal-title" id="modal_titulo"></h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body" id="modal-conteudo"></div>
<div class="modal-footer">
<button type="button" data-dismiss="modal" id="modal-btn"></button>
</div>
</div>
</div>
</div>
</body>
</html>