extensions/net.sf.basedb.meludi/trunk/resources/personal/baseline_from_file_alt_rec.jsp

Code
Comments
Other
Rev Date Author Line
5000 03 Oct 18 olle 1 <%@ page
5000 03 Oct 18 olle 2   pageEncoding="UTF-8"
5000 03 Oct 18 olle 3   session="false"
5000 03 Oct 18 olle 4   import="net.sf.basedb.core.Application"
5000 03 Oct 18 olle 5   import="net.sf.basedb.core.User"
5000 03 Oct 18 olle 6   import="net.sf.basedb.core.DbControl"
5000 03 Oct 18 olle 7   import="net.sf.basedb.core.SessionControl"
5000 03 Oct 18 olle 8   import="net.sf.basedb.clients.web.Base"
5000 03 Oct 18 olle 9   import="net.sf.basedb.clients.web.util.HTML"
5000 03 Oct 18 olle 10   import="net.sf.basedb.clients.web.extensions.ExtensionsControl"
5000 03 Oct 18 olle 11   import="net.sf.basedb.util.Values"
5000 03 Oct 18 olle 12 %>
5000 03 Oct 18 olle 13 <%@ taglib prefix="base" uri="/WEB-INF/base.tld" %>
5000 03 Oct 18 olle 14 <%@ taglib prefix="p" uri="/WEB-INF/path.tld" %>
5000 03 Oct 18 olle 15 <%
5000 03 Oct 18 olle 16 final SessionControl sc = Base.getExistingSessionControl(request, true);
5000 03 Oct 18 olle 17 final String ID = sc.getId();
5000 03 Oct 18 olle 18 final float scale = Base.getScale(sc);
5000 03 Oct 18 olle 19 final String home = ExtensionsControl.getHomeUrl("net.sf.basedb.meludi");
5000 03 Oct 18 olle 20 DbControl dc = null;
5000 03 Oct 18 olle 21 try
5000 03 Oct 18 olle 22 {
5000 03 Oct 18 olle 23   dc = sc.newDbControl();
5000 03 Oct 18 olle 24   final User user = User.getById(dc, sc.getLoggedInUserId());
5000 03 Oct 18 olle 25 %>
5000 03 Oct 18 olle 26 <base:page type="default" >
5000 03 Oct 18 olle 27 <base:head 
5000 03 Oct 18 olle 28   scripts="~../meludi-2.js,~baseline_from_file_alt_rec.js,~../sampleproc/extraction_utils.js" 
5000 03 Oct 18 olle 29   styles="path.css,~../css/meludi-2.css" 
5000 03 Oct 18 olle 30 />
5000 03 Oct 18 olle 31 <base:body>
5000 03 Oct 18 olle 32
5000 03 Oct 18 olle 33   <p:path><p:pathelement
5000 03 Oct 18 olle 34     title="" href="<%="../index.jsp?ID="+ID%>" 
5000 03 Oct 18 olle 35     /><p:pathelement title="BASE-line registration" 
5000 03 Oct 18 olle 36     /></p:path>
5000 03 Oct 18 olle 37
5000 03 Oct 18 olle 38   <div class="content">
5000 03 Oct 18 olle 39   <form name="meludi" id="wizard" class="wizard">
5149 28 Nov 18 olle 40     <input type="hidden" name="baseLineFile.id" value="">
5149 28 Nov 18 olle 41
5000 03 Oct 18 olle 42   <!-- 1. BASE-line registration from CSV file -->
5000 03 Oct 18 olle 43   <div class="step" id="step-1">
5000 03 Oct 18 olle 44     <div class="step-no">1</div>
5000 03 Oct 18 olle 45     <div class="step-title" id="step-1-title">Enter CSV file with BASE-line data</div>
5000 03 Oct 18 olle 46     <div class="step-content">
5000 03 Oct 18 olle 47     
5000 03 Oct 18 olle 48       <table class="step-form">
5000 03 Oct 18 olle 49       <tr>
5000 03 Oct 18 olle 50         <td class="prompt">BASE-line CSV file</td>
5000 03 Oct 18 olle 51         <td class="input">
5149 28 Nov 18 olle 52           <table style="width: 100%;">
5149 28 Nov 18 olle 53           <tr>
5149 28 Nov 18 olle 54           <td>
5149 28 Nov 18 olle 55             <input class="text required" type="text" name="baseLineFile" id="baseLineFile" 
5149 28 Nov 18 olle 56               data-subtype="BASE_LINE_CSV" data-name-filter="%.csv"
5149 28 Nov 18 olle 57               data-directory="/home/SCAN-B-rec/BaselineFiles"
5149 28 Nov 18 olle 58             >
5149 28 Nov 18 olle 59           </td>
5149 28 Nov 18 olle 60           <td style="padding-left: 4px; width: 7em;">
5149 28 Nov 18 olle 61             <base:button 
5149 28 Nov 18 olle 62               title="Browse&hellip;"
5149 28 Nov 18 olle 63               id="baseLineFile.btn"
5149 28 Nov 18 olle 64             />
5149 28 Nov 18 olle 65           </td>
5149 28 Nov 18 olle 66           </tr>
5149 28 Nov 18 olle 67           </table>
5000 03 Oct 18 olle 68         </td>
5000 03 Oct 18 olle 69         <td class="status" id="baseLineFile.status"></td>
5000 03 Oct 18 olle 70         <td class="help">
5000 03 Oct 18 olle 71           <span id="baseLineFile.message" class="message"></span>
5149 28 Nov 18 olle 72           Select a tab-separated <b>BASE-line CSV file</b> containing BASE-line data.
5000 03 Oct 18 olle 73         </td>
5149 28 Nov 18 olle 74       </tr>      
5000 03 Oct 18 olle 75       </table>
5000 03 Oct 18 olle 76     </div>
5000 03 Oct 18 olle 77   </div>
5000 03 Oct 18 olle 78
5000 03 Oct 18 olle 79   <!-- 2. Blood registration -->
5000 03 Oct 18 olle 80   <div class="step" id="step-2">
5000 03 Oct 18 olle 81     <div class="step-no">2</div>
5000 03 Oct 18 olle 82     <div class="step-title" id="step-2-title">Blood tube information</div>
5000 03 Oct 18 olle 83     <div class="step-content">
5000 03 Oct 18 olle 84     
5000 03 Oct 18 olle 85       <table id="blood-tubes" class="step-form">
5000 03 Oct 18 olle 86       </table>
5000 03 Oct 18 olle 87     </div>
5000 03 Oct 18 olle 88   </div>
5000 03 Oct 18 olle 89
5000 03 Oct 18 olle 90   <div id="wizard-status"></div>
5000 03 Oct 18 olle 91
5000 03 Oct 18 olle 92   <table class="navigation" id="navigation">
5000 03 Oct 18 olle 93   <tr>
5000 03 Oct 18 olle 94     <td><base:button id="gocancel" title="Cancel" /></td>
5000 03 Oct 18 olle 95     <td><base:button id="gonext" title="Next" image="<%=home+"/images/gonext.png"%>" /></td>
5000 03 Oct 18 olle 96     <td><base:button id="goregister" title="Register" image="<%=home+"/images/gonext.png"%>" /></td>
5000 03 Oct 18 olle 97     <td><base:button id="goupdate" title="Update" image="<%=home+"/images/gonext.png"%>" /></td>
5000 03 Oct 18 olle 98     <td><base:button id="gorestart" title="Restart" image="<%=home+"/images/goback.png"%>" /></td>
5000 03 Oct 18 olle 99 <!--
5000 03 Oct 18 olle 100     <td><base:button id="downloadformbatch2" title="Download form batch file 2" image="<%=home+"/images/download.png"%>" /></td>
5000 03 Oct 18 olle 101 -->
5000 03 Oct 18 olle 102     <td id="gonext-message" class="message"></td>
5000 03 Oct 18 olle 103   </tr>
5000 03 Oct 18 olle 104   </table>
5000 03 Oct 18 olle 105     
5000 03 Oct 18 olle 106   </form>
5000 03 Oct 18 olle 107   </div>
5000 03 Oct 18 olle 108   
5000 03 Oct 18 olle 109 </base:body>
5000 03 Oct 18 olle 110 </base:page>
5000 03 Oct 18 olle 111 <%
5000 03 Oct 18 olle 112 }
5000 03 Oct 18 olle 113 finally
5000 03 Oct 18 olle 114 {
5000 03 Oct 18 olle 115   if (dc != null) dc.close();
5000 03 Oct 18 olle 116 }
5000 03 Oct 18 olle 117 %>