Index: trunk/ippMonitor/raw/czartool_labels.php
===================================================================
--- trunk/ippMonitor/raw/czartool_labels.php	(revision 29270)
+++ trunk/ippMonitor/raw/czartool_labels.php	(revision 29338)
@@ -235,5 +235,16 @@
 #
 ###########################################################################
-function createLabelsTable($pass, $proj, $db, $server, $labels, $distLabels, $pubLabels, $stages, $states, $selectedState, $selectedLabel, $selectedStage, $plotType) {
+function createLabelsTable(
+        $pass, 
+        $proj, 
+        $db, 
+        $server, 
+        $labels, 
+        $distLabels, 
+        $pubLabels, 
+        $stages, 
+        $states, 
+        $selectedState, 
+        $selectedLabel, $selectedStage, $plotType) {
 
     // set up table columns
@@ -251,5 +262,13 @@
         if ($stage == "burntool") continue;
         $reverting = getRevertStatus($db, $stage);
-        $link = "czartool_labels.php?pass=".$pass."&proj=".$proj."&label=".$selectedLabel."&stage=".$selectedStage."&plottype=".$plotType."&revertstage=".$stage."&revertmode=";
+        $link = 
+            "czartool_labels.php?pass=".$pass
+            ."&proj=".$proj
+            ."&label=".$selectedLabel
+            ."&stage=".$selectedStage
+            ."&plottype=".$plotType
+            ."&revertstage=".$stage
+            ."&revertmode=";
+
         if(!$reverting) {$label =  "Start";$link = $link . "on";}
         if($reverting) {$label = "Stop";$link = $link . "off";}
@@ -266,10 +285,22 @@
 
         if ($stage == $selectedStage) $link = "";
-        else $link = "czartool_labels.php?pass=" . $pass . "&proj=" . $proj . "&label=" . $selectedLabel . "&stage=".$stage."&plottype=".$plotType;
+        else $link = 
+            "czartool_labels.php?pass=".$pass
+                ."&proj=".$proj 
+                ."&label=".$selectedLabel
+                ."&stage=".$stage
+                ."&plottype=".$plotType;
+
         write_table_cell($class, '%s', $link, $stage);
     }
 
     if ($selectedStage=="all_stages") $link = "";
-    else $link = "czartool_labels.php?pass=" . $pass . "&proj=" . $proj . "&label=" . $selectedLabel . "&stage=all_stages"."&plottype=".$plotType;
+    else $link = 
+        "czartool_labels.php?pass=".$pass
+            ."&proj=".$proj
+            ."&label=".$selectedLabel
+            ."&stage=all_stages"
+            ."&plottype=".$plotType;
+
     write_table_cell($class, '%s', $link, "All stages");
 
@@ -277,5 +308,10 @@
     echo "<tr><td></td>\n";
 
-    $defaultlink = "czartool_labels.php?pass=" . $pass . "&proj=" . $proj."&label=".$selectedLabel."&stage=".$selectedStage."&plottype=".$plotType;
+    $defaultlink = 
+        "czartool_labels.php?pass=".$pass
+        ."&proj=".$proj
+        ."&label=".$selectedLabel
+        ."&stage=".$selectedStage
+        ."&plottype=".$plotType;
 
     // write rows
@@ -295,5 +331,10 @@
         // create link to label summary page for each label
         if ($thisLabel == $selectedLabel) $link = "";
-        else $link = "czartool_labels.php?pass=" . $pass . "&proj=" . $proj . "&label=" . $thisLabel . "&stage=" . $selectedStage."&plottype=".$plotType;
+        else $link = 
+            "czartool_labels.php?pass=".$pass
+                ."&proj=".$proj
+                ."&label=".$thisLabel
+                ."&stage=".$selectedStage
+                ."&plottype=".$plotType;
 
         echo "<tr><td></td>\n";
@@ -445,5 +486,8 @@
     $faults = $row[1];
 
-    $str = "$pending";
+    if ($pending == 0)
+        $str = "";
+    else
+        $str = "$pending";
 
     if ($state == "new") {
@@ -470,7 +514,19 @@
     write_header_cell($class, "Server");
     write_header_cell($class, "Alive?");
-    $link = "czartool_labels.php?pass=".$pass."&proj=".$proj."&label=".$selectedLabel."&stage=".$selectedStage."&plottype=".$plotType."&allservercmd=stop";
+    $link = "czartool_labels.php?pass=".$pass
+        ."&proj=".$proj
+        ."&label=".$selectedLabel
+        ."&stage=".$selectedStage
+        ."&plottype=".$plotType
+        ."&allservercmd=stop";
+
     write_table_cell($class, '%s', $link, "Stop all");
-    $link = "czartool_labels.php?pass=".$pass."&proj=".$proj."&label=".$selectedLabel."&stage=".$selectedStage."&plottype=".$plotType."&allservercmd=run";
+    $link = "czartool_labels.php?pass=".$pass
+        ."&proj=".$proj
+        ."&label=".$selectedLabel
+        ."&stage=".$selectedStage
+        ."&plottype=".$plotType
+        ."&allservercmd=run";
+
     write_table_cell($class, '%s', $link, "Run all");
     echo "</tr>\n";
@@ -481,5 +537,11 @@
 
         echo "<tr><td></td>\n";
-        $link = "czartool_labels.php?pass=".$pass."&proj=".$proj."&server=".$server."&label=".$selectedLabel."&stage=".$selectedStage."&plottype=".$plotType;
+        $link = "czartool_labels.php?pass=".$pass
+            ."&proj=".$proj
+            ."&server=".$server
+            ."&label=".$selectedLabel
+            ."&stage=".$selectedStage
+            ."&plottype=".$plotType;
+
         write_table_cell($class, '%s', $link, $server);
         write_table_cell($class, '%s', "", $alive ? "yes" : "NO");
@@ -487,5 +549,12 @@
         if ($alive) {
 
-            $link = "czartool_labels.php?pass=".$pass."&proj=".$proj."&label=".$selectedLabel."&stage=".$selectedStage."&plottype=".$plotType."&server=".$server."&servercmd=";
+            $link = "czartool_labels.php?pass=".$pass
+                ."&proj=".$proj
+                ."&label=".$selectedLabel
+                ."&stage=".$selectedStage
+                ."&plottype=".$plotType
+                ."&server=".$server
+                ."&servercmd=";
+
             if ($running)  {
 
@@ -502,5 +571,5 @@
         }
         else {
-        
+
             write_table_cell($class, '%s', "", "");
             write_table_cell($class, '%s', "", "");
