IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 19, 2012, 5:24:19 PM (14 years ago)
Author:
mhuber
Message:

merging latest r34040 trunk changes to branch

Location:
branches/meh_branches/ppstack_test
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/meh_branches/ppstack_test

  • branches/meh_branches/ppstack_test/ippMonitor

  • branches/meh_branches/ppstack_test/ippMonitor/raw/czartool_labels.php

    r33415 r34041  
    2323
    2424if ($ID['menu']) {$myMenu = $ID['menu'];}
    25 else {$myMenu = "ipp.imfiles.dat";}
     25else {$myMenu = "ipp.czar.dat";}
    2626
    2727menu($myMenu, 'Czartool on '.$lastUpdateTime, 'ipp.css', $ID['link'], $ID['proj']);
    2828
    2929$stages=array(
    30         "burntool",
    3130        "chip",
    3231        "cam",
     
    3433        "warp",
    3534        "stack",
     35        "staticsky",
    3636        "diff",
    37         "magic",
    38         "magicDS",
    3937        "dist",
    40         "pub");
     38        "pub",
     39        "chipbackground");
    4140
    4241$servers=array(
     
    9291
    9392$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";
    9594
    9695$labels = getLabels($czardb, $selectedMode);
     
    172171echo "<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>";
    173172echo "<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>";
     173echo "<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>&nbsp;&nbsp;&nbsp;";
     174echo "<a href=\"http://svn.pan-starrs.ifa.hawaii.edu/trac/ipp/wiki/PS1_IPP_CzarLog_".(date("Ymd")-date("w")+"1")."\">This week</a>";
     175echo "</td></tr>";
    175176echo "<tr><td>Exposure summary</td><td><a href=\"czartool_exposures.php?pass=$pass&proj=$proj\"><font color=\"blue\">here</font></a></td></tr>";
    176177
     
    216217      showReplicationsStatus($REPL_HOST_PSTAMP, $REPL_USER_PSTAMP, $REPL_PASSWORD_PSTAMP, $REPL_DBNAME_PSTAMP);
    217218      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);
    218220      echo "</table>";
    219221
     
    441443        $anyFaults = false;
    442444
    443         $link = $defaultlink;
    444         getStateAndFaults($db, $thisLabel, $selectedState, "burntool", $str, $anyFaults);
    445         createFormattedTableCell($anyFaults, $link, $str, $anyFaults, 0);
    446 
    447445        $link = "failedChipProcessedImfile.php?pass=" . $pass . "&proj=" . $proj . "&chipRun.label=" . $thisLabel . "&chipRun.state=".$searchState;
    448446        getStateAndFaults($db, $thisLabel, $selectedState, "chip", $str, $anyFaults);
     
    465463        createFormattedTableCell($anyFaults, $link, $str, $anyFaults, 0);
    466464
     465        $link = $defaultlink;
     466        getStateAndFaults($db, $thisLabel, $selectedState, "staticsky", $str, $anyFaults);
     467        createFormattedTableCell($anyFaults, $link, $str, $anyFaults, 0);
     468
    467469        $link = "failedDiffSkyfile.php?pass=" . $pass . "&proj=" . $proj . "&diffRun.label=" . $thisLabel . "&diffRun.state=".$searchState;
    468470        getStateAndFaults($db, $thisLabel, $selectedState, "diff", $str, $anyFaults);
     
    470472
    471473        $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;
    480474        getStateAndFaults($db, $thisLabel, $selectedState, "dist", $str, $anyFaults);
    481475        createFormattedTableCell($anyFaults, $link, $str, $anyFaults, (!$isUpdate && !$distributing) ? "gray" : null);
     
    485479        createFormattedTableCell($anyFaults, $link, $str, $anyFaults, (!$isUpdate && !$publishing) ? "gray" : null);
    486480
     481        $link = $defaultlink;
     482        getStateAndFaults($db, $thisLabel, $selectedState, "chipbackground", $str, $anyFaults);
     483        createFormattedTableCell($anyFaults, $link, $str, $anyFaults, 0);
     484
    487485        echo "</tr>\n";
    488486    }
     
    492490    createFormattedTableCell(($selectedLabel != "all"), $link, "All labels", 0, null);
    493491
    494     createFormattedTableCell(0, null, "Reverting?", 0, "$columnHeaderColor");
    495 
    496492    foreach ($stages as &$stage) {
    497493
    498         if ($stage == "burntool") continue;
    499494        $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";}
    514497        unset($reverting);
    515         #createFormattedTableCell(1, $link, $label, 0, "$columnHeaderColor");
    516498        createFormattedTableCell(0, null, $label, 0, "$columnHeaderColor");
    517         #echo "<td><a href=\"$link\"><font color=\"blue\">$label</font></td>";
    518 
    519499    }
    520500
Note: See TracChangeset for help on using the changeset viewer.