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

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