Changeset 38206 for trunk/ippMonitor/raw/czartool_labels.php
- Timestamp:
- Apr 28, 2015, 11:23:28 AM (11 years ago)
- File:
-
- 1 edited
-
trunk/ippMonitor/raw/czartool_labels.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippMonitor/raw/czartool_labels.php
r38200 r38206 34 34 "stack", 35 35 "staticsky", 36 "fullforce", 36 37 "diff", 37 38 "dist", … … 39 40 ); 40 41 # "chipbackground"); 42 43 $getFailures = array( 44 "chip" => "failedChipProcessedImfile.php", 45 "cam" => "failedCamProcessedExp.php", 46 "fake" => "failedFakeProcessedImfile.php", 47 "warp" => "failedWarpSkyfiles.php", 48 "stack" => "failedStackSkyfile.php", 49 "staticsky" => "failedStaticsky.php", 50 "fullforce" => "failedChipProcessedImfile.php", 51 "diff" => "failedDiffSkyfile.php", 52 "dist" => "NONE", 53 "pub" => "publishDone.php", 54 ); 55 56 $mainTable = array( 57 "chip" => "chipRun", 58 "cam" => "camRun", 59 "fake" => "fakeRun", 60 "warp" => "warpRun", 61 "stack" => "stackRun", 62 "staticsky" => "staticskyRun", 63 "fullforce" => "fullForceRun", 64 "diff" => "diffRun", 65 "dist" => "distRun", 66 "pub" => "publishRun", 67 ); 68 69 $addSearchState = array( 70 "chip" => 0, 71 "cam" => 0, 72 "fake" => 1, 73 "warp" => 0, 74 "stack" => 0, 75 "staticsky" => 0, 76 "fullforce" => 0, 77 "diff" => 0, 78 "dist" => 0, 79 "pub" => 0, 80 ); 41 81 42 82 $servers=array( … … 448 488 $anyFaults = false; 449 489 450 // Note: Do not include the state for chip, cam, and warp so that both new and update faults are listed 451 $link = "failedChipProcessedImfile.php?pass=" . $pass . "&proj=" . $proj . "&chipRun.label=" . $thisLabel ; # . "&chipRun.state=".$searchState; 452 getStateAndFaults($db, $thisLabel, $selectedState, "chip", $str, $anyFaults); 453 createFormattedTableCell($anyFaults, $link, $str, $anyFaults, 0); 454 455 $link = "failedCamProcessedExp.php?pass=" . $pass . "&proj=" . $proj . "&camRun.label=" . $thisLabel ; # . "&camRun.state=".$searchState; 456 getStateAndFaults($db, $thisLabel, $selectedState, "cam", $str, $anyFaults); 457 createFormattedTableCell($anyFaults, $link, $str, $anyFaults, 0); 458 459 $link = "failedFakeProcessedImfile.php?pass=" . $pass . "&proj=" . $proj . "&fakeRun.label=" . $thisLabel . "&fakeRun.state=".$searchState; 460 getStateAndFaults($db, $thisLabel, $selectedState, "fake", $str, $anyFaults); 461 createFormattedTableCell($anyFaults, $link, $str, $anyFaults, 0); 462 463 $link = "failedWarpSkyfiles.php?pass=" . $pass . "&proj=" . $proj . "&warpRun.label=" . $thisLabel ; # . "&warpRun.state=".$searchState; 464 getStateAndFaults($db, $thisLabel, $selectedState, "warp", $str, $anyFaults); 465 createFormattedTableCell($anyFaults, $link, $str, $anyFaults, 0); 466 467 $link = "failedStackSkyfile.php?pass=" . $pass . "&proj=" . $proj . "&stackRun.label=" . $thisLabel . "&stackRun.state=".$searchState; 468 getStateAndFaults($db, $thisLabel, $selectedState, "stack", $str, $anyFaults); 469 createFormattedTableCell($anyFaults, $link, $str, $anyFaults, 0); 470 471 $link = "failedStaticsky.php?pass=" . $pass . "&proj=" . $proj . "&staticskyRun.label=" . $thisLabel . "&staticskyRun.state=".$searchState; 472 getStateAndFaults($db, $thisLabel, $selectedState, "staticsky", $str, $anyFaults); 473 createFormattedTableCell($anyFaults, $link, $str, $anyFaults, 0); 474 475 $link = "failedDiffSkyfile.php?pass=" . $pass . "&proj=" . $proj . "&diffRun.label=" . $thisLabel . "&diffRun.state=".$searchState; 476 getStateAndFaults($db, $thisLabel, $selectedState, "diff", $str, $anyFaults); 477 createFormattedTableCell($anyFaults, $link, $str, $anyFaults, 0); 478 479 $link = $defaultlink; 480 getStateAndFaults($db, $thisLabel, $selectedState, "dist", $str, $anyFaults); 481 createFormattedTableCell($anyFaults, $link, $str, $anyFaults, (!$isUpdate && !$distributing) ? "gray" : null); 482 483 $link = "publishDone.php?pass=" . $pass . "&proj=" . $proj . "&publishRun.label=" . $thisLabel . "&publishRun.state=".$searchState; 484 getStateAndFaults($db, $thisLabel, $selectedState, "pub", $str, $anyFaults); 485 createFormattedTableCell($anyFaults, $link, $str, $anyFaults, (!$isUpdate && !$publishing) ? "gray" : null); 486 487 $link = $defaultlink; 488 getStateAndFaults($db, $thisLabel, $selectedState, "chipbackground", $str, $anyFaults); 489 createFormattedTableCell($anyFaults, $link, $str, $anyFaults, 0); 490 490 foreach ($stages as &$stage) { 491 // Note: Do not include the state for chip, cam, and warp so that both new and update faults are listed 492 $myTable = $mainTable[$stage]; 493 $myFailures = $getFailures[$stage]; 494 495 if ("$myFailures" == "NONE") { 496 $link = $defaultlink; 497 } else { 498 $link = $getFailures[$stage] . "?pass=" . $pass . "&proj=" . $proj . "&" . $myTable . ".label=" . $thisLabel; 499 if ($addSearchState[$stage]) { 500 // Note: Do not include the state for chip, cam, and warp so that both new and update faults are listed 501 $link .= "&" . $myTable . ".state=" . $searchState; 502 } 503 } 504 getStateAndFaults($db, $thisLabel, $selectedState, $stage, $str, $anyFaults); 505 506 $cellcolor = 0; 507 if ("$stage" == "dist") { 508 $cellcolor = (!$isUpdate && !$distributing) ? "gray" : 0; 509 } 510 if ("$stage" == "pub") { 511 $cellcolor = (!$isUpdate && !$publishing) ? "gray" : 0; 512 } 513 createFormattedTableCell($anyFaults, $link, $str, $anyFaults, $cellcolor); 514 } 491 515 echo "</tr>\n"; 492 516 }
Note:
See TracChangeset
for help on using the changeset viewer.
