Changeset 28452
- Timestamp:
- Jun 24, 2010, 10:32:34 AM (16 years ago)
- Location:
- tags/ipp-20100623/ippMonitor
- Files:
-
- 8 edited
- 5 copied
-
. (modified) (1 prop)
-
Makefile.in (modified) (4 diffs)
-
def/maskStats.d (copied) (copied from trunk/ippMonitor/def/maskStats.d )
-
def/rawExp.d (modified) (1 diff)
-
def/rawSummary.d (copied) (copied from trunk/ippMonitor/def/rawSummary.d )
-
raw/czartool_labels.php (modified) (4 diffs)
-
raw/histogram.php (copied) (copied from trunk/ippMonitor/raw/histogram.php )
-
raw/ipp.imfiles.dat (modified) (1 diff)
-
raw/ipp.load.dat (modified) (1 diff)
-
raw/ipp.php (modified) (3 diffs)
-
raw/show_and_delete_image.php (copied) (copied from trunk/ippMonitor/raw/show_and_delete_image.php )
-
scripts/build_histogram.dvo (copied) (copied from trunk/ippMonitor/scripts/build_histogram.dvo )
-
scripts/czartool_checkServer.pl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
tags/ipp-20100623/ippMonitor
- Property svn:mergeinfo set to
-
tags/ipp-20100623/ippMonitor/Makefile.in
r28166 r28452 16 16 $(DESTBIN)/czartool_getLabels.pl \ 17 17 $(DESTBIN)/czartool_checkServer.pl \ 18 $(DESTBIN)/czartool_getServerStatus.pl 18 $(DESTBIN)/czartool_getServerStatus.pl \ 19 $(DESTBIN)/build_histogram.dvo \ 20 19 21 20 22 RAWSRC = \ … … 50 52 $(DESTWWW)/czartool_labels.php \ 51 53 $(DESTWWW)/czartool_servers.php \ 54 $(DESTWWW)/histogram.php \ 55 $(DESTWWW)/show_and_delete_image.php \ 52 56 53 57 … … 121 125 $(DESTWWW)/rawScienceExp.php \ 122 126 $(DESTWWW)/rawExp.php \ 127 $(DESTWWW)/rawSummary.php \ 123 128 $(DESTWWW)/rawExpStats.php \ 124 129 $(DESTWWW)/summitExp.php \ … … 171 176 $(DESTWWW)/flatcorrRun.php \ 172 177 $(DESTWWW)/flatcorrChip.php \ 173 $(DESTWWW)/flatcorrCamera.php 178 $(DESTWWW)/flatcorrCamera.php \ 179 $(DESTWWW)/maskStats.php 174 180 175 181 PICTURES = \ -
tags/ipp-20100623/ippMonitor/def/rawExp.d
r27674 r28452 15 15 FIELD camera, 10, %s, Camera 16 16 FIELD exp_type, 8, %s, Type 17 FIELD obs_mode, 8, %s, obs mode 17 18 FIELD dateobs, 19, %T, Date/Time 18 19 FIELD ra, 8, %C, RA, op=OP1 -
tags/ipp-20100623/ippMonitor/raw/czartool_labels.php
r28167 r28452 95 95 $str = ""; 96 96 $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"; 98 98 getStateAndFaults($db, $label,"chipRun", $state, "chip", $str, $anyFaults); 99 99 write_table_cell($class, '%s', $anyFaults ? $link : "", $str); 100 100 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"; 102 102 getStateAndFaults($db, $label,"camRun", $state, "cam", $str, $anyFaults); 103 103 write_table_cell($class, '%s', $anyFaults ? $link : "", $str); … … 107 107 write_table_cell($class, '%s', $anyFaults ? $link : "", $str); 108 108 109 $link = "warpFailedSkyfiles.php?pass=" . $pass . "&proj=" . $proj ;109 $link = "warpFailedSkyfiles.php?pass=" . $pass . "&proj=" . $proj . "&warpRun.label=" . $label . "&warpRun.state=new"; 110 110 getStateAndFaults($db, $label,"warpRun", $state, "warp", $str, $anyFaults); 111 111 write_table_cell($class, '%s', $anyFaults ? $link : "", $str); 112 112 113 $link = "stackFailedSkyfile.php?pass=" . $pass . "&proj=" . $proj ;113 $link = "stackFailedSkyfile.php?pass=" . $pass . "&proj=" . $proj . "&stackRun.label=" . $label . "&stackRun.state=new"; 114 114 getStateAndFaults($db, $label,"stackRun", $state, "stack", $str, $anyFaults); 115 115 write_table_cell($class, '%s', $anyFaults ? $link : "", $str); 116 116 117 $link = "diffFailedSkyfile.php?pass=" . $pass . "&proj=" . $proj ;117 $link = "diffFailedSkyfile.php?pass=" . $pass . "&proj=" . $proj . "&diffRun.label=" . $label . "&diffRun.state=new"; 118 118 getStateAndFaults($db, $label,"diffRun", $state, "diff", $str, $anyFaults); 119 119 write_table_cell($class, '%s', $anyFaults ? $link : "", $str); … … 189 189 $anyFaults = false; 190 190 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"; 192 192 getStateAndFaults($db, $stdsLabel,"chipRun", $selectedState, "chip", $str, $anyFaults); 193 193 write_table_cell($class, '%s', $anyFaults ? $link : "", $str); 194 194 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"; 196 196 getStateAndFaults($db, $stdsLabel,"camRun", $selectedState, "cam", $str, $anyFaults); 197 197 write_table_cell($class, '%s', $anyFaults ? $link : "", $str); … … 201 201 write_table_cell($class, '%s', $anyFaults ? $link : "", $str); 202 202 203 $link = "warpFailedSkyfiles.php?pass=" . $pass . "&proj=" . $proj ;203 $link = "warpFailedSkyfiles.php?pass=" . $pass . "&proj=" . $proj . "&warpRun.label=" . $stdsLabel . "&warpRun.state=new"; 204 204 getStateAndFaults($db, $stdsLabel,"warpRun", $selectedState, "warp", $str, $anyFaults); 205 205 write_table_cell($class, '%s', $anyFaults ? $link : "", $str); 206 206 207 $link = "stackFailedSkyfile.php?pass=" . $pass . "&proj=" . $proj ;207 $link = "stackFailedSkyfile.php?pass=" . $pass . "&proj=" . $proj . "&stackRun.label=" . $stdsLabel . "&stackRun.state=new"; 208 208 getStateAndFaults($db, $stdsLabel,"stackRun", $selectedState, "stack", $str, $anyFaults); 209 209 write_table_cell($class, '%s', $anyFaults ? $link : "", $str); 210 210 211 $link = "diffFailedSkyfile.php?pass=" . $pass . "&proj=" . $proj ;211 $link = "diffFailedSkyfile.php?pass=" . $pass . "&proj=" . $proj . "&diffRun.label=" . $stdsLabel . "&diffRun.state=new"; 212 212 getStateAndFaults($db, $stdsLabel,"diffRun", $selectedState, "diff", $str, $anyFaults); 213 213 write_table_cell($class, '%s', $anyFaults ? $link : "", $str); -
tags/ipp-20100623/ippMonitor/raw/ipp.imfiles.dat
r28148 r28452 22 22 menutop | menutop | link | simple plot - cam | simplePlotcam.php 23 23 menutop | menutop | link | czartool | czartool_labels.php 24 24 menutop | menutop | link | mask stats | maskStats.php 25 menutop | menutop | link | histogram | histogram.php -
tags/ipp-20100623/ippMonitor/raw/ipp.load.dat
r27674 r28452 2 2 3 3 menutop | menutop | plain | | 4 menulink | menuselect | link | Raw Exp Summary | rawSummary.php 4 5 menulink | menuselect | link | Raw Exposures | rawExp.php 5 6 menulink | menuselect | link | Raw Detrend Exp | rawDetrendExp.php -
tags/ipp-20100623/ippMonitor/raw/ipp.php
r28043 r28452 564 564 } 565 565 566 // 567 function 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 // 585 function 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 566 602 function write_header_cell ($class, $name) { 567 568 603 echo "<th class=\"$class\">$name</th>\n"; 569 604 } … … 637 672 if ($value != "") { 638 673 echo "value=\"$value\">"; 639 } 674 } else { 675 echo ">"; 676 } 640 677 echo "</td>\n"; 678 } 679 680 // checkbox 681 function 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 699 function 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"; 641 715 } 642 716 … … 778 852 // $myPage = $_SERVER[SCRIPT_NAME] . "?pass=$pass"; 779 853 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 // 860 function 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 780 873 ?> -
tags/ipp-20100623/ippMonitor/scripts/czartool_checkServer.pl
r28148 r28452 17 17 if ($line =~ m/Scheduler is stopped/) {$isRunning = 0; $foundStatus=1;last;} 18 18 if ($line =~ m/Scheduler is running/) {$isRunning = 1; $foundStatus=1;last;} 19 if ($line =~ m/Task Sta us/) {last;}19 if ($line =~ m/Task Status/) {last;} 20 20 21 21 }
Note:
See TracChangeset
for help on using the changeset viewer.
