-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcategorias.htm
66 lines (62 loc) · 1.71 KB
/
categorias.htm
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
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="utf-8">
<title>Categorias</title>
<link rel="stylesheet" href="css/w3.css">
<script src="data/appml.js"></script>
<script src="js/menu.js"></script>
</head>
<body>
<div appml-include-html="incluso/inc_header.htm"></div>
<div class="w3-container w3-content">
<h1>Categorias</h1>
<div id="Form01" class="w3-container w3-light-grey w3-padding-large w3-margin-bottom" appml-data="data/appml.php?model=model_form/model_categoriesform" appml-controller="myFormController" style="display:none;">
<div appml-include-html="incluso/inc_formcommands.htm"></div>
<p>
<label>Categoria:</label>
<input id="Nomecat" class="w3-input w3-border">
</p>
<p>
<label>Descrição:</label>
<input id="Descricao" class="w3-input w3-border">
</p>
</div>
<div appml-data="data/appml.php?model=model_list/model_categorieslist">
<div appml-include-html="incluso/inc_listcommands_nofilter.htm"></div>
<table class="w3-table-all">
<tr>
<th></th>
<th>Categoria</th>
<th>Descrição</th>
</tr>
<tr appml-repeat="records">
<td style="cursor:pointer" onclick="appml('Form01').run({{IDcat}})">✎</td>
<td>{{Nomecat}}</td>
<td>{{Descricao}}</td>
</tr>
</table>
</div>
</div>
<script>
function myFormController($appml) {
if ($appml.message == "ready") {return -1;}
if ($appml.message == "loaded") {
document.getElementById("Form01").style.display = "";
}
}
</script>
<div appml-include-html="incluso/inc_footer.htm"></div>
<script>
function versenha(y) {
y.classList.toggle("fa-eye-slash");
var x = document.getElementById("myInput");
if (x.type === "password") {
x.type = "text";
} else {
x.type = "password";
}
}
</script>
</body>
</html>