Changeset 9009
- Timestamp:
- Sep 27, 2006, 2:14:15 PM (20 years ago)
- Location:
- trunk/ippMonitor
- Files:
-
- 29 edited
-
def/detInputExp.d (modified) (1 diff)
-
def/detMasterFrame.d (modified) (1 diff)
-
def/detMasterImfile.d (modified) (1 diff)
-
def/detNormalizedImfile.d (modified) (1 diff)
-
def/detNormalizedStatImfile.d (modified) (1 diff)
-
def/detProcessedImfile.d (modified) (1 diff)
-
def/detResidExp.d (modified) (1 diff)
-
def/detResidImfile.d (modified) (1 diff)
-
def/detRun.d (modified) (1 diff)
-
def/detRunSummary.d (modified) (1 diff)
-
def/detStackedImfile.d (modified) (1 diff)
-
def/masterDetrendImages.d (modified) (3 diffs)
-
def/newExp.d (modified) (1 diff)
-
def/newImfile.d (modified) (1 diff)
-
def/p1PendingExp.d (modified) (1 diff)
-
def/p2PendingExp.d (modified) (1 diff)
-
def/p2PendingImfile.d (modified) (1 diff)
-
def/p2ProcessedExp.d (modified) (1 diff)
-
def/p2ProcessedImfile.d (modified) (1 diff)
-
def/p3PendingExp.d (modified) (1 diff)
-
def/pzPendingExp.d (modified) (1 diff)
-
def/pzPendingImfile.d (modified) (1 diff)
-
def/rawDetrendExp.d (modified) (1 diff)
-
def/rawImfile.d (modified) (1 diff)
-
def/rawScienceExp.d (modified) (1 diff)
-
def/summitExp.d (modified) (1 diff)
-
generate (modified) (4 diffs)
-
raw/ipp.detrend.dat (modified) (1 diff)
-
raw/ipp.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippMonitor/def/detInputExp.d
r9008 r9009 9 9 10 10 # field name show link to extras 11 FIELD det_id, det_id12 FIELD iteration, iteration13 FIELD exp_id, exp_id, value, rawImfile.php, exp_id=$exp_id14 FIELD exp_id, processed, value=proc, detProcessedImfile.php, exp_id=$exp_id,det_id=$det_id15 FIELD include, include11 FIELD det_id, 20, det_id 12 FIELD iteration, 20, iteration 13 FIELD exp_id, 20, exp_id, value, rawImfile.php, exp_id=$exp_id 14 FIELD exp_id, 20, processed, value=proc, detProcessedImfile.php, exp_id=$exp_id,det_id=$det_id 15 FIELD include, 20, include 16 16 17 17 TAIL HTML test tail 1 <br> -
trunk/ippMonitor/def/detMasterFrame.d
r9003 r9009 5 5 6 6 # field name show link to extras 7 FIELD det_id, det_id8 FIELD iteration, iteration9 FIELD comment, comment7 FIELD det_id, 20, det_id 8 FIELD iteration, 20, iteration 9 FIELD comment, 20, comment -
trunk/ippMonitor/def/detMasterImfile.d
r9003 r9009 5 5 6 6 # field name show link to extras 7 FIELD det_id, det_id8 FIELD class_id, class_id9 FIELD uri, uri10 FIELD recipe, recipe7 FIELD det_id, 20, det_id 8 FIELD class_id, 20, class_id 9 FIELD uri, 20, uri 10 FIELD recipe, 20, recipe -
trunk/ippMonitor/def/detNormalizedImfile.d
r9003 r9009 5 5 6 6 # field name show link to extras 7 FIELD det_id, det_id8 FIELD iteration, iteration9 FIELD class_id, class_id10 FIELD uri, uri7 FIELD det_id, 20, det_id 8 FIELD iteration, 20, iteration 9 FIELD class_id, 20, class_id 10 FIELD uri, 20, uri -
trunk/ippMonitor/def/detNormalizedStatImfile.d
r9003 r9009 5 5 6 6 # field name show link to extras 7 FIELD det_id, det_id8 FIELD iteration, iteration9 FIELD class_id, class_id10 FIELD norm, norm7 FIELD det_id, 20, det_id 8 FIELD iteration, 20, iteration 9 FIELD class_id, 20, class_id 10 FIELD norm, 20, norm -
trunk/ippMonitor/def/detProcessedImfile.d
r9003 r9009 8 8 9 9 # field name show link to extras 10 FIELD det_id, det_id11 FIELD exp_id, exp_id12 FIELD class_id, class_id13 FIELD uri, uri14 FIELD recipe, recipe15 FIELD bg, bg16 FIELD bg_stdev, bg_stdev17 FIELD bg_mean_stdev, bg_mean_stdev10 FIELD det_id, 20, det_id 11 FIELD exp_id, 20, exp_id 12 FIELD class_id, 20, class_id 13 FIELD uri, 20, uri 14 FIELD recipe, 20, recipe 15 FIELD bg, 20, bg 16 FIELD bg_stdev, 20, bg_stdev 17 FIELD bg_mean_stdev, 20, bg_mean_stdev -
trunk/ippMonitor/def/detResidExp.d
r9008 r9009 5 5 6 6 # field name show link to extras 7 FIELD det_id, det_id, value8 FIELD iteration, iteration, value9 FIELD accept, accept, value10 FIELD exp_id, exp_id, value, rawImfile.php, exp_id=$exp_id11 FIELD b2_uri, b2_uri, image=$b2_uri, detResidImfile.php, det_id=$det_id,iteration=$iteration,exp_id=$exp_id,image=$b1_uri12 FIELD recipe, recipe, value13 FIELD bg, backgnd, value14 FIELD bg_stdev, bg_stdev, value15 FIELD b1_uri, b1_uri, none16 # FIELD bg_mean_stdev, bg_mean_stdev7 FIELD det_id, 20, det_id, value 8 FIELD iteration, 20, iteration, value 9 FIELD accept, 20, accept, value 10 FIELD exp_id, 20, exp_id, value, rawImfile.php, exp_id=$exp_id 11 FIELD b2_uri, 20, b2_uri, image=$b2_uri, detResidImfile.php, det_id=$det_id,iteration=$iteration,exp_id=$exp_id,image=$b1_uri 12 FIELD recipe, 20, recipe, value 13 FIELD bg, 20, backgnd, value 14 FIELD bg_stdev, 20, bg_stdev, value 15 FIELD b1_uri, 20, b1_uri, none 16 # FIELD bg_mean_stdev, 20, bg_mean_stdev -
trunk/ippMonitor/def/detResidImfile.d
r9008 r9009 4 4 MENU ipp.imfiles.dat 5 5 6 # field name show link to extras7 FIELD det_id, det_id8 FIELD iteration, iteration9 FIELD exp_id, exp_id10 FIELD class_id, class_id11 FIELD uri, uri12 FIELD recipe, recipe13 FIELD bg, bg14 FIELD bg_stdev, bg_stdev15 FIELD bg_mean_stdev, bg_mean_stdev16 FIELD b1_uri,b1_uri17 FIELD b2_uri,b2_uri6 # field width name show link to extras 7 FIELD det_id, 20, det_id 8 FIELD iteration, 20, iteration 9 FIELD exp_id, 20, exp_id 10 FIELD class_id, 20, class_id 11 FIELD uri, 20, uri 12 FIELD recipe, 20, recipe 13 FIELD bg, 20, bg 14 FIELD bg_stdev, 20, bg_stdev 15 FIELD bg_mean_stdev, 20, bg_mean_stdev 16 # FIELD b1_uri, 20, b1_uri 17 # FIELD b2_uri, 20, b2_uri 18 18 19 19 TAIL PHP insert_image ('image'); -
trunk/ippMonitor/def/detRun.d
r9003 r9009 5 5 6 6 # field name show link to extras 7 FIELD position, det ID, value, detRunSummary.php, det_id=$position8 FIELD iteration, iteration9 FIELD det_type, det_type7 FIELD position, 20, det ID, value, detRunSummary.php, det_id=$position 8 FIELD iteration, 20, iteration 9 FIELD det_type, 20, det_type -
trunk/ippMonitor/def/detRunSummary.d
r9003 r9009 4 4 MENU ipp.detrend.dat 5 5 6 # field name show link to extras 7 FIELD det_id, det_id 8 FIELD iteration, iteration, value, detInputExp.php, det_id=$det_id,iteration=$iteration 9 FIELD iteration, iteration, value=resid, detResidExp.php, det_id=$det_id,iteration=$iteration 10 FIELD accept, accept 11 FIELD bg, bg 12 FIELD bg_stdev, bg_stdev 13 # FIELD bg_mean_stdev, bg_mean_stdev 6 # field name show link to extras 7 FIELD det_id, 7, det_id 8 FIELD iteration, 5, iter 9 FIELD accept, 20, accept 10 FIELD *, 20, choose, value=input, detInputExp.php, det_id=$det_id,iteration=$iteration 11 FIELD *, 20, choose, value=resid, detResidExp.php, det_id=$det_id,iteration=$iteration 12 FIELD bg, 20, bg 13 FIELD bg_stdev, 20, bg_stdev 14 # FIELD bg_mean_stdev, 20, bg_mean_stdev -
trunk/ippMonitor/def/detStackedImfile.d
r9003 r9009 5 5 6 6 # field name show link to extras 7 FIELD det_id, det_id8 FIELD iteration, iteration9 FIELD class_id, class_id10 FIELD uri, uri11 FIELD recipe, recipe12 FIELD bg, bg13 FIELD bg_stdev, bg_stdev14 FIELD bg_mean_stdev, bg_mean_stdev15 FIELD normalize, normalize7 FIELD det_id, 20, det_id 8 FIELD iteration, 20, iteration 9 FIELD class_id, 20, class_id 10 FIELD uri, 20, uri 11 FIELD recipe, 20, recipe 12 FIELD bg, 20, bg 13 FIELD bg_stdev, 20, bg_stdev 14 FIELD bg_mean_stdev, 20, bg_mean_stdev 15 FIELD normalize, 20, normalize -
trunk/ippMonitor/def/masterDetrendImages.d
r9008 r9009 7 7 MENU ipp.detrend.dat 8 8 9 HEAD PHP insert_image ('image');10 HEAD HTML extra <b> lines </b><br><br>11 12 9 # the following WHERE clauses are added to all queries joined by AND 13 10 WHERE detRunSummary.accept = 1 … … 15 12 WHERE detRun.iteration = detRunSummary.iteration 16 13 17 # field name show link to extras 18 FIELD detRunSummary.det_id, det_id 19 FIELD detRun.det_type, type 20 FIELD detRunSummary.iteration, iteration, value, detInputExp.php, det_id=$detRunSummary.det_id,iteration=$detRunSummary.iteration 21 FIELD *, resid, value=resid, detResidExp.php, det_id=$detRunSummary.det_id,iteration=$detRunSummary.iteration 22 FIELD detRunSummary.bg, bg 23 FIELD detRunSummary.bg_stdev, bg_stdev 24 # FIELD bg_mean_stdev, bg_mean_stdev 14 # field width name show link to extras 15 FIELD detRunSummary.det_id, 7, det_id, value, detRunSummary.php, det_id=$detRunSummary.det_id 16 FIELD detRun.det_type, 5, type 17 FIELD detRunSummary.iteration, 5, iter 18 FIELD *, 20, choose, value=input, detInputExp.php, det_id=$detRunSummary.det_id,iteration=$detRunSummary.iteration 19 FIELD *, 20, choose, value=resid, detResidExp.php, det_id=$detRunSummary.det_id,iteration=$detRunSummary.iteration 20 FIELD detRunSummary.bg, 20, bg 21 FIELD detRunSummary.bg_stdev, 20, bg_stdev 22 # FIELD bg_mean_stdev, 20, bg_mean_stdev 25 23 26 24 # this file illustrates a simple inner join to generate the output table … … 30 28 # WHERE detRunSummary.accept = 1 AND detRun.position = detRunSummary.det_id AND detRun.iteration = detRunSummary.iteration \ 31 29 # LIMIT 20 32 33 TAIL HTML extra <b> tail lines </b><br>34 TAIL PHP echo "this is a php line at the end<br>\n"; -
trunk/ippMonitor/def/newExp.d
r9003 r9009 5 5 6 6 # field name show link to extras 7 FIELD exp_id, exposure ID8 FIELD camera, camera9 FIELD telescope, telescope10 FIELD exp_type, type11 FIELD imfiles, N imfiles7 FIELD exp_id, 20, exposure ID 8 FIELD camera, 20, camera 9 FIELD telescope, 20, telescope 10 FIELD exp_type, 20, type 11 FIELD imfiles, 20, N imfiles -
trunk/ippMonitor/def/newImfile.d
r9003 r9009 5 5 6 6 # field name show link to extras 7 FIELD exp_id, exposure ID8 FIELD class, class9 FIELD class_id, class ID10 FIELD uri, URI7 FIELD exp_id, 20, exposure ID 8 FIELD class, 20, class 9 FIELD class_id, 20, class ID 10 FIELD uri, 20, URI -
trunk/ippMonitor/def/p1PendingExp.d
r9003 r9009 5 5 6 6 # field name show link to extras 7 FIELD exp_id, exposure ID, value, rawImfile.php, exp_id=$exp_id8 FIELD recipe, recipe9 FIELD p1_version, p1 version7 FIELD exp_id, 20, exposure ID, value, rawImfile.php, exp_id=$exp_id 8 FIELD recipe, 20, recipe 9 FIELD p1_version, 20, p1 version -
trunk/ippMonitor/def/p2PendingExp.d
r9003 r9009 5 5 6 6 # field name show link to extras 7 FIELD exp_id, exposure ID, value, rawImfile.php, exp_id=$exp_id8 FIELD recipe, recipe9 FIELD p1_version, p1 version10 FIELD p2_version, p2 version7 FIELD exp_id, 20, exposure ID, value, rawImfile.php, exp_id=$exp_id 8 FIELD recipe, 20, recipe 9 FIELD p1_version, 20, p1 version 10 FIELD p2_version, 20, p2 version -
trunk/ippMonitor/def/p2PendingImfile.d
r9003 r9009 5 5 6 6 # field name show link to extras 7 FIELD exp_id, exposure ID8 FIELD class_id, class ID9 FIELD uri, URI10 FIELD recipe, recipe11 FIELD p1_version, p1 version12 FIELD p2_version, p2 version7 FIELD exp_id, 20, exposure ID 8 FIELD class_id, 20, class ID 9 FIELD uri, 20, URI 10 FIELD recipe, 20, recipe 11 FIELD p1_version, 20, p1 version 12 FIELD p2_version, 20, p2 version -
trunk/ippMonitor/def/p2ProcessedExp.d
r9003 r9009 5 5 6 6 # field name show link to extras 7 FIELD exp_id, exposure ID, value, p2ProcessedImfile.php, exp_id=$exp_id8 FIELD p1_version, p1 version, value, p1PendingExp.php exp_id=$exp_id9 FIELD p2_version, p2 version7 FIELD exp_id, 20, exposure ID, value, p2ProcessedImfile.php, exp_id=$exp_id 8 FIELD p1_version, 20, p1 version, value, p1PendingExp.php exp_id=$exp_id 9 FIELD p2_version, 20, p2 version -
trunk/ippMonitor/def/p2ProcessedImfile.d
r9003 r9009 5 5 6 6 # field name show link to extras 7 FIELD exp_id, exposure ID8 FIELD class_id, class ID9 FIELD uri, URI10 FIELD recipe, recipe11 FIELD bg, background12 FIELD bg_stdev, background stdev13 FIELD bg_mean_stdev, mean background stdev14 FIELD b1_uri, URI small binned15 FIELD b2_uri, URI large binned16 FIELD p1_version, p1 version17 FIELD p2_version, p2 version7 FIELD exp_id, 20, exposure ID 8 FIELD class_id, 20, class ID 9 FIELD uri, 20, URI 10 FIELD recipe, 20, recipe 11 FIELD bg, 20, background 12 FIELD bg_stdev, 20, background stdev 13 FIELD bg_mean_stdev, 20, mean background stdev 14 FIELD b1_uri, 20, URI small binned 15 FIELD b2_uri, 20, URI large binned 16 FIELD p1_version, 20, p1 version 17 FIELD p2_version, 20, p2 version -
trunk/ippMonitor/def/p3PendingExp.d
r9003 r9009 5 5 6 6 # field name show link to extras 7 FIELD exp_id, exposure ID, value, p2ProcessedImfile.php, exp_id=$exp_id8 FIELD p2_version, p2 version, value, p2ProcessedExp.php, exp_id=$exp_id9 FIELD p3_version, p3 version7 FIELD exp_id, 20, exposure ID, value, p2ProcessedImfile.php, exp_id=$exp_id 8 FIELD p2_version, 20, p2 version, value, p2ProcessedExp.php, exp_id=$exp_id 9 FIELD p3_version, 20, p3 version -
trunk/ippMonitor/def/pzPendingExp.d
r9003 r9009 5 5 6 6 # field name show link to extras 7 FIELD exp_id, exposures ID8 FIELD camera, camera9 FIELD telescope, telescope10 FIELD exp_type, type11 FIELD imfiles, N files7 FIELD exp_id, 20, exposures ID 8 FIELD camera, 20, camera 9 FIELD telescope, 20, telescope 10 FIELD exp_type, 20, type 11 FIELD imfiles, 20, N files -
trunk/ippMonitor/def/pzPendingImfile.d
r9003 r9009 5 5 6 6 # field name show link to extras 7 FIELD exp_id, exposure ID8 FIELD bytes, number of bytes9 FIELD md5sum, checksum10 FIELD class, class11 FIELD class_id, class ID12 FIELD uri, URI7 FIELD exp_id, 20, exposure ID 8 FIELD bytes, 20, number of bytes 9 FIELD md5sum, 20, checksum 10 FIELD class, 20, class 11 FIELD class_id, 20, class ID 12 FIELD uri, 20, URI -
trunk/ippMonitor/def/rawDetrendExp.d
r9003 r9009 5 5 6 6 # field name show link to extras 7 FIELD exp_id, exposure ID, value, rawImfile.php, exp_id=$exp_id8 FIELD telescope, Telescope9 FIELD camera, Camera10 FIELD exp_type, Type11 FIELD filter, FILTER12 # FIELD imfiles, imfiles13 # FIELD airmass, airmass14 # FIELD ra, ra15 # FIELD decl, decl16 # FIELD exp_time, exp_time17 # FIELD bg, bg18 # FIELD bg_stdev, bg_stdev19 # FIELD bg_mean_stdev, bg_mean_stdev20 # FIELD alt, alt21 # FIELD az, az22 # FIELD ccd_temp, ccd_temp23 # FIELD posang, posang7 FIELD exp_id, 20, exposure ID, value, rawImfile.php, exp_id=$exp_id 8 FIELD telescope, 20, Telescope 9 FIELD camera, 20, Camera 10 FIELD exp_type, 20, Type 11 FIELD filter, 20, FILTER 12 # FIELD imfiles, 20, imfiles 13 # FIELD airmass, 20, airmass 14 # FIELD ra, 20, ra 15 # FIELD decl, 20, decl 16 # FIELD exp_time, 20, exp_time 17 # FIELD bg, 20, bg 18 # FIELD bg_stdev, 20, bg_stdev 19 # FIELD bg_mean_stdev, 20, bg_mean_stdev 20 # FIELD alt, 20, alt 21 # FIELD az, 20, az 22 # FIELD ccd_temp, 20, ccd_temp 23 # FIELD posang, 20, posang -
trunk/ippMonitor/def/rawImfile.d
r9003 r9009 8 8 9 9 # field name show link to extras 10 FIELD exp_id, Exposure ID11 FIELD class, Class12 FIELD class_id, Class ID13 # FIELD uri, uri14 # FIELD exp_type, exp_type15 # FIELD filter, filter16 # FIELD airmass, airmass17 # FIELD ra, ra18 # FIELD decl, decl19 # FIELD exp_time, exp_time20 # FIELD bg, bg21 # FIELD bg_stdev, bg_stdev22 # FIELD bg_mean_stdev, bg_mean_stdev23 # FIELD alt, alt24 # FIELD az, az25 # FIELD ccd_temp, ccd_temp26 # FIELD posang, posang10 FIELD exp_id, 20, Exposure ID 11 FIELD class, 20, Class 12 FIELD class_id, 20, Class ID 13 # FIELD uri, 20, uri 14 # FIELD exp_type, 20, exp_type 15 # FIELD filter, 20, filter 16 # FIELD airmass, 20, airmass 17 # FIELD ra, 20, ra 18 # FIELD decl, 20, decl 19 # FIELD exp_time, 20, exp_time 20 # FIELD bg, 20, bg 21 # FIELD bg_stdev, 20, bg_stdev 22 # FIELD bg_mean_stdev, 20, bg_mean_stdev 23 # FIELD alt, 20, alt 24 # FIELD az, 20, az 25 # FIELD ccd_temp, 20, ccd_temp 26 # FIELD posang, 20, posang -
trunk/ippMonitor/def/rawScienceExp.d
r9003 r9009 5 5 6 6 # field name show link to extras 7 FIELD exp_id, exposure ID, value, rawImfile.php, exp_id=$exp_id,camera=$camera,foo=bar8 FIELD telescope, Telescope, value, telescopes.php9 FIELD camera, Camera10 FIELD exp_type, Type11 FIELD filter, FILTER12 # FIELD imfiles, imfiles13 # FIELD airmass, airmass14 # FIELD ra, ra15 # FIELD decl, decl16 # FIELD exp_time, exp_time17 # FIELD bg, bg18 # FIELD bg_stdev, bg_stdev19 # FIELD bg_mean_stdev, bg_mean_stdev20 # FIELD alt, alt21 # FIELD az, az22 # FIELD ccd_temp, ccd_temp23 # FIELD posang, posang7 FIELD exp_id, 20, exposure ID, value, rawImfile.php, exp_id=$exp_id,camera=$camera,foo=bar 8 FIELD telescope, 20, Telescope, value, telescopes.php 9 FIELD camera, 20, Camera 10 FIELD exp_type, 20, Type 11 FIELD filter, 20, FILTER 12 # FIELD imfiles, 20, imfiles 13 # FIELD airmass, 20, airmass 14 # FIELD ra, 20, ra 15 # FIELD decl, 20, decl 16 # FIELD exp_time, 20, exp_time 17 # FIELD bg, 20, bg 18 # FIELD bg_stdev, 20, bg_stdev 19 # FIELD bg_mean_stdev, 20, bg_mean_stdev 20 # FIELD alt, 20, alt 21 # FIELD az, 20, az 22 # FIELD ccd_temp, 20, ccd_temp 23 # FIELD posang, 20, posang -
trunk/ippMonitor/def/summitExp.d
r9003 r9009 5 5 6 6 # field name show link to extras 7 FIELD exp_id, exposure ID8 FIELD camera, camera9 FIELD telescope, telescope10 FIELD exp_type, type11 FIELD uri, URI7 FIELD exp_id, 20, exposure ID 8 FIELD camera, 20, camera 9 FIELD telescope, 20, telescope 10 FIELD exp_type, 20, type 11 FIELD uri, 20, URI -
trunk/ippMonitor/generate
r9008 r9009 12 12 # global variables: 13 13 # @key, @value : paired list of keys and values 14 # @field, @name, @show, @link, @extras : properties of each table column15 14 # @headcode, @tailcode : additional HTML or PHP code before or after table 15 # @field, @width, @name, @show, @link, @extras : properties of each table column 16 16 17 17 &parse_schema; … … 44 44 # list of the table fields 45 45 if ($key eq "FIELD") { 46 ($field, $name, $show, $link, $extras) = split (/,\s+/, $value, 5); 46 ($field, $width, $name, $show, $link, $extras) = split (/,\s+/, $value, 6); 47 if (! $name) { die "table $ARGV[0] missing required elements\n"; } 47 48 # ($field) = $field =~ m|\s*(\S+)\s*|; 48 49 … … 50 51 if ($show eq "") {$show = "value";} 51 52 push @field, $field; 53 push @width, $width; 52 54 push @name, $name; 53 55 push @show, $show; … … 250 252 printf FILE "echo \"<td> </td>\\n\";\n"; 251 253 } else { 252 printf FILE "write_query_row ('$field[$i]' );\n";254 printf FILE "write_query_row ('$field[$i]', $width[$i]);\n"; 253 255 } 254 256 } -
trunk/ippMonitor/raw/ipp.detrend.dat
r9008 r9009 24 24 menutop | menutop | plain | | 25 25 menulink | menuselect | link | Master Detrend Images | masterDetrendImages.php 26 menulink | menuselect | link | Det Run | detRun.php 27 menulink | menuselect | link | Det Run Summary | detRunSummary.php 28 menulink | menuselect | link | Det Input Exp | detInputExp.php 29 menulink | menuselect | link | Det Resid Exp | detResidExp.php 26 menulink | menuselect | link | Detrend Runs | detRunSummary.php 27 menulink | menuselect | link | Input Detrend Exp | detInputExp.php 28 menulink | menuselect | link | Resid Detrend Exp | detResidExp.php 30 29 31 30 menutop | menutop | plain | | -
trunk/ippMonitor/raw/ipp.php
r9008 r9009 19 19 // connect to the database 20 20 require_once('DB.php'); 21 #$db = DB::connect("mysql://ipp:ipp@localhost/ipp");21 // $db = DB::connect("mysql://ipp:ipp@localhost/ipp"); 22 22 $db = DB::connect("mysql://ipp:ipp@localhost/detrend"); 23 23 if (DB::iserror($db)) { … … 81 81 $ID['menu'] = $_GET[menu]; 82 82 // echo "using GET: ", $ID['pass'], $ID['proj']; 83 84 // echo "GET list<br>\n"; 85 // foreach ($_GET as $key => $value) { 86 // echo "$key : $value<br>\n"; 87 // } 83 88 } 84 89 if ($_SERVER[REQUEST_METHOD] == 'POST') { … … 87 92 $ID['menu'] = $_POST[menu]; 88 93 // echo "using POST: ", $ID['pass'], $ID['proj']; 94 95 // echo "POST list<br>\n"; 96 // foreach ($_POST as $key => $value) { 97 // echo "$key : $value<br>\n"; 98 // } 89 99 } 90 100 … … 178 188 179 189 function check_restrict ($key, $where) { 180 // echo "key: $key<br>\n";190 $htmlkey = preg_replace ('|\.|', '_', $key); 181 191 if ($_SERVER[REQUEST_METHOD] == 'GET') { 182 $value = $_GET[$ key];192 $value = $_GET[$htmlkey]; 183 193 // echo "using GET<br>\n"; 184 194 } else { 185 $value = $_POST[$ key];195 $value = $_POST[$htmlkey]; 186 196 // echo "using POST<br>\n"; 187 197 } … … 199 209 } 200 210 201 function write_query_row ($key) { 202 $value = $_POST[$key]; 211 function write_query_row ($key, $width) { 212 $htmlkey = preg_replace ('|\.|', '_', $key); 213 $value = $_POST[$htmlkey]; 203 214 if (($_SERVER[REQUEST_METHOD] == 'POST') && $value) { 204 echo "<td class=\"list\"> <input type=\"text\" name=\"$key\" value=\"$value\"> </td>\n";215 echo "<td class=\"list\"> <input type=\"text\" name=\"$key\" size=\"$width\" value=\"$value\"> </td>\n"; 205 216 } else { 206 echo "<td class=\"list\"> <input type=\"text\" name=\"$key\" > </td>\n";217 echo "<td class=\"list\"> <input type=\"text\" name=\"$key\" size=\"$width\"> </td>\n"; 207 218 } 208 219 } 209 220 210 221 // expect image supplied with key=name 222 // this function should define matching hidden inputs in the form 211 223 function insert_image ($key) { 212 224
Note:
See TracChangeset
for help on using the changeset viewer.
