Hello!

To see the file structure, click on "tree".

Note that updates take place every 10 minutes, commits may not be seen immediately.
check boxes no longer disappear after they have been checked, the list
authormiles <miles@localhost>
Thu, 11 Oct 2012 22:18:58 +0000 (22:18 +0000)
committermiles <miles@localhost>
Thu, 11 Oct 2012 22:18:58 +0000 (22:18 +0000)
of species is static

svn path=/; revision=401

Personnel/miles/Web Page/heatMap.php

index c3bd4037d610db4f89c6d2d8991bdc181e94e44b..5d0cceb6ed98bab04d1e6418323a6b126ddf6aaf 100644 (file)
@@ -5,7 +5,10 @@
 </head>
 <body>
 <?php
-
+$originalSpecies;
+if(isset($_POST['originalSpecies'])) {
+$originalSpecies = explode(" ", $_POST['originalSpecies']);
+}
 $excludedSpecies = "";
 if(isset($_POST['param'])) $excludedSpecies = $_POST['param'];
 
@@ -37,6 +40,9 @@ for ($s = 0; $s < sizeof($tmp) - 2; $s ++) // the last array in tmp is the list
   {
   $allSpecies[$s] = $tmp[$s][0];
   }
+if(!isset($originalSpecies)) {
+$originalSpecies = $allSpecies;
+}
 
 
 $allClusterIDs;
@@ -132,10 +138,11 @@ If you do not wish to view any of the species in the final heat map, click on th
 <input type="hidden" name="param">
 <input type="hidden" name="genelist" value="<?php if(isset($_POST['genelist'])) echo $_POST['genelist'] ?>" >
 <input type="hidden" name="geneIDs" value="<?php echo $_POST['geneIDs'] ?>" >
+<input type="hidden" name="originalSpecies" value="<?php echo implode(" ", $originalSpecies) ?>" >
 <?php
-for($i = 0; $i < sizeof($allSpecies); $i++) {
-echo "<input type=\"checkbox\" name=\"ch" . $i . "\" value=\"" . $allSpecies[$i] . "\">\n";
-echo $allSpecies[$i] . "\n";
+for($i = 0; $i < sizeof($originalSpecies); $i++) {
+echo "<input type=\"checkbox\" name=\"ch" . $i . "\" value=\"" . $originalSpecies[$i] . "\">\n";
+echo $originalSpecies[$i] . "\n";
 } 
 ?>
 <p>
@@ -517,7 +524,7 @@ function generateImage() {
 function resubmitSpecies() {
 var eliminatedSpecies = "";
 <?php
-  for($i = 0; $i < sizeof($allSpecies); $i++) {
+  for($i = 0; $i < sizeof($originalSpecies); $i++) {
     echo "if(document.redraw.ch" . $i . ".checked) { \n";
     echo "eliminatedSpecies = eliminatedSpecies + \" \" + document.redraw.ch" . $i . ".value;\n";
     echo "} \n";