Ignore:
Timestamp:
Dec 6, 2007, 1:04:50 PM (15 years ago)
Author:
mbayer
Message:

have implemented a skeleton writer class which writes a dummy tab2mage file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/uk_ac_ebi_Tab2MageImporter/jsp/uk/ac/ebi/nugo/plugins/hybridizations.jsp

    r512 r513  
    77<!-- 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 -->
    88<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 
    179
    1810<%
     
    2214 %>
    2315
     16
     17<html>
     18
     19<head>
     20
     21<link rel="stylesheet" type="text/css" href="<%= request.getContextPath()%>/plugins/uk/ac/ebi/nugo/plugins/styles.css" />
     22<link rel="stylesheet" type="text/css" href="/base/include/styles/main.css">
     23<link rel="stylesheet" type="text/css" href="/base/include/styles/size_m.css">
     24
     25<script language="JavaScript" src="<%= request.getContextPath()%>/include/scripts/main.js" type="text/javascript"></script>
     26
     27<script language="JavaScript" type="text/javascript">
     28    function getRoot()
     29    {
     30      return '/base/';
     31    }
     32    function getScale()
     33    {
     34      return 1.0;
     35    }
     36    function doImport()
     37    {
     38      var frm = document.forms['hybridizations'];
     39      if (Main.trimString(frm.path.value) == '')
     40      {
     41        alert("You must select a file to import from");
     42        frm.path.focus();
     43      }
     44      else
     45      {
     46        frm.submit();
     47      }
     48    }
     49    function browseOnClick()
     50    {
     51      var frm = document.forms['hybridizations'];
     52      var url = '<%= request.getContextPath()%>/filemanager/index.jsp?ID=<%=ID%>&cmd=SelectOne&title=Select+file+to+import&callback=setFileCallback';
     53      url += '&filter:INT:location=1';
     54      Main.openPopup(url, 'SelectFile', 1000, 700);
     55    }
     56    function setFileCallback(fileId, path)
     57    {
     58      var frm = document.forms['hybridizations'];
     59      frm.file_id.value = fileId;
     60      frm.path.value = path;
     61      document.getElementById('zipFile').value = path;
     62      }
     63    function recentFileOnChange()
     64    {
     65      var frm = document.forms['hybridizations'];
     66      var selected = frm.recentFile[frm.recentFile.selectedIndex];
     67      setFileCallback(selected.value, selected.text);
     68      frm.recentFile.selectedIndex = 0;
     69    }
     70
     71   
     72    </script>
     73
     74</head>
     75
     76<body>
     77
     78
     79
     80
    2481<h2>Tab2MAGE Importer -- Your Hybridizations</h2>
    2582Page 3 of 3
    2683<p>
    27 <form action="<%= request.getContextPath()%>/common/plugin/index.jsp" method="post">
     84<form name="hybridizations"action="<%= request.getContextPath()%>/common/plugin/index.jsp" method="post">
    2885<input type="hidden" name="ID" value="<%=ID%>"> <input type="hidden" name="cmd" value="SetParameters">
    2986<input type="hidden"name="requestID" value="<%=requestID%>">
     
    57114<input type="hidden" name="parameter:hybridizationProtocolParams" value="<%=inputDataBean.getHybridizationProtocolParams()%>">
    58115<input type="hidden" name="parameter:scanningProtocolParams" value="<%=inputDataBean.getScanningProtocolParams()%>">
    59 
    60 <!-- 
    61 <input type="hidden" name="parameter:platform" value="<%=inputDataBean.getPlatform()%>">
    62 <input type="hidden" name="parameter:organism" value="<%=inputDataBean.getOrganism()%>">
    63 <input type="hidden" name="parameter:numDesigns" value="<%=inputDataBean.getNumDesigns()%>">
    64 <input type="hidden" name="parameter:dyeSwap" value="<%=inputDataBean.getDyeSwap()%>">
    65 <input type="hidden" name="parameter:refSample" value="<%=inputDataBean.getRefSample()%>">
    66 <input type="hidden" name="parameter:numTreatments" value="<%=inputDataBean.getNumTreatments()%>">
    67 <input type="hidden" name="parameter:expFactors" value="<%=inputDataBean.getExpFactors()%>">
    68 <input type="hidden" name="parameter:numReplicates" value="<%=inputDataBean.getNumReplicates()%>">
    69 <input type="hidden" name="parameter:tissues" value="<%=inputDataBean.getTissues()%>">
    70 <input type="hidden" name="parameter:pooling" value="<%=inputDataBean.getPooling()%>">
    71 <input type="hidden" name="parameter:zipFile" value="<%=inputDataBean.getZipFile()%>">
    72 -->
     116<input type="hidden" name="parameter:experimentId" value="<%=inputDataBean.getExperimentId()%>">
     117
     118<input type="hidden" name="file_id" value="">
     119<input type="hidden" name="parameter:zipFile" value=""  id="zipFile">
     120
    73121
    74122<!--  table with the input form -->
     
    79127    <td class="boldText">Microarray platform used:</td>
    80128    <td class="input"><select name="parameter:platform">
    81     <option >Genepix</option>
    82129    <option >Affymetrix</option>
     130    <option >Agilent</option>
     131    <option >AIDA</option>
     132    <option >BZScan</option>
     133    <option >ChipSkipper</option>
     134    <option >GenePix</option>
     135    <option >GeneTAC</option>
     136    <option >Illumina</option>
     137    <option >Imagene</option>
     138    <option >QuantArray Biotin</option>
     139    <option >QuantArray Cy</option>
     140    <option >Spotfinder</option>
    83141    </select></td>
    84142  </tr>
     
    154212  <tr>
    155213    <td class="boldText">Please select the zip file on your local disk that contains the data files for import:</td>
    156     <td class="input"><INPUT type="file" name="parameter:zipFile" size="50" value="test.txt"></td>
    157   </tr>
     214
     215    <td>
     216    <table border="0" cellspacing="0" cellpadding="0">
     217      <tr>
     218        <td><input type="text" class="text required" name="path" size="50" value="">&nbsp;&nbsp;&nbsp;</td>
     219        <td>
     220        <div class="buttonclass" onmouseover="this.className='buttonclass_hover';"
     221          onmouseout="this.className='buttonclass';" onclick="browseOnClick()">
     222
     223        <table border="0" cellspacing="0" cellpadding="0" class="noBorder">
     224          <tr class="noBorder">
     225            <td class="centered"><img src="/base/images/browse.png" border="0"></td>
     226            <td>Browse&hellip;</td>
     227          </tr>
     228        </table>
     229
     230        </div>
     231        </td>
     232
     233      </tr>
     234    </table>
     235    </td>
     236  </tr>
     237
     238
    158239
    159240</table>
Note: See TracChangeset for help on using the changeset viewer.