source: extensions/net.sf.basedb.reggie/trunk/resources/personal/generate-referral-forms.jsp @ 6277

Last change on this file since 6277 was 6277, checked in by Nicklas Nordborg, 2 years ago

Merge Reggie 4.31.2 to the trunk.

File size: 4.2 KB
Line 
1<%@ page
2  pageEncoding="UTF-8"
3  session="false"
4  import="net.sf.basedb.core.Application"
5  import="net.sf.basedb.core.User"
6  import="net.sf.basedb.core.DbControl"
7  import="net.sf.basedb.core.SessionControl"
8  import="net.sf.basedb.clients.web.Base"
9  import="net.sf.basedb.clients.web.util.HTML"
10  import="net.sf.basedb.clients.web.extensions.ExtensionsControl"
11  import="net.sf.basedb.util.Values"
12%>
13<%@ taglib prefix="base" uri="/WEB-INF/base.tld" %>
14<%@ taglib prefix="p" uri="/WEB-INF/path.tld" %>
15<%
16final SessionControl sc = Base.getExistingSessionControl(request, "net.sf.basedb.reggie", true);
17final String ID = sc.getId();
18final float scale = Base.getScale(sc);
19final String home = ExtensionsControl.getHomeUrl("net.sf.basedb.reggie");
20
21DbControl dc = null;
22try
23{
24  dc = sc.newDbControl();
25  final User user = User.getById(dc, sc.getLoggedInUserId());
26%>
27<base:page type="default" >
28<base:head 
29  scripts="~../reggie-2.js,~generate-referral-forms.js" 
30  styles="path.css,~../css/reggie-2.css,~export.css"
31>
32</base:head>
33<base:body>
34
35  <p:path><p:pathelement 
36    title="Reggie" href="<%="../index.jsp?ID="+ID%>" 
37    /><p:pathelement title="Referral ID generator" 
38    /></p:path>
39
40  <div class="content">
41    <form name="reggie" id="wizard" class="wizard">
42   
43    <div class="step" id="step-1">
44      <div class="step-no">1</div>
45      <div class="step-title">Enter info on the referral form batch to create</div>
46      <div class="step-content">
47   
48        <table class="step-form">
49        <tr>
50          <td class="prompt">Site</td>
51          <td class="input">
52            <select id="site" name="site" style="width: 15em;"></select>
53          </td>
54          <td class="status" id="site.status"></td>
55          <td class="help">
56            <span id="site.message" class="message"></span>
57            Select the site to generate referral ID values for.
58          </td>
59        </tr>
60        <tr>
61          <td class="prompt">Kit type</td>
62          <td class="input">
63            <label><input type="radio" name="kitType" id="kitTypeStandard" value="standard" checked>Standard</label><br>
64            <label><input type="radio" name="kitType" id="kitTypeNeo" value="neoadjuvant">Neo-adjuvant</label>
65          </td>
66          <td valign="top" class="status" id="kitType.status"></td>
67          <td class="help">
68            <span id="kitType.message" class="message"></span>
69            Select the type of kit.
70          </td>
71        </tr>
72        <tr>
73          <td class="prompt">Start number
74            <span id="sitePrefix" style="float: right; font-weight: normal;">00 -</span>
75          </td>
76          <td class="input">
77            <input type="text" name="startNumber" id="startNumber"
78            class="required auto-init" data-auto-init="focus-on-enter" data-next-focus="numKits"
79            style="width: 6em;" maxlength="5">
80            <span id="viewLogFile" class="link" style="display: none;" 
81              title="Opens in a new window">View log file</span>
82            </td>
83          <td class="status" id="startNumber.status"></td>
84          <td class="help">
85            <span id="startNumber.message" class="message"></span>
86            Enter the 5-digit number of the first referral ID. The site prefix
87            is automatically added to create a 7-digit SCAN-B ID.
88          </td>
89        </tr>
90        <tr>
91          <td class="prompt">Number of kits</td>
92          <td class="input"><input type="text" name="numKits" id="numKits"
93            class="required" style="width: 6em;" maxlength="3"> (max 100)</td>
94          <td class="status" id="numKits.status"></td>
95          <td class="help">
96            <span id="numKits.message" class="message"></span>
97            Number of referral kits to generate.
98          </td>
99        </tr>
100        </table>
101 
102      </div>
103    </div>
104 
105    <div id="wizard-status"></div>
106    <div id="wizard-progress"></div>
107 
108    <table class="navigation" id="navigation">
109    <tr>
110      <td><base:button id="gorestart" title="Restart" image="<%=home+"/images/goback.png"%>" /></td>
111      <td><base:button id="gopreview" title="Preview" image="<%=home+"/images/export.png"%>" /></td>
112      <td><base:button id="goregister" title="Register" image="<%=home+"/images/gonext.png"%>" /></td>
113      <td id="gonext-message" class="message"></td>
114    </tr>
115    </table>
116   
117    </form>
118 
119    <div id="previewWrapper" style="display: none; top: 13em;">
120      <div id="previewList"></div>
121    </div>
122 
123  </div>
124 
125</base:body>
126</base:page>
127<%
128}
129finally
130{
131  if (dc != null) dc.close();
132}
133%>
Note: See TracBrowser for help on using the repository browser.