forked from sibbr/tableconverter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
65 lines (62 loc) · 2.18 KB
/
index.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
<html lang="en">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<!-- STYLES -->
<link href="../../css/styles.css" rel="stylesheet" type="text/css">
<!-- STYLES EXTERNAL SUPPORT -->
<link href="http://www.sibbr.gov.br/css/tableconverter.css" rel="stylesheet" type="text/css">
<!-- END STYLES -->
<!-- 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 -->
<!-- JS VALIDATION INPUT FILE -->
<script type="text/javascript">
function valida(form1){
if (form1.uploadFile.value == "") {
document.getElementById("aviso").innerHTML = ("* Choose a table to convert");
form1.uploadFile.focus();
return false;
} else {
if (form1.separator.value == "") {
document.getElementById("aviso1").innerHTML = ("* Choose a field separator");
form1.separator.focus();
return false;
} else {
return true;
}
}
}
</script>
<!-- END JS VALIDATION INPUT FILE -->
<body>
<div class="container">
<div class="content">
<!-- FORM -->
<h2>Wide to long format table connverter</br>
for sample-based data publishing</br>
using the Darwin Core standard</h2>
<form action="upload" name="form1" method="post" enctype="multipart/form-data" class="form-convert" onSubmit="return valida(this);">
<span class="cor">Browse for a table (text file):</span> <br />
<input name="uploadFile" type="file" class="namefile" id="uploadFile">
<span id="aviso" style="color:red;"></span> <br />
<br />
<span class="cor">Choose the field separator of the table:</span> <br />
<select name="separator" >
<option value="" selected disabled ></option>
<option value="tab">Tab</option>
<option value=" ">Space</option>
<option value=";">; (semicolon)</option>
<option value=",">, (colon)</option>
</select>
<span id="aviso1" style="color:red;"></span>
<p>
<input type="submit" value="Load table..." name="submit" class="submit">
</p>
</form>
<!-- END FORM -->
</div>
</div>
</body>
</html>