extensions/net.sf.basedb.reggie/trunk/resources/mipsanalysis/align_confirm.jsp

Code
Comments
Other
Rev Date Author Line
5845 26 Feb 20 nicklas 1 <%@ page
5845 26 Feb 20 nicklas 2   pageEncoding="UTF-8"
5845 26 Feb 20 nicklas 3   session="false"
5845 26 Feb 20 nicklas 4   import="net.sf.basedb.core.User"
5845 26 Feb 20 nicklas 5   import="net.sf.basedb.core.DbControl"
5845 26 Feb 20 nicklas 6   import="net.sf.basedb.core.SessionControl"
5845 26 Feb 20 nicklas 7   import="net.sf.basedb.core.Application"
5845 26 Feb 20 nicklas 8   import="net.sf.basedb.clients.web.Base"  
5845 26 Feb 20 nicklas 9   import="net.sf.basedb.clients.web.util.HTML"  
5845 26 Feb 20 nicklas 10   import="net.sf.basedb.clients.web.extensions.ExtensionsControl"
5845 26 Feb 20 nicklas 11 %>
5845 26 Feb 20 nicklas 12 <%@ taglib prefix="base" uri="/WEB-INF/base.tld" %>
5845 26 Feb 20 nicklas 13 <%@ taglib prefix="p" uri="/WEB-INF/path.tld" %>
5845 26 Feb 20 nicklas 14 <%
5845 26 Feb 20 nicklas 15 final SessionControl sc = Base.getExistingSessionControl(request, "net.sf.basedb.reggie", true);
5845 26 Feb 20 nicklas 16 final String ID = sc.getId();
5845 26 Feb 20 nicklas 17 final float scale = Base.getScale(sc);
5845 26 Feb 20 nicklas 18 final String home = ExtensionsControl.getHomeUrl("net.sf.basedb.reggie");
5845 26 Feb 20 nicklas 19 DbControl dc = null;
5845 26 Feb 20 nicklas 20 try
5845 26 Feb 20 nicklas 21 {
5845 26 Feb 20 nicklas 22   dc = sc.newDbControl();
5845 26 Feb 20 nicklas 23   final User user = User.getById(dc, sc.getLoggedInUserId());
5845 26 Feb 20 nicklas 24 %>
5845 26 Feb 20 nicklas 25 <base:page type="default" >
5845 26 Feb 20 nicklas 26 <base:head 
5845 26 Feb 20 nicklas 27   scripts="~../reggie-2.js,~align_confirm.js" 
5845 26 Feb 20 nicklas 28   styles="path.css,~../css/reggie-2.css"
5845 26 Feb 20 nicklas 29   >
5845 26 Feb 20 nicklas 30 <style>
5845 26 Feb 20 nicklas 31 tr.highlight
5845 26 Feb 20 nicklas 32 {
5845 26 Feb 20 nicklas 33   border-top-width: 1px;
5845 26 Feb 20 nicklas 34   border-top-style: dotted;
5845 26 Feb 20 nicklas 35 }
5845 26 Feb 20 nicklas 36
5845 26 Feb 20 nicklas 37 #alignedSequencesTable
5845 26 Feb 20 nicklas 38 {
5845 26 Feb 20 nicklas 39   width: 100%; 
5845 26 Feb 20 nicklas 40   border-collapse: collapse;
5845 26 Feb 20 nicklas 41 }
5845 26 Feb 20 nicklas 42
5845 26 Feb 20 nicklas 43 #alignedSequencesTable thead
5845 26 Feb 20 nicklas 44 {
5845 26 Feb 20 nicklas 45   border-bottom-width: 1px;
5845 26 Feb 20 nicklas 46   border-top-width: 1px;
5845 26 Feb 20 nicklas 47 }
5845 26 Feb 20 nicklas 48
5845 26 Feb 20 nicklas 49 #alignedSequencesTable td
5845 26 Feb 20 nicklas 50 {
5845 26 Feb 20 nicklas 51   text-align: center;
5845 26 Feb 20 nicklas 52   min-width: 4.5em;
5845 26 Feb 20 nicklas 53 }
5845 26 Feb 20 nicklas 54
5845 26 Feb 20 nicklas 55 #alignedSequencesTable tbody td
5845 26 Feb 20 nicklas 56 {
5845 26 Feb 20 nicklas 57   padding-top: 1px;
5845 26 Feb 20 nicklas 58   padding-bottom: 1px;
5845 26 Feb 20 nicklas 59 }
5845 26 Feb 20 nicklas 60
5845 26 Feb 20 nicklas 61 #alignedSequencesTable .italic
5845 26 Feb 20 nicklas 62 {
5845 26 Feb 20 nicklas 63   font-style: italic;
5845 26 Feb 20 nicklas 64 }
5845 26 Feb 20 nicklas 65
5845 26 Feb 20 nicklas 66 #alignedSequencesTable .icon-col
5845 26 Feb 20 nicklas 67 {
5845 26 Feb 20 nicklas 68   width: 20px;
5845 26 Feb 20 nicklas 69   max-width: 20px;
5845 26 Feb 20 nicklas 70   min-width: 0;
5845 26 Feb 20 nicklas 71 }
5845 26 Feb 20 nicklas 72
5845 26 Feb 20 nicklas 73 .file-link
5845 26 Feb 20 nicklas 74 {
5845 26 Feb 20 nicklas 75   margin-left: 0.5em;
5845 26 Feb 20 nicklas 76 }
5845 26 Feb 20 nicklas 77
5845 26 Feb 20 nicklas 78 .comment input
5845 26 Feb 20 nicklas 79 {
5845 26 Feb 20 nicklas 80   width: 95%;
5845 26 Feb 20 nicklas 81   min-width: 20em;
5845 26 Feb 20 nicklas 82 }
5845 26 Feb 20 nicklas 83
5845 26 Feb 20 nicklas 84 </style>
5845 26 Feb 20 nicklas 85 </base:head>
5845 26 Feb 20 nicklas 86 <base:body>
5845 26 Feb 20 nicklas 87
5845 26 Feb 20 nicklas 88   <p:path><p:pathelement 
5845 26 Feb 20 nicklas 89     title="Reggie" href="<%="../index.jsp?ID="+ID%>" 
5845 26 Feb 20 nicklas 90     /><p:pathelement title="Confirm MIPs alignment" 
5845 26 Feb 20 nicklas 91     /></p:path>
5845 26 Feb 20 nicklas 92
5845 26 Feb 20 nicklas 93   <div class="content">
5845 26 Feb 20 nicklas 94   <form name="reggie" id="wizard" class="wizard">
5845 26 Feb 20 nicklas 95   
5845 26 Feb 20 nicklas 96   <div class="step" id="step-1">
5845 26 Feb 20 nicklas 97     <div class="step-no">1</div>
5845 26 Feb 20 nicklas 98     <div class="step-content">
5845 26 Feb 20 nicklas 99       
5845 26 Feb 20 nicklas 100       <div id="alignedSequences"></div>
5845 26 Feb 20 nicklas 101     
5845 26 Feb 20 nicklas 102       <table class="step-form topborder" id="delete-items" style="display: none;">
5845 26 Feb 20 nicklas 103       <tr>
5845 26 Feb 20 nicklas 104         <td class="prompt"></td>
5845 26 Feb 20 nicklas 105         <td class="input" style="text-align: right; vertical-align: middle;">
5845 26 Feb 20 nicklas 106           <label>Delete items created by failed jobs
5845 26 Feb 20 nicklas 107           <input type="checkbox" name="deleteItemsCreatedByFailedJobs" id="deleteItemsCreatedByFailedJobs" checked>
5845 26 Feb 20 nicklas 108           </label>
5845 26 Feb 20 nicklas 109         </td>
5845 26 Feb 20 nicklas 110         <td class="status" id="deleteItemsCreatedByFailedJobs.status"></td>
5845 26 Feb 20 nicklas 111         <td class="help">
5845 26 Feb 20 nicklas 112           <span id="deleteItemsCreatedByFailedJobs.message" class="message"></span>
5845 26 Feb 20 nicklas 113           Recommended! <b>AlignedSequences</b> items
5845 26 Feb 20 nicklas 114           created by failed jobs are deleted to avoid cluttering in the database.
5845 26 Feb 20 nicklas 115         </td>
5845 26 Feb 20 nicklas 116       </tr>
5845 26 Feb 20 nicklas 117       </table>
5845 26 Feb 20 nicklas 118     </div>
5845 26 Feb 20 nicklas 119   </div>
5845 26 Feb 20 nicklas 120       
5845 26 Feb 20 nicklas 121   <div id="wizard-status"></div>
5845 26 Feb 20 nicklas 122
5845 26 Feb 20 nicklas 123   <table class="navigation" id="navigation">
5845 26 Feb 20 nicklas 124   <tr>
5845 26 Feb 20 nicklas 125     <td><base:button id="gocancel" title="Cancel" /></td>
5845 26 Feb 20 nicklas 126     <td><base:button id="gonext" title="Next" image="<%=home+"/images/gonext.png"%>" /></td>
5845 26 Feb 20 nicklas 127     <td><base:button id="goregister" title="Register" image="<%=home+"/images/import.png"%>"  /></td>
5845 26 Feb 20 nicklas 128     <td><base:button id="gorestart" title="Restart" image="<%=home+"/images/goback.png"%>" /></td>
5845 26 Feb 20 nicklas 129     <td id="gonext-message" class="message"></td>
5845 26 Feb 20 nicklas 130   </tr>
5845 26 Feb 20 nicklas 131   </table>
5845 26 Feb 20 nicklas 132
5845 26 Feb 20 nicklas 133   </form>
5845 26 Feb 20 nicklas 134   </div>
5845 26 Feb 20 nicklas 135   
5845 26 Feb 20 nicklas 136 </base:body>
5845 26 Feb 20 nicklas 137 </base:page>
5845 26 Feb 20 nicklas 138 <%
5845 26 Feb 20 nicklas 139 }
5845 26 Feb 20 nicklas 140 finally
5845 26 Feb 20 nicklas 141 {
5845 26 Feb 20 nicklas 142   if (dc != null) dc.close();
5845 26 Feb 20 nicklas 143 }
5845 26 Feb 20 nicklas 144 %>