-
Notifications
You must be signed in to change notification settings - Fork 0
/
consulta.html
134 lines (113 loc) · 4.95 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
<html>
<head>
<meta charset="utf-8" />
<title>Orçamento pessoal</title>
<!-- Bootstrap início -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p" crossorigin="anonymous"></script>
<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>
<script src="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="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 onkeyup="somenteNumeros(this);" maxlength="2" 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 onkeyup="somenteNumeros(this);" 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="listaDespesas">
</tbody>
</table>
</div>
</div>
</div>
</body>
</html>