source: branches/uk_ac_ebi_Tab2MageImporter/jsp/uk/ac/ebi/nugo/plugins/userchoice1.jsp @ 544

Last change on this file since 544 was 544, checked in by mbayer, 13 years ago

submission with existing tab2mage file implemented

File size: 3.8 KB
Line 
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<%
11final SessionControl sc = Base.getExistingSessionControl(pageContext, true);
12final String ID = sc.getId();
13final String requestId = request.getParameter("requestId");
14
15 %>
16 
17<html>
18<head>
19
20<link rel="stylesheet" type="text/css" href="<%= request.getContextPath()%>/plugins/uk/ac/ebi/nugo/plugins/styles.css" />
21<link rel="stylesheet" type="text/css" href="/base/include/styles/main.css">
22<link rel="stylesheet" type="text/css" href="/base/include/styles/size_m.css">
23
24<script language="JavaScript" src="<%= request.getContextPath()%>/include/scripts/main.js" type="text/javascript"></script>
25<script language="JavaScript" type="text/javascript">
26
27//submits form
28function submit()
29{
30
31  //set the action value of the form according to what the user chose in the form
32  var form =document.getElementById("importerMode");
33 
34  if(document.getElementById("useWizardNo").checked)
35  {
36    form.action="<%= request.getContextPath()%>/plugins/uk/ac/ebi/nugo/plugins/configureImporter.jsp?ID=<%=ID%>";
37  }
38  if(document.getElementById("useWizardYes").checked)
39  {
40    form.action="<%= request.getContextPath()%>/plugins/uk/ac/ebi/nugo/plugins/experiment.jsp?ID=<%=ID%>";
41  }
42
43  //submit the form
44  form.submit();
45}
46
47</script>
48
49</head>
50<body>
51
52<h1>Tab2MAGE Importer -- Choose Import Mode</h1>
53<p>
54
55<form name="importerMode" id="importerMode" action="">
56
57<input type="hidden" name="ID" value="<%=ID%>"> 
58<input type="hidden"name="requestId" value="<%=requestId%>"> 
59
60<table cellpadding="10">
61  <tr>
62    <td>Would you like the Tab2MAGE Wizard to generate a Tab2MAGE file for you?</td>
63    <td class="input">
64
65    <table class="noBorder" cellpadding="4">
66      <tr>
67        <td class="noBorder"><input type="radio" id="useWizardYes" name="useWizard" value="yes"></td>
68        <td class="noBorder">yes</td>
69      </tr>
70
71      <tr>
72        <td class="noBorder"><input type="radio" id="useWizardNo" name="useWizard" value="no"></td>
73        <td class="noBorder">no</td>
74      </tr>
75    </table>
76
77    </td>
78  </tr>
79</table>
80
81<p>If you choose 'yes' the Tab2MAGE Wizard will first assist you in gathering the information required for full Tab2MAGE/MIAME compliant experimental data and your data will then be imported
82automatically into BASE.</p>
83<p>If you choose 'no' you will simply have to provide a zip file containing your raw data files and a Tab2MAGE file, and the import of your data will proceed automatically.
84</p>
85
86</form>
87
88  <table align="center" class="noBorder" cellspacing="5"  cellpadding="5">
89  <tr class="noBorder">
90    <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>
91    <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>
92  </table>
93
94
95</body>
96</html>
Note: See TracBrowser for help on using the repository browser.