3791 |
17 Mar 16 |
nicklas |
1 |
<%@ page |
3791 |
17 Mar 16 |
nicklas |
2 |
pageEncoding="UTF-8" |
3791 |
17 Mar 16 |
nicklas |
3 |
session="false" |
3791 |
17 Mar 16 |
nicklas |
4 |
import="net.sf.basedb.core.Application" |
3791 |
17 Mar 16 |
nicklas |
5 |
import="net.sf.basedb.core.User" |
3791 |
17 Mar 16 |
nicklas |
6 |
import="net.sf.basedb.core.DbControl" |
3791 |
17 Mar 16 |
nicklas |
7 |
import="net.sf.basedb.core.SessionControl" |
3791 |
17 Mar 16 |
nicklas |
8 |
import="net.sf.basedb.clients.web.Base" |
3791 |
17 Mar 16 |
nicklas |
9 |
import="net.sf.basedb.clients.web.util.HTML" |
3791 |
17 Mar 16 |
nicklas |
10 |
import="net.sf.basedb.clients.web.extensions.ExtensionsControl" |
3791 |
17 Mar 16 |
nicklas |
11 |
import="net.sf.basedb.util.Values" |
3791 |
17 Mar 16 |
nicklas |
12 |
%> |
3791 |
17 Mar 16 |
nicklas |
13 |
<%@ taglib prefix="base" uri="/WEB-INF/base.tld" %> |
3791 |
17 Mar 16 |
nicklas |
14 |
<%@ taglib prefix="p" uri="/WEB-INF/path.tld" %> |
3791 |
17 Mar 16 |
nicklas |
15 |
<% |
3976 |
26 May 16 |
nicklas |
16 |
final SessionControl sc = Base.getExistingSessionControl(request, "net.sf.basedb.reggie", true); |
3791 |
17 Mar 16 |
nicklas |
17 |
final String ID = sc.getId(); |
3791 |
17 Mar 16 |
nicklas |
18 |
final float scale = Base.getScale(sc); |
3791 |
17 Mar 16 |
nicklas |
19 |
final String home = ExtensionsControl.getHomeUrl("net.sf.basedb.reggie"); |
3791 |
17 Mar 16 |
nicklas |
20 |
DbControl dc = null; |
3791 |
17 Mar 16 |
nicklas |
21 |
try |
3791 |
17 Mar 16 |
nicklas |
22 |
{ |
3791 |
17 Mar 16 |
nicklas |
23 |
dc = sc.newDbControl(); |
3791 |
17 Mar 16 |
nicklas |
24 |
final User user = User.getById(dc, sc.getLoggedInUserId()); |
3791 |
17 Mar 16 |
nicklas |
25 |
int numSelected = Values.getInt(request.getParameter("numSelected")); |
4993 |
02 Oct 18 |
nicklas |
26 |
int numDoNotUse = Values.getInt(request.getParameter("numDoNotUse")); |
3791 |
17 Mar 16 |
nicklas |
27 |
%> |
3791 |
17 Mar 16 |
nicklas |
28 |
<base:page type="popup" title="Create Pilot report ZIP file"> |
3791 |
17 Mar 16 |
nicklas |
29 |
<base:head |
3791 |
17 Mar 16 |
nicklas |
30 |
scripts="~make-zip.js,~../reggie-2.js" |
3791 |
17 Mar 16 |
nicklas |
31 |
styles="~../css/reggie-2.css" |
3791 |
17 Mar 16 |
nicklas |
32 |
/> |
3791 |
17 Mar 16 |
nicklas |
33 |
<base:body> |
3791 |
17 Mar 16 |
nicklas |
34 |
<h1>Create Pilot report ZIP file for <%=numSelected%> reports</h1> |
3791 |
17 Mar 16 |
nicklas |
35 |
|
3791 |
17 Mar 16 |
nicklas |
36 |
<form name="options" id="wizard" class="wizard"> |
3791 |
17 Mar 16 |
nicklas |
37 |
<div class="content bottomborder"> |
3791 |
17 Mar 16 |
nicklas |
38 |
|
3821 |
04 Apr 16 |
nicklas |
39 |
<table class="fullform input100"> |
3791 |
17 Mar 16 |
nicklas |
40 |
<tr> |
3791 |
17 Mar 16 |
nicklas |
41 |
<th>Password</th> |
3791 |
17 Mar 16 |
nicklas |
42 |
<td> |
3791 |
17 Mar 16 |
nicklas |
43 |
<input class="text auto-init" data-auto-init="focus" |
3791 |
17 Mar 16 |
nicklas |
44 |
type="text" name="password" id="password" maxlength="20"> |
3791 |
17 Mar 16 |
nicklas |
45 |
</td> |
3791 |
17 Mar 16 |
nicklas |
46 |
</tr> |
3821 |
04 Apr 16 |
nicklas |
47 |
<tr> |
3821 |
04 Apr 16 |
nicklas |
48 |
<th class="subprompt"></th> |
3821 |
04 Apr 16 |
nicklas |
49 |
<td> |
3826 |
05 Apr 16 |
nicklas |
50 |
<i>If empty, the ZIP file is not password protected.</i> |
3791 |
17 Mar 16 |
nicklas |
51 |
<div id="wizard-status"></div> |
3791 |
17 Mar 16 |
nicklas |
52 |
</td> |
3791 |
17 Mar 16 |
nicklas |
53 |
</tr> |
3821 |
04 Apr 16 |
nicklas |
54 |
<tr> |
3821 |
04 Apr 16 |
nicklas |
55 |
<th>Completed date</th> |
3821 |
04 Apr 16 |
nicklas |
56 |
<td> |
3821 |
04 Apr 16 |
nicklas |
57 |
<input type="text" name="completedDate" id="completedDate" style="width: 12em;" maxlength="10" |
3821 |
04 Apr 16 |
nicklas |
58 |
title="Enter completed date in YYYYMMDD format"> |
3821 |
04 Apr 16 |
nicklas |
59 |
<base:icon |
3821 |
04 Apr 16 |
nicklas |
60 |
id="completedDateCalendar" |
3821 |
04 Apr 16 |
nicklas |
61 |
subclass="auto-init" |
3821 |
04 Apr 16 |
nicklas |
62 |
data-auto-init="calendar" |
3821 |
04 Apr 16 |
nicklas |
63 |
data-textarea-id="completedDate" |
3821 |
04 Apr 16 |
nicklas |
64 |
data-date-format="yyyyMMdd" |
3824 |
04 Apr 16 |
nicklas |
65 |
data-title="Completed date" |
3821 |
04 Apr 16 |
nicklas |
66 |
image="calendar.png" |
3821 |
04 Apr 16 |
nicklas |
67 |
tooltip="Select a date from a calendar" |
3821 |
04 Apr 16 |
nicklas |
68 |
tabindex="-1" |
3821 |
04 Apr 16 |
nicklas |
69 |
/> |
3821 |
04 Apr 16 |
nicklas |
70 |
</td> |
3821 |
04 Apr 16 |
nicklas |
71 |
</tr> |
4993 |
02 Oct 18 |
nicklas |
72 |
<tr> |
3821 |
04 Apr 16 |
nicklas |
73 |
<th class="subprompt"></th> |
3821 |
04 Apr 16 |
nicklas |
74 |
<td> |
3826 |
05 Apr 16 |
nicklas |
75 |
<i>If empty, the specimen are not marked as completed.</i> |
3821 |
04 Apr 16 |
nicklas |
76 |
</td> |
3821 |
04 Apr 16 |
nicklas |
77 |
</tr> |
4993 |
02 Oct 18 |
nicklas |
78 |
<% |
4993 |
02 Oct 18 |
nicklas |
79 |
if (numDoNotUse > 0) |
4993 |
02 Oct 18 |
nicklas |
80 |
{ |
4993 |
02 Oct 18 |
nicklas |
81 |
%> |
4993 |
02 Oct 18 |
nicklas |
82 |
<tr> |
4993 |
02 Oct 18 |
nicklas |
83 |
<th>DoNotUse</th> |
4993 |
02 Oct 18 |
nicklas |
84 |
<td><label><input type="checkbox" name="acceptDoNotUse" id="acceptDoNotUse">Accept DoNotUse items</label></td> |
4993 |
02 Oct 18 |
nicklas |
85 |
</tr> |
4993 |
02 Oct 18 |
nicklas |
86 |
<% |
4993 |
02 Oct 18 |
nicklas |
87 |
} |
4993 |
02 Oct 18 |
nicklas |
88 |
%> |
4993 |
02 Oct 18 |
nicklas |
89 |
<tr class="dynamic"> |
4993 |
02 Oct 18 |
nicklas |
90 |
<th class="subprompt"></th> |
4993 |
02 Oct 18 |
nicklas |
91 |
<td> |
4993 |
02 Oct 18 |
nicklas |
92 |
<% |
4993 |
02 Oct 18 |
nicklas |
93 |
if (numDoNotUse > 0) |
4993 |
02 Oct 18 |
nicklas |
94 |
{ |
4993 |
02 Oct 18 |
nicklas |
95 |
%> |
4993 |
02 Oct 18 |
nicklas |
96 |
<div class="messagecontainer note"> |
4993 |
02 Oct 18 |
nicklas |
97 |
There are <%=numDoNotUse%> items marked as DoNotUse. Please verify the publication of the report for those items. |
4993 |
02 Oct 18 |
nicklas |
98 |
</div> |
4993 |
02 Oct 18 |
nicklas |
99 |
<% |
4993 |
02 Oct 18 |
nicklas |
100 |
} |
4993 |
02 Oct 18 |
nicklas |
101 |
%> |
4993 |
02 Oct 18 |
nicklas |
102 |
</td> |
4993 |
02 Oct 18 |
nicklas |
103 |
</tr> |
3791 |
17 Mar 16 |
nicklas |
104 |
</table> |
3791 |
17 Mar 16 |
nicklas |
105 |
|
3791 |
17 Mar 16 |
nicklas |
106 |
</div> |
3791 |
17 Mar 16 |
nicklas |
107 |
</form> |
3791 |
17 Mar 16 |
nicklas |
108 |
|
3791 |
17 Mar 16 |
nicklas |
109 |
<base:buttongroup subclass="dialogbuttons" id="dialogbuttons"> |
3791 |
17 Mar 16 |
nicklas |
110 |
<base:button id="btnOk" title="Ok" /> |
3791 |
17 Mar 16 |
nicklas |
111 |
<base:button id="close" title="Cancel" /> |
3791 |
17 Mar 16 |
nicklas |
112 |
</base:buttongroup> |
3791 |
17 Mar 16 |
nicklas |
113 |
</base:body> |
3791 |
17 Mar 16 |
nicklas |
114 |
</base:page> |
3791 |
17 Mar 16 |
nicklas |
115 |
<% |
3791 |
17 Mar 16 |
nicklas |
116 |
} |
3791 |
17 Mar 16 |
nicklas |
117 |
finally |
3791 |
17 Mar 16 |
nicklas |
118 |
{ |
3791 |
17 Mar 16 |
nicklas |
119 |
if (dc != null) dc.close(); |
3791 |
17 Mar 16 |
nicklas |
120 |
} |
3791 |
17 Mar 16 |
nicklas |
121 |
%> |