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

Last change on this file since 539 was 539, checked in by mbayer, 14 years ago

forgot to add new files -- now added

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<html>
17<head>
18
19<link rel="stylesheet" type="text/css" href="<%= request.getContextPath()%>/plugins/uk/ac/ebi/nugo/plugins/styles.css" />
20<link rel="stylesheet" type="text/css" href="/base/include/styles/main.css">
21<link rel="stylesheet" type="text/css" href="/base/include/styles/size_m.css">
22
23<script language="JavaScript" src="<%= request.getContextPath()%>/include/scripts/main.js" type="text/javascript"></script>
24<script language="JavaScript" type="text/javascript">
25
26//submits form
27function submit()
28{
29
30  //set the action value of the form according to what the user chose in the form
31  var form =document.getElementById("importerMode");
32 
33  if(document.getElementById("useWizardYes").checked)
34  {
35    form.action="<%= request.getContextPath()%>/plugins/uk/ac/ebi/nugo/plugins/configureImporter.jsp";
36  }
37  if(document.getElementById("useWizardNo").checked)
38  {
39    form.action="<%= request.getContextPath()%>/plugins/uk/ac/ebi/nugo/plugins/experiment.jsp";
40  }
41
42  //submit the form
43  form.submit();
44}
45
46</script>
47
48</head>
49<body>
50
51<h1>Tab2MAGE Importer -- Choose Import Mode</h1>
52<p>
53
54<form name="importerMode" id="importerMode" action="">
55
56<input type="hidden" name="ID" value="<%=ID%>"> 
57<input type="hidden"name="requestId" value="<%=requestId%>"> 
58
59<table cellpadding="10">
60  <tr>
61    <td>Do you have an existing tab2mage file and would you like this to be used for importing your data into BASE?</td>
62    <td class="input">
63
64    <table class="noBorder" cellpadding="4">
65      <tr>
66        <td class="noBorder"><input type="radio" id="useWizardYes" name="useWizard" value="yes"></td>
67        <td class="noBorder">yes</td>
68      </tr>
69
70      <tr>
71        <td class="noBorder"><input type="radio" id="useWizardNo" name="useWizard" value="no"></td>
72        <td class="noBorder">no</td>
73      </tr>
74    </table>
75
76    </td>
77  </tr>
78</table>
79
80
81<p>If you choose 'yes' 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.
82</p>
83<p>If you choose 'no' 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
84automatically into BASE.
85</p>
86
87</form>
88
89  <table align="center" class="noBorder" cellspacing="5"  cellpadding="5">
90  <tr class="noBorder">
91    <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>
92    <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>
93  </table>
94
95
96</body>
97</html>
Note: See TracBrowser for help on using the repository browser.