source: branches/uk_ac_ebi_Tab2MageImporter/jsp/uk/ac/ebi/nugo/plugins/spreadsheetdata.jsp @ 547

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

number of issues fixed in UI

File size: 3.4 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  document.spreadSheetMappingsForm.submit();
30}
31
32</script>
33
34</head>
35<body>
36
37<h1>Tab2MAGE Import Wizard -- Enter Spreadsheet Data for Mappings</h1>
38
39<form name="spreadSheetMappingsForm" action="<%= request.getContextPath()%>/plugins/uk/ac/ebi/nugo/plugins/submit.jsp?ID=<%=ID%>" method="post">
40
41<input type="hidden" name="ID" value="<%=ID%>"> 
42<input type="hidden"name="requestId" value="<%=requestId%>"> 
43
44<p>
45<ul>
46<li>Please provide your mappings between file names, samples and factor value combinations by pasting a block of data copied
47from a spreadsheet program (e.g. Excel etc.) into the text box below.
48<p>
49<li>It is assumed that the columns are tab separated. Please make sure that your spreadsheet program supports this.
50<p>
51<li>Columns must be in the order as below and the column headers must be exactly as follows (please replace 'myFactorName1' etc. with your actual factor names):<p>
52<b>
53File&nbsp;&nbsp;&nbsp;Subject&nbsp;&nbsp;&nbsp;Tissue&nbsp;&nbsp;&nbsp;FactorValue[myFactorName1]&nbsp;&nbsp;&nbsp;FactorValue[myFactorName2]&nbsp;&nbsp;&nbsp;etc....
54</b></p>
55</ul>
56</p>
57<hr/>
58<p align="center"><h3>Paste your copied mappings here:</h3></p>
59<p align="center">
60<textarea name="spreadSheetMappings" cols="90" rows="25"></textarea>
61</p>
62
63
64
65  <table align="center" class="noBorder" cellspacing="5"  cellpadding="5">
66  <tr class="noBorder">
67    <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;">Submit</td></tr></table></div></div></td>
68    <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>
69  </table>
70 
71  </form>
72
73
74</body>
75</html>
Note: See TracBrowser for help on using the repository browser.