2199 |
17 Jan 14 |
nicklas |
1 |
<%@ page |
2199 |
17 Jan 14 |
nicklas |
2 |
pageEncoding="UTF-8" |
2199 |
17 Jan 14 |
nicklas |
3 |
session="false" |
2199 |
17 Jan 14 |
nicklas |
4 |
import="net.sf.basedb.core.User" |
2199 |
17 Jan 14 |
nicklas |
5 |
import="net.sf.basedb.core.DbControl" |
2199 |
17 Jan 14 |
nicklas |
6 |
import="net.sf.basedb.core.SessionControl" |
2199 |
17 Jan 14 |
nicklas |
7 |
import="net.sf.basedb.core.Application" |
2199 |
17 Jan 14 |
nicklas |
8 |
import="net.sf.basedb.clients.web.Base" |
2199 |
17 Jan 14 |
nicklas |
9 |
import="net.sf.basedb.clients.web.extensions.ExtensionsControl" |
2199 |
17 Jan 14 |
nicklas |
10 |
%> |
2199 |
17 Jan 14 |
nicklas |
11 |
<%@ taglib prefix="base" uri="/WEB-INF/base.tld" %> |
2199 |
17 Jan 14 |
nicklas |
12 |
<%@ taglib prefix="p" uri="/WEB-INF/path.tld" %> |
2199 |
17 Jan 14 |
nicklas |
13 |
<% |
3976 |
26 May 16 |
nicklas |
14 |
final SessionControl sc = Base.getExistingSessionControl(request, "net.sf.basedb.reggie", true); |
2199 |
17 Jan 14 |
nicklas |
15 |
final String ID = sc.getId(); |
2199 |
17 Jan 14 |
nicklas |
16 |
final float scale = Base.getScale(sc); |
2199 |
17 Jan 14 |
nicklas |
17 |
final String home = ExtensionsControl.getHomeUrl("net.sf.basedb.reggie"); |
2199 |
17 Jan 14 |
nicklas |
18 |
DbControl dc = null; |
2199 |
17 Jan 14 |
nicklas |
19 |
try |
2199 |
17 Jan 14 |
nicklas |
20 |
{ |
2199 |
17 Jan 14 |
nicklas |
21 |
dc = sc.newDbControl(); |
2199 |
17 Jan 14 |
nicklas |
22 |
final User user = User.getById(dc, sc.getLoggedInUserId()); |
2199 |
17 Jan 14 |
nicklas |
23 |
%> |
2199 |
17 Jan 14 |
nicklas |
24 |
<base:page type="default" > |
2783 |
10 Oct 14 |
nicklas |
25 |
<base:head |
2783 |
10 Oct 14 |
nicklas |
26 |
scripts="~../reggie-2.js,~histology_labels.js" |
2783 |
10 Oct 14 |
nicklas |
27 |
styles="path.css,~../css/reggie-2.css" |
2783 |
10 Oct 14 |
nicklas |
28 |
/> |
2783 |
10 Oct 14 |
nicklas |
29 |
<base:body> |
2199 |
17 Jan 14 |
nicklas |
30 |
|
2199 |
17 Jan 14 |
nicklas |
31 |
<p:path><p:pathelement |
2199 |
17 Jan 14 |
nicklas |
32 |
title="Reggie" href="<%="../index.jsp?ID="+ID%>" |
2199 |
17 Jan 14 |
nicklas |
33 |
/><p:pathelement title="Download HE glass labels" |
2199 |
17 Jan 14 |
nicklas |
34 |
/></p:path> |
2199 |
17 Jan 14 |
nicklas |
35 |
|
2199 |
17 Jan 14 |
nicklas |
36 |
<div class="content"> |
2199 |
17 Jan 14 |
nicklas |
37 |
|
2783 |
10 Oct 14 |
nicklas |
38 |
<form name="reggie" id="wizard" class="wizard"> |
2199 |
17 Jan 14 |
nicklas |
39 |
|
2783 |
10 Oct 14 |
nicklas |
40 |
<div class="step" id="step-1"> |
2783 |
10 Oct 14 |
nicklas |
41 |
<div class="step-no">1</div> |
2783 |
10 Oct 14 |
nicklas |
42 |
<div class="step-title">Select Histology work list</div> |
2783 |
10 Oct 14 |
nicklas |
43 |
<div class="step-content"> |
2783 |
10 Oct 14 |
nicklas |
44 |
|
2783 |
10 Oct 14 |
nicklas |
45 |
<table class="step-form"> |
2783 |
10 Oct 14 |
nicklas |
46 |
<tr> |
2199 |
17 Jan 14 |
nicklas |
47 |
<td class="prompt">Histology work list</td> |
2783 |
10 Oct 14 |
nicklas |
48 |
<td class="input"> |
2783 |
10 Oct 14 |
nicklas |
49 |
<select name="workList" id="workList"></select> |
2199 |
17 Jan 14 |
nicklas |
50 |
</td> |
2199 |
17 Jan 14 |
nicklas |
51 |
<td class="status" id="workList.status"></td> |
2783 |
10 Oct 14 |
nicklas |
52 |
<td class="help"> |
2783 |
10 Oct 14 |
nicklas |
53 |
<span id="workList.message" class="message"></span> |
2199 |
17 Jan 14 |
nicklas |
54 |
Select an existing histology work list. |
2199 |
17 Jan 14 |
nicklas |
55 |
</td> |
2199 |
17 Jan 14 |
nicklas |
56 |
</tr> |
2199 |
17 Jan 14 |
nicklas |
57 |
<tr> |
2199 |
17 Jan 14 |
nicklas |
58 |
<td class="prompt">Number of labels</td> |
2783 |
10 Oct 14 |
nicklas |
59 |
<td class="input"> |
2783 |
10 Oct 14 |
nicklas |
60 |
<input type="text" name="numLabels" id="numLabels" value="3" style="width: 8em;" maxlength="2"> |
2783 |
10 Oct 14 |
nicklas |
61 |
</td> |
2199 |
17 Jan 14 |
nicklas |
62 |
<td class="status" id="numLabels.status"></td> |
2783 |
10 Oct 14 |
nicklas |
63 |
<td class="help"> |
2783 |
10 Oct 14 |
nicklas |
64 |
<span id="numLabels.message" class="message"></span> |
2783 |
10 Oct 14 |
nicklas |
65 |
Number of labels to create for each block. |
2783 |
10 Oct 14 |
nicklas |
66 |
</td> |
2199 |
17 Jan 14 |
nicklas |
67 |
</tr> |
2199 |
17 Jan 14 |
nicklas |
68 |
</table> |
2783 |
10 Oct 14 |
nicklas |
69 |
</div> |
2783 |
10 Oct 14 |
nicklas |
70 |
</div> |
2783 |
10 Oct 14 |
nicklas |
71 |
|
2783 |
10 Oct 14 |
nicklas |
72 |
<div id="wizard-status"></div> |
2783 |
10 Oct 14 |
nicklas |
73 |
|
2783 |
10 Oct 14 |
nicklas |
74 |
<table class="navigation" id="navigation"> |
2783 |
10 Oct 14 |
nicklas |
75 |
<tr> |
5309 |
15 Feb 19 |
nicklas |
76 |
<td><base:button id="godownloadcsv" title="Download (CSV)" data-format="csv" |
5309 |
15 Feb 19 |
nicklas |
77 |
image="<%=home+"/images/download.png"%>" tooltip="Download labels as a tab-separated text file (csv)" /></td> |
5309 |
15 Feb 19 |
nicklas |
78 |
<td><base:button id="godownloadxlsx" title="Download (Excel)" data-format="xlsx" |
5309 |
15 Feb 19 |
nicklas |
79 |
image="<%=home+"/images/download.png"%>" tooltip="Download lables as an Excel worksheet file (xlsx)" /></td> |
2783 |
10 Oct 14 |
nicklas |
80 |
<td id="gonext-message" class="message"></td> |
2199 |
17 Jan 14 |
nicklas |
81 |
</tr> |
2199 |
17 Jan 14 |
nicklas |
82 |
</table> |
2199 |
17 Jan 14 |
nicklas |
83 |
|
2199 |
17 Jan 14 |
nicklas |
84 |
</form> |
2199 |
17 Jan 14 |
nicklas |
85 |
</div> |
2199 |
17 Jan 14 |
nicklas |
86 |
</base:body> |
2199 |
17 Jan 14 |
nicklas |
87 |
</base:page> |
2199 |
17 Jan 14 |
nicklas |
88 |
<% |
2199 |
17 Jan 14 |
nicklas |
89 |
} |
2199 |
17 Jan 14 |
nicklas |
90 |
finally |
2199 |
17 Jan 14 |
nicklas |
91 |
{ |
2199 |
17 Jan 14 |
nicklas |
92 |
if (dc != null) dc.close(); |
2199 |
17 Jan 14 |
nicklas |
93 |
} |
2199 |
17 Jan 14 |
nicklas |
94 |
%> |