Index: trunk/ippMonitor/raw/czartool_labels.php
===================================================================
--- trunk/ippMonitor/raw/czartool_labels.php	(revision 28724)
+++ trunk/ippMonitor/raw/czartool_labels.php	(revision 28726)
@@ -28,4 +28,5 @@
 $menu = $ID['menu'];
 
+$selectedStage = $_GET[stage];
 $selectedLabel = $_GET[label];
 $selectedServer = $_GET[server];
@@ -35,4 +36,5 @@
 
 if ($selectedLabel == "") $selectedLabel = "all_labels";
+if ($selectedStage == "") $selectedStage = "all_stages";
 
 if ($revertStage != "" && $revertMode != "" && $revertServer != "" )
@@ -82,9 +84,10 @@
 
     echo "<td> \n";
-      echo "<img src=\"czartool_getplot.php?type=t&label=$selectedLabel\"><br>\n";
+      echo "<img src=\"czartool_getplot.php?type=t&label=$selectedLabel&stage=$selectedStage\"><br>\n";
+      echo "czartool_getplot.php?type=t&label=$selectedLabel&stage=$selectedStage\"<br>\n";
     echo "</td>\n";
 
     echo "<td> \n";
-      createLabelsTable($pass, $proj, $czardb, $stdsLabels, $distLabels, $pubLabels, $stages, $states, "new", $selectedLabel);
+      createLabelsTable($pass, $proj, $czardb, $stdsLabels, $distLabels, $pubLabels, $stages, $states, "new", $selectedLabel, $selectedStage);
     echo "</td>\n";
 
@@ -95,5 +98,5 @@
   echo "<tr valign=top>\n";
     echo "<td> \n";
-      echo "<img src=\"czartool_getplot.php?type=h&label=$selectedLabel\"><br>\n";
+      echo "<img src=\"czartool_getplot.php?type=h&label=$selectedLabel&stage=$selectedStage\"><br>\n";
     echo "</td>\n";
     echo "<td> \n";
@@ -197,5 +200,5 @@
 #
 ###########################################################################
-function createLabelsTable($pass, $proj, $db, $stdsLabels, $distLabels, $pubLabels, $stages, $states, $selectedState, $selectedLabel) {
+function createLabelsTable($pass, $proj, $db, $stdsLabels, $distLabels, $pubLabels, $stages, $states, $selectedState, $selectedLabel, $selectedStage) {
 
     // set up table columns
@@ -225,5 +228,11 @@
     write_header_cell($class, "Distributing?");
     write_header_cell($class, "Publishing?");
-    foreach ($stages as &$stage) write_header_cell($class, $stage);
+    foreach ($stages as &$stage) {
+        
+        if ($stage == $selectedStage) $link = "";
+        else $link = "czartool_labels.php?pass=" . $pass . "&proj=" . $proj . "&label=" . $selectedLabel . "&stage=" . $stage;
+        write_table_cell($class, '%s', $link, $stage);
+//        write_header_cell($class, $stage);
+    }
 
     echo "</tr>\n";
@@ -248,5 +257,5 @@
         // create link to label summary page for each label
         if ($stdsLabel == $selectedLabel) $link = "";
-        else $link = "czartool_labels.php?pass=" . $pass . "&proj=" . $proj . "&label=" . $stdsLabel;
+        else $link = "czartool_labels.php?pass=" . $pass . "&proj=" . $proj . "&label=" . $stdsLabel . "&stage=" . $selectedStage;
 
         echo "<tr><td></td>\n";
