source: branches/uk_ac_ebi_Tab2MageImporter/jsp/uk/ac/ebi/nugo/plugins/submit.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: 7.8 KB
Line 
1<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
2<%@ page import="net.sf.basedb.core.*"%>
3<%@ page import="net.sf.basedb.clients.web.*"%>
4<%@ page import="net.sf.basedb.util.*"%>
5<%@ page import="uk.ac.ebi.nugo.plugins.*"%>
6<%@ page import="java.lang.reflect.*"%>
7
8
9<jsp:useBean id="inputDataBean" class="uk.ac.ebi.nugo.plugins.DataBean" scope="session" />
10
11<html>
12
13<head>
14
15<link rel="stylesheet" type="text/css" href="<%= request.getContextPath()%>/plugins/uk/ac/ebi/nugo/plugins/styles.css" />
16<link rel="stylesheet" type="text/css" href="/base/include/styles/main.css">
17<link rel="stylesheet" type="text/css" href="/base/include/styles/size_m.css">
18
19<script type="text/javascript">
20  //submits form
21  function submit()
22  {
23    document.paramValues.submit();
24  }
25</script>
26
27</head>
28
29<body>
30
31<h1>Tab2MAGE Import Wizard -- Summary</h1>
32<p>
33
34Please review the values you have entered and if you are happy with these, click 'Submit'.
35<p>
36
37<table cellpadding="5">
38
39  <tr>
40  <td>Parameter>
41  </td>
42  <td class="input">Value
43  </td>
44  </tr>
45
46<%
47  SessionControl sc = Base.getExistingSessionControl(pageContext, true);
48  String ID = sc.getId();
49  String requestId = request.getParameter("requestId");
50 
51
52  String [] paramNames = Tab2MageImporter.getParamNames();
53
54  //print out all current parameter values in the bean
55  Class cls = inputDataBean.getClass();
56  for (int i = 0; i < paramNames.length; i++)
57  {
58    Field field = cls.getDeclaredField(paramNames[i]);
59    String value = (String)field.get(inputDataBean);
60    String fieldName = field.getName();
61   
62    if(!value.trim().equals("default"))
63    {
64%>   
65 
66  <tr>
67  <td><%=fieldName %>
68  </td>
69  <td class="input"><%=value %>
70  </td>
71  </tr>
72   
73  <% 
74    }
75  } 
76%>
77
78</table>
79
80<form name="paramValues" id="paramValues" action="<%= request.getContextPath()%>/common/plugin/index.jsp" method="post">
81
82<input type="hidden"name="cmd" value="SetParameters"/>
83<input type="hidden" name="ID" value="<%=ID%>"/> 
84<input type="hidden" name="requestId" value="<%=requestId%>"/> 
85<input type="hidden"name="parameter:domain" value="<%=inputDataBean.getDomain()%>" />
86<input type="hidden"name="parameter:accession" value="<%=inputDataBean.getAccession()%>" />
87<input type="hidden"name="parameter:qualityControl" value="<%=inputDataBean.getQualityControl()%>" />
88<input type="hidden"name="parameter:experimentalDesign" value="<%=inputDataBean.getExperimentalDesign()%>" />
89<input type="hidden"name="parameter:experimentName" value="<%=inputDataBean.getExperimentName()%>" />
90<input type="hidden"name="parameter:description" value="<%=inputDataBean.getDescription()%>" />
91<input type="hidden"name="parameter:releaseDate" value="<%=inputDataBean.getReleaseDate()%>" />
92<input type="hidden"name="parameter:submissionDate" value="<%=inputDataBean.getSubmissionDate()%>" />
93<input type="hidden"name="parameter:submitter" value="<%=inputDataBean.getSubmitter()%>" />
94<input type="hidden"name="parameter:organization" value="<%=inputDataBean.getOrganization()%>" />
95<input type="hidden"name="parameter:publicationTitle" value="<%=inputDataBean.getPublicationTitle()%>" />
96<input type="hidden"name="parameter:authors" value="<%=inputDataBean.getAuthors()%>" />
97<input type="hidden"name="parameter:journal" value="<%=inputDataBean.getJournal()%>" />
98<input type="hidden"name="parameter:volume" value="<%=inputDataBean.getVolume()%>" />
99<input type="hidden"name="parameter:issue" value="<%=inputDataBean.getIssue()%>" />
100<input type="hidden"name="parameter:pages" value="<%=inputDataBean.getPages()%>" />
101<input type="hidden"name="parameter:year" value="<%=inputDataBean.getYear()%>" />
102<input type="hidden"name="parameter:pubmedId" value="<%=inputDataBean.getPubmedId()%>" />
103<input type="hidden"name="parameter:experimentId" value="<%=inputDataBean.getExperimentId()%>" />
104<input type="hidden"name="parameter:treatmentProtocol" value="<%=inputDataBean.getTreatmentProtocol()%>" />
105<input type="hidden"name="parameter:extractionProtocol" value="<%=inputDataBean.getExtractionProtocol()%>" />
106<input type="hidden"name="parameter:labelingProtocol" value="<%=inputDataBean.getLabelingProtocol()%>" />
107<input type="hidden"name="parameter:hybridizationProtocol" value="<%=inputDataBean.getHybridizationProtocol()%>" />
108<input type="hidden"name="parameter:scanningProtocol" value="<%=inputDataBean.getScanningProtocol()%>" />
109<input type="hidden"name="parameter:treatmentProtocolParams" value="<%=inputDataBean.getTreatmentProtocolParams()%>" />
110<input type="hidden"name="parameter:extractionProtocolParams" value="<%=inputDataBean.getExtractionProtocolParams()%>" />
111<input type="hidden"name="parameter:labelingProtocolParams" value="<%=inputDataBean.getLabelingProtocolParams()%>" />
112<input type="hidden"name="parameter:hybridizationProtocolParams" value="<%=inputDataBean.getHybridizationProtocolParams()%>" />
113<input type="hidden"name="parameter:scanningProtocolParams" value="<%=inputDataBean.getScanningProtocolParams()%>" />
114<input type="hidden"name="parameter:platform" value="<%=inputDataBean.getPlatform()%>" />
115<input type="hidden"name="parameter:organism" value="<%=inputDataBean.getOrganism()%>" />
116<input type="hidden"name="parameter:numDesigns" value="<%=inputDataBean.getNumDesigns()%>" />
117<input type="hidden"name="parameter:dyeSwap" value="<%=inputDataBean.getDyeSwap()%>" />
118<input type="hidden"name="parameter:refSample" value="<%=inputDataBean.getRefSample()%>" />
119<input type="hidden"name="parameter:numTreatmentGroups" value="<%=inputDataBean.getNumTreatmentGroups()%>" />
120<input type="hidden"name="parameter:expFactors" value="<%=inputDataBean.getExpFactors()%>" />
121<input type="hidden"name="parameter:numReplicates" value="<%=inputDataBean.getNumReplicates()%>" />
122<input type="hidden"name="parameter:tissues" value="<%=inputDataBean.getTissues()%>" />
123<input type="hidden"name="parameter:pooling" value="<%=inputDataBean.getPooling()%>" />
124<input type="hidden"name="parameter:path" value="<%=inputDataBean.getPath() %>" /> 
125<input type="hidden"name="parameter:subjectNames" value="<%=inputDataBean.getSubjectNames()%>" />
126<input type="hidden"name="parameter:fileList" value="<%=inputDataBean.getFileList()%>" />
127<input type="hidden"name="parameter:subjectList" value="<%=inputDataBean.getSubjectList()%>" />
128<input type="hidden"name="parameter:tissueList" value="<%=inputDataBean.getTissueList()%>" />
129<input type="hidden"name="parameter:useWizard" value="<%=inputDataBean.getUseWizard()%>" />
130<input type="hidden"name="parameter:legacyData" value="<%=inputDataBean.getLegacyData()%>" />
131<input type="hidden"name="parameter:mappingsMode" value="<%=inputDataBean.getMappingsMode()%>" />
132<input type="hidden"name="parameter:fileList" value=""/>
133<input type="hidden"name="parameter:subjectList" value=""/>
134<input type="hidden"name="parameter:tissueList" value=""/>
135
136
137</form>
138
139<p>
140  <table align="center" class="noBorder" cellspacing="5"  cellpadding="5">
141  <tr class="noBorder">
142    <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>
143    <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>
144  </table>
145
146
147</body>
148</html>
149
150
151
Note: See TracBrowser for help on using the repository browser.