IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 28452


Ignore:
Timestamp:
Jun 24, 2010, 10:32:34 AM (16 years ago)
Author:
eugene
Message:

merging new features from trunk

Location:
tags/ipp-20100623/ippMonitor
Files:
8 edited
5 copied

Legend:

Unmodified
Added
Removed
  • tags/ipp-20100623/ippMonitor

  • tags/ipp-20100623/ippMonitor/Makefile.in

    r28166 r28452  
    1616$(DESTBIN)/czartool_getLabels.pl \
    1717$(DESTBIN)/czartool_checkServer.pl \
    18 $(DESTBIN)/czartool_getServerStatus.pl
     18$(DESTBIN)/czartool_getServerStatus.pl \
     19$(DESTBIN)/build_histogram.dvo \
     20
    1921
    2022RAWSRC = \
     
    5052$(DESTWWW)/czartool_labels.php \
    5153$(DESTWWW)/czartool_servers.php \
     54$(DESTWWW)/histogram.php \
     55$(DESTWWW)/show_and_delete_image.php \
    5256
    5357
     
    121125$(DESTWWW)/rawScienceExp.php \
    122126$(DESTWWW)/rawExp.php \
     127$(DESTWWW)/rawSummary.php \
    123128$(DESTWWW)/rawExpStats.php \
    124129$(DESTWWW)/summitExp.php \
     
    171176$(DESTWWW)/flatcorrRun.php \
    172177$(DESTWWW)/flatcorrChip.php \
    173 $(DESTWWW)/flatcorrCamera.php
     178$(DESTWWW)/flatcorrCamera.php \
     179$(DESTWWW)/maskStats.php
    174180
    175181PICTURES = \
  • tags/ipp-20100623/ippMonitor/def/rawExp.d

    r27674 r28452  
    1515FIELD    camera,      10,  %s,     Camera
    1616FIELD    exp_type,     8,  %s,     Type   
     17FIELD    obs_mode,     8,  %s,     obs mode
    1718FIELD    dateobs,     19,  %T,     Date/Time
    1819FIELD    ra,           8,  %C, RA,           op=OP1     
  • tags/ipp-20100623/ippMonitor/raw/czartool_labels.php

    r28167 r28452  
    9595        $str = "";
    9696        $anyFaults = false;
    97         $link = "chipProcessedImfile_failure.php?menu=ipp.science.dat&pass=" . $pass . "&proj=" . $proj . "&label=" . $stdsLabel;
     97        $link = "chipProcessedImfile_failure.php?pass=" . $pass . "&proj=" . $proj . "&chipRun.label=" . $label . "&chipRun.state=new";
    9898        getStateAndFaults($db, $label,"chipRun", $state, "chip", $str, $anyFaults);
    9999        write_table_cell($class, '%s', $anyFaults ? $link : "", $str);
    100100
    101         $link = "camProcessedExp_failure.php?pass=" . $pass . "&proj=" . $proj . "&label=" . $stdsLabel;
     101        $link = "camProcessedExp_failure.php?pass=" . $pass . "&proj=" . $proj . "&camRun.label=" . $label . "&camRun.state=new";
    102102        getStateAndFaults($db, $label,"camRun", $state, "cam", $str, $anyFaults);
    103103        write_table_cell($class, '%s',  $anyFaults ? $link : "", $str);
     
    107107        write_table_cell($class, '%s',  $anyFaults ? $link : "", $str);
    108108
    109         $link = "warpFailedSkyfiles.php?pass=" . $pass . "&proj=" . $proj;
     109        $link = "warpFailedSkyfiles.php?pass=" . $pass . "&proj=" . $proj . "&warpRun.label=" . $label . "&warpRun.state=new";
    110110        getStateAndFaults($db, $label,"warpRun", $state, "warp", $str, $anyFaults);
    111111        write_table_cell($class, '%s',  $anyFaults ? $link : "",  $str);
    112112       
    113         $link = "stackFailedSkyfile.php?pass=" . $pass . "&proj=" . $proj;
     113        $link = "stackFailedSkyfile.php?pass=" . $pass . "&proj=" . $proj . "&stackRun.label=" . $label . "&stackRun.state=new";
    114114        getStateAndFaults($db, $label,"stackRun", $state, "stack", $str, $anyFaults);
    115115        write_table_cell($class, '%s',  $anyFaults ? $link : "", $str);
    116116
    117         $link = "diffFailedSkyfile.php?pass=" . $pass . "&proj=" . $proj;
     117        $link = "diffFailedSkyfile.php?pass=" . $pass . "&proj=" . $proj . "&diffRun.label=" . $label . "&diffRun.state=new";
    118118        getStateAndFaults($db, $label,"diffRun", $state, "diff", $str, $anyFaults);
    119119        write_table_cell($class, '%s',  $anyFaults ? $link : "",  $str);
     
    189189        $anyFaults = false;
    190190
    191         $link = "chipProcessedImfile_failure.php?menu=ipp.science.dat&pass=" . $pass . "&proj=" . $proj . "&label=" . $stdsLabel;
     191        $link = "chipProcessedImfile_failure.php?pass=" . $pass . "&proj=" . $proj . "&chipRun.label=" . $stdsLabel . "&chipRun.state=new";
    192192        getStateAndFaults($db, $stdsLabel,"chipRun", $selectedState, "chip", $str, $anyFaults);
    193193        write_table_cell($class, '%s', $anyFaults ? $link : "", $str);
    194194
    195         $link = "camProcessedExp_failure.php?pass=" . $pass . "&proj=" . $proj . "&label=" . $stdsLabel;
     195        $link = "camProcessedExp_failure.php?pass=" . $pass . "&proj=" . $proj . "&camRun.label=" . $stdsLabel . "&camRun.state=new";
    196196        getStateAndFaults($db, $stdsLabel,"camRun", $selectedState, "cam", $str, $anyFaults);
    197197        write_table_cell($class, '%s',  $anyFaults ? $link : "", $str);
     
    201201        write_table_cell($class, '%s',  $anyFaults ? $link : "", $str);
    202202
    203         $link = "warpFailedSkyfiles.php?pass=" . $pass . "&proj=" . $proj;
     203        $link = "warpFailedSkyfiles.php?pass=" . $pass . "&proj=" . $proj . "&warpRun.label=" . $stdsLabel . "&warpRun.state=new";
    204204        getStateAndFaults($db, $stdsLabel,"warpRun", $selectedState, "warp", $str, $anyFaults);
    205205        write_table_cell($class, '%s',  $anyFaults ? $link : "",  $str);
    206206       
    207         $link = "stackFailedSkyfile.php?pass=" . $pass . "&proj=" . $proj;
     207        $link = "stackFailedSkyfile.php?pass=" . $pass . "&proj=" . $proj . "&stackRun.label=" . $stdsLabel . "&stackRun.state=new";
    208208        getStateAndFaults($db, $stdsLabel,"stackRun", $selectedState, "stack", $str, $anyFaults);
    209209        write_table_cell($class, '%s',  $anyFaults ? $link : "", $str);
    210210
    211         $link = "diffFailedSkyfile.php?pass=" . $pass . "&proj=" . $proj;
     211        $link = "diffFailedSkyfile.php?pass=" . $pass . "&proj=" . $proj . "&diffRun.label=" . $stdsLabel . "&diffRun.state=new";
    212212        getStateAndFaults($db, $stdsLabel,"diffRun", $selectedState, "diff", $str, $anyFaults);
    213213        write_table_cell($class, '%s',  $anyFaults ? $link : "",  $str);
  • tags/ipp-20100623/ippMonitor/raw/ipp.imfiles.dat

    r28148 r28452  
    2222menutop   | menutop      | link    | simple plot - cam            | simplePlotcam.php
    2323menutop   | menutop      | link    | czartool                     | czartool_labels.php
    24 
     24menutop   | menutop      | link    | mask stats                   | maskStats.php
     25menutop   | menutop      | link    | histogram                    | histogram.php
  • tags/ipp-20100623/ippMonitor/raw/ipp.load.dat

    r27674 r28452  
    22
    33menutop   | menutop      | plain   |                         |
     4menulink  | menuselect   | link    | Raw Exp Summary              | rawSummary.php             
    45menulink  | menuselect   | link    | Raw Exposures                | rawExp.php             
    56menulink  | menuselect   | link    | Raw Detrend Exp              | rawDetrendExp.php             
  • tags/ipp-20100623/ippMonitor/raw/ipp.php

    r28043 r28452  
    564564}
    565565
     566//
     567function button_restrict_checkbox ($key, $line) {
     568  $htmlkey = preg_replace ('|\.|', '_', $key);
     569  if ($_SERVER[REQUEST_METHOD] == 'GET') {
     570    $value = $_GET[$htmlkey];
     571  } else {
     572    $value = $_POST[$htmlkey];
     573  }
     574  if ($value != "") {
     575    if ($line) {
     576      $line = $line . "&$htmlkey=$value";
     577    } else {
     578      $line = "$htmlkey=$value";
     579    }
     580  }
     581  return $line;
     582}
     583
     584//
     585function button_restrict_radio ($key, $line) {
     586  $htmlkey = preg_replace ('|\.|', '_', $key);
     587  if ($_SERVER[REQUEST_METHOD] == 'GET') {
     588    $value = $_GET[$htmlkey];
     589  } else {
     590    $value = $_POST[$htmlkey];
     591  }
     592  if ($value != "") {
     593    if ($line) {
     594      $line = $line . "&$htmlkey=$value";
     595    } else {
     596      $line = "$htmlkey=$value";
     597    }
     598  }
     599  return $line;
     600}
     601
    566602function write_header_cell ($class, $name) {
    567 
    568603  echo "<th class=\"$class\">$name</th>\n";
    569604}
     
    637672  if ($value != "") {
    638673    echo "value=\"$value\">";
    639   }
     674  } else {
     675    echo ">";
     676  }
    640677  echo "</td>\n";
     678}
     679
     680// checkbox
     681function write_query_checkbox ($key, $comment) {
     682  $htmlkey = preg_replace ('|\.|', '_', $key);
     683
     684  if ($_SERVER[REQUEST_METHOD] == 'GET') {
     685    $value = $_GET[$htmlkey];
     686  } else {
     687    $value = $_POST[$htmlkey];
     688  }
     689  echo "<td> <input type=\"checkbox\" name=\"$htmlkey\"";
     690  if ($value == "on") {
     691    echo " checked>";
     692  } else {
     693    echo ">";
     694  }
     695  echo "$comment ($htmlkey/$value)</td>\n";
     696}
     697
     698// checkbox
     699function write_query_radio ($value, $key) {
     700  $htmlkey = preg_replace ('| |', '_', $key);
     701  $htmlvalue = preg_replace ('|\.|', '_', $value);
     702
     703  if ($_SERVER[REQUEST_METHOD] == 'GET') {
     704    $value = $_GET[$htmlkey];
     705  } else {
     706    $value = $_POST[$htmlkey];
     707  }
     708  if ($htmlvalue == get_value_from_key($htmlkey, TRUE)) {
     709    $checked = "checked";
     710  } else {
     711    $checked = "";
     712  }
     713  echo "<td> <input type=\"radio\" name=\"$htmlkey\" value=\"$htmlvalue\" $checked/>";
     714  echo "$key ($htmlkey/$htmlvalue)</td>\n";
    641715}
    642716
     
    778852// $myPage = $_SERVER[SCRIPT_NAME] . "?pass=$pass";
    779853
     854//////////////////////////////////////////////////////////////////////////
     855// Return the value associated to the key (GET or POST method)
     856// If convertKeyToHtmlkey is true, the key is converted to a
     857// so-called HTML, i.e. the key where '.' are replaced by '_'
     858// (e.g. the conversion of 'f.o.o.b_a_r' is 'f_o_o_b_a_r'.
     859//
     860function get_value_from_key ($key, $convertKeyToHtmlkey) {
     861  if ($convertKeyToHtmlkey) {
     862    $htmlkey = preg_replace ('|\.|', '_', $key);
     863  } else {
     864    $htmlkey = $key;
     865  }
     866  if ($_SERVER[REQUEST_METHOD] == 'GET') {
     867    return $_GET[$htmlkey];
     868  } else {
     869    return $_POST[$htmlkey];
     870  }
     871}
     872
    780873?>
  • tags/ipp-20100623/ippMonitor/scripts/czartool_checkServer.pl

    r28148 r28452  
    1717    if ($line =~ m/Scheduler is stopped/) {$isRunning = 0; $foundStatus=1;last;}
    1818    if ($line =~ m/Scheduler is running/) {$isRunning = 1; $foundStatus=1;last;}
    19     if ($line =~ m/Task Staus/) {last;}
     19    if ($line =~ m/Task Status/) {last;}
    2020
    2121}
Note: See TracChangeset for help on using the changeset viewer.