Changeset 28969 for trunk/ippMonitor/raw/czartool_labels.php
- Timestamp:
- Aug 19, 2010, 3:35:45 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/ippMonitor/raw/czartool_labels.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippMonitor/raw/czartool_labels.php
r28964 r28969 10 10 //$db = dbconnect($ID['proj']); 11 11 $czardb = dbconnect("czardb"); // HACK to connect to czarDb 12 $lastUpdateTime = getLastUpdateTime($czardb); 13 12 14 $gpc1db = dbconnect($ID['proj']); 13 15 … … 22 24 else {$myMenu = "ipp.imfiles.dat";} 23 25 24 menu($myMenu, 'Czartool ', 'ipp.css', $ID['link'], $ID['proj']);26 menu($myMenu, 'Czartool on '.$lastUpdateTime, 'ipp.css', $ID['link'], $ID['proj']); 25 27 26 28 $pass = $ID['pass']; … … 34 36 $selectedRevertMode = $_GET[revertmode]; 35 37 36 if ($selectedLabel == "") $selectedLabel = "all_stdscience_labels"; 37 if ($selectedStage == "") $selectedStage = "all_stages"; 38 if ($selectedLabel == "") { $selectedLabel = "all_stdscience_labels"; } 39 if ($selectedStage == "") { $selectedStage = "all_stages"; } 40 41 echo 'Some documentation can be found <a href="http://svn.pan-starrs.ifa.hawaii.edu/trac/ipp/wiki/Processing">here</a><br>'; 38 42 39 43 // deal with reverts: turn on or off if requested and pass current revert state for this stage onto labels table later … … 83 87 echo "<input type=\"hidden\" name=\"menu\" value=\"$menu\">\n"; 84 88 echo "</form>\n"; 85 $lastUpdateTime = getLastUpdateTime($czardb);86 89 echo "<p align=\"center\"> Current status of IPP (any faults are shown in parentheses). NOTE: This data is good as of: $lastUpdateTime </p>"; 87 90 … … 291 294 $anyFaults = false; 292 295 293 $link = " chipProcessedImfile_failure.php?pass=" . $pass . "&proj=" . $proj . "&chipRun.label=" . $thisLabel . "&chipRun.state=new";296 $link = "failedChipProcessedImfile.php?pass=" . $pass . "&proj=" . $proj . "&chipRun.label=" . $thisLabel . "&chipRun.state=new"; 294 297 getStateAndFaults($db, $thisLabel, $selectedState, "chip", $str, $anyFaults); 295 298 write_table_cell($class, '%s', $anyFaults ? $link : "", $str); 296 299 297 $link = " camProcessedExp_failure.php?pass=" . $pass . "&proj=" . $proj . "&camRun.label=" . $thisLabel . "&camRun.state=new";300 $link = "failedCamProcessedExp.php?pass=" . $pass . "&proj=" . $proj . "&camRun.label=" . $thisLabel . "&camRun.state=new"; 298 301 getStateAndFaults($db, $thisLabel, $selectedState, "cam", $str, $anyFaults); 299 302 write_table_cell($class, '%s', $anyFaults ? $link : "", $str); 300 303 301 $link = $defaultlink;304 $link = "failedFakeProcessedImfile.php?pass=" . $pass . "&proj=" . $proj . "&fakeRun.label=" . $thisLabel . "&fakeRun.state=new"; 302 305 getStateAndFaults($db, $thisLabel, $selectedState, "fake", $str, $anyFaults); 303 306 write_table_cell($class, '%s', $anyFaults ? $link : "", $str); 304 307 305 $link = " warpFailedSkyfiles.php?pass=" . $pass . "&proj=" . $proj . "&warpRun.label=" . $thisLabel . "&warpRun.state=new";308 $link = "failedWarpSkyfiles.php?pass=" . $pass . "&proj=" . $proj . "&warpRun.label=" . $thisLabel . "&warpRun.state=new"; 306 309 getStateAndFaults($db, $thisLabel, $selectedState, "warp", $str, $anyFaults); 307 310 write_table_cell($class, '%s', $anyFaults ? $link : "", $str); 308 311 309 $link = " stackFailedSkyfile.php?pass=" . $pass . "&proj=" . $proj . "&stackRun.label=" . $thisLabel . "&stackRun.state=new";312 $link = "failedStackSkyfile.php?pass=" . $pass . "&proj=" . $proj . "&stackRun.label=" . $thisLabel . "&stackRun.state=new"; 310 313 getStateAndFaults($db, $thisLabel, $selectedState, "stack", $str, $anyFaults); 311 314 write_table_cell($class, '%s', $anyFaults ? $link : "", $str); 312 315 313 $link = " diffFailedSkyfile.php?pass=" . $pass . "&proj=" . $proj . "&diffRun.label=" . $thisLabel . "&diffRun.state=new";316 $link = "failedDiffSkyfile.php?pass=" . $pass . "&proj=" . $proj . "&diffRun.label=" . $thisLabel . "&diffRun.state=new"; 314 317 getStateAndFaults($db, $thisLabel, $selectedState, "diff", $str, $anyFaults); 315 318 write_table_cell($class, '%s', $anyFaults ? $link : "", $str);
Note:
See TracChangeset
for help on using the changeset viewer.
