-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfornecedores.htm
126 lines (119 loc) · 3.39 KB
/
fornecedores.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
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
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="utf-8">
<title>Fornecedores</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>Fornecedores</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_suppliersform" appml-controller="myFormController" style="display:none;">
<div appml-include-html="incluso/inc_formcommands.htm"></div>
<p>
<label>SupplierID:</label>
<input id="IDforn" class="w3-input w3-border">
</p>
<p>
<label>SupplierName:</label>
<input id="Nomeforn" class="w3-input w3-border">
</p>
<p>
<label>ContactName:</label>
<input id="Contato" class="w3-input w3-border">
</p>
<p>
<label>Address:</label>
<input id="Endereco" class="w3-input w3-border">
</p>
<p>
<label>PostalCode:</label>
<input id="CEP" class="w3-input w3-border">
</p>
<p>
<label>City:</label>
<input id="Cidade" class="w3-input w3-border">
</p>
<p>
<label>Country:</label>
<input id="Pais" class="w3-input w3-border">
</p>
<p>
<label>Phone:</label>
<input id="Fone" class="w3-input w3-border">
</p>
</div>
<div appml-data="data/appml.php?model=model_list/model_supplierslist">
<div appml-include-html="incluso/inc_listcommands.htm"></div>
<div appml-include-html="incluso/inc_filter.htm"></div>
<div class="w3-responsive">
<table class="w3-table-all">
<tr>
<th></th>
<th>Fornecedor</th>
<th>Cidade</th>
<th>Pais</th>
<th></th>
</tr>
<tr appml-repeat="records">
<td style="cursor:pointer" onclick="appml('Form01').run({{IDforn}})">✎</td>
<td>{{Nomeforn}}</td>
<td>{{Cidade}}</td>
<td>{{Pais}}</td>
<td><a href='' onclick="openProducts({{IDforn}});return false;">Produtos</a></td>
</tr>
</table>
</div>
</div>
<div id="ProductsSection" class="w3-container w3-light-grey" appml-data="data/appml.php?model=model_list/model_productslist" appml-controller="myProductsController" style="display:none;padding:50px;margin-top:30px;">
<span onclick="document.getElementById('ProductsSection').style.display='none';" class="w3-button w3-xxlarge w3-right">×</span>
<div class="w3-responsive">
<table class="w3-table-all">
<tr>
<th>Produto</th>
<th>Categoria</th>
<th>Forncedor</th>
</tr>
<tr appml-repeat="records">
<td>{{NomeProd}}</td>
<td>{{nomeforn}}</td>
<td>{{nomecat}}</td>
</tr>
</table>
</div>
</div>
</div>
<script>
function openProducts(id) {
appml("ProductsSection").clearQuery();
appml("ProductsSection").setQuery("produtos.IDforn", id);
appml("ProductsSection").run();
document.getElementById("ProductsSection").style.display = "";
}
function myFormController($appml) {
if ($appml.message == "ready") {return -1;}
if ($appml.message == "loaded") {
document.getElementById("Form01").style.display = "";
}
}
function myProductsController($appml) {
if ($appml.message == "ready") {return -1;}
}
</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>