-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathuploadFile.jsp
More file actions
89 lines (83 loc) · 3.54 KB
/
uploadFile.jsp
File metadata and controls
89 lines (83 loc) · 3.54 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
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
<%@ include file="/common/taglibs.jsp"%>
<title><fmt:message key="upload.file.title"/></title>
<content tag="heading"><fmt:message key="upload.file.title"/></content>
<script type="text/javascript">
function show_or_hide(layer_ref, state) {
var el = document.getElementById(layer_ref);
if (el) el.style.display = state;
}
</script>
<body id="submissions"/>
<p>Use the following form to upload your Nexus files for <b>submission ${studyMap['id']} - ${studyMap['name']}</b><br>
Please note that only the first ~30 trees will be parsed, otherwise large numbers of trees resulting from the
same analysis will overwhelm the user experience in TreeBASE's search interface with what are largely redundant trees.
If you have a large number of trees, please put your preferred trees, or a consensus tree, within the first ~30
trees in the tree block. For more information, please see the help
<a href="#" class="openHelp" onclick="openHelp('uploadFile')"><img class="iconButton" src="<fmt:message key="icons.help"/>" /></a>.</p>
<!--form method="post" enctype="multipart/form-data" onsubmit="setTimeout('queryStatus()', 200);"-->
<!-- Line above is needed to show the actal amount of data uploaded using Ajax -->
<!-- Since we are not ready for it that is why line is commented -->
<form method="post" enctype="multipart/form-data" >
<fieldset>
<legend>Nexus Files Upload
<a href="#" class="openHelp" onclick="openHelp('uploadFile')"><img class="iconButton" src="<fmt:message key="icons.help"/>" /></a>
</legend>
<table border="0" cellpadding="1">
<tr>
<th> </th>
<td>
<input type="file" name="data" size="40"/>
</td>
</tr>
<tr>
<th></th>
<td><table id="attachments" border="0"><tr><td></td></tr></table></td>
</tr>
<c:if test="${publicationState eq 'Ready' || publicationState eq 'Published'}">
<strong>For this study, file upload feature is not available.</strong>
</c:if>
<c:if test="${publicationState eq 'NotReady'}">
<tr>
<td> </td>
<td><a href="javascript:addFile()">Attach another file</a></td>
</tr>
<tr>
<td></td>
<td class="buttonBar">
<input type="submit" name="upload" class="button"
value="<fmt:message key="button.upload"/>" onclick="show_or_hide('kids', 'block');" />
<input type="submit" name="_cancel" class="button" onclick="bCancel=true"
value="<fmt:message key="button.cancel"/>" />
</td>
</tr>
</c:if>
</table>
<div id="progressBar" style="display: none;">
<div id="progressBarBox">
<div id="progressBarBoxContent"></div>
<div id="progressBarText">
<spring:message code="progressBarTransferLabel"/>
<span id="percentage"></span>
<spring:message code="progressBarPercentLabel"/>
<spring:message code="progressBarTransferSizeLabel"/>
<!--span id="bytesRead"></span-->
<!-- spring:message code="progressBarMetricUnitLabel"/-->
<!-- spring:message code="progressBarFromLabel"/-->
<!-- span id="totalSize"></span-->
<!-- spring:message code="progressBarMetricUnitLabel"/-->;
</div>
<div id="progressBarSuccessful">
<spring:message code="progressBarTextSuccessLabel"/>
</div>
</div>
</div>
<!-- tag below if for xp bar provided by Minh -->
<div id="kids" style="display: none;">
<h3>Uploading ...</h3>
<script type="text/javascript">
var bar1= createBar(500,15,'white',1,'black','#7DCBDA',85,7,3,"");
</script>
</div>
</fieldset>
</form>
<%@ include file="/scripts/multiFileUpload.js"%>