3412 |
22 Jun 15 |
olle |
1 |
<%@ page |
3412 |
22 Jun 15 |
olle |
2 |
pageEncoding="UTF-8" |
3412 |
22 Jun 15 |
olle |
3 |
session="false" |
3412 |
22 Jun 15 |
olle |
4 |
import="net.sf.basedb.core.User" |
3412 |
22 Jun 15 |
olle |
5 |
import="net.sf.basedb.core.BioPlate" |
3412 |
22 Jun 15 |
olle |
6 |
import="net.sf.basedb.core.DbControl" |
3412 |
22 Jun 15 |
olle |
7 |
import="net.sf.basedb.core.Item" |
3412 |
22 Jun 15 |
olle |
8 |
import="net.sf.basedb.core.ItemContext" |
3412 |
22 Jun 15 |
olle |
9 |
import="net.sf.basedb.core.SessionControl" |
3412 |
22 Jun 15 |
olle |
10 |
import="net.sf.basedb.core.Application" |
3412 |
22 Jun 15 |
olle |
11 |
import="net.sf.basedb.clients.web.Base" |
3412 |
22 Jun 15 |
olle |
12 |
import="net.sf.basedb.clients.web.extensions.ExtensionsControl" |
3412 |
22 Jun 15 |
olle |
13 |
import="net.sf.basedb.util.Values" |
3412 |
22 Jun 15 |
olle |
14 |
import="java.util.List" |
3412 |
22 Jun 15 |
olle |
15 |
%> |
3412 |
22 Jun 15 |
olle |
16 |
<%@ taglib prefix="base" uri="/WEB-INF/base.tld" %> |
3412 |
22 Jun 15 |
olle |
17 |
<%@ taglib prefix="p" uri="/WEB-INF/path.tld" %> |
3412 |
22 Jun 15 |
olle |
18 |
<% |
3412 |
22 Jun 15 |
olle |
19 |
final SessionControl sc = Base.getExistingSessionControl(request, true); |
3412 |
22 Jun 15 |
olle |
20 |
final String ID = sc.getId(); |
3412 |
22 Jun 15 |
olle |
21 |
final float scale = Base.getScale(sc); |
3412 |
22 Jun 15 |
olle |
22 |
final String home = ExtensionsControl.getHomeUrl("net.sf.basedb.meludi"); |
3412 |
22 Jun 15 |
olle |
23 |
DbControl dc = null; |
3412 |
22 Jun 15 |
olle |
24 |
try |
3412 |
22 Jun 15 |
olle |
25 |
{ |
3412 |
22 Jun 15 |
olle |
26 |
dc = sc.newDbControl(); |
3412 |
22 Jun 15 |
olle |
27 |
final User user = User.getById(dc, sc.getLoggedInUserId()); |
3412 |
22 Jun 15 |
olle |
28 |
%> |
3412 |
22 Jun 15 |
olle |
29 |
<base:page type="default" > |
3412 |
22 Jun 15 |
olle |
30 |
<base:head |
3412 |
22 Jun 15 |
olle |
31 |
scripts="~../meludi-2.js,~extramaterial.js" |
3412 |
22 Jun 15 |
olle |
32 |
styles="path.css,~../css/meludi-2.css" |
3412 |
22 Jun 15 |
olle |
33 |
> |
3412 |
22 Jun 15 |
olle |
34 |
</base:head> |
3412 |
22 Jun 15 |
olle |
35 |
<base:body> |
3412 |
22 Jun 15 |
olle |
36 |
|
3412 |
22 Jun 15 |
olle |
37 |
<p:path><p:pathelement |
3412 |
22 Jun 15 |
olle |
38 |
title="" href="<%="../index.jsp?ID="+ID%>" |
3412 |
22 Jun 15 |
olle |
39 |
/><p:pathelement title="Extra material registration" |
3412 |
22 Jun 15 |
olle |
40 |
/></p:path> |
3412 |
22 Jun 15 |
olle |
41 |
|
3412 |
22 Jun 15 |
olle |
42 |
<div class="content"> |
3412 |
22 Jun 15 |
olle |
43 |
|
3412 |
22 Jun 15 |
olle |
44 |
<form name="meludi" id="wizard" class="wizard"> |
3412 |
22 Jun 15 |
olle |
45 |
|
3412 |
22 Jun 15 |
olle |
46 |
<div class="step" id="step-1"> |
3412 |
22 Jun 15 |
olle |
47 |
<div class="step-no">1</div> |
3412 |
22 Jun 15 |
olle |
48 |
<div class="step-title">Enter number of extra material to register</div> |
3412 |
22 Jun 15 |
olle |
49 |
<div class="step-content"> |
3412 |
22 Jun 15 |
olle |
50 |
|
3412 |
22 Jun 15 |
olle |
51 |
<table class="step-form"> |
3412 |
22 Jun 15 |
olle |
52 |
<tr> |
3412 |
22 Jun 15 |
olle |
53 |
<td class="prompt">Number of extra material</td> |
3412 |
22 Jun 15 |
olle |
54 |
<td class="input"> |
3412 |
22 Jun 15 |
olle |
55 |
<input type="text" name="nofExtraMaterial" id="nofExtraMaterial" |
3412 |
22 Jun 15 |
olle |
56 |
class="required auto-init" data-auto-init="focus" data-next-focus="arrivalDate" |
3412 |
22 Jun 15 |
olle |
57 |
style="width: 12em;" maxlength="4" value="1"> |
3412 |
22 Jun 15 |
olle |
58 |
</td> |
3412 |
22 Jun 15 |
olle |
59 |
<td class="status" id="nofExtraMaterial.status"></td> |
3412 |
22 Jun 15 |
olle |
60 |
<td class="help"> |
3412 |
22 Jun 15 |
olle |
61 |
<span id="nofExtraMaterial.message" class="message"></span> |
3412 |
22 Jun 15 |
olle |
62 |
Number of extra material to register. |
3412 |
22 Jun 15 |
olle |
63 |
</td> |
3412 |
22 Jun 15 |
olle |
64 |
</tr> |
3412 |
22 Jun 15 |
olle |
65 |
<tr valign="top"> |
3412 |
22 Jun 15 |
olle |
66 |
<td class="prompt">Arrival date (default)</td> |
3412 |
22 Jun 15 |
olle |
67 |
<td class="input"> |
3412 |
22 Jun 15 |
olle |
68 |
<input type="text" name="arrivalDateDefault" id="arrivalDateDefault" |
3412 |
22 Jun 15 |
olle |
69 |
class="auto-init" data-auto-init="focus-on-enter" data-next-focus="gonext" |
3412 |
22 Jun 15 |
olle |
70 |
data-disallow-future-date="1" |
3412 |
22 Jun 15 |
olle |
71 |
style="width: 12em;" maxlength="10"> |
3412 |
22 Jun 15 |
olle |
72 |
<base:icon |
3412 |
22 Jun 15 |
olle |
73 |
id="arrivalDateCalendar" |
3412 |
22 Jun 15 |
olle |
74 |
subclass="auto-init" |
3412 |
22 Jun 15 |
olle |
75 |
data-auto-init="calendar" |
3412 |
22 Jun 15 |
olle |
76 |
data-textarea-id="arrivalDateDefault" |
3412 |
22 Jun 15 |
olle |
77 |
data-date-format="yyyyMMdd" |
3412 |
22 Jun 15 |
olle |
78 |
data-title="Arrival date" |
3412 |
22 Jun 15 |
olle |
79 |
image="calendar.png" |
3412 |
22 Jun 15 |
olle |
80 |
tooltip="Select a date from a calendar" |
3412 |
22 Jun 15 |
olle |
81 |
tabindex="-1" |
3412 |
22 Jun 15 |
olle |
82 |
/> |
3412 |
22 Jun 15 |
olle |
83 |
</td> |
3412 |
22 Jun 15 |
olle |
84 |
<td class="status" id="arrivalDateDefault.status"></td> |
3412 |
22 Jun 15 |
olle |
85 |
<td class="help"> |
3412 |
22 Jun 15 |
olle |
86 |
<span id="arrivalDateDefault.message" class="message"></span> |
3412 |
22 Jun 15 |
olle |
87 |
Default date when the specimen tubes arrived (YYYYMMDD or MMDD). If tubes arrived on different dates, enter these in next step. |
3412 |
22 Jun 15 |
olle |
88 |
</td> |
3412 |
22 Jun 15 |
olle |
89 |
</tr> |
3412 |
22 Jun 15 |
olle |
90 |
</table> |
3412 |
22 Jun 15 |
olle |
91 |
</div> |
3412 |
22 Jun 15 |
olle |
92 |
</div> |
3412 |
22 Jun 15 |
olle |
93 |
|
3412 |
22 Jun 15 |
olle |
94 |
<div class="step" id="step-2"> |
3412 |
22 Jun 15 |
olle |
95 |
<div class="step-no">2</div> |
3412 |
22 Jun 15 |
olle |
96 |
<div class="step-title">Enter information on extra material</div> |
3412 |
22 Jun 15 |
olle |
97 |
<div class="step-content"> |
3412 |
22 Jun 15 |
olle |
98 |
|
3639 |
02 Dec 15 |
olle |
99 |
<div class="bg-filled-50" style="padding: 2px;"> |
3639 |
02 Dec 15 |
olle |
100 |
Name of extra material must fulfill the following conditions:<br> |
3639 |
02 Dec 15 |
olle |
101 |
<br> |
3639 |
02 Dec 15 |
olle |
102 |
1. The name may only contain letters, figures, underscores "_", and hyphens "-".<br> |
3639 |
02 Dec 15 |
olle |
103 |
2. The name must contain at least one letter.<br> |
3639 |
02 Dec 15 |
olle |
104 |
3. The name must not start with underscore "_" or hyphen "-".<br> |
4207 |
07 Nov 16 |
olle |
105 |
<div id="instructSamplePrefix">4. The name must not start with "ML", since that is reserved for MeLuDI items.<br></div> |
3639 |
02 Dec 15 |
olle |
106 |
</div> |
3412 |
22 Jun 15 |
olle |
107 |
<table id="extra-material" class="step-form"> |
3412 |
22 Jun 15 |
olle |
108 |
</table> |
3412 |
22 Jun 15 |
olle |
109 |
</div> |
3412 |
22 Jun 15 |
olle |
110 |
</div> |
3412 |
22 Jun 15 |
olle |
111 |
|
3412 |
22 Jun 15 |
olle |
112 |
<div id="wizard-status"></div> |
3412 |
22 Jun 15 |
olle |
113 |
|
3412 |
22 Jun 15 |
olle |
114 |
<table class="navigation" id="navigation"> |
3412 |
22 Jun 15 |
olle |
115 |
<tr> |
3412 |
22 Jun 15 |
olle |
116 |
<td><base:button id="gocancel" title="Cancel" /></td> |
3412 |
22 Jun 15 |
olle |
117 |
<td><base:button id="gonext" title="Next" image="<%=home+"/images/gonext.png"%>" /></td> |
3412 |
22 Jun 15 |
olle |
118 |
<td><base:button id="goregister" title="Register" image="<%=home+"/images/import.png"%>" /></td> |
3412 |
22 Jun 15 |
olle |
119 |
<td><base:button id="gorestart" title="Restart" image="<%=home+"/images/goback.png"%>" /></td> |
3412 |
22 Jun 15 |
olle |
120 |
<td><base:button id="gostop" title="Stop" image="cancel.png" /></td> |
3412 |
22 Jun 15 |
olle |
121 |
<td id="gonext-message" class="message"></td> |
3412 |
22 Jun 15 |
olle |
122 |
</tr> |
3412 |
22 Jun 15 |
olle |
123 |
</table> |
3412 |
22 Jun 15 |
olle |
124 |
|
3412 |
22 Jun 15 |
olle |
125 |
|
3412 |
22 Jun 15 |
olle |
126 |
</form> |
3412 |
22 Jun 15 |
olle |
127 |
</div> |
3412 |
22 Jun 15 |
olle |
128 |
|
3412 |
22 Jun 15 |
olle |
129 |
</base:body> |
3412 |
22 Jun 15 |
olle |
130 |
</base:page> |
3412 |
22 Jun 15 |
olle |
131 |
<% |
3412 |
22 Jun 15 |
olle |
132 |
} |
3412 |
22 Jun 15 |
olle |
133 |
finally |
3412 |
22 Jun 15 |
olle |
134 |
{ |
3412 |
22 Jun 15 |
olle |
135 |
if (dc != null) dc.close(); |
3412 |
22 Jun 15 |
olle |
136 |
} |
3412 |
22 Jun 15 |
olle |
137 |
%> |