-
Notifications
You must be signed in to change notification settings - Fork 1
/
labels.html
87 lines (74 loc) · 2.44 KB
/
labels.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
<html>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<!-- STYLES -->
<link href="css/styles.css" rel="stylesheet" type="text/css">
<link href="http://www.sibbr.gov.br/css/tableconverter.css" rel="stylesheet" type="text/css">
<!-- END STYLE -->
<!-- MENU GLOBAL -->
<script type="text/javascript" charset="utf-8" src="http://www.sibbr.gov.br/menu/global_nav.js?v1.0"></script>
<!-- END MENU GLOBAL -->
<!-- JS JQUERY -->
<script type='text/javascript' src="js/jquery-2.0.2.js"></script>
<!-- END JQUERY -->
<!-- JQUERY CHECKALL FUNCTION -->
<script type="text/javascript" language="JavaScript">
$(function(){
$("#checkAll").click(function () {
$('input:checkbox').not(this).prop('checked', this.checked);
});
});
</script>
<!-- END JQUERY CHECKALL FUNCTION -->
<!-- JS VALIDATION INPUT FILE -->
<script type="text/javascript" language="JavaScript">
<!--
function validateForm() {
var checkedValue = null;
var inputElements = document.getElementsByClassName('checkItem');
var hasChecked = false;
for(var i=0; inputElements[i]; ++i){
if(inputElements[i].checked){
checkedValue = inputElements[i].value;
hasChecked = true;
}
}
if (hasChecked) {
document.getElementById("aviso2").innerHTML = ("* Tabela convertida!\n\r o arquivo se encontra em sua pasta de Download padrão.");
return true;
} else {
document.getElementById("aviso").innerHTML = ("* Escolha os campos que deseja converter");
return false;
}
}
//-->
</script>
<!-- END JS VALIDATION INPUT FILE -->
<body>
<div class="container">
<div class="content">
<h2>Selecione as colunas no padrão DwC</h2>
<!-- FORM -->
<form action="upload" method="get" name="form1" onSubmit="return validateForm();">
<ul>
<input type="checkbox" id="checkAll" >
<span class="ckeck">Selecionar todos</span>
<hr>
{{range $element := .}}
<li>
<input type="checkbox" name="{{$element.Value}}" value="{{$element.ID}}" class="checkItem">
{{$element.Value}} </li>
{{end}} <br />
<br />
<span id="aviso" class="erro"></span> <br />
</ul>
<p>
<input type="submit" value="Concluir" class="submit">
<p> <span id="aviso2" class="aceito"></span> <br />
</p>
</p>
</form>
<!-- END FORM -->
</div>
</div>
</body>
</html>