Changeset 28964
- Timestamp:
- Aug 19, 2010, 11:55:20 AM (16 years ago)
- File:
-
- 1 edited
-
trunk/ippMonitor/raw/czartool_labels.php (modified) (11 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippMonitor/raw/czartool_labels.php
r28861 r28964 34 34 $selectedRevertMode = $_GET[revertmode]; 35 35 36 if ($selectedLabel == "") $selectedLabel = "all_ labels";36 if ($selectedLabel == "") $selectedLabel = "all_stdscience_labels"; 37 37 if ($selectedStage == "") $selectedStage = "all_stages"; 38 38 … … 52 52 $distLabels = getLabels($czardb, "distribution"); 53 53 $pubLabels = getLabels($czardb, "publishing"); 54 $updateLabels = getLabels($czardb, "update"); 54 55 55 56 if ($debug) { … … 92 93 93 94 echo "<td> \n"; 94 createLabelsTable($pass, $proj, $czardb, $stdsLabels, $distLabels, $pubLabels, $stages, $states, "new", $selectedLabel, $selectedStage); 95 createLabelsTable($pass, $proj, $czardb, "stdscience", $stdsLabels, $distLabels, $pubLabels, $stages, $states, "new", $selectedLabel, $selectedStage); 96 echo "</td>\n"; 97 echo "</tr>\n"; 98 99 echo "<tr>\n"; 100 echo "<td>\n"; 101 echo "<img src=\"czartool_getplot.php?type=h&label=$selectedLabel&stage=$selectedStage\"><br>"; 102 echo "</td>\n"; 103 104 echo "<td> \n"; 105 createLabelsTable($pass, $proj, $czardb, "update", $updateLabels, $distLabels, $pubLabels, $stages, $states, "new", $selectedLabel, $selectedStage); 95 106 echo "</td>\n"; 96 107 echo "</tr>\n"; … … 100 111 echo "<tr valign=top>\n"; 101 112 echo "<td> \n"; 102 echo "<img src=\"czartool_getplot.php?type= h&label=$selectedLabel&stage=$selectedStage\"><br>";113 echo "<img src=\"czartool_getplot.php?type=s\"><br>"; 103 114 echo "</td>\n"; 104 115 echo "<td>\n"; … … 116 127 echo "<tr valign=top>\n"; 117 128 echo "<td> \n"; 118 echo "<img src=\"czartool_getplot.php?type=s\"><br>";119 129 echo "</td>\n"; 120 130 echo "<td>\n"; … … 211 221 # 212 222 ########################################################################### 213 function createLabelsTable($pass, $proj, $db, $s tdsLabels, $distLabels, $pubLabels, $stages, $states, $selectedState, $selectedLabel, $selectedStage) {223 function createLabelsTable($pass, $proj, $db, $server, $labels, $distLabels, $pubLabels, $stages, $states, $selectedState, $selectedLabel, $selectedStage) { 214 224 215 225 // set up table columns … … 217 227 echo "<table class=$class >\n"; 218 228 echo "<tr><td></td>\n"; 229 230 echo "<p align=\"center\"> Current labels for $server server </p>"; 219 231 220 232 write_header_cell($class, ""); … … 254 266 255 267 // write rows 256 foreach ($ stdsLabels as &$stdsLabel) {268 foreach ($labels as &$thisLabel) { 257 269 258 270 $distributing = false; … … 260 272 foreach ($distLabels as &$distLabel) { 261 273 262 if ($ stdsLabel == $distLabel) { $distributing = true; break;}274 if ($thisLabel == $distLabel) { $distributing = true; break;} 263 275 } 264 276 foreach ($pubLabels as &$pubLabel) { 265 277 266 if ($ stdsLabel == $pubLabel) { $publishing = true; break;}278 if ($thisLabel == $pubLabel) { $publishing = true; break;} 267 279 } 268 280 269 281 // create link to label summary page for each label 270 if ($ stdsLabel == $selectedLabel) $link = "";271 else $link = "czartool_labels.php?pass=" . $pass . "&proj=" . $proj . "&label=" . $ stdsLabel . "&stage=" . $selectedStage;282 if ($thisLabel == $selectedLabel) $link = ""; 283 else $link = "czartool_labels.php?pass=" . $pass . "&proj=" . $proj . "&label=" . $thisLabel . "&stage=" . $selectedStage; 272 284 273 285 echo "<tr><td></td>\n"; 274 write_table_cell($class, '%s', $link, $ stdsLabel);286 write_table_cell($class, '%s', $link, $thisLabel); 275 287 write_table_cell($class, '%s', "", $distributing ? "yes" : "NO"); 276 288 write_table_cell($class, '%s', "", $publishing ? "yes" : "NO"); … … 279 291 $anyFaults = false; 280 292 281 $link = "chipProcessedImfile_failure.php?pass=" . $pass . "&proj=" . $proj . "&chipRun.label=" . $ stdsLabel . "&chipRun.state=new";282 getStateAndFaults($db, $ stdsLabel, $selectedState, "chip", $str, $anyFaults);293 $link = "chipProcessedImfile_failure.php?pass=" . $pass . "&proj=" . $proj . "&chipRun.label=" . $thisLabel . "&chipRun.state=new"; 294 getStateAndFaults($db, $thisLabel, $selectedState, "chip", $str, $anyFaults); 283 295 write_table_cell($class, '%s', $anyFaults ? $link : "", $str); 284 296 285 $link = "camProcessedExp_failure.php?pass=" . $pass . "&proj=" . $proj . "&camRun.label=" . $ stdsLabel . "&camRun.state=new";286 getStateAndFaults($db, $ stdsLabel, $selectedState, "cam", $str, $anyFaults);297 $link = "camProcessedExp_failure.php?pass=" . $pass . "&proj=" . $proj . "&camRun.label=" . $thisLabel . "&camRun.state=new"; 298 getStateAndFaults($db, $thisLabel, $selectedState, "cam", $str, $anyFaults); 287 299 write_table_cell($class, '%s', $anyFaults ? $link : "", $str); 288 300 289 301 $link = $defaultlink; 290 getStateAndFaults($db, $ stdsLabel, $selectedState, "fake", $str, $anyFaults);291 write_table_cell($class, '%s', $anyFaults ? $link : "", $str); 292 293 $link = "warpFailedSkyfiles.php?pass=" . $pass . "&proj=" . $proj . "&warpRun.label=" . $ stdsLabel . "&warpRun.state=new";294 getStateAndFaults($db, $ stdsLabel, $selectedState, "warp", $str, $anyFaults);302 getStateAndFaults($db, $thisLabel, $selectedState, "fake", $str, $anyFaults); 303 write_table_cell($class, '%s', $anyFaults ? $link : "", $str); 304 305 $link = "warpFailedSkyfiles.php?pass=" . $pass . "&proj=" . $proj . "&warpRun.label=" . $thisLabel . "&warpRun.state=new"; 306 getStateAndFaults($db, $thisLabel, $selectedState, "warp", $str, $anyFaults); 295 307 write_table_cell($class, '%s', $anyFaults ? $link : "", $str); 296 308 297 $link = "stackFailedSkyfile.php?pass=" . $pass . "&proj=" . $proj . "&stackRun.label=" . $ stdsLabel . "&stackRun.state=new";298 getStateAndFaults($db, $ stdsLabel, $selectedState, "stack", $str, $anyFaults);299 write_table_cell($class, '%s', $anyFaults ? $link : "", $str); 300 301 $link = "diffFailedSkyfile.php?pass=" . $pass . "&proj=" . $proj . "&diffRun.label=" . $ stdsLabel . "&diffRun.state=new";302 getStateAndFaults($db, $ stdsLabel, $selectedState, "diff", $str, $anyFaults);309 $link = "stackFailedSkyfile.php?pass=" . $pass . "&proj=" . $proj . "&stackRun.label=" . $thisLabel . "&stackRun.state=new"; 310 getStateAndFaults($db, $thisLabel, $selectedState, "stack", $str, $anyFaults); 311 write_table_cell($class, '%s', $anyFaults ? $link : "", $str); 312 313 $link = "diffFailedSkyfile.php?pass=" . $pass . "&proj=" . $proj . "&diffRun.label=" . $thisLabel . "&diffRun.state=new"; 314 getStateAndFaults($db, $thisLabel, $selectedState, "diff", $str, $anyFaults); 303 315 write_table_cell($class, '%s', $anyFaults ? $link : "", $str); 304 316 305 317 $link = $defaultlink; 306 getStateAndFaults($db, $ stdsLabel, $selectedState, "magic", $str, $anyFaults);318 getStateAndFaults($db, $thisLabel, $selectedState, "magic", $str, $anyFaults); 307 319 write_table_cell($class, '%s', $anyFaults ? $link : "", $str); 308 320 309 321 $link = $defaultlink; 310 getStateAndFaults($db, $ stdsLabel, $selectedState, "magicDS", $str, $anyFaults);322 getStateAndFaults($db, $thisLabel, $selectedState, "magicDS", $str, $anyFaults); 311 323 write_table_cell($class, '%s', $anyFaults ? $link : "", $str); 312 324 313 325 $link = $defaultlink; 314 getStateAndFaults($db, $ stdsLabel, $selectedState, "dist", $str, $anyFaults);326 getStateAndFaults($db, $thisLabel, $selectedState, "dist", $str, $anyFaults); 315 327 write_table_cell($class, '%s', $anyFaults ? $link : "", $str); 316 328 … … 318 330 } 319 331 320 if ($selectedLabel == "all_ labels") $link = "";321 else $link = "czartool_labels.php?pass=" . $pass . "&proj=" . $proj . "&label=all_ labels&stage=".$selectedStage;322 323 echo "<tr><td></td>\n"; 324 write_table_cell($class, '%s', $link, "All labels");332 if ($selectedLabel == "all_".$server."_labels") $link = ""; 333 else $link = "czartool_labels.php?pass=" . $pass . "&proj=" . $proj . "&label=all_".$server."_labels&stage=".$selectedStage; 334 335 echo "<tr><td></td>\n"; 336 write_table_cell($class, '%s', $link, "All $server labels"); 325 337 326 338 echo "</tr>\n";
Note:
See TracChangeset
for help on using the changeset viewer.
