- Timestamp:
- Jun 19, 2012, 5:24:19 PM (14 years ago)
- Location:
- branches/meh_branches/ppstack_test
- Files:
-
- 3 edited
-
. (modified) (1 prop)
-
ippMonitor (modified) (1 prop)
-
ippMonitor/raw/czartool_labels.php (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/meh_branches/ppstack_test
- Property svn:mergeinfo changed
-
branches/meh_branches/ppstack_test/ippMonitor
- Property svn:mergeinfo changed
/branches/eam_branches/ipp-20120405/ippMonitor (added) merged: 33949
- Property svn:mergeinfo changed
-
branches/meh_branches/ppstack_test/ippMonitor/raw/czartool_labels.php
r33415 r34041 23 23 24 24 if ($ID['menu']) {$myMenu = $ID['menu'];} 25 else {$myMenu = "ipp. imfiles.dat";}25 else {$myMenu = "ipp.czar.dat";} 26 26 27 27 menu($myMenu, 'Czartool on '.$lastUpdateTime, 'ipp.css', $ID['link'], $ID['proj']); 28 28 29 29 $stages=array( 30 "burntool",31 30 "chip", 32 31 "cam", … … 34 33 "warp", 35 34 "stack", 35 "staticsky", 36 36 "diff", 37 "magic",38 "magicDS",39 37 "dist", 40 "pub"); 38 "pub", 39 "chipbackground"); 41 40 42 41 $servers=array( … … 92 91 93 92 $debug = 0; 94 $table = "<table bgcolor=\"#FFFFFF\" width=\" 700\" align=\"middle\" border=\"1\" cellspacing=\"0\" cellpadding=\"4\" style=\"font-size:80%\">\n";93 $table = "<table bgcolor=\"#FFFFFF\" width=\"900\" align=\"middle\" border=\"1\" cellspacing=\"0\" cellpadding=\"4\" style=\"font-size:80%\">\n"; 95 94 96 95 $labels = getLabels($czardb, $selectedMode); … … 172 171 echo "<tr><td>Who's using the cluster?</td><td><a href=\"http://ippmonitor.ipp.ifa.hawaii.edu/ippMonitor/clusterMonitor/top.html\"><font color=\"blue\">here</font></a></td></tr>"; 173 172 echo "<tr><td>IPP metrics</td><td><a href=\"http://ipp0022.ifa.hawaii.edu/ps1sc/ippMetrics\"><font color=\"blue\">here</font></a></td></tr>"; 174 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>"; 173 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\">All</font></a> "; 174 echo "<a href=\"http://svn.pan-starrs.ifa.hawaii.edu/trac/ipp/wiki/PS1_IPP_CzarLog_".(date("Ymd")-date("w")+"1")."\">This week</a>"; 175 echo "</td></tr>"; 175 176 echo "<tr><td>Exposure summary</td><td><a href=\"czartool_exposures.php?pass=$pass&proj=$proj\"><font color=\"blue\">here</font></a></td></tr>"; 176 177 … … 216 217 showReplicationsStatus($REPL_HOST_PSTAMP, $REPL_USER_PSTAMP, $REPL_PASSWORD_PSTAMP, $REPL_DBNAME_PSTAMP); 217 218 showReplicationsStatus($REPL_HOST_IPPADMIN, $REPL_USER_IPPADMIN, $REPL_PASSWORD_IPPADMIN, $REPL_DBNAME_IPPADMIN); 219 showReplicationsStatus($REPL_HOST_ISP, $REPL_USER_ISP, $REPL_PASSWORD_ISP, $REPL_DBNAME_ISP); 218 220 echo "</table>"; 219 221 … … 441 443 $anyFaults = false; 442 444 443 $link = $defaultlink;444 getStateAndFaults($db, $thisLabel, $selectedState, "burntool", $str, $anyFaults);445 createFormattedTableCell($anyFaults, $link, $str, $anyFaults, 0);446 447 445 $link = "failedChipProcessedImfile.php?pass=" . $pass . "&proj=" . $proj . "&chipRun.label=" . $thisLabel . "&chipRun.state=".$searchState; 448 446 getStateAndFaults($db, $thisLabel, $selectedState, "chip", $str, $anyFaults); … … 465 463 createFormattedTableCell($anyFaults, $link, $str, $anyFaults, 0); 466 464 465 $link = $defaultlink; 466 getStateAndFaults($db, $thisLabel, $selectedState, "staticsky", $str, $anyFaults); 467 createFormattedTableCell($anyFaults, $link, $str, $anyFaults, 0); 468 467 469 $link = "failedDiffSkyfile.php?pass=" . $pass . "&proj=" . $proj . "&diffRun.label=" . $thisLabel . "&diffRun.state=".$searchState; 468 470 getStateAndFaults($db, $thisLabel, $selectedState, "diff", $str, $anyFaults); … … 470 472 471 473 $link = $defaultlink; 472 getStateAndFaults($db, $thisLabel, $selectedState, "magic", $str, $anyFaults);473 createFormattedTableCell($anyFaults, $link, $str, $anyFaults, (!$isUpdate && !$distributing) ? "gray" : null);474 475 $link = $defaultlink;476 getStateAndFaults($db, $thisLabel, $selectedState, "magicDS", $str, $anyFaults);477 createFormattedTableCell($anyFaults, $link, $str, $anyFaults, (!$isUpdate && !$distributing) ? "gray" : null);478 479 $link = $defaultlink;480 474 getStateAndFaults($db, $thisLabel, $selectedState, "dist", $str, $anyFaults); 481 475 createFormattedTableCell($anyFaults, $link, $str, $anyFaults, (!$isUpdate && !$distributing) ? "gray" : null); … … 485 479 createFormattedTableCell($anyFaults, $link, $str, $anyFaults, (!$isUpdate && !$publishing) ? "gray" : null); 486 480 481 $link = $defaultlink; 482 getStateAndFaults($db, $thisLabel, $selectedState, "chipbackground", $str, $anyFaults); 483 createFormattedTableCell($anyFaults, $link, $str, $anyFaults, 0); 484 487 485 echo "</tr>\n"; 488 486 } … … 492 490 createFormattedTableCell(($selectedLabel != "all"), $link, "All labels", 0, null); 493 491 494 createFormattedTableCell(0, null, "Reverting?", 0, "$columnHeaderColor");495 496 492 foreach ($stages as &$stage) { 497 493 498 if ($stage == "burntool") continue;499 494 $reverting = getRevertStatus($db, $stage); 500 #$link = 501 # "czartool_labels.php?pass=".$pass 502 # ."&proj=".$proj 503 # ."&mode=" .$selectedMode 504 # ."&label=".$selectedLabel 505 # ."&stage=".$selectedStage 506 # ."&plottype=".$plotType 507 # ."&revertstage=".$stage 508 # ."&revertmode="; 509 # 510 #if(!$reverting) {$label = "Start";$link = $link . "on";} 511 #if($reverting) {$label = "Stop";$link = $link . "off";} 512 if(!$reverting) {$label = "no";} 513 if($reverting) {$label = "yes";} 495 if(!$reverting) {$label = "";} 496 if($reverting) {$label = "reverting";} 514 497 unset($reverting); 515 #createFormattedTableCell(1, $link, $label, 0, "$columnHeaderColor");516 498 createFormattedTableCell(0, null, $label, 0, "$columnHeaderColor"); 517 #echo "<td><a href=\"$link\"><font color=\"blue\">$label</font></td>";518 519 499 } 520 500
Note:
See TracChangeset
for help on using the changeset viewer.
