-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
55 lines (45 loc) · 1.86 KB
/
Copy pathindex.html
File metadata and controls
55 lines (45 loc) · 1.86 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="style.css">
<script src="CRUD-DAO.js" defer></script>
</head>
<body>
<div id="output">
<div class="div">
<table class="tabela" id="tabela">
</table>
<button id="btn-cadastro" onclick="mostraCadastro()">Inserir novo produto</button>
</div>
<div id="div-cadastrar" class="div-cadastrar-inativo">
<form>
<h2>Cadastro de Produto</h2>
<input type="number" id="id" readonly>
<input type="text" placeholder="Digite o nome do produto" id="nome" >
<input type="number" placeholder="Digite o preço" id="preco" >
<input type="button" value="Cadastrar Produto" id="btn-inserir" onclick="cadastrar()">
</form>
</div>
<div id="div-editar" class="div-editar-inativo">
<form>
<h2>Alteração de Produto</h2>
<input type="number" id="idEdit" readonly>
<input type="text" id="nomeEdit">
<input type="number" id="precoEdit">
<input type="button" value="Salvar" id="btn-salvar" onclick="salvarAlteracao()">
</form>
</div>
<div id="div-view" class="div-view-inativo">
<form>
<h2>Visualizar Produto</h2>
<input type="number" id="idView" readonly>
<input type="text" id="nomeView" readonly>
<input type="number" id="precoView" readonly>
</form>
</div>
</div>
</body>
</html>