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

Code
Comments
Other
Rev Date Author Line
5060 29 Oct 18 olle 1 <%@ page
5060 29 Oct 18 olle 2   pageEncoding="UTF-8"
5060 29 Oct 18 olle 3   session="false"
5060 29 Oct 18 olle 4   import="net.sf.basedb.core.User"
5060 29 Oct 18 olle 5   import="net.sf.basedb.core.DbControl"
5060 29 Oct 18 olle 6   import="net.sf.basedb.core.SessionControl"
5060 29 Oct 18 olle 7   import="net.sf.basedb.core.Application"
5060 29 Oct 18 olle 8   import="net.sf.basedb.util.formatter.DateFormatter"
5060 29 Oct 18 olle 9   import="net.sf.basedb.util.formatter.Formatter"
5060 29 Oct 18 olle 10   import="net.sf.basedb.clients.web.Base"  
5060 29 Oct 18 olle 11   import="net.sf.basedb.clients.web.util.HTML"  
5060 29 Oct 18 olle 12   import="net.sf.basedb.clients.web.extensions.ExtensionsControl"
5060 29 Oct 18 olle 13   import="java.util.Date"
5060 29 Oct 18 olle 14 %>
5060 29 Oct 18 olle 15 <%@ taglib prefix="base" uri="/WEB-INF/base.tld" %>
5060 29 Oct 18 olle 16 <%@ taglib prefix="p" uri="/WEB-INF/path.tld" %>
5060 29 Oct 18 olle 17 <%
5060 29 Oct 18 olle 18 final SessionControl sc = Base.getExistingSessionControl(request, true);
5060 29 Oct 18 olle 19 final String ID = sc.getId();
5060 29 Oct 18 olle 20 final float scale = Base.getScale(sc);
5060 29 Oct 18 olle 21 final String home = ExtensionsControl.getHomeUrl("net.sf.basedb.meludi");
5060 29 Oct 18 olle 22 DbControl dc = null;
5060 29 Oct 18 olle 23 try
5060 29 Oct 18 olle 24 {
5060 29 Oct 18 olle 25   dc = sc.newDbControl();
5060 29 Oct 18 olle 26   final User user = User.getById(dc, sc.getLoggedInUserId());
5060 29 Oct 18 olle 27   final Formatter dateFormat = new DateFormatter("yyyyMMdd");
5060 29 Oct 18 olle 28 %>
5060 29 Oct 18 olle 29 <base:page type="default" >
5060 29 Oct 18 olle 30 <base:head 
5060 29 Oct 18 olle 31   scripts="~../meludi-2.js,~ffpe_section_registration_alt_rec.js" 
5060 29 Oct 18 olle 32   styles="path.css,~../css/meludi-2.css"
5060 29 Oct 18 olle 33   >
5060 29 Oct 18 olle 34 <style>
5060 29 Oct 18 olle 35 tr.highlight
5060 29 Oct 18 olle 36 {
5060 29 Oct 18 olle 37   border-top-width: 1px;
5060 29 Oct 18 olle 38   border-top-style: dotted;
5060 29 Oct 18 olle 39 }
5060 29 Oct 18 olle 40
5060 29 Oct 18 olle 41 #detailsTable
5060 29 Oct 18 olle 42 {
5060 29 Oct 18 olle 43   width: 100%; 
5060 29 Oct 18 olle 44   border-collapse: collapse;
5060 29 Oct 18 olle 45   border-bottom-width: 1px;
5060 29 Oct 18 olle 46   border-top-width: 1px;
5060 29 Oct 18 olle 47 }
5060 29 Oct 18 olle 48
5060 29 Oct 18 olle 49 #detailsTable td, #detailsTable th
5060 29 Oct 18 olle 50 {
5060 29 Oct 18 olle 51   text-align: center;
5060 29 Oct 18 olle 52   min-width: 5%;
5060 29 Oct 18 olle 53   padding-top: 1px;
5060 29 Oct 18 olle 54   padding-bottom: 1px;
5060 29 Oct 18 olle 55 }
5060 29 Oct 18 olle 56
5060 29 Oct 18 olle 57 #detailsTable .comment
5060 29 Oct 18 olle 58 {
5060 29 Oct 18 olle 59   min-width: 10%;
5060 29 Oct 18 olle 60 }
5060 29 Oct 18 olle 61
5060 29 Oct 18 olle 62 #detailsTable .italic
5060 29 Oct 18 olle 63 {
5060 29 Oct 18 olle 64   font-style: italic;
5060 29 Oct 18 olle 65 }
5060 29 Oct 18 olle 66
5060 29 Oct 18 olle 67 .nondefault
5060 29 Oct 18 olle 68 {
5060 29 Oct 18 olle 69   background: #FFF066;
5060 29 Oct 18 olle 70 }
5060 29 Oct 18 olle 71 .nondefault:after
5060 29 Oct 18 olle 72 {
5060 29 Oct 18 olle 73   content: '›';
5060 29 Oct 18 olle 74 }
5060 29 Oct 18 olle 75 .nondefault:before
5060 29 Oct 18 olle 76 {
5060 29 Oct 18 olle 77   content: '‹';
5060 29 Oct 18 olle 78 }
5060 29 Oct 18 olle 79 span.status
5060 29 Oct 18 olle 80 {
5060 29 Oct 18 olle 81   width: 20px;
5060 29 Oct 18 olle 82   float: right;
5060 29 Oct 18 olle 83 }
5060 29 Oct 18 olle 84 </style>
5060 29 Oct 18 olle 85 </base:head>
5060 29 Oct 18 olle 86 <base:body>
5060 29 Oct 18 olle 87
5060 29 Oct 18 olle 88   <p:path><p:pathelement 
5060 29 Oct 18 olle 89     title="MeLuDi" href="<%="../index.jsp?ID="+ID%>" 
5060 29 Oct 18 olle 90     /><p:pathelement title="FFPE section (specimen) registration" 
5060 29 Oct 18 olle 91     /></p:path>
5060 29 Oct 18 olle 92
5060 29 Oct 18 olle 93   <div class="content">
5060 29 Oct 18 olle 94   <form name="meludi" id="wizard" class="wizard">
5060 29 Oct 18 olle 95
5060 29 Oct 18 olle 96   <div class="step auto-hide" id="step-1">
5060 29 Oct 18 olle 97     <div class="step-no">1</div>
5060 29 Oct 18 olle 98     <div class="step-title">Select sectioned FFPE block items to be registered</div>
5060 29 Oct 18 olle 99     <div class="step-content">
5060 29 Oct 18 olle 100   
5060 29 Oct 18 olle 101       <table class="step-form">
5060 29 Oct 18 olle 102       <tr class="align-top">
5060 29 Oct 18 olle 103         <td class="prompt">Sectioned FFPE blocks</td>
5060 29 Oct 18 olle 104         <td class="input">
5060 29 Oct 18 olle 105           <select name="extractSourceItems" id="extractSourceItems" class="yellow-label-support" multiple size="30"></select>
5060 29 Oct 18 olle 106         </td>
5060 29 Oct 18 olle 107         <td class="status" id="extractSourceItems.status"></td>
5060 29 Oct 18 olle 108         <td class="help">
5060 29 Oct 18 olle 109           <span id="extractSourceItems.message" class="message" ></span>
5060 29 Oct 18 olle 110           Select the items to be registered.
5060 29 Oct 18 olle 111         </td>
5060 29 Oct 18 olle 112       </tr>
5060 29 Oct 18 olle 113       </table>
5060 29 Oct 18 olle 114     </div>
5060 29 Oct 18 olle 115   </div>
5060 29 Oct 18 olle 116   
5060 29 Oct 18 olle 117   <!-- 2. FFPE section data -->
5060 29 Oct 18 olle 118   <div class="step" id="step-2">
5060 29 Oct 18 olle 119     <div class="step-no">2</div>
5060 29 Oct 18 olle 120     <div class="step-title">Enter FFPE section information</div>
5060 29 Oct 18 olle 121     <div class="step-content">
5060 29 Oct 18 olle 122     
5060 29 Oct 18 olle 123       <table id="ffpe-sections" class="step-form">
5060 29 Oct 18 olle 124       </table>
5060 29 Oct 18 olle 125     </div>
5060 29 Oct 18 olle 126   </div>
5060 29 Oct 18 olle 127
5060 29 Oct 18 olle 128   <div id="wizard-status"></div>
5060 29 Oct 18 olle 129   
5060 29 Oct 18 olle 130   <div id="not-found" style="display: none;" class="bg-filled-100 fullborder"></div>
5060 29 Oct 18 olle 131
5060 29 Oct 18 olle 132   <table class="navigation" id="navigation">
5060 29 Oct 18 olle 133   <tr>
5060 29 Oct 18 olle 134     <td><base:button id="gocancel" title="Cancel" /></td>
5060 29 Oct 18 olle 135     <td><base:button id="gonext" title="Next" image="<%=home+"/images/gonext.png"%>" /></td>
5060 29 Oct 18 olle 136     <td><base:button id="goregister" title="Register" image="<%=home+"/images/gonext.png"%>" /></td>
5060 29 Oct 18 olle 137     <td><base:button id="gorestart" title="Restart" image="<%=home+"/images/goback.png"%>" /></td>
5060 29 Oct 18 olle 138     <td id="gonext-message" class="message"></td>
5060 29 Oct 18 olle 139   </tr>
5060 29 Oct 18 olle 140   </table>
5060 29 Oct 18 olle 141   
5060 29 Oct 18 olle 142   </form>
5060 29 Oct 18 olle 143   </div>
5060 29 Oct 18 olle 144   
5060 29 Oct 18 olle 145 </base:body>
5060 29 Oct 18 olle 146 </base:page>
5060 29 Oct 18 olle 147 <%
5060 29 Oct 18 olle 148 }
5060 29 Oct 18 olle 149 finally
5060 29 Oct 18 olle 150 {
5060 29 Oct 18 olle 151   if (dc != null) dc.close();
5060 29 Oct 18 olle 152 }
5060 29 Oct 18 olle 153 %>