IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 28726


Ignore:
Timestamp:
Jul 28, 2010, 8:47:29 AM (16 years ago)
Author:
rhenders
Message:

Can now plot time series per stage

Location:
trunk/ippMonitor/raw
Files:
2 edited

Legend:

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

    r28724 r28726  
    1212}
    1313
    14 $label  = $_GET[label];
    1514$type = $_GET[type];
     15$label = $_GET[label];
     16$stage = $_GET[stage];
    1617
     18if ($type=="t")
     19$filePath = "/home/panstarrs/rhenders/czarplot_".$label."_".$stage."_".$type.".png";
     20else if ($type=="h")
    1721$filePath = "/home/panstarrs/rhenders/czarplot_".$label."_".$type.".png";
    18 
    1922$file = fopen ($filePath, "r");
    2023if ($file && !$debug) {
  • trunk/ippMonitor/raw/czartool_labels.php

    r28724 r28726  
    2828$menu = $ID['menu'];
    2929
     30$selectedStage = $_GET[stage];
    3031$selectedLabel = $_GET[label];
    3132$selectedServer = $_GET[server];
     
    3536
    3637if ($selectedLabel == "") $selectedLabel = "all_labels";
     38if ($selectedStage == "") $selectedStage = "all_stages";
    3739
    3840if ($revertStage != "" && $revertMode != "" && $revertServer != "" )
     
    8284
    8385    echo "<td> \n";
    84       echo "<img src=\"czartool_getplot.php?type=t&label=$selectedLabel\"><br>\n";
     86      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";
    8588    echo "</td>\n";
    8689
    8790    echo "<td> \n";
    88       createLabelsTable($pass, $proj, $czardb, $stdsLabels, $distLabels, $pubLabels, $stages, $states, "new", $selectedLabel);
     91      createLabelsTable($pass, $proj, $czardb, $stdsLabels, $distLabels, $pubLabels, $stages, $states, "new", $selectedLabel, $selectedStage);
    8992    echo "</td>\n";
    9093
     
    9598  echo "<tr valign=top>\n";
    9699    echo "<td> \n";
    97       echo "<img src=\"czartool_getplot.php?type=h&label=$selectedLabel\"><br>\n";
     100      echo "<img src=\"czartool_getplot.php?type=h&label=$selectedLabel&stage=$selectedStage\"><br>\n";
    98101    echo "</td>\n";
    99102    echo "<td> \n";
     
    197200#
    198201###########################################################################
    199 function createLabelsTable($pass, $proj, $db, $stdsLabels, $distLabels, $pubLabels, $stages, $states, $selectedState, $selectedLabel) {
     202function createLabelsTable($pass, $proj, $db, $stdsLabels, $distLabels, $pubLabels, $stages, $states, $selectedState, $selectedLabel, $selectedStage) {
    200203
    201204    // set up table columns
     
    225228    write_header_cell($class, "Distributing?");
    226229    write_header_cell($class, "Publishing?");
    227     foreach ($stages as &$stage) write_header_cell($class, $stage);
     230    foreach ($stages as &$stage) {
     231       
     232        if ($stage == $selectedStage) $link = "";
     233        else $link = "czartool_labels.php?pass=" . $pass . "&proj=" . $proj . "&label=" . $selectedLabel . "&stage=" . $stage;
     234        write_table_cell($class, '%s', $link, $stage);
     235//        write_header_cell($class, $stage);
     236    }
    228237
    229238    echo "</tr>\n";
     
    248257        // create link to label summary page for each label
    249258        if ($stdsLabel == $selectedLabel) $link = "";
    250         else $link = "czartool_labels.php?pass=" . $pass . "&proj=" . $proj . "&label=" . $stdsLabel;
     259        else $link = "czartool_labels.php?pass=" . $pass . "&proj=" . $proj . "&label=" . $stdsLabel . "&stage=" . $selectedStage;
    251260
    252261        echo "<tr><td></td>\n";
Note: See TracChangeset for help on using the changeset viewer.