extensions/net.sf.basedb.reggie/trunk/resources/mipsprep/flowcell_protocol.jsp

Code
Comments
Other
Rev Date Author Line
5462 03 Jun 19 nicklas 1 <%@ page
5462 03 Jun 19 nicklas 2   pageEncoding="UTF-8"
5462 03 Jun 19 nicklas 3   session="false"
5462 03 Jun 19 nicklas 4   import="net.sf.basedb.core.User"
5462 03 Jun 19 nicklas 5   import="net.sf.basedb.core.DbControl"
5462 03 Jun 19 nicklas 6   import="net.sf.basedb.core.SessionControl"
5462 03 Jun 19 nicklas 7   import="net.sf.basedb.core.Application"
5462 03 Jun 19 nicklas 8   import="net.sf.basedb.clients.web.Base"  
5462 03 Jun 19 nicklas 9   import="net.sf.basedb.clients.web.util.HTML"  
5462 03 Jun 19 nicklas 10   import="net.sf.basedb.clients.web.extensions.ExtensionsControl"
5462 03 Jun 19 nicklas 11 %>
5462 03 Jun 19 nicklas 12 <%@ taglib prefix="base" uri="/WEB-INF/base.tld" %>
5462 03 Jun 19 nicklas 13 <%@ taglib prefix="p" uri="/WEB-INF/path.tld" %>
5462 03 Jun 19 nicklas 14 <%
5462 03 Jun 19 nicklas 15 final SessionControl sc = Base.getExistingSessionControl(request, "net.sf.basedb.reggie", true);
5462 03 Jun 19 nicklas 16 final String ID = sc.getId();
5462 03 Jun 19 nicklas 17 final String home = ExtensionsControl.getHomeUrl("net.sf.basedb.reggie");
5462 03 Jun 19 nicklas 18 DbControl dc = null;
5462 03 Jun 19 nicklas 19 try
5462 03 Jun 19 nicklas 20 {
5462 03 Jun 19 nicklas 21   dc = sc.newDbControl();
5462 03 Jun 19 nicklas 22   final User user = User.getById(dc, sc.getLoggedInUserId());
5462 03 Jun 19 nicklas 23 %>
5462 03 Jun 19 nicklas 24 <base:page type="default" >
5462 03 Jun 19 nicklas 25 <base:head 
5462 03 Jun 19 nicklas 26   scripts="~../reggie-2.js,~flowcell_protocol.js" 
5462 03 Jun 19 nicklas 27   styles="path.css,~../css/reggie-2.css"
5462 03 Jun 19 nicklas 28 />
5462 03 Jun 19 nicklas 29 <base:body>
5462 03 Jun 19 nicklas 30
5462 03 Jun 19 nicklas 31   <p:path><p:pathelement 
5462 03 Jun 19 nicklas 32     title="Reggie" href="<%="../index.jsp?ID="+ID%>" 
5462 03 Jun 19 nicklas 33     /><p:pathelement title="Lab protocol for sequencing" 
5462 03 Jun 19 nicklas 34     /></p:path>
5462 03 Jun 19 nicklas 35
5462 03 Jun 19 nicklas 36   <div class="content">
5462 03 Jun 19 nicklas 37
5462 03 Jun 19 nicklas 38   <form name="reggie" action="flowcell_protocol2.jsp" method="post" target="_blank" id="wizard" class="wizard">
5462 03 Jun 19 nicklas 39     <input type="hidden" name="ID" value="<%=ID%>">
5462 03 Jun 19 nicklas 40     <input type="hidden" name="flowcellidlist" value="">
5462 03 Jun 19 nicklas 41     <input type="hidden" name="numlaneslist" value="">
5462 03 Jun 19 nicklas 42   
5462 03 Jun 19 nicklas 43   <div class="step auto-hide" id="step-1">
5462 03 Jun 19 nicklas 44     <div class="step-no">1</div>
5462 03 Jun 19 nicklas 45     <div class="step-title">Select flow cells</div>
5462 03 Jun 19 nicklas 46     <div class="step-content">
5462 03 Jun 19 nicklas 47     
5462 03 Jun 19 nicklas 48       <table class="step-form">
5462 03 Jun 19 nicklas 49       <tr class="align-top">
5462 03 Jun 19 nicklas 50         <td class="prompt">Flow cells</td>
5462 03 Jun 19 nicklas 51         <td class="input">
5462 03 Jun 19 nicklas 52           <select class="required" name="flowcells" id="flowcells" multiple size="4"></select>
5462 03 Jun 19 nicklas 53         </td>
5462 03 Jun 19 nicklas 54         <td class="status" id="flowcells.status"></td>
5462 03 Jun 19 nicklas 55         <td class="help">
5462 03 Jun 19 nicklas 56           <span id="flowcells.message" class="message"></span>
5462 03 Jun 19 nicklas 57           Select one or more existing flow cells. The list contains all flow cells that
5462 03 Jun 19 nicklas 58           has not yet been sequenced (determined by the absence of a 'creation' date).
5462 03 Jun 19 nicklas 59         </td>
5462 03 Jun 19 nicklas 60       </tr>
5462 03 Jun 19 nicklas 61       </table>
5462 03 Jun 19 nicklas 62     </div>
5462 03 Jun 19 nicklas 63   </div>
5462 03 Jun 19 nicklas 64   
5462 03 Jun 19 nicklas 65   <div id="wizard-status"></div>
5462 03 Jun 19 nicklas 66   
5462 03 Jun 19 nicklas 67   <table class="navigation" id="navigation">
5462 03 Jun 19 nicklas 68   <tr>
5462 03 Jun 19 nicklas 69     <td><base:button id="gocreate" title="Create protocol" image="<%=home+"/images/import.png"%>"  /></td>
5462 03 Jun 19 nicklas 70     <td><base:button id="gorestart" title="Restart" image="<%=home+"/images/goback.png"%>" /></td>
5462 03 Jun 19 nicklas 71     <td id="gonext-message" class="message"></td>
5462 03 Jun 19 nicklas 72   </tr>
5462 03 Jun 19 nicklas 73   </table>
5462 03 Jun 19 nicklas 74   
5462 03 Jun 19 nicklas 75   </form>
5462 03 Jun 19 nicklas 76   </div>
5462 03 Jun 19 nicklas 77   
5462 03 Jun 19 nicklas 78 </base:body>
5462 03 Jun 19 nicklas 79 </base:page>
5462 03 Jun 19 nicklas 80 <%
5462 03 Jun 19 nicklas 81 }
5462 03 Jun 19 nicklas 82 finally
5462 03 Jun 19 nicklas 83 {
5462 03 Jun 19 nicklas 84   if (dc != null) dc.close();
5462 03 Jun 19 nicklas 85 }
5462 03 Jun 19 nicklas 86 %>