extensions/net.sf.basedb.reggie/trunk/resources/libprep/auto_select_rna.jsp

Code
Comments
Other
Rev Date Author Line
1803 18 Jan 13 nicklas 1 <%@ page
1803 18 Jan 13 nicklas 2   pageEncoding="UTF-8"
1803 18 Jan 13 nicklas 3   session="false"
1803 18 Jan 13 nicklas 4   import="net.sf.basedb.core.Application"
1803 18 Jan 13 nicklas 5   import="net.sf.basedb.core.User"
1803 18 Jan 13 nicklas 6   import="net.sf.basedb.core.DbControl"
1803 18 Jan 13 nicklas 7   import="net.sf.basedb.core.SessionControl"
1803 18 Jan 13 nicklas 8   import="net.sf.basedb.clients.web.Base"
1803 18 Jan 13 nicklas 9   import="net.sf.basedb.clients.web.util.HTML"
1803 18 Jan 13 nicklas 10   import="net.sf.basedb.clients.web.extensions.ExtensionsControl"
1803 18 Jan 13 nicklas 11   import="net.sf.basedb.util.Values"
1803 18 Jan 13 nicklas 12 %>
1803 18 Jan 13 nicklas 13 <%@ taglib prefix="base" uri="/WEB-INF/base.tld" %>
1803 18 Jan 13 nicklas 14 <%@ taglib prefix="p" uri="/WEB-INF/path.tld" %>
1803 18 Jan 13 nicklas 15 <%
3976 26 May 16 nicklas 16 final SessionControl sc = Base.getExistingSessionControl(request, "net.sf.basedb.reggie", true);
1803 18 Jan 13 nicklas 17 final String ID = sc.getId();
1803 18 Jan 13 nicklas 18 final float scale = Base.getScale(sc);
1803 18 Jan 13 nicklas 19 final String home = ExtensionsControl.getHomeUrl("net.sf.basedb.reggie");
1803 18 Jan 13 nicklas 20 DbControl dc = null;
1803 18 Jan 13 nicklas 21 try
1803 18 Jan 13 nicklas 22 {
1803 18 Jan 13 nicklas 23   dc = sc.newDbControl();
1803 18 Jan 13 nicklas 24   final User user = User.getById(dc, sc.getLoggedInUserId());
1803 18 Jan 13 nicklas 25   final String title = "Options for auto-selecting RNA";
2803 14 Oct 14 nicklas 26   
3832 07 Apr 16 nicklas 27   String protocolId = request.getParameter("protocol");
2803 14 Oct 14 nicklas 28   String requiredQuantity = request.getParameter("quantity");
2803 14 Oct 14 nicklas 29   int numToSelect = Values.getInt(request.getParameter("numToSelect"));
2803 14 Oct 14 nicklas 30   String ignore = request.getParameter("ignore");
1803 18 Jan 13 nicklas 31 %>
1803 18 Jan 13 nicklas 32 <base:page type="popup" title="<%=title%>">
2803 14 Oct 14 nicklas 33 <base:head 
2803 14 Oct 14 nicklas 34   scripts="~auto_select_rna.js,~../reggie-2.js"
2803 14 Oct 14 nicklas 35   styles="~../css/reggie-2.css"
2803 14 Oct 14 nicklas 36 />
2803 14 Oct 14 nicklas 37 <base:body>
2803 14 Oct 14 nicklas 38   <h1><%=title %></h1>
1803 18 Jan 13 nicklas 39
2803 14 Oct 14 nicklas 40   <form name="options" id="wizard" class="wizard">
1942 19 Apr 13 nicklas 41
2803 14 Oct 14 nicklas 42   <div id="page-data" class="datacontainer"
2803 14 Oct 14 nicklas 43     data-num-to-select="<%=numToSelect%>"
2803 14 Oct 14 nicklas 44     data-ignore="[<%=HTML.encodeTags(ignore)%>]"
3832 07 Apr 16 nicklas 45     data-protocol-id="<%=HTML.encodeTags(protocolId)%>"
2803 14 Oct 14 nicklas 46   ></div>
2143 19 Nov 13 nicklas 47
1803 18 Jan 13 nicklas 48   <div class="content bottomborder">
1803 18 Jan 13 nicklas 49   
2803 14 Oct 14 nicklas 50     <table class="fullform input100 step-form">
3270 23 Apr 15 nicklas 51     <tr class="big">
2906 07 Nov 14 nicklas 52       <th>Auto-select</th>
2906 07 Nov 14 nicklas 53       <td>
2906 07 Nov 14 nicklas 54         <label><input type="radio" name="preNormalized" id="preNormalized.0" value="0">RNA</label><br>
2906 07 Nov 14 nicklas 55         <label><input type="radio" name="preNormalized" id="preNormalized.1" value="1" checked>Pre-normalized RNA</label>
3270 23 Apr 15 nicklas 56         <br>
3270 23 Apr 15 nicklas 57         <select name="normalizationProtocol" id="normalizationProtocol"
3270 23 Apr 15 nicklas 58           class="required" style="margin-left: 20px; width: 20em;">
3270 23 Apr 15 nicklas 59         </select>    
2906 07 Nov 14 nicklas 60       </td>
2906 07 Nov 14 nicklas 61     </tr>
2906 07 Nov 14 nicklas 62     <tr>
2143 19 Nov 13 nicklas 63       <th>Start date</th>
2143 19 Nov 13 nicklas 64       <td>
2803 14 Oct 14 nicklas 65         <input type="text" name="startDate" id="startDate" style="width: 12em;" maxlength="10"
2143 19 Nov 13 nicklas 66           title="Enter start date in YYYYMMDD format">
2143 19 Nov 13 nicklas 67           <base:icon 
2803 14 Oct 14 nicklas 68             id="startDateCalendar"
2803 14 Oct 14 nicklas 69             subclass="auto-init"
2803 14 Oct 14 nicklas 70             data-auto-init="calendar"
2803 14 Oct 14 nicklas 71             data-textarea-id="startDate"
2803 14 Oct 14 nicklas 72             data-date-format="yyyyMMdd"
2143 19 Nov 13 nicklas 73             image="calendar.png" 
2143 19 Nov 13 nicklas 74             tooltip="Select a date from a calendar" 
2143 19 Nov 13 nicklas 75             tabindex="-1"
2143 19 Nov 13 nicklas 76           /> (empty = start from oldest)
2143 19 Nov 13 nicklas 77       </td>
2143 19 Nov 13 nicklas 78     </tr>
3270 23 Apr 15 nicklas 79     <tr class="big">
1803 18 Jan 13 nicklas 80       <th>Active filters</th>
1803 18 Jan 13 nicklas 81       <td>
1942 19 Apr 13 nicklas 82         <input type="checkbox" name="remainingQuantity" id="remainingQuantity" value="1" checked>
1945 19 Apr 13 nicklas 83           <label for="remainingQuantity">Remaining quantity</label> ≥ 
2803 14 Oct 14 nicklas 84             <input type="text" class="text required" name="quantity_regular" id="quantity_regular" 
2803 14 Oct 14 nicklas 85               style="width: 4em;" value="<%=HTML.encodeTags(requiredQuantity)%>"> µg<br>
1942 19 Apr 13 nicklas 86         <input type="checkbox" name="qualityScore" id="qualityScore" value="1" checked>
1945 19 Apr 13 nicklas 87           <label for="qualityScore">RQS/RIN</label> ≥ 
2803 14 Oct 14 nicklas 88             <input type="text" class="text required" name="quality_score" id="quality_score" 
2803 14 Oct 14 nicklas 89               style="width: 4em;" value="6"><br>
1803 18 Jan 13 nicklas 90       </td>
1803 18 Jan 13 nicklas 91     </tr>
1803 18 Jan 13 nicklas 92     <tr>
1889 27 Feb 13 nicklas 93       <th>Re-process</th>
1889 27 Feb 13 nicklas 94       <td>
1889 27 Feb 13 nicklas 95         <input type="checkbox" name="reProcess" id="reProcess" value="1" checked><label for="reProcess">Select RNA marked for re-process</label> (even if filter doesn't match)
1889 27 Feb 13 nicklas 96       </td>
1889 27 Feb 13 nicklas 97     </tr>
1889 27 Feb 13 nicklas 98     <tr>
1803 18 Jan 13 nicklas 99       <th>Flag</th>
1803 18 Jan 13 nicklas 100       <td>
1803 18 Jan 13 nicklas 101         <input type="checkbox" name="flag" id="flag" value="1" checked><label for="flag">Flag RNA not matching the filter</label>
1803 18 Jan 13 nicklas 102       </td>
1803 18 Jan 13 nicklas 103     </tr>
1803 18 Jan 13 nicklas 104     <tr class="dynamic">
1803 18 Jan 13 nicklas 105       <th></th>
1803 18 Jan 13 nicklas 106       <td>
2981 25 Nov 14 nicklas 107         
1803 18 Jan 13 nicklas 108       </td>
1803 18 Jan 13 nicklas 109     </tr>
1803 18 Jan 13 nicklas 110     </table>
1803 18 Jan 13 nicklas 111   
1803 18 Jan 13 nicklas 112   </div>
1803 18 Jan 13 nicklas 113   </form>
1803 18 Jan 13 nicklas 114   
2981 25 Nov 14 nicklas 115   <div id="wizard-status" style="position:absolute; top: 40%; left: 12em; right: 2em;"></div>
2981 25 Nov 14 nicklas 116   
1803 18 Jan 13 nicklas 117   <base:buttongroup subclass="dialogbuttons" id="dialogbuttons">
2803 14 Oct 14 nicklas 118     <base:button id="btnOk" title="Ok" />
2803 14 Oct 14 nicklas 119     <base:button id="close" title="Cancel" />
1803 18 Jan 13 nicklas 120   </base:buttongroup>
1803 18 Jan 13 nicklas 121 </base:body>
1803 18 Jan 13 nicklas 122 </base:page>
1803 18 Jan 13 nicklas 123 <%
1803 18 Jan 13 nicklas 124 }
1803 18 Jan 13 nicklas 125 finally
1803 18 Jan 13 nicklas 126 {
1803 18 Jan 13 nicklas 127   if (dc != null) dc.close();
1803 18 Jan 13 nicklas 128 }
1803 18 Jan 13 nicklas 129 %>