5458 |
29 May 19 |
nicklas |
1 |
<%@ page |
5458 |
29 May 19 |
nicklas |
2 |
pageEncoding="UTF-8" |
5458 |
29 May 19 |
nicklas |
3 |
session="false" |
5458 |
29 May 19 |
nicklas |
4 |
import="net.sf.basedb.core.Application" |
5458 |
29 May 19 |
nicklas |
5 |
import="net.sf.basedb.core.User" |
5458 |
29 May 19 |
nicklas |
6 |
import="net.sf.basedb.core.DbControl" |
5458 |
29 May 19 |
nicklas |
7 |
import="net.sf.basedb.core.SessionControl" |
5458 |
29 May 19 |
nicklas |
8 |
import="net.sf.basedb.clients.web.Base" |
5458 |
29 May 19 |
nicklas |
9 |
import="net.sf.basedb.clients.web.util.HTML" |
5458 |
29 May 19 |
nicklas |
10 |
import="net.sf.basedb.clients.web.extensions.ExtensionsControl" |
5458 |
29 May 19 |
nicklas |
11 |
import="net.sf.basedb.util.Values" |
5458 |
29 May 19 |
nicklas |
12 |
%> |
5458 |
29 May 19 |
nicklas |
13 |
<%@ taglib prefix="base" uri="/WEB-INF/base.tld" %> |
5458 |
29 May 19 |
nicklas |
14 |
<%@ taglib prefix="p" uri="/WEB-INF/path.tld" %> |
5458 |
29 May 19 |
nicklas |
15 |
<% |
5458 |
29 May 19 |
nicklas |
16 |
final SessionControl sc = Base.getExistingSessionControl(request, "net.sf.basedb.reggie", true); |
5458 |
29 May 19 |
nicklas |
17 |
final String ID = sc.getId(); |
5458 |
29 May 19 |
nicklas |
18 |
final float scale = Base.getScale(sc); |
5458 |
29 May 19 |
nicklas |
19 |
final String home = ExtensionsControl.getHomeUrl("net.sf.basedb.reggie"); |
5458 |
29 May 19 |
nicklas |
20 |
DbControl dc = null; |
5458 |
29 May 19 |
nicklas |
21 |
try |
5458 |
29 May 19 |
nicklas |
22 |
{ |
5458 |
29 May 19 |
nicklas |
23 |
dc = sc.newDbControl(); |
5458 |
29 May 19 |
nicklas |
24 |
final User user = User.getById(dc, sc.getLoggedInUserId()); |
5458 |
29 May 19 |
nicklas |
25 |
final String title = "Select aliquots plates to use on MIPs plate"; |
5458 |
29 May 19 |
nicklas |
26 |
String ignore = request.getParameter("ignore"); |
5458 |
29 May 19 |
nicklas |
27 |
%> |
5458 |
29 May 19 |
nicklas |
28 |
<base:page type="popup" title="<%=title%>"> |
5458 |
29 May 19 |
nicklas |
29 |
<base:head |
5460 |
03 Jun 19 |
nicklas |
30 |
scripts="~select_aliquot_plates.js,~plate.js,~../reggie-2.js" |
5520 |
20 Jun 19 |
nicklas |
31 |
styles="~../css/reggie-2.css,~../css/plate.css" |
5458 |
29 May 19 |
nicklas |
32 |
> |
5458 |
29 May 19 |
nicklas |
33 |
<style> |
5458 |
29 May 19 |
nicklas |
34 |
|
5458 |
29 May 19 |
nicklas |
35 |
#aliquot-table |
5458 |
29 May 19 |
nicklas |
36 |
{ |
5458 |
29 May 19 |
nicklas |
37 |
width: 100%; |
5458 |
29 May 19 |
nicklas |
38 |
} |
5458 |
29 May 19 |
nicklas |
39 |
|
5458 |
29 May 19 |
nicklas |
40 |
#aliquot-table td, #aliquot-table th |
5458 |
29 May 19 |
nicklas |
41 |
{ |
5458 |
29 May 19 |
nicklas |
42 |
padding: 2px 0.5em; |
5458 |
29 May 19 |
nicklas |
43 |
} |
5458 |
29 May 19 |
nicklas |
44 |
|
5458 |
29 May 19 |
nicklas |
45 |
#aliquot-table tr.highlight |
5458 |
29 May 19 |
nicklas |
46 |
{ |
5458 |
29 May 19 |
nicklas |
47 |
border-bottom-width: 1px; |
5458 |
29 May 19 |
nicklas |
48 |
border-bottom-style: dotted; |
5458 |
29 May 19 |
nicklas |
49 |
} |
5458 |
29 May 19 |
nicklas |
50 |
.check |
5458 |
29 May 19 |
nicklas |
51 |
{ |
5458 |
29 May 19 |
nicklas |
52 |
width: 2em; |
5458 |
29 May 19 |
nicklas |
53 |
text-align: center; |
5458 |
29 May 19 |
nicklas |
54 |
} |
5458 |
29 May 19 |
nicklas |
55 |
.name |
5458 |
29 May 19 |
nicklas |
56 |
{ |
5458 |
29 May 19 |
nicklas |
57 |
text-align: left; |
5460 |
03 Jun 19 |
nicklas |
58 |
width: 14em; |
5458 |
29 May 19 |
nicklas |
59 |
} |
5460 |
03 Jun 19 |
nicklas |
60 |
.image |
5460 |
03 Jun 19 |
nicklas |
61 |
{ |
5460 |
03 Jun 19 |
nicklas |
62 |
width: 20px; |
5460 |
03 Jun 19 |
nicklas |
63 |
} |
5458 |
29 May 19 |
nicklas |
64 |
.count |
5458 |
29 May 19 |
nicklas |
65 |
{ |
5458 |
29 May 19 |
nicklas |
66 |
text-align: center; |
5458 |
29 May 19 |
nicklas |
67 |
width: 5em; |
5458 |
29 May 19 |
nicklas |
68 |
} |
5458 |
29 May 19 |
nicklas |
69 |
.date |
5458 |
29 May 19 |
nicklas |
70 |
{ |
5458 |
29 May 19 |
nicklas |
71 |
text-align: left; |
5458 |
29 May 19 |
nicklas |
72 |
width: 6em; |
5458 |
29 May 19 |
nicklas |
73 |
} |
5458 |
29 May 19 |
nicklas |
74 |
.notes |
5458 |
29 May 19 |
nicklas |
75 |
{ |
5458 |
29 May 19 |
nicklas |
76 |
text-align: left; |
5458 |
29 May 19 |
nicklas |
77 |
} |
5458 |
29 May 19 |
nicklas |
78 |
|
5459 |
29 May 19 |
nicklas |
79 |
#plate-preview table |
5459 |
29 May 19 |
nicklas |
80 |
{ |
5459 |
29 May 19 |
nicklas |
81 |
margin: 2em auto; |
5459 |
29 May 19 |
nicklas |
82 |
} |
5459 |
29 May 19 |
nicklas |
83 |
|
5459 |
29 May 19 |
nicklas |
84 |
#plate-preview caption |
5459 |
29 May 19 |
nicklas |
85 |
{ |
5459 |
29 May 19 |
nicklas |
86 |
font-style: italic; |
5459 |
29 May 19 |
nicklas |
87 |
margin-bottom: 2px; |
5459 |
29 May 19 |
nicklas |
88 |
} |
5459 |
29 May 19 |
nicklas |
89 |
|
5459 |
29 May 19 |
nicklas |
90 |
#plate-preview th |
5459 |
29 May 19 |
nicklas |
91 |
{ |
5459 |
29 May 19 |
nicklas |
92 |
width: 1.75em; |
5459 |
29 May 19 |
nicklas |
93 |
height: 1.75em; |
5459 |
29 May 19 |
nicklas |
94 |
} |
5459 |
29 May 19 |
nicklas |
95 |
|
5459 |
29 May 19 |
nicklas |
96 |
#plate-preview td |
5459 |
29 May 19 |
nicklas |
97 |
{ |
5459 |
29 May 19 |
nicklas |
98 |
width: 2.5em; |
5459 |
29 May 19 |
nicklas |
99 |
height: 2.5em; |
5459 |
29 May 19 |
nicklas |
100 |
border-bottom-width: 1px; |
5459 |
29 May 19 |
nicklas |
101 |
border-bottom-style: dotted; |
5459 |
29 May 19 |
nicklas |
102 |
border-right-width: 1px; |
5459 |
29 May 19 |
nicklas |
103 |
border-right-style: dotted; |
5459 |
29 May 19 |
nicklas |
104 |
} |
5459 |
29 May 19 |
nicklas |
105 |
|
5459 |
29 May 19 |
nicklas |
106 |
#plate-preview td.aliquot |
5459 |
29 May 19 |
nicklas |
107 |
{ |
5459 |
29 May 19 |
nicklas |
108 |
background-repeat: no-repeat; |
5459 |
29 May 19 |
nicklas |
109 |
background-position: 50%; |
5459 |
29 May 19 |
nicklas |
110 |
background-image: url('../images/dot-black.png'); |
5459 |
29 May 19 |
nicklas |
111 |
} |
5459 |
29 May 19 |
nicklas |
112 |
|
5459 |
29 May 19 |
nicklas |
113 |
#plate-preview td.used |
5459 |
29 May 19 |
nicklas |
114 |
{ |
5459 |
29 May 19 |
nicklas |
115 |
background-image: none; |
5459 |
29 May 19 |
nicklas |
116 |
} |
5460 |
03 Jun 19 |
nicklas |
117 |
|
5460 |
03 Jun 19 |
nicklas |
118 |
#plate-preview .pool-row th |
5460 |
03 Jun 19 |
nicklas |
119 |
{ |
5460 |
03 Jun 19 |
nicklas |
120 |
padding: 0.25em 0.5em; |
5460 |
03 Jun 19 |
nicklas |
121 |
border-left-style: dotted; |
5460 |
03 Jun 19 |
nicklas |
122 |
border-left-width: 1px; |
5460 |
03 Jun 19 |
nicklas |
123 |
} |
5460 |
03 Jun 19 |
nicklas |
124 |
|
5460 |
03 Jun 19 |
nicklas |
125 |
#plate-preview .pool-row div |
5460 |
03 Jun 19 |
nicklas |
126 |
{ |
5460 |
03 Jun 19 |
nicklas |
127 |
writing-mode: sideways-lr; |
5460 |
03 Jun 19 |
nicklas |
128 |
white-space: nowrap; |
5460 |
03 Jun 19 |
nicklas |
129 |
max-height: 4em; |
5460 |
03 Jun 19 |
nicklas |
130 |
overflow: hidden; |
5460 |
03 Jun 19 |
nicklas |
131 |
} |
5460 |
03 Jun 19 |
nicklas |
132 |
|
5458 |
29 May 19 |
nicklas |
133 |
</style> |
5458 |
29 May 19 |
nicklas |
134 |
|
5458 |
29 May 19 |
nicklas |
135 |
</base:head> |
5458 |
29 May 19 |
nicklas |
136 |
<base:body> |
5458 |
29 May 19 |
nicklas |
137 |
<h1><%=title %></h1> |
5458 |
29 May 19 |
nicklas |
138 |
|
5458 |
29 May 19 |
nicklas |
139 |
<div id="page-data" class="datacontainer" |
5458 |
29 May 19 |
nicklas |
140 |
data-ignore="<%=HTML.encodeTags(ignore)%>" |
5458 |
29 May 19 |
nicklas |
141 |
></div> |
5458 |
29 May 19 |
nicklas |
142 |
|
5458 |
29 May 19 |
nicklas |
143 |
<form name="reggie" id="wizard" class="wizard"> |
5458 |
29 May 19 |
nicklas |
144 |
<div class="content bottomborder"> |
5458 |
29 May 19 |
nicklas |
145 |
|
5458 |
29 May 19 |
nicklas |
146 |
<table id="aliquot-table" class="bottomborder" style="display: none;"> |
5458 |
29 May 19 |
nicklas |
147 |
<tr class="bg-filled-100 bottomborder"> |
5458 |
29 May 19 |
nicklas |
148 |
<th class="check"></th> |
5458 |
29 May 19 |
nicklas |
149 |
<th class="name">Name</th> |
5460 |
03 Jun 19 |
nicklas |
150 |
<th class="image"></th> |
5458 |
29 May 19 |
nicklas |
151 |
<th class="count">Aliquots</th> |
5458 |
29 May 19 |
nicklas |
152 |
<th class="count">Remain</th> |
5458 |
29 May 19 |
nicklas |
153 |
<th class="date">Date</th> |
5458 |
29 May 19 |
nicklas |
154 |
<th class="notes">Note</th> |
5458 |
29 May 19 |
nicklas |
155 |
</tr> |
5458 |
29 May 19 |
nicklas |
156 |
<tbody id="plate-list"></tbody> |
5458 |
29 May 19 |
nicklas |
157 |
</table> |
5458 |
29 May 19 |
nicklas |
158 |
|
5460 |
03 Jun 19 |
nicklas |
159 |
<div id="plate-preview"></div> |
5459 |
29 May 19 |
nicklas |
160 |
|
5458 |
29 May 19 |
nicklas |
161 |
</div> |
5458 |
29 May 19 |
nicklas |
162 |
</form> |
5458 |
29 May 19 |
nicklas |
163 |
|
5458 |
29 May 19 |
nicklas |
164 |
<div id="wizard-status" style="position:absolute; top: 3em; left: 2em; right: 2em;"></div> |
5458 |
29 May 19 |
nicklas |
165 |
|
5458 |
29 May 19 |
nicklas |
166 |
<base:buttongroup subclass="dialogbuttons" id="dialogbuttons"> |
5458 |
29 May 19 |
nicklas |
167 |
<base:button id="btnOk" title="Ok" /> |
5458 |
29 May 19 |
nicklas |
168 |
<base:button id="close" title="Cancel" /> |
5458 |
29 May 19 |
nicklas |
169 |
</base:buttongroup> |
5458 |
29 May 19 |
nicklas |
170 |
</base:body> |
5458 |
29 May 19 |
nicklas |
171 |
</base:page> |
5458 |
29 May 19 |
nicklas |
172 |
<% |
5458 |
29 May 19 |
nicklas |
173 |
} |
5458 |
29 May 19 |
nicklas |
174 |
finally |
5458 |
29 May 19 |
nicklas |
175 |
{ |
5458 |
29 May 19 |
nicklas |
176 |
if (dc != null) dc.close(); |
5458 |
29 May 19 |
nicklas |
177 |
} |
5458 |
29 May 19 |
nicklas |
178 |
%> |