2839 |
20 Oct 14 |
olle |
1 |
<%@ page |
2839 |
20 Oct 14 |
olle |
2 |
pageEncoding="UTF-8" |
2839 |
20 Oct 14 |
olle |
3 |
session="false" |
2839 |
20 Oct 14 |
olle |
4 |
import="net.sf.basedb.core.Application" |
2839 |
20 Oct 14 |
olle |
5 |
import="net.sf.basedb.core.User" |
2839 |
20 Oct 14 |
olle |
6 |
import="net.sf.basedb.core.DbControl" |
2839 |
20 Oct 14 |
olle |
7 |
import="net.sf.basedb.core.SessionControl" |
2839 |
20 Oct 14 |
olle |
8 |
import="net.sf.basedb.clients.web.Base" |
2839 |
20 Oct 14 |
olle |
9 |
import="net.sf.basedb.clients.web.util.HTML" |
2839 |
20 Oct 14 |
olle |
10 |
import="net.sf.basedb.clients.web.extensions.ExtensionsControl" |
2839 |
20 Oct 14 |
olle |
11 |
import="net.sf.basedb.util.Values" |
2839 |
20 Oct 14 |
olle |
12 |
%> |
2839 |
20 Oct 14 |
olle |
13 |
<%@ taglib prefix="base" uri="/WEB-INF/base.tld" %> |
2839 |
20 Oct 14 |
olle |
14 |
<%@ taglib prefix="p" uri="/WEB-INF/path.tld" %> |
2839 |
20 Oct 14 |
olle |
15 |
<% |
3976 |
26 May 16 |
nicklas |
16 |
final SessionControl sc = Base.getExistingSessionControl(request, "net.sf.basedb.reggie", true); |
2839 |
20 Oct 14 |
olle |
17 |
final String ID = sc.getId(); |
2839 |
20 Oct 14 |
olle |
18 |
final float scale = Base.getScale(sc); |
2839 |
20 Oct 14 |
olle |
19 |
final String home = ExtensionsControl.getHomeUrl("net.sf.basedb.reggie"); |
2839 |
20 Oct 14 |
olle |
20 |
DbControl dc = null; |
2839 |
20 Oct 14 |
olle |
21 |
try |
2839 |
20 Oct 14 |
olle |
22 |
{ |
2839 |
20 Oct 14 |
olle |
23 |
dc = sc.newDbControl(); |
2839 |
20 Oct 14 |
olle |
24 |
final User user = User.getById(dc, sc.getLoggedInUserId()); |
2839 |
20 Oct 14 |
olle |
25 |
%> |
2839 |
20 Oct 14 |
olle |
26 |
<base:page type="default" > |
2839 |
20 Oct 14 |
olle |
27 |
<base:head |
2839 |
20 Oct 14 |
olle |
28 |
scripts="~../reggie-2.js,~retractionform.js" |
3093 |
19 Jan 15 |
nicklas |
29 |
styles="path.css,~../css/reggie-2.css,~retractionexport.css" |
2839 |
20 Oct 14 |
olle |
30 |
> |
2839 |
20 Oct 14 |
olle |
31 |
<style> |
2839 |
20 Oct 14 |
olle |
32 |
|
2839 |
20 Oct 14 |
olle |
33 |
#retractionItemsTable |
2839 |
20 Oct 14 |
olle |
34 |
{ |
2839 |
20 Oct 14 |
olle |
35 |
width: 100%; |
2839 |
20 Oct 14 |
olle |
36 |
border-collapse: collapse; |
2839 |
20 Oct 14 |
olle |
37 |
} |
2839 |
20 Oct 14 |
olle |
38 |
|
2839 |
20 Oct 14 |
olle |
39 |
#retractionItemsTable thead |
2839 |
20 Oct 14 |
olle |
40 |
{ |
3026 |
11 Dec 14 |
nicklas |
41 |
border-bottom-width: 1px; |
3026 |
11 Dec 14 |
nicklas |
42 |
border-top-width: 1px; |
2839 |
20 Oct 14 |
olle |
43 |
} |
2839 |
20 Oct 14 |
olle |
44 |
|
3026 |
11 Dec 14 |
nicklas |
45 |
#retractionItemsTable thead:first-child |
3026 |
11 Dec 14 |
nicklas |
46 |
{ |
3026 |
11 Dec 14 |
nicklas |
47 |
border-top-width: 0; |
3026 |
11 Dec 14 |
nicklas |
48 |
} |
3026 |
11 Dec 14 |
nicklas |
49 |
|
2839 |
20 Oct 14 |
olle |
50 |
#retractionItemsTable td |
2839 |
20 Oct 14 |
olle |
51 |
{ |
2839 |
20 Oct 14 |
olle |
52 |
text-align: center; |
2839 |
20 Oct 14 |
olle |
53 |
min-width: 4.5em; |
2839 |
20 Oct 14 |
olle |
54 |
} |
2839 |
20 Oct 14 |
olle |
55 |
|
2839 |
20 Oct 14 |
olle |
56 |
#retractionItemsTable tbody td |
2839 |
20 Oct 14 |
olle |
57 |
{ |
2839 |
20 Oct 14 |
olle |
58 |
padding-top: 1px; |
2839 |
20 Oct 14 |
olle |
59 |
padding-bottom: 1px; |
2839 |
20 Oct 14 |
olle |
60 |
} |
2839 |
20 Oct 14 |
olle |
61 |
|
2839 |
20 Oct 14 |
olle |
62 |
#retractionItemsTable .italic |
2839 |
20 Oct 14 |
olle |
63 |
{ |
2839 |
20 Oct 14 |
olle |
64 |
font-style: italic; |
2839 |
20 Oct 14 |
olle |
65 |
} |
2839 |
20 Oct 14 |
olle |
66 |
|
2839 |
20 Oct 14 |
olle |
67 |
.file-link |
2839 |
20 Oct 14 |
olle |
68 |
{ |
2839 |
20 Oct 14 |
olle |
69 |
margin-left: 0.5em; |
2839 |
20 Oct 14 |
olle |
70 |
} |
2839 |
20 Oct 14 |
olle |
71 |
|
2839 |
20 Oct 14 |
olle |
72 |
.comment input |
2839 |
20 Oct 14 |
olle |
73 |
{ |
2839 |
20 Oct 14 |
olle |
74 |
width: 95%; |
2839 |
20 Oct 14 |
olle |
75 |
min-width: 20em; |
2839 |
20 Oct 14 |
olle |
76 |
} |
2839 |
20 Oct 14 |
olle |
77 |
|
4312 |
18 Jan 17 |
nicklas |
78 |
.warning |
4312 |
18 Jan 17 |
nicklas |
79 |
{ |
4312 |
18 Jan 17 |
nicklas |
80 |
background-color: #FFF066; |
4312 |
18 Jan 17 |
nicklas |
81 |
} |
4312 |
18 Jan 17 |
nicklas |
82 |
.warning:after |
4312 |
18 Jan 17 |
nicklas |
83 |
{ |
4312 |
18 Jan 17 |
nicklas |
84 |
content: '›'; |
4312 |
18 Jan 17 |
nicklas |
85 |
} |
4312 |
18 Jan 17 |
nicklas |
86 |
.warning:before |
4312 |
18 Jan 17 |
nicklas |
87 |
{ |
4312 |
18 Jan 17 |
nicklas |
88 |
content: '‹'; |
4312 |
18 Jan 17 |
nicklas |
89 |
} |
4312 |
18 Jan 17 |
nicklas |
90 |
|
2839 |
20 Oct 14 |
olle |
91 |
</style> |
2839 |
20 Oct 14 |
olle |
92 |
|
2839 |
20 Oct 14 |
olle |
93 |
</base:head> |
2839 |
20 Oct 14 |
olle |
94 |
<base:body> |
2839 |
20 Oct 14 |
olle |
95 |
|
2839 |
20 Oct 14 |
olle |
96 |
<p:path><p:pathelement id="reggie-index" |
2839 |
20 Oct 14 |
olle |
97 |
title="Reggie" href="<%="../index.jsp?ID="+ID%>" |
2839 |
20 Oct 14 |
olle |
98 |
/><p:pathelement title="Mark extracts for retraction" |
2839 |
20 Oct 14 |
olle |
99 |
/></p:path> |
2839 |
20 Oct 14 |
olle |
100 |
|
2839 |
20 Oct 14 |
olle |
101 |
<div class="content"> |
5638 |
03 Oct 19 |
nicklas |
102 |
<form name="reggie" id="wizard" class="wizard"> |
2839 |
20 Oct 14 |
olle |
103 |
<div class="step" id="step-1"> |
2839 |
20 Oct 14 |
olle |
104 |
<div class="step-no">1</div> |
2839 |
20 Oct 14 |
olle |
105 |
<div class="step-title">Enter Case Name or Personal Number</div> |
2839 |
20 Oct 14 |
olle |
106 |
<div class="step-content"> |
2839 |
20 Oct 14 |
olle |
107 |
|
2839 |
20 Oct 14 |
olle |
108 |
<table class="step-form"> |
2839 |
20 Oct 14 |
olle |
109 |
<tr> |
2839 |
20 Oct 14 |
olle |
110 |
<td class="prompt">Case name or personal number</td> |
2839 |
20 Oct 14 |
olle |
111 |
<td class="input"><input type="text" name="caseName" id="caseName" |
2839 |
20 Oct 14 |
olle |
112 |
class="required auto-init" data-auto-init="focus" |
2839 |
20 Oct 14 |
olle |
113 |
style="width: 12em;" maxlength="12"></td> |
2839 |
20 Oct 14 |
olle |
114 |
<td class="status" id="caseName.status"></td> |
2839 |
20 Oct 14 |
olle |
115 |
<td class="help"> |
2839 |
20 Oct 14 |
olle |
116 |
<span id="caseName.message" class="message"></span> |
2839 |
20 Oct 14 |
olle |
117 |
The 7-digit case (barcode) associated with the case, or personal number (YYYYMMDDZZZZ). |
2839 |
20 Oct 14 |
olle |
118 |
</td> |
2839 |
20 Oct 14 |
olle |
119 |
</tr> |
2839 |
20 Oct 14 |
olle |
120 |
</table> |
2839 |
20 Oct 14 |
olle |
121 |
|
2839 |
20 Oct 14 |
olle |
122 |
</div> |
2839 |
20 Oct 14 |
olle |
123 |
</div> |
2839 |
20 Oct 14 |
olle |
124 |
|
2839 |
20 Oct 14 |
olle |
125 |
<div class="step" id="step-2"> |
2839 |
20 Oct 14 |
olle |
126 |
<div class="step-no">2</div> |
2839 |
20 Oct 14 |
olle |
127 |
<div class="step-title">Retraction form</div> |
2839 |
20 Oct 14 |
olle |
128 |
<div class="step-content"> |
2839 |
20 Oct 14 |
olle |
129 |
|
2839 |
20 Oct 14 |
olle |
130 |
<div id="retractTable"></div> |
3026 |
11 Dec 14 |
nicklas |
131 |
<table class="step-form" id="functionmodifiers"> |
2839 |
20 Oct 14 |
olle |
132 |
<tr> |
2839 |
20 Oct 14 |
olle |
133 |
<td class="prompt"></td> |
2839 |
20 Oct 14 |
olle |
134 |
<td class="input" style="text-align: left; vertical-align: left;"> |
2839 |
20 Oct 14 |
olle |
135 |
<label> |
2839 |
20 Oct 14 |
olle |
136 |
<input type="checkbox" name="forceResetWhenUnchecked" id="forceResetWhenUnchecked"> |
2839 |
20 Oct 14 |
olle |
137 |
Force reset when unchecked</label> |
2839 |
20 Oct 14 |
olle |
138 |
</td> |
2839 |
20 Oct 14 |
olle |
139 |
<td class="status" id="forceResetWhenUnchecked.status"></td> |
2839 |
20 Oct 14 |
olle |
140 |
<td class="help"> |
2839 |
20 Oct 14 |
olle |
141 |
<span id="forceResetWhenUnchecked.message" class="message"></span> |
2839 |
20 Oct 14 |
olle |
142 |
Reset annotation items for unchecked checkboxes. |
2839 |
20 Oct 14 |
olle |
143 |
</td> |
2839 |
20 Oct 14 |
olle |
144 |
</tr> |
2839 |
20 Oct 14 |
olle |
145 |
<tr> |
2839 |
20 Oct 14 |
olle |
146 |
<td class="prompt"></td> |
2839 |
20 Oct 14 |
olle |
147 |
<td class="input" style="text-align: left; vertical-align: left;"> |
2839 |
20 Oct 14 |
olle |
148 |
<label id="newbiosourcetype.retract.label" class="disabled"> |
4312 |
18 Jan 17 |
nicklas |
149 |
<input type="radio" id="newbiosourcetype.retract" name="newbiosourcetype" value="RETRACT" disabled> |
2839 |
20 Oct 14 |
olle |
150 |
Retract</label> |
2839 |
20 Oct 14 |
olle |
151 |
</td> |
2839 |
20 Oct 14 |
olle |
152 |
<td class="status" id="newbiosourcetype.retract.status"></td> |
2839 |
20 Oct 14 |
olle |
153 |
<td class="help"> |
2839 |
20 Oct 14 |
olle |
154 |
<span id="newbiosourcetype.retract.message" class="message"></span> |
2839 |
20 Oct 14 |
olle |
155 |
Retracted "Yes" consents. |
2839 |
20 Oct 14 |
olle |
156 |
</td> |
2839 |
20 Oct 14 |
olle |
157 |
</tr> |
2839 |
20 Oct 14 |
olle |
158 |
<tr> |
2839 |
20 Oct 14 |
olle |
159 |
<td class="prompt"></td> |
2839 |
20 Oct 14 |
olle |
160 |
<td class="input" style="text-align: left; vertical-align: left;"> |
2839 |
20 Oct 14 |
olle |
161 |
<label id="newbiosourcetype.retrono.label" class="disabled"> |
4312 |
18 Jan 17 |
nicklas |
162 |
<input type="radio" id="newbiosourcetype.retrono" name="newbiosourcetype" value="RETRO_NO" disabled> |
2839 |
20 Oct 14 |
olle |
163 |
RetroNo</label> |
2839 |
20 Oct 14 |
olle |
164 |
</td> |
2839 |
20 Oct 14 |
olle |
165 |
<td class="status" id="newbiosourcetype.retrono.status"></td> |
2839 |
20 Oct 14 |
olle |
166 |
<td class="help"> |
2839 |
20 Oct 14 |
olle |
167 |
<span id="newbiosourcetype.retrono.message" class="message"></span> |
2839 |
20 Oct 14 |
olle |
168 |
"No" or missing consents. |
2839 |
20 Oct 14 |
olle |
169 |
</td> |
2839 |
20 Oct 14 |
olle |
170 |
</tr> |
2839 |
20 Oct 14 |
olle |
171 |
</table> |
2839 |
20 Oct 14 |
olle |
172 |
</div> |
2839 |
20 Oct 14 |
olle |
173 |
</div> |
2839 |
20 Oct 14 |
olle |
174 |
|
2839 |
20 Oct 14 |
olle |
175 |
<div id="wizard-status"></div> |
2839 |
20 Oct 14 |
olle |
176 |
|
2839 |
20 Oct 14 |
olle |
177 |
<table class="navigation" id="navigation"> |
2839 |
20 Oct 14 |
olle |
178 |
<tr> |
2839 |
20 Oct 14 |
olle |
179 |
<td><base:button id="gocancel" title="Cancel" /></td> |
2839 |
20 Oct 14 |
olle |
180 |
<td><base:button id="gonext" title="Next" image="<%=home+"/images/gonext.png"%>" /></td> |
2839 |
20 Oct 14 |
olle |
181 |
<td><base:button id="goregister" title="Register" image="<%=home+"/images/gonext.png"%>" /></td> |
2839 |
20 Oct 14 |
olle |
182 |
<td><base:button id="gorestart" title="Restart" image="<%=home+"/images/goback.png"%>" /></td> |
5638 |
03 Oct 19 |
nicklas |
183 |
<td><base:button id="gocreate" title="Create protocol" image="<%=home+"/images/report.png"%>" /></td> |
2839 |
20 Oct 14 |
olle |
184 |
<td id="gonext-message" class="message"></td> |
2839 |
20 Oct 14 |
olle |
185 |
</tr> |
2839 |
20 Oct 14 |
olle |
186 |
</table> |
2839 |
20 Oct 14 |
olle |
187 |
|
2839 |
20 Oct 14 |
olle |
188 |
</form> |
2839 |
20 Oct 14 |
olle |
189 |
</div> |
2839 |
20 Oct 14 |
olle |
190 |
|
2839 |
20 Oct 14 |
olle |
191 |
</base:body> |
2839 |
20 Oct 14 |
olle |
192 |
</base:page> |
2839 |
20 Oct 14 |
olle |
193 |
<% |
2839 |
20 Oct 14 |
olle |
194 |
} |
2839 |
20 Oct 14 |
olle |
195 |
finally |
2839 |
20 Oct 14 |
olle |
196 |
{ |
2839 |
20 Oct 14 |
olle |
197 |
if (dc != null) dc.close(); |
2839 |
20 Oct 14 |
olle |
198 |
} |
2839 |
20 Oct 14 |
olle |
199 |
%> |