source: branches/uk_ac_ebi_Tab2MageImporter/jsp/uk/ac/ebi/nugo/plugins/hybridizations.jsp @ 511

Last change on this file since 511 was 511, checked in by mbayer, 14 years ago
  • have tidied up the interface to the point where it is usable as it is
  • have provided defaults for every field in every form for testing
File size: 4.5 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
11<html>
12<head>
13<link rel="stylesheet" type="text/css" href="<%= request.getContextPath()%>/plugins/uk/ac/ebi/nugo/plugins/styles.css" />
14</head>
15<body>
16
17
18<%
19final SessionControl sc = Base.getExistingSessionControl(pageContext, true);
20final String ID = sc.getId();
21final String requestID = request.getParameter("requestId");
22 %>
23
24<h2>Tab2MAGE Importer -- Your Hybridizations</h2>
25Page 3 of 3
26<p>
27<form action="<%= request.getContextPath()%>/common/plugin/index.jsp" method="post">
28<input type="hidden" name="ID" value="<%=ID%>"> <input type="hidden" name="cmd" value="SetParameters"> 
29  <input type="hidden"name="requestID" value="<%=requestID%>"> 
30  <input type="hidden" name="parameter:experimentName" value="<%=inputDataBean.getExperimentName()%>"> 
31  <input type="hidden" name="parameter:treatmentProtocol" value="<%=inputDataBean.getTreatmentProtocol()%>">
32
33<table cellpadding="15">
34
35  <!-- question 1 -->
36  <tr style="border-color: #6E94B7;border-style: solid;border-width: 1px">
37    <td class="boldText">Microarray platform used:</td>
38    <td class="input"><select name="parameter:platform">
39    <option >Genepix</option>
40    <option >Affymetrix</option>
41    </select></td>
42  </tr>
43
44  <!-- question 2 -->
45  <tr>
46    <td class="boldText">Name of the experimental organism:</td>
47    <td class="input"><input type="text" size="60" name="parameter:organism" value="barley"/></td>
48  </tr>
49
50  <!-- question 3 -->
51  <tr>
52    <td class="boldText">Number of different arrays designs used:</td>
53    <td class="input"><input type="text" size="3" name="parameter:numDesigns" value="1"/></td>
54  </tr>
55
56  <!-- question 4 -->
57  <tr>
58    <td class="boldText">Was dye-swap used?</td>
59    <td class="input">yes <input type="radio" name="parameter:dyeswap" value="yes"> no <input type="radio"
60      name="parameter:dyeswap" value="no" checked="checked"> <br>
61    </td>
62  </tr>
63
64  <!-- question 5 -->
65  <tr>
66    <td class="boldText">Was a reference sample used?</td>
67    <td class="input">yes <input type="radio" name="parameter:refSample" value="yes" > no <input type="radio"
68      name="parameter:refSample" value="no" checked="checked"></td>
69  </tr>
70
71  <!-- question 6 -->
72  <tr>
73    <td class="boldText">Number of treatments used:</td>
74    <td class="input"><input type="text" size="3" name="parameter:numTreatments" value="2"/></td>
75  </tr>
76
77  <!-- question 7 -->
78  <tr>
79    <td class="boldText">Please list your experimental factors and value ranges using the following format (one per
80    line):<br>
81    <i>Factor 1(value1,value2,...valueN)<br>
82    Factor 2(value1,value2,...valueN)</i>
83    <p>Example: <i><br>
84    Compound(aspirin,ibuprofen,acetaminophen) <br>
85    Dose(control,low,medium,high)</i>
86    </td>
87    <td class="input"><textarea rows="7" cols="40" name="parameter:expFactors">Factor 1(value1,value2,...valueN)<br>Factor 2(value1,value2,...valueN)</textarea></td>
88  </tr>
89
90  <!-- question 8 -->
91  <tr>
92    <td class="boldText">Number of subjects per group (i.e. number of biological replicates):</td>
93    <td class="input"><input type="text" size="3" name="parameter:numReplicates" value="3"/></td>
94  </tr>
95 
96  <!-- question 9 -->
97  <tr>
98    <td class="boldText">List all target tissues (as a comma separated list).<br>
99    Example: liver,heart,adipose tissue</td>
100    <td class="input"><textarea rows="2" cols="40" name="parameter:tissues">tissues1,tissue2</textarea></td>
101  </tr>
102 
103  <!-- question 10 -->
104  <tr>
105    <td class="boldText">Were samples pooled?</td>
106    <td class="input">yes <input type="radio" name="parameter:pooling" value="yes"> no <input type="radio"
107      name="parameter:pooling" value="no" checked="checked"></td>
108  </tr>
109
110
111  <!-- file upload -->
112  <tr>
113    <td class="boldText">Please select the zip file on your local disk that contains the data files for import:</td>
114    <td class="input"><INPUT type="file" name="parameter:zipFile" size="50" value="test.txt"></td>
115  </tr>
116
117</table>
118
119<p>
120<table class="noBorder" width="100%">
121  <tr class="noBorder">
122    <td class="centered"><input type="submit" value="Run Import" /></td>
123  </tr>
124</table>
125
126
127</form>
128
129</body>
130</html>
Note: See TracBrowser for help on using the repository browser.