1 | <%@ page import="net.sf.basedb.core.*"%> |
---|
2 | <%@ page import="net.sf.basedb.clients.web.*"%> |
---|
3 | <%@ page import="net.sf.basedb.util.*"%> |
---|
4 | <%@ page import="java.util.*"%> |
---|
5 | |
---|
6 | <jsp:useBean id="inputDataBean" class="uk.ac.ebi.nugo.plugins.DataBean" scope="session"/> |
---|
7 | <!-- submits the form data back to the bean assuming that each form element is matched to a variable in the bean by the same name --> |
---|
8 | <jsp:setProperty name="inputDataBean" property="*"/> |
---|
9 | |
---|
10 | <% |
---|
11 | final SessionControl sc = Base.getExistingSessionControl(pageContext, true); |
---|
12 | final String ID = sc.getId(); |
---|
13 | final String requestId = request.getParameter("requestId"); |
---|
14 | |
---|
15 | //set the value of the zipfile in the bean -- this was chosen on the previous page but the bean does not seem to be picking it up there |
---|
16 | inputDataBean.setPath(request.getParameter("zipFile")); |
---|
17 | |
---|
18 | %> |
---|
19 | |
---|
20 | <html> |
---|
21 | <head> |
---|
22 | |
---|
23 | <link rel="stylesheet" type="text/css" href="<%= request.getContextPath()%>/plugins/uk/ac/ebi/nugo/plugins/styles.css" /> |
---|
24 | <link rel="stylesheet" type="text/css" href="/base/include/styles/main.css"> |
---|
25 | <link rel="stylesheet" type="text/css" href="/base/include/styles/size_m.css"> |
---|
26 | |
---|
27 | <script language="JavaScript" src="<%= request.getContextPath()%>/include/scripts/main.js" type="text/javascript"></script> |
---|
28 | <script language="JavaScript" type="text/javascript"> |
---|
29 | |
---|
30 | //submits form |
---|
31 | function submit() |
---|
32 | { |
---|
33 | |
---|
34 | //set the action value of the form according to what the user chose in the form |
---|
35 | var form =document.getElementById("dataMode"); |
---|
36 | |
---|
37 | if(document.getElementById("legacyDataYes").checked) |
---|
38 | { |
---|
39 | form.action="<%= request.getContextPath()%>/plugins/uk/ac/ebi/nugo/plugins/userchoice3.jsp"; |
---|
40 | } |
---|
41 | if(document.getElementById("legacyDataNo").checked) |
---|
42 | { |
---|
43 | form.action="<%= request.getContextPath()%>/plugins/uk/ac/ebi/nugo/plugins/submit.jsp"; |
---|
44 | } |
---|
45 | |
---|
46 | //submit the form |
---|
47 | form.submit(); |
---|
48 | } |
---|
49 | |
---|
50 | </script> |
---|
51 | |
---|
52 | </head> |
---|
53 | <body> |
---|
54 | |
---|
55 | <h1>Tab2MAGE Import Wizard -- Choose Data Mode</h1> |
---|
56 | <p> |
---|
57 | |
---|
58 | <form name="dataMode" id="dataMode" action=""> |
---|
59 | |
---|
60 | <input type="hidden" name="ID" value="<%=ID%>"> |
---|
61 | <input type="hidden"name="requestId" value="<%=requestId%>"> |
---|
62 | |
---|
63 | <table cellpadding="10" width="100%"> |
---|
64 | <tr> |
---|
65 | <td>Are you importing legacy data with pre-existing, named files?</td> |
---|
66 | <td class="input"> |
---|
67 | |
---|
68 | <table class="noBorder" cellpadding="4"> |
---|
69 | <tr> |
---|
70 | <td class="noBorder"><input type="radio" id="legacyDataYes" name="legacyData" value="yes"></td> |
---|
71 | <td class="noBorder">yes</td> |
---|
72 | </tr> |
---|
73 | |
---|
74 | <tr> |
---|
75 | <td class="noBorder"><input type="radio" id="legacyDataNo" name="legacyData" value="no"></td> |
---|
76 | <td class="noBorder">no</td> |
---|
77 | </tr> |
---|
78 | </table> |
---|
79 | |
---|
80 | </td> |
---|
81 | </tr> |
---|
82 | </table> |
---|
83 | |
---|
84 | <p>If you choose 'yes' you will be asked for mappings between filenames, samples and factor value combinations on the next pages. |
---|
85 | </p> |
---|
86 | <p>If you choose 'no' the Tab2MAGE importer will autogenerate names for files and samples on your behalf and proceed with the import automatically. |
---|
87 | </p> |
---|
88 | |
---|
89 | </form> |
---|
90 | |
---|
91 | <table align="center" class="noBorder" cellspacing="5" cellpadding="5"> |
---|
92 | <tr class="noBorder"> |
---|
93 | <td id="next" width="50%" style="border-style: none;"><div class="buttons" onmouseover="this.className='buttons_hover';" onmouseout="this.className='buttons';" onclick="submit()"><div class="buttons_inner"><table class="noBorder" cellspacing="0" cellpadding="0"><tr class="noBorder"><td style="border-style: none;"><img src="/base/images/gonext.gif" border="0"></td><td style="border-style: none;">Next</td></tr></table></div></div></td> |
---|
94 | <td id="close" width="50%" style="border-style: none;"><div class="buttons" onmouseover="this.className='buttons_hover';" onmouseout="this.className='buttons';" onclick="window.close()"><div class="buttons_inner"><table class="noBorder" cellspacing="0" cellpadding="0"><tr class="noBorder"><td style="border-style: none;"><img src="/base/images/cancel.gif" border="0"></td><td style="border-style: none;">Cancel</td></tr></table></div></div></td> </tr> |
---|
95 | </table> |
---|
96 | |
---|
97 | |
---|
98 | </body> |
---|
99 | </html> |
---|