Changeset 30928 for trunk/ippMonitor/raw/czartool_labels.php
- Timestamp:
- Mar 16, 2011, 12:20:11 PM (15 years ago)
- File:
-
- 1 edited
-
trunk/ippMonitor/raw/czartool_labels.php (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippMonitor/raw/czartool_labels.php
r30921 r30928 73 73 echo "<tr><td>ippMonitor SVN version</td><td>"; include 'version.php'; echo "</td></tr>"; 74 74 echo "<tr><td>Current nightly science status</td><td>$nsStatus</td></tr>"; 75 echo "<tr><td>Documentation</td><td><a href=\"http://svn.pan-starrs.ifa.hawaii.edu/trac/ipp/wiki/Processing\"> here</a></td></tr>";76 echo "<tr><td>Cluster load</td><td><a href=\"http://ganglia.pan-starrs.ifa.hawaii.edu/?r=hour&s=descending&c=IPP%2520Production\"> here</a></td></tr>";77 echo "<tr><td>Who's using the cluster?</td><td><a href=\"http://ipp004.ifa.hawaii.edu/clusterMonitor/top.html\"> here</a></td></tr>";78 echo "<tr><td>IPP metrics</td><td><a href=\"http://ipp004.ifa.hawaii.edu/ippMetrics\"> here</a></td></tr>";79 echo "<tr><td>Czar log pages</td><td><a href=\"http://svn.pan-starrs.ifa.hawaii.edu/trac/ipp/wiki/PS1_IPP_CzarLogs\"> here</a></td></tr>";80 echo "<tr><td>Exposure summary</td><td><a href=\"czartool_exposures.php?pass=$pass&proj=$proj\"> here</a></td></tr>";75 echo "<tr><td>Documentation</td><td><a href=\"http://svn.pan-starrs.ifa.hawaii.edu/trac/ipp/wiki/Processing\"><font color=\"blue\">here</font></a></td></tr>"; 76 echo "<tr><td>Cluster load</td><td><a href=\"http://ganglia.pan-starrs.ifa.hawaii.edu/?r=hour&s=descending&c=IPP%2520Production\"><font color=\"blue\">here</font></a></td></tr>"; 77 echo "<tr><td>Who's using the cluster?</td><td><a href=\"http://ipp004.ifa.hawaii.edu/clusterMonitor/top.html\"><font color=\"blue\">here</font></a></td></tr>"; 78 echo "<tr><td>IPP metrics</td><td><a href=\"http://ipp004.ifa.hawaii.edu/ippMetrics\"><font color=\"blue\">here</font></a></td></tr>"; 79 echo "<tr><td>Czar log pages</td><td><a href=\"http://svn.pan-starrs.ifa.hawaii.edu/trac/ipp/wiki/PS1_IPP_CzarLogs\"><font color=\"blue\">here</font></a></td></tr>"; 80 echo "<tr><td>Exposure summary</td><td><a href=\"czartool_exposures.php?pass=$pass&proj=$proj\"><font color=\"blue\">here</font></a></td></tr>"; 81 81 echo "</table>\n"; 82 82 … … 359 359 ."&stage=all_stages" 360 360 ."&plottype=".$plotType; 361 if ($selectedStage != "all_stages") echo "<a href=\"$link\"> ";362 else echo "<a> ";363 echo "Plot all stages</ a> | ";361 if ($selectedStage != "all_stages") echo "<a href=\"$link\"><font color=\"blue\">"; 362 else echo "<a><font color=\"black\">"; 363 echo "Plot all stages</font></a> | "; 364 364 $link = "czartool_labels.php?pass=" . $pass . "&proj=" . $proj . "&label=all_".$server."_labels&stage=".$selectedStage."&plottype=".$plotType; 365 365 echo "<a "; 366 if ($selectedLabel != "all_".$server."_labels") echo "<a href=\"$link\"> ";367 else echo "<a> ";366 if ($selectedLabel != "all_".$server."_labels") echo "<a href=\"$link\"><font color=\"blue\">"; 367 else echo "<a><font color=\"black\">"; 368 368 echo "Plot all ".$server."_labels</a> | "; 369 369 $plotTypeLink = ($plotType == "linear") ? "log" : "linear"; 370 370 $plotTypeText = ($plotType == "linear") ? "Use log plots" : "Use linear plots"; 371 371 $link = "czartool_labels.php?pass=" . $pass . "&proj=" . $proj . "&label=" . $selectedLabel . "&stage=" . $selectedStage . "&revertstage=" . $stage . "&plottype=$plotTypeLink"; 372 echo "<a href=\"$link\"> $plotTypeText</a>";372 echo "<a href=\"$link\"><font color=\"blue\">$plotTypeText</font></a>"; 373 373 374 374 … … 397 397 if($reverting) {$label = "Stop";$link = $link . "off";} 398 398 unset($reverting); 399 echo "<td><a href=\"$link\"> $label</td>";399 echo "<td><a href=\"$link\"><font color=\"blue\">$label</font></td>"; 400 400 401 401 } … … 416 416 ."&plottype=".$plotType; 417 417 418 createLabelTableCell($showLink, $link, $stage );418 createLabelTableCell($showLink, $link, $stage, "blue"); 419 419 } 420 420 … … 461 461 ."&stage=".$selectedStage 462 462 ."&plottype=".$plotType; 463 createLabelTableCell($showLink, $link, $thisLabel );463 createLabelTableCell($showLink, $link, $thisLabel, "blue"); 464 464 465 465 $str = ""; … … 468 468 $link = $defaultlink; 469 469 getStateAndFaults($db, $thisLabel, $selectedState, "burntool", $str, $anyFaults); 470 createLabelTableCell($anyFaults, $link, $str );470 createLabelTableCell($anyFaults, $link, $str, "red"); 471 471 472 472 $link = "failedChipProcessedImfile.php?pass=" . $pass . "&proj=" . $proj . "&chipRun.label=" . $thisLabel . "&chipRun.state=".$searchState; 473 473 getStateAndFaults($db, $thisLabel, $selectedState, "chip", $str, $anyFaults); 474 createLabelTableCell($anyFaults, $link, $str );474 createLabelTableCell($anyFaults, $link, $str, "red"); 475 475 476 476 $link = "failedCamProcessedExp.php?pass=" . $pass . "&proj=" . $proj . "&camRun.label=" . $thisLabel . "&camRun.state=".$searchState; 477 477 getStateAndFaults($db, $thisLabel, $selectedState, "cam", $str, $anyFaults); 478 createLabelTableCell($anyFaults, $link, $str );478 createLabelTableCell($anyFaults, $link, $str, "red"); 479 479 480 480 $link = "failedFakeProcessedImfile.php?pass=" . $pass . "&proj=" . $proj . "&fakeRun.label=" . $thisLabel . "&fakeRun.state=".$searchState; 481 481 getStateAndFaults($db, $thisLabel, $selectedState, "fake", $str, $anyFaults); 482 createLabelTableCell($anyFaults, $link, $str );482 createLabelTableCell($anyFaults, $link, $str, "red"); 483 483 484 484 $link = "failedWarpSkyfiles.php?pass=" . $pass . "&proj=" . $proj . "&warpRun.label=" . $thisLabel . "&warpRun.state=".$searchState; 485 485 getStateAndFaults($db, $thisLabel, $selectedState, "warp", $str, $anyFaults); 486 createLabelTableCell($anyFaults, $link, $str );486 createLabelTableCell($anyFaults, $link, $str, "red"); 487 487 488 488 $link = "failedStackSkyfile.php?pass=" . $pass . "&proj=" . $proj . "&stackRun.label=" . $thisLabel . "&stackRun.state=".$searchState; 489 489 getStateAndFaults($db, $thisLabel, $selectedState, "stack", $str, $anyFaults); 490 createLabelTableCell($anyFaults, $link, $str );490 createLabelTableCell($anyFaults, $link, $str, "red"); 491 491 492 492 $link = "failedDiffSkyfile.php?pass=" . $pass . "&proj=" . $proj . "&diffRun.label=" . $thisLabel . "&diffRun.state=".$searchState; 493 493 getStateAndFaults($db, $thisLabel, $selectedState, "diff", $str, $anyFaults); 494 createLabelTableCell($anyFaults, $link, $str );494 createLabelTableCell($anyFaults, $link, $str, "red"); 495 495 496 496 $link = $defaultlink; 497 497 getStateAndFaults($db, $thisLabel, $selectedState, "magic", $str, $anyFaults); 498 createLabelTableCell($anyFaults, $link, $str );498 createLabelTableCell($anyFaults, $link, $str, "red"); 499 499 500 500 $link = $defaultlink; 501 501 getStateAndFaults($db, $thisLabel, $selectedState, "magicDS", $str, $anyFaults); 502 createLabelTableCell($anyFaults, $link, $str );502 createLabelTableCell($anyFaults, $link, $str, "red"); 503 503 504 504 $link = $defaultlink; 505 505 getStateAndFaults($db, $thisLabel, $selectedState, "dist", $str, $anyFaults); 506 createLabelTableCell($anyFaults, $link, $str );506 createLabelTableCell($anyFaults, $link, $str, "red"); 507 507 508 508 $link = "publishDone.php?pass=" . $pass . "&proj=" . $proj . "&publishRun.label=" . $thisLabel . "&publishRun.state=".$searchState; 509 509 getStateAndFaults($db, $thisLabel, $selectedState, "pub", $str, $anyFaults); 510 createLabelTableCell($anyFaults, $link, $str );510 createLabelTableCell($anyFaults, $link, $str, "red"); 511 511 512 512 echo "</tr>\n"; … … 527 527 # 528 528 ########################################################################### 529 function createLabelTableCell($showLink, $link, $str ) {530 531 if ($showLink) echo "<td><a href=\"$link\"> $str</td>";529 function createLabelTableCell($showLink, $link, $str, $color) { 530 531 if ($showLink) echo "<td><a href=\"$link\"><font color=\"$color\">$str</font></td>"; 532 532 else if ($str) echo "<td>$str</td>"; 533 533 else echo "<td> </td>";
Note:
See TracChangeset
for help on using the changeset viewer.
