1 | <%@ page |
---|
2 | pageEncoding="UTF-8" |
---|
3 | session="false" |
---|
4 | import="net.sf.basedb.core.User" |
---|
5 | import="net.sf.basedb.core.DbControl" |
---|
6 | import="net.sf.basedb.core.SessionControl" |
---|
7 | import="net.sf.basedb.core.Application" |
---|
8 | import="net.sf.basedb.util.formatter.DateFormatter" |
---|
9 | import="net.sf.basedb.util.formatter.Formatter" |
---|
10 | import="net.sf.basedb.clients.web.Base" |
---|
11 | import="net.sf.basedb.clients.web.extensions.ExtensionsControl" |
---|
12 | import="java.util.Date" |
---|
13 | %> |
---|
14 | <%@ taglib prefix="base" uri="/WEB-INF/base.tld" %> |
---|
15 | <%@ taglib prefix="tbl" uri="/WEB-INF/table.tld" %> |
---|
16 | <%@ taglib prefix="p" uri="/WEB-INF/path.tld" %> |
---|
17 | <% |
---|
18 | final SessionControl sc = Base.getExistingSessionControl(request, "net.sf.basedb.reggie", true); |
---|
19 | final String ID = sc.getId(); |
---|
20 | final float scale = Base.getScale(sc); |
---|
21 | final String home = ExtensionsControl.getHomeUrl("net.sf.basedb.reggie"); |
---|
22 | DbControl dc = null; |
---|
23 | try |
---|
24 | { |
---|
25 | dc = sc.newDbControl(); |
---|
26 | final User user = User.getById(dc, sc.getLoggedInUserId()); |
---|
27 | %> |
---|
28 | <base:page type="default" title="Flagged alignments wizard"> |
---|
29 | <base:head |
---|
30 | scripts="~../reggie-2.js,~search.js" |
---|
31 | styles="path.css,toolbar.css,~../css/reggie-2.css" |
---|
32 | > |
---|
33 | <style> |
---|
34 | #itemTable |
---|
35 | { |
---|
36 | width: 100%; |
---|
37 | border-collapse: collapse; |
---|
38 | } |
---|
39 | |
---|
40 | #itemTable thead |
---|
41 | { |
---|
42 | border-bottom-width: 1px; |
---|
43 | border-top-width: 1px; |
---|
44 | } |
---|
45 | |
---|
46 | #itemTable thead th |
---|
47 | { |
---|
48 | padding: 2px; |
---|
49 | text-align: left; |
---|
50 | } |
---|
51 | |
---|
52 | tbody.highlight |
---|
53 | { |
---|
54 | border-top-width: 1px; |
---|
55 | border-top-style: dotted; |
---|
56 | } |
---|
57 | |
---|
58 | tr.dotted-above |
---|
59 | { |
---|
60 | border-top-width: 1px; |
---|
61 | border-top-style: dotted; |
---|
62 | } |
---|
63 | |
---|
64 | |
---|
65 | #itemTable .highlight.evenrow |
---|
66 | { |
---|
67 | border-top-color: transparent; |
---|
68 | } |
---|
69 | |
---|
70 | #itemTable tbody td |
---|
71 | { |
---|
72 | padding: 2px; |
---|
73 | text-align: left; |
---|
74 | } |
---|
75 | |
---|
76 | .colormatched |
---|
77 | { |
---|
78 | background-color: #ffff00; |
---|
79 | outline: 1px solid #a8a800; |
---|
80 | margin: -1px; |
---|
81 | padding: 1px; |
---|
82 | } |
---|
83 | |
---|
84 | .colormatched-2 |
---|
85 | { |
---|
86 | background-color: #a8ffff; |
---|
87 | outline: 1px solid #66a8a8; |
---|
88 | margin: -1px; |
---|
89 | padding: 1px; |
---|
90 | } |
---|
91 | |
---|
92 | .text-col |
---|
93 | {} |
---|
94 | |
---|
95 | .text-col img |
---|
96 | { |
---|
97 | float: right; |
---|
98 | margin-left: 2px; |
---|
99 | } |
---|
100 | |
---|
101 | #itemTable .icon-col |
---|
102 | { |
---|
103 | text-align: right; |
---|
104 | } |
---|
105 | |
---|
106 | #itemTable .num-col |
---|
107 | { |
---|
108 | text-align: center; |
---|
109 | } |
---|
110 | |
---|
111 | #itemTable .flag-col |
---|
112 | { |
---|
113 | text-align: center; |
---|
114 | } |
---|
115 | |
---|
116 | #itemTable .comment-col input |
---|
117 | { |
---|
118 | width: 15em; |
---|
119 | } |
---|
120 | |
---|
121 | #itemTable .text-col img.case-summary |
---|
122 | { |
---|
123 | float: left; |
---|
124 | margin-right: 2px; |
---|
125 | margin-left: 0; |
---|
126 | } |
---|
127 | |
---|
128 | .bg-messages |
---|
129 | { |
---|
130 | background-color: #f0f0f0; |
---|
131 | } |
---|
132 | |
---|
133 | .highlight:hover .bg-messages |
---|
134 | { |
---|
135 | background-color: #e0e0e0; |
---|
136 | /* transistions copied from BASE to make it match */ |
---|
137 | transition: all 0.3s ease 0.1s; |
---|
138 | -moz-transition: all 0.3s ease 0.1s; |
---|
139 | -webkit-transition: all 0.3s ease 0.1s; |
---|
140 | } |
---|
141 | |
---|
142 | .ignored-mismatch |
---|
143 | { |
---|
144 | text-decoration-line: line-through; |
---|
145 | } |
---|
146 | |
---|
147 | .commonpart |
---|
148 | { |
---|
149 | color: #666666; |
---|
150 | font-style: italic; |
---|
151 | } |
---|
152 | |
---|
153 | .diffpart |
---|
154 | { |
---|
155 | font-weight: bold; |
---|
156 | } |
---|
157 | |
---|
158 | .mode-genotype, .mode-reprocess |
---|
159 | { |
---|
160 | display:none; |
---|
161 | } |
---|
162 | |
---|
163 | table[data-mode=genotype] .mode-genotype |
---|
164 | { |
---|
165 | display: table-cell; |
---|
166 | } |
---|
167 | |
---|
168 | table[data-mode=reprocess] .mode-reprocess |
---|
169 | { |
---|
170 | display: table-cell; |
---|
171 | } |
---|
172 | |
---|
173 | table[data-mode=reprocess] thead.mode-reprocess |
---|
174 | { |
---|
175 | display: table-header-group; |
---|
176 | border: 0; |
---|
177 | } |
---|
178 | |
---|
179 | td.mode-reprocess |
---|
180 | { |
---|
181 | background-color: #fffff0; |
---|
182 | } |
---|
183 | |
---|
184 | .mode-reprocess-header |
---|
185 | { |
---|
186 | background-color: #fffff0; |
---|
187 | border-width: 1px; |
---|
188 | font-size: 120%; |
---|
189 | } |
---|
190 | |
---|
191 | </style> |
---|
192 | </base:head> |
---|
193 | <base:body> |
---|
194 | |
---|
195 | <p:path><p:pathelement |
---|
196 | title="Reggie" href="<%="../index.jsp?ID="+ID%>" |
---|
197 | /><p:pathelement title="Flagged alignment wizard" |
---|
198 | /></p:path> |
---|
199 | |
---|
200 | <div class="content"> |
---|
201 | |
---|
202 | <form name="reggie" id="wizard" class="wizard"> |
---|
203 | |
---|
204 | <div class="step" id="step-1"> |
---|
205 | <div class="step-no">1</div> |
---|
206 | <div class="step-title" id="step-1-title">Flagged alignments</div> |
---|
207 | <div class="step-content"> |
---|
208 | |
---|
209 | <table class="step-form"> |
---|
210 | <tr> |
---|
211 | <td class="prompt">Filter</td> |
---|
212 | <td> |
---|
213 | <label><input type="radio" name="filter" id="noFilter" checked>No filter</label> |
---|
214 | <label><input type="radio" name="filter" id="highHetFilter">High HET</label> |
---|
215 | <select name="qiaCubeFilter" id="qiaCubeFilter"> |
---|
216 | <option value="">- QiaCube -</option> |
---|
217 | </select> |
---|
218 | |
---|
219 | <select name="libPlateFilter" id="libPlateFilter"> |
---|
220 | <option value="">- LibPlate -</option> |
---|
221 | </select> |
---|
222 | |
---|
223 | <select name="recentFilters" id="recentFilters" style="display: none;"> |
---|
224 | <option value="">- Recently used filters -</option> |
---|
225 | </select> |
---|
226 | </td> |
---|
227 | </tr> |
---|
228 | <tr> |
---|
229 | <td class="prompt">Mode</td> |
---|
230 | <td style="padding-top: 3px; padding-bottom: 6px;"> |
---|
231 | <label><input type="radio" name="mode" id="mode-genotype" checked value="genotype">Genotype analysis</label> |
---|
232 | <label><input type="radio" name="mode" id="mode-reprocess" value="reprocess" disabled>Add comments and schedule re-processing</label> |
---|
233 | <label><input type="radio" name="mode" id="mode-resolve" value="resolve" disabled>Resolve problems</label> |
---|
234 | </td> |
---|
235 | </tr> |
---|
236 | </table> |
---|
237 | |
---|
238 | <table id="itemTable" data-mode="genotype"> |
---|
239 | </table> |
---|
240 | </div> |
---|
241 | </div> |
---|
242 | |
---|
243 | <div id="wizard-status"></div> |
---|
244 | |
---|
245 | <table class="navigation" id="navigation"> |
---|
246 | <tr> |
---|
247 | <td><base:button id="gocancel" title="Cancel" /></td> |
---|
248 | <td><base:button id="goreprocess" title="Register" image="<%=home+"/images/gonext.png"%>" /></td> |
---|
249 | <td id="gonext-message" class="message"></td> |
---|
250 | </tr> |
---|
251 | </table> |
---|
252 | |
---|
253 | </form> |
---|
254 | </div> |
---|
255 | |
---|
256 | </base:body> |
---|
257 | </base:page> |
---|
258 | <% |
---|
259 | } |
---|
260 | finally |
---|
261 | { |
---|
262 | if (dc != null) dc.close(); |
---|
263 | } |
---|
264 | %> |
---|