source: branches/uk_ac_ebi_Tab2MageImporter/jsp/uk/ac/ebi/nugo/plugins/userchoice3.jsp @ 543

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

submit mechanism has been changed to interactive -- submit.jsp now requires user to review and accept the current set of parameter values; this is because jsp forwarding was causing endless problems

File size: 3.7 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("mappingsMode");
32 
33  if(document.getElementById("mappingsModeManual").checked)
34  {
35    form.action="<%= request.getContextPath()%>/plugins/uk/ac/ebi/nugo/plugins/mappings.jsp?ID=<%=ID%>";
36  }
37  if(document.getElementById("mappingsModePaste").checked)
38  {
39    form.action="<%= request.getContextPath()%>/plugins/uk/ac/ebi/nugo/plugins/spreadsheetdata.jsp?ID=<%=ID%>";
40  }
41
42  //submit the form
43  form.submit();
44}
45
46</script>
47
48</head>
49<body>
50
51<h1>Tab2MAGE Import Wizard -- Choose Mappings Mode</h1>
52<p>
53
54<form name="mappingsMode" id="mappingsMode" 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>Please indicate how you would like to provide the mappings between file names, samples and factor value combinations:</td>
62    <td class="input">
63
64    <table class="noBorder" cellpadding="4">
65
66      <tr>
67        <td class="noBorder"><input type="radio" id="mappingsModeManual" name="mappingsMode" value="manualSelect" ></td>
68        <td class="noBorder">manually configure the mappings using a table with drop down boxes</td>
69      </tr>
70
71      <tr>
72        <td class="noBorder" colspan="2">OR</td>
73      </tr>
74
75      <tr>
76        <td class="noBorder"><input type="radio" id="mappingsModePaste" name="mappingsMode" value="copyPaste" ></td>
77        <td class="noBorder">copy and paste a block of existing mappings from a spreadsheet</td>
78      </tr>
79    </table>
80
81
82    </td>
83  </tr>
84</table>
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.