5339 |
29 Mar 19 |
nicklas |
1 |
<%@ page |
5339 |
29 Mar 19 |
nicklas |
2 |
pageEncoding="UTF-8" |
5339 |
29 Mar 19 |
nicklas |
3 |
session="false" |
5339 |
29 Mar 19 |
nicklas |
4 |
import="net.sf.basedb.core.User" |
5339 |
29 Mar 19 |
nicklas |
5 |
import="net.sf.basedb.core.DbControl" |
5339 |
29 Mar 19 |
nicklas |
6 |
import="net.sf.basedb.core.SessionControl" |
5339 |
29 Mar 19 |
nicklas |
7 |
import="net.sf.basedb.core.Application" |
5339 |
29 Mar 19 |
nicklas |
8 |
import="net.sf.basedb.util.formatter.DateFormatter" |
5339 |
29 Mar 19 |
nicklas |
9 |
import="net.sf.basedb.util.formatter.Formatter" |
5339 |
29 Mar 19 |
nicklas |
10 |
import="net.sf.basedb.util.extensions.Extension" |
5339 |
29 Mar 19 |
nicklas |
11 |
import="net.sf.basedb.clients.web.Base" |
5339 |
29 Mar 19 |
nicklas |
12 |
import="net.sf.basedb.clients.web.extensions.ExtensionsControl" |
5339 |
29 Mar 19 |
nicklas |
13 |
import="java.util.Date" |
5339 |
29 Mar 19 |
nicklas |
14 |
%> |
5339 |
29 Mar 19 |
nicklas |
15 |
<%@ taglib prefix="base" uri="/WEB-INF/base.tld" %> |
5339 |
29 Mar 19 |
nicklas |
16 |
<%@ taglib prefix="p" uri="/WEB-INF/path.tld" %> |
5339 |
29 Mar 19 |
nicklas |
17 |
<% |
5339 |
29 Mar 19 |
nicklas |
18 |
final SessionControl sc = Base.getExistingSessionControl(request, "net.sf.basedb.reggie", true); |
5339 |
29 Mar 19 |
nicklas |
19 |
final String ID = sc.getId(); |
5339 |
29 Mar 19 |
nicklas |
20 |
final float scale = Base.getScale(sc); |
5339 |
29 Mar 19 |
nicklas |
21 |
final String home = ExtensionsControl.getHomeUrl("net.sf.basedb.reggie"); |
5339 |
29 Mar 19 |
nicklas |
22 |
DbControl dc = null; |
5339 |
29 Mar 19 |
nicklas |
23 |
try |
5339 |
29 Mar 19 |
nicklas |
24 |
{ |
5339 |
29 Mar 19 |
nicklas |
25 |
dc = sc.newDbControl(); |
5339 |
29 Mar 19 |
nicklas |
26 |
final Extension reggie = ExtensionsControl.get(dc).getExtension("net.sf.basedb.reggie"); |
5339 |
29 Mar 19 |
nicklas |
27 |
final User user = User.getById(dc, sc.getLoggedInUserId()); |
5339 |
29 Mar 19 |
nicklas |
28 |
%> |
5339 |
29 Mar 19 |
nicklas |
29 |
<base:page type="default" > |
5339 |
29 Mar 19 |
nicklas |
30 |
<base:head |
5339 |
29 Mar 19 |
nicklas |
31 |
scripts="~../reggie-2.js,~store-paused.js" |
5339 |
29 Mar 19 |
nicklas |
32 |
styles="path.css,~../css/reggie-2.css,~../css/store_paused.css" |
5339 |
29 Mar 19 |
nicklas |
33 |
> |
5339 |
29 Mar 19 |
nicklas |
34 |
<style> |
5339 |
29 Mar 19 |
nicklas |
35 |
tr.highlight |
5339 |
29 Mar 19 |
nicklas |
36 |
{ |
5339 |
29 Mar 19 |
nicklas |
37 |
border-top-width: 1px; |
5339 |
29 Mar 19 |
nicklas |
38 |
border-top-style: dotted; |
5339 |
29 Mar 19 |
nicklas |
39 |
} |
5339 |
29 Mar 19 |
nicklas |
40 |
|
5339 |
29 Mar 19 |
nicklas |
41 |
#specimenTable |
5339 |
29 Mar 19 |
nicklas |
42 |
{ |
5339 |
29 Mar 19 |
nicklas |
43 |
border-width: 0; |
5339 |
29 Mar 19 |
nicklas |
44 |
font-size: 100%; |
5339 |
29 Mar 19 |
nicklas |
45 |
} |
5339 |
29 Mar 19 |
nicklas |
46 |
|
5339 |
29 Mar 19 |
nicklas |
47 |
#specimenTable td:first-child, #specimenTable th:first-child |
5339 |
29 Mar 19 |
nicklas |
48 |
{ |
5339 |
29 Mar 19 |
nicklas |
49 |
border-left-width: 0; |
5339 |
29 Mar 19 |
nicklas |
50 |
} |
5339 |
29 Mar 19 |
nicklas |
51 |
|
5339 |
29 Mar 19 |
nicklas |
52 |
#protocol-header |
5339 |
29 Mar 19 |
nicklas |
53 |
{ |
5339 |
29 Mar 19 |
nicklas |
54 |
display: none; |
5339 |
29 Mar 19 |
nicklas |
55 |
} |
5339 |
29 Mar 19 |
nicklas |
56 |
</style> |
5339 |
29 Mar 19 |
nicklas |
57 |
</base:head> |
5339 |
29 Mar 19 |
nicklas |
58 |
<base:body> |
5339 |
29 Mar 19 |
nicklas |
59 |
|
5339 |
29 Mar 19 |
nicklas |
60 |
<p:path><p:pathelement |
5339 |
29 Mar 19 |
nicklas |
61 |
title="Reggie" href="<%="../index.jsp?ID="+ID%>" |
5339 |
29 Mar 19 |
nicklas |
62 |
/><p:pathelement title="Store paused specimen" |
5339 |
29 Mar 19 |
nicklas |
63 |
/></p:path> |
5339 |
29 Mar 19 |
nicklas |
64 |
|
5339 |
29 Mar 19 |
nicklas |
65 |
<div class="content"> |
5339 |
29 Mar 19 |
nicklas |
66 |
|
5339 |
29 Mar 19 |
nicklas |
67 |
<div id="page-data" class="datacontainer" |
5339 |
29 Mar 19 |
nicklas |
68 |
data-home-url="<%=home%>" |
5339 |
29 Mar 19 |
nicklas |
69 |
></div> |
5339 |
29 Mar 19 |
nicklas |
70 |
|
5339 |
29 Mar 19 |
nicklas |
71 |
<form name="reggie" id="wizard" class="wizard"> |
5339 |
29 Mar 19 |
nicklas |
72 |
|
5339 |
29 Mar 19 |
nicklas |
73 |
<div class="step" id="step-1"> |
5339 |
29 Mar 19 |
nicklas |
74 |
<div class="step-no">1</div> |
5339 |
29 Mar 19 |
nicklas |
75 |
|
5339 |
29 Mar 19 |
nicklas |
76 |
<div class="step-content"> |
5339 |
29 Mar 19 |
nicklas |
77 |
|
5339 |
29 Mar 19 |
nicklas |
78 |
<div id="full-protocol" class="topborder bottomborder"> |
5339 |
29 Mar 19 |
nicklas |
79 |
<div id="protocol-header"> |
5339 |
29 Mar 19 |
nicklas |
80 |
<h1>Protocol for specimen storage <span class="reggie">Reggie <%=reggie.getAbout().getVersion() %></span></h1> |
5339 |
29 Mar 19 |
nicklas |
81 |
</div> |
5339 |
29 Mar 19 |
nicklas |
82 |
<div id="specimenList"></div> |
5339 |
29 Mar 19 |
nicklas |
83 |
</div> |
5339 |
29 Mar 19 |
nicklas |
84 |
|
5339 |
29 Mar 19 |
nicklas |
85 |
<div style="padding: 1em;"> |
5339 |
29 Mar 19 |
nicklas |
86 |
<b>Download labels</b> |
5339 |
29 Mar 19 |
nicklas |
87 |
<base:icon subclass="link" id="downloadLabelsCsv" image="<%=home + "/images/download.png"%>" |
5339 |
29 Mar 19 |
nicklas |
88 |
data-format="csv" title="Download labels as a tab-separated text file (csv)">CSV</base:icon> |
5339 |
29 Mar 19 |
nicklas |
89 |
<base:icon subclass="link" id="downloadLabelsXlsx" image="<%=home + "/images/download.png"%>" |
5339 |
29 Mar 19 |
nicklas |
90 |
data-format="xlsx" title="Download lables as an Excel worksheet file (xlsx)">Excel</base:icon> |
5339 |
29 Mar 19 |
nicklas |
91 |
</div> |
5339 |
29 Mar 19 |
nicklas |
92 |
</div> |
5339 |
29 Mar 19 |
nicklas |
93 |
</div> |
5339 |
29 Mar 19 |
nicklas |
94 |
<div id="wizard-status"></div> |
5339 |
29 Mar 19 |
nicklas |
95 |
|
5339 |
29 Mar 19 |
nicklas |
96 |
<table class="navigation" id="navigation"> |
5339 |
29 Mar 19 |
nicklas |
97 |
<tr> |
5339 |
29 Mar 19 |
nicklas |
98 |
<td><base:button id="gocancel" title="Cancel" /></td> |
5339 |
29 Mar 19 |
nicklas |
99 |
<td><base:button id="gonext" title="Next" image="<%=home+"/images/gonext.png"%>" /></td> |
5339 |
29 Mar 19 |
nicklas |
100 |
<td><base:button id="goregister" title="Register" image="<%=home+"/images/import.png"%>" /></td> |
5339 |
29 Mar 19 |
nicklas |
101 |
<td><base:button id="goprint" title="Print…" image="<%=home+"/images/print.png"%>" /></td> |
5339 |
29 Mar 19 |
nicklas |
102 |
<td><base:button id="gorestart" title="Restart" image="<%=home+"/images/goback.png"%>" /></td> |
5339 |
29 Mar 19 |
nicklas |
103 |
<td id="gonext-message" class="message"></td> |
5339 |
29 Mar 19 |
nicklas |
104 |
</tr> |
5339 |
29 Mar 19 |
nicklas |
105 |
</table> |
5339 |
29 Mar 19 |
nicklas |
106 |
|
5339 |
29 Mar 19 |
nicklas |
107 |
</form> |
5339 |
29 Mar 19 |
nicklas |
108 |
</div> |
5339 |
29 Mar 19 |
nicklas |
109 |
|
5339 |
29 Mar 19 |
nicklas |
110 |
</base:body> |
5339 |
29 Mar 19 |
nicklas |
111 |
</base:page> |
5339 |
29 Mar 19 |
nicklas |
112 |
<% |
5339 |
29 Mar 19 |
nicklas |
113 |
} |
5339 |
29 Mar 19 |
nicklas |
114 |
finally |
5339 |
29 Mar 19 |
nicklas |
115 |
{ |
5339 |
29 Mar 19 |
nicklas |
116 |
if (dc != null) dc.close(); |
5339 |
29 Mar 19 |
nicklas |
117 |
} |
5339 |
29 Mar 19 |
nicklas |
118 |
%> |