1803 |
18 Jan 13 |
nicklas |
1 |
<%@ page |
1803 |
18 Jan 13 |
nicklas |
2 |
pageEncoding="UTF-8" |
1803 |
18 Jan 13 |
nicklas |
3 |
session="false" |
1803 |
18 Jan 13 |
nicklas |
4 |
import="net.sf.basedb.core.Application" |
1803 |
18 Jan 13 |
nicklas |
5 |
import="net.sf.basedb.core.User" |
1803 |
18 Jan 13 |
nicklas |
6 |
import="net.sf.basedb.core.DbControl" |
1803 |
18 Jan 13 |
nicklas |
7 |
import="net.sf.basedb.core.SessionControl" |
1803 |
18 Jan 13 |
nicklas |
8 |
import="net.sf.basedb.clients.web.Base" |
1803 |
18 Jan 13 |
nicklas |
9 |
import="net.sf.basedb.clients.web.util.HTML" |
1803 |
18 Jan 13 |
nicklas |
10 |
import="net.sf.basedb.clients.web.extensions.ExtensionsControl" |
1803 |
18 Jan 13 |
nicklas |
11 |
import="net.sf.basedb.util.Values" |
1803 |
18 Jan 13 |
nicklas |
12 |
%> |
1803 |
18 Jan 13 |
nicklas |
13 |
<%@ taglib prefix="base" uri="/WEB-INF/base.tld" %> |
1803 |
18 Jan 13 |
nicklas |
14 |
<%@ taglib prefix="tbl" uri="/WEB-INF/table.tld" %> |
1803 |
18 Jan 13 |
nicklas |
15 |
|
1803 |
18 Jan 13 |
nicklas |
16 |
<% |
3976 |
26 May 16 |
nicklas |
17 |
final SessionControl sc = Base.getExistingSessionControl(request, "net.sf.basedb.reggie", true); |
1803 |
18 Jan 13 |
nicklas |
18 |
final String ID = sc.getId(); |
1803 |
18 Jan 13 |
nicklas |
19 |
final float scale = Base.getScale(sc); |
1803 |
18 Jan 13 |
nicklas |
20 |
final String home = ExtensionsControl.getHomeUrl("net.sf.basedb.reggie"); |
1803 |
18 Jan 13 |
nicklas |
21 |
DbControl dc = null; |
1803 |
18 Jan 13 |
nicklas |
22 |
try |
1803 |
18 Jan 13 |
nicklas |
23 |
{ |
1803 |
18 Jan 13 |
nicklas |
24 |
dc = sc.newDbControl(); |
1803 |
18 Jan 13 |
nicklas |
25 |
final User user = User.getById(dc, sc.getLoggedInUserId()); |
1803 |
18 Jan 13 |
nicklas |
26 |
final String title = "Flagged RNA items"; |
1803 |
18 Jan 13 |
nicklas |
27 |
final int numFlagged = Values.getInt(request.getParameter("numFlagged")); |
1881 |
26 Feb 13 |
nicklas |
28 |
final int numSelected = Values.getInt(request.getParameter("numSelected")); |
1803 |
18 Jan 13 |
nicklas |
29 |
%> |
1803 |
18 Jan 13 |
nicklas |
30 |
<base:page type="popup" title="<%=title%>"> |
2803 |
14 Oct 14 |
nicklas |
31 |
<base:head |
2803 |
14 Oct 14 |
nicklas |
32 |
scripts="table.js,~show_flagged_rna.js,~../reggie-2.js" |
3759 |
19 Feb 16 |
nicklas |
33 |
styles="table.css,~../css/reggie-2.css" |
2803 |
14 Oct 14 |
nicklas |
34 |
> |
1940 |
18 Apr 13 |
nicklas |
35 |
<style> |
1940 |
18 Apr 13 |
nicklas |
36 |
.bold |
1940 |
18 Apr 13 |
nicklas |
37 |
{ |
1940 |
18 Apr 13 |
nicklas |
38 |
color: #C80000; |
1940 |
18 Apr 13 |
nicklas |
39 |
font-weight: bold; |
1940 |
18 Apr 13 |
nicklas |
40 |
} |
1951 |
24 Apr 13 |
nicklas |
41 |
|
1951 |
24 Apr 13 |
nicklas |
42 |
.case-summary |
1951 |
24 Apr 13 |
nicklas |
43 |
{ |
1951 |
24 Apr 13 |
nicklas |
44 |
padding-left: 4px; |
1951 |
24 Apr 13 |
nicklas |
45 |
} |
1940 |
18 Apr 13 |
nicklas |
46 |
</style> |
1803 |
18 Jan 13 |
nicklas |
47 |
</base:head> |
2803 |
14 Oct 14 |
nicklas |
48 |
<base:body> |
1803 |
18 Jan 13 |
nicklas |
49 |
<h1><%=title %></h1> |
1803 |
18 Jan 13 |
nicklas |
50 |
|
1803 |
18 Jan 13 |
nicklas |
51 |
<div class="content"> |
1803 |
18 Jan 13 |
nicklas |
52 |
<tbl:table id="flaggedRna" subclass="fulltable"> |
1803 |
18 Jan 13 |
nicklas |
53 |
<tbl:columndef id="rna" title="RNA" /> |
1803 |
18 Jan 13 |
nicklas |
54 |
<tbl:columndef id="location" title="Bioplate" /> |
1940 |
18 Apr 13 |
nicklas |
55 |
<tbl:columndef id="remainingQuanity" title="Remaining (µg)" /> |
1940 |
18 Apr 13 |
nicklas |
56 |
<tbl:columndef id="qualityScore" title="RQS/RIN" /> |
1946 |
19 Apr 13 |
nicklas |
57 |
<tbl:columndef id="comment" title="Comment" /> |
1881 |
26 Feb 13 |
nicklas |
58 |
<tbl:columndef id="flag" title="Flag" /> |
1803 |
18 Jan 13 |
nicklas |
59 |
|
2803 |
14 Oct 14 |
nicklas |
60 |
<tbl:data style="top: 0; margin-top: 0;"> |
1803 |
18 Jan 13 |
nicklas |
61 |
<tbl:headers> |
1803 |
18 Jan 13 |
nicklas |
62 |
<tbl:headerrow> |
1881 |
26 Feb 13 |
nicklas |
63 |
<th></th> |
1803 |
18 Jan 13 |
nicklas |
64 |
<tbl:columnheaders /> |
1803 |
18 Jan 13 |
nicklas |
65 |
</tbl:headerrow> |
1803 |
18 Jan 13 |
nicklas |
66 |
</tbl:headers> |
1803 |
18 Jan 13 |
nicklas |
67 |
<tbl:rows> |
1803 |
18 Jan 13 |
nicklas |
68 |
<% |
1803 |
18 Jan 13 |
nicklas |
69 |
for (int i = 0; i < numFlagged; ++i) |
1803 |
18 Jan 13 |
nicklas |
70 |
{ |
1803 |
18 Jan 13 |
nicklas |
71 |
%> |
3759 |
19 Feb 16 |
nicklas |
72 |
<tbl:row id="<%="row."+i%>"> |
1947 |
22 Apr 13 |
nicklas |
73 |
<td style="text-align: center; width: 20px;"><input type="checkbox" name="use.<%=i%>"></td> |
3759 |
19 Feb 16 |
nicklas |
74 |
<tbl:cell column="rna" id="<%="rna."+i%>" clazz="if-yellow"><%=i%></tbl:cell> |
1803 |
18 Jan 13 |
nicklas |
75 |
<tbl:cell column="location" id="<%="location."+i%>"></tbl:cell> |
1803 |
18 Jan 13 |
nicklas |
76 |
<tbl:cell column="remainingQuanity" id="<%="remainingQuantity."+i%>"></tbl:cell> |
1940 |
18 Apr 13 |
nicklas |
77 |
<tbl:cell column="qualityScore" id="<%="qualityScore."+i%>"></tbl:cell> |
1946 |
19 Apr 13 |
nicklas |
78 |
<tbl:cell column="comment" id="<%="comment."+i%>"></tbl:cell> |
1803 |
18 Jan 13 |
nicklas |
79 |
<tbl:cell column="flag" id="<%="flag."+i%>"></tbl:cell> |
1803 |
18 Jan 13 |
nicklas |
80 |
</tbl:row> |
1803 |
18 Jan 13 |
nicklas |
81 |
<% |
1803 |
18 Jan 13 |
nicklas |
82 |
} |
1803 |
18 Jan 13 |
nicklas |
83 |
%> |
1803 |
18 Jan 13 |
nicklas |
84 |
</tbl:rows> |
1803 |
18 Jan 13 |
nicklas |
85 |
</tbl:data> |
1803 |
18 Jan 13 |
nicklas |
86 |
</tbl:table> |
1803 |
18 Jan 13 |
nicklas |
87 |
</div> |
1803 |
18 Jan 13 |
nicklas |
88 |
|
1803 |
18 Jan 13 |
nicklas |
89 |
<base:buttongroup subclass="dialogbuttons" id="dialogbuttons"> |
2803 |
14 Oct 14 |
nicklas |
90 |
<base:button |
2803 |
14 Oct 14 |
nicklas |
91 |
id="btnUseSelected" |
2803 |
14 Oct 14 |
nicklas |
92 |
title="Use selected" |
1947 |
22 Apr 13 |
nicklas |
93 |
disabled="<%=numSelected == 0%>" tooltip="Use the RNA and ignore the flag" |
1881 |
26 Feb 13 |
nicklas |
94 |
image="<%=home + "/images/manual_rna.png"%>" /> |
2803 |
14 Oct 14 |
nicklas |
95 |
<base:button |
2803 |
14 Oct 14 |
nicklas |
96 |
id="btnUnflagSelected" |
2803 |
14 Oct 14 |
nicklas |
97 |
title="Unflag" |
1947 |
22 Apr 13 |
nicklas |
98 |
image="<%=home+"/images/unflag.png"%>" tooltip="Do not flag the selected RNA" /> |
2803 |
14 Oct 14 |
nicklas |
99 |
<base:button id="close" title="Close" /> |
1803 |
18 Jan 13 |
nicklas |
100 |
</base:buttongroup> |
1803 |
18 Jan 13 |
nicklas |
101 |
</base:body> |
1803 |
18 Jan 13 |
nicklas |
102 |
</base:page> |
1803 |
18 Jan 13 |
nicklas |
103 |
<% |
1803 |
18 Jan 13 |
nicklas |
104 |
} |
1803 |
18 Jan 13 |
nicklas |
105 |
finally |
1803 |
18 Jan 13 |
nicklas |
106 |
{ |
1803 |
18 Jan 13 |
nicklas |
107 |
if (dc != null) dc.close(); |
1803 |
18 Jan 13 |
nicklas |
108 |
} |
1803 |
18 Jan 13 |
nicklas |
109 |
%> |