IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 28727


Ignore:
Timestamp:
Jul 28, 2010, 9:33:54 AM (16 years ago)
Author:
rhenders
Message:

Improvements to above commit

Location:
trunk/ippMonitor/raw
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippMonitor/raw/czartool_getplot.php

    r28726 r28727  
    1919$filePath = "/home/panstarrs/rhenders/czarplot_".$label."_".$stage."_".$type.".png";
    2020else if ($type=="h")
    21 $filePath = "/home/panstarrs/rhenders/czarplot_".$label."_".$type.".png";
     21$filePath = "/home/panstarrs/rhenders/czarplot_".$label."_all_stages_".$type.".png";
    2222$file = fopen ($filePath, "r");
    2323if ($file && !$debug) {
  • trunk/ippMonitor/raw/czartool_labels.php

    r28726 r28727  
    7777echo "</form>\n";
    7878$lastUpdateTime = getLastUpdateTime($czardb);
    79 echo "<p  align=\"center\"> Current status of pantasks servers and stdscience labels (any faults are shown in parentheses)<br>";
    80 echo "NOTE: This data is good as of: $lastUpdateTime </p>";
     79echo "<p  align=\"center\"> Current status of IPP (any faults are shown in parentheses). NOTE: This data is good as of: $lastUpdateTime </p>";
    8180
    8281echo "<table>\n";
     
    8584    echo "<td> \n";
    8685      echo "<img src=\"czartool_getplot.php?type=t&label=$selectedLabel&stage=$selectedStage\"><br>\n";
    87       echo "czartool_getplot.php?type=t&label=$selectedLabel&stage=$selectedStage\"<br>\n";
    8886    echo "</td>\n";
    8987
     
    10199    echo "</td>\n";
    102100    echo "<td> \n";
    103       createServersTable($pass, $proj,$czardb, $servers);
     101      createServersTable($pass, $proj,$czardb, $servers, $selectedLabel, $selectedStage);
    104102    echo "</td>\n";
    105103
     
    222220        write_table_cell($class, '%s', $link, $label);
    223221    }
     222    write_header_cell($class, "");
    224223
    225224    echo "</tr>\n";
     
    233232        else $link = "czartool_labels.php?pass=" . $pass . "&proj=" . $proj . "&label=" . $selectedLabel . "&stage=" . $stage;
    234233        write_table_cell($class, '%s', $link, $stage);
    235 //        write_header_cell($class, $stage);
    236     }
     234    }
     235
     236    if ($selectedStage=="all_stages") $link = "";
     237    else $link = "czartool_labels.php?pass=" . $pass . "&proj=" . $proj . "&label=" . $selectedLabel . "&stage=all_stages";
     238    write_table_cell($class, '%s', $link, "All stages");
    237239
    238240    echo "</tr>\n";
     
    307309
    308310    if ($selectedLabel == "all_labels") $link = "";
    309     else  $link = "czartool_labels.php?pass=" . $pass . "&proj=" . $proj . "&label=all_labels";
     311    else  $link = "czartool_labels.php?pass=" . $pass . "&proj=" . $proj . "&label=all_labels&stage=".$selectedStage;
    310312
    311313    echo "<tr><td></td>\n";
     
    411413#
    412414###########################################################################
    413 function createServersTable($pass, $proj, $db, $servers) {
     415function createServersTable($pass, $proj, $db, $servers, $selectedLabel, $selectedStage) {
    414416
    415417    // set up table columns
     
    424426    foreach ($servers as &$server) {
    425427
    426         $link = "czartool_labels.php?pass=" . $pass . "&proj=" . $proj . "&server=" . $server;
     428        $link = "czartool_labels.php?pass=".$pass."&proj=".$proj."&server=".$server."&label=".$selectedLabel."&stage=".$selectedStage;
    427429        //      $link = "";
    428430
Note: See TracChangeset for help on using the changeset viewer.