3449 |
28 Jul 15 |
olle |
1 |
<%@ page |
3449 |
28 Jul 15 |
olle |
2 |
pageEncoding="UTF-8" |
3449 |
28 Jul 15 |
olle |
3 |
session="false" |
3449 |
28 Jul 15 |
olle |
4 |
import="net.sf.basedb.core.Application" |
3449 |
28 Jul 15 |
olle |
5 |
import="net.sf.basedb.core.User" |
3449 |
28 Jul 15 |
olle |
6 |
import="net.sf.basedb.core.DbControl" |
3449 |
28 Jul 15 |
olle |
7 |
import="net.sf.basedb.core.SessionControl" |
3449 |
28 Jul 15 |
olle |
8 |
import="net.sf.basedb.clients.web.Base" |
3449 |
28 Jul 15 |
olle |
9 |
import="net.sf.basedb.clients.web.util.HTML" |
3449 |
28 Jul 15 |
olle |
10 |
import="net.sf.basedb.clients.web.extensions.ExtensionsControl" |
3449 |
28 Jul 15 |
olle |
11 |
import="net.sf.basedb.util.Values" |
3449 |
28 Jul 15 |
olle |
12 |
%> |
3449 |
28 Jul 15 |
olle |
13 |
<%@ taglib prefix="base" uri="/WEB-INF/base.tld" %> |
3449 |
28 Jul 15 |
olle |
14 |
<%@ taglib prefix="p" uri="/WEB-INF/path.tld" %> |
3449 |
28 Jul 15 |
olle |
15 |
<% |
3449 |
28 Jul 15 |
olle |
16 |
final SessionControl sc = Base.getExistingSessionControl(request, true); |
3449 |
28 Jul 15 |
olle |
17 |
final String ID = sc.getId(); |
3449 |
28 Jul 15 |
olle |
18 |
final float scale = Base.getScale(sc); |
3449 |
28 Jul 15 |
olle |
19 |
final String home = ExtensionsControl.getHomeUrl("net.sf.basedb.meludi"); |
3449 |
28 Jul 15 |
olle |
20 |
DbControl dc = null; |
3449 |
28 Jul 15 |
olle |
21 |
try |
3449 |
28 Jul 15 |
olle |
22 |
{ |
3449 |
28 Jul 15 |
olle |
23 |
dc = sc.newDbControl(); |
3449 |
28 Jul 15 |
olle |
24 |
final User user = User.getById(dc, sc.getLoggedInUserId()); |
3449 |
28 Jul 15 |
olle |
25 |
%> |
3449 |
28 Jul 15 |
olle |
26 |
<base:page type="popup" title="Select file"> |
3449 |
28 Jul 15 |
olle |
27 |
<base:head |
3449 |
28 Jul 15 |
olle |
28 |
scripts="~select_file.js,~../meludi-2.js" |
3449 |
28 Jul 15 |
olle |
29 |
styles="~../css/meludi-2.css" |
3449 |
28 Jul 15 |
olle |
30 |
> |
3449 |
28 Jul 15 |
olle |
31 |
<style> |
3449 |
28 Jul 15 |
olle |
32 |
#loading |
3449 |
28 Jul 15 |
olle |
33 |
{ |
3449 |
28 Jul 15 |
olle |
34 |
text-align: center; |
3449 |
28 Jul 15 |
olle |
35 |
background-color: #FFFFFF; |
3449 |
28 Jul 15 |
olle |
36 |
margin-right: 2em; |
3449 |
28 Jul 15 |
olle |
37 |
} |
3449 |
28 Jul 15 |
olle |
38 |
</style> |
3449 |
28 Jul 15 |
olle |
39 |
</base:head> |
3449 |
28 Jul 15 |
olle |
40 |
<base:body> |
3449 |
28 Jul 15 |
olle |
41 |
|
3449 |
28 Jul 15 |
olle |
42 |
<h1>Select file</h1> |
3449 |
28 Jul 15 |
olle |
43 |
<form name="meludi"> |
3449 |
28 Jul 15 |
olle |
44 |
|
3449 |
28 Jul 15 |
olle |
45 |
<div class="content"> |
3449 |
28 Jul 15 |
olle |
46 |
<table class="fullform input100 bottomborder"> |
3449 |
28 Jul 15 |
olle |
47 |
<tr> |
3449 |
28 Jul 15 |
olle |
48 |
<th>File</th> |
3449 |
28 Jul 15 |
olle |
49 |
<td> |
3449 |
28 Jul 15 |
olle |
50 |
<input class="required" type="file" name="dnaFile" id="dnaFile" accept="text/plain"> |
3449 |
28 Jul 15 |
olle |
51 |
</td> |
3449 |
28 Jul 15 |
olle |
52 |
</tr> |
3449 |
28 Jul 15 |
olle |
53 |
<tr class="dynamic"> |
3449 |
28 Jul 15 |
olle |
54 |
<th></th> |
3449 |
28 Jul 15 |
olle |
55 |
<td> |
3449 |
28 Jul 15 |
olle |
56 |
<div class="padded"> |
3449 |
28 Jul 15 |
olle |
57 |
The file must be a tab-separated text file with no headers and |
3449 |
28 Jul 15 |
olle |
58 |
the following data columns: |
3449 |
28 Jul 15 |
olle |
59 |
<ul> |
3449 |
28 Jul 15 |
olle |
60 |
<li>DNA name (eg. ML12345.1.d) |
3449 |
28 Jul 15 |
olle |
61 |
<li>Work plate row coordinate (eg. A) |
3449 |
28 Jul 15 |
olle |
62 |
<li>Work plate column coordinate (eg. 1) |
3449 |
28 Jul 15 |
olle |
63 |
<li>QC flag (empty or '0' for no QC, any other value for QC). |
3449 |
28 Jul 15 |
olle |
64 |
</ul> |
3449 |
28 Jul 15 |
olle |
65 |
</div> |
3449 |
28 Jul 15 |
olle |
66 |
|
3449 |
28 Jul 15 |
olle |
67 |
<div id="wizard-status"></div> |
3449 |
28 Jul 15 |
olle |
68 |
|
3449 |
28 Jul 15 |
olle |
69 |
</td> |
3449 |
28 Jul 15 |
olle |
70 |
</tr> |
3449 |
28 Jul 15 |
olle |
71 |
</table> |
3449 |
28 Jul 15 |
olle |
72 |
|
3449 |
28 Jul 15 |
olle |
73 |
|
3449 |
28 Jul 15 |
olle |
74 |
|
3449 |
28 Jul 15 |
olle |
75 |
</div> |
3449 |
28 Jul 15 |
olle |
76 |
</form> |
3449 |
28 Jul 15 |
olle |
77 |
|
3449 |
28 Jul 15 |
olle |
78 |
<base:buttongroup subclass="dialogbuttons"> |
3449 |
28 Jul 15 |
olle |
79 |
<base:button id="close" title="Cancel" /> |
3449 |
28 Jul 15 |
olle |
80 |
</base:buttongroup> |
3449 |
28 Jul 15 |
olle |
81 |
|
3449 |
28 Jul 15 |
olle |
82 |
</base:body> |
3449 |
28 Jul 15 |
olle |
83 |
</base:page> |
3449 |
28 Jul 15 |
olle |
84 |
<% |
3449 |
28 Jul 15 |
olle |
85 |
} |
3449 |
28 Jul 15 |
olle |
86 |
finally |
3449 |
28 Jul 15 |
olle |
87 |
{ |
3449 |
28 Jul 15 |
olle |
88 |
if (dc != null) dc.close(); |
3449 |
28 Jul 15 |
olle |
89 |
} |
3449 |
28 Jul 15 |
olle |
90 |
%> |