Changeset 18193
- Timestamp:
- Jun 19, 2008, 6:15:23 AM (18 years ago)
- Location:
- trunk/ippMonitor
- Files:
-
- 33 edited
-
def/autocode.php (modified) (2 diffs)
-
def/camPendingExp.d (modified) (1 diff)
-
def/camProcessedExp.d (modified) (1 diff)
-
def/camProcessedExp_NoImages.d (modified) (1 diff)
-
def/camProcessedExp_failure.d (modified) (1 diff)
-
def/chipPendingExp.d (modified) (1 diff)
-
def/chipProcessedExp.d (modified) (1 diff)
-
def/chipProcessedImfile.d (modified) (1 diff)
-
def/chipProcessedImfile_failure.d (modified) (1 diff)
-
def/detInputExp.d (modified) (1 diff)
-
def/detProcessedExp.d (modified) (1 diff)
-
def/detProcessedImfile.d (modified) (2 diffs)
-
def/detResidExp.d (modified) (4 diffs)
-
def/detStackedImfile.d (modified) (1 diff)
-
def/newExp.d (modified) (1 diff)
-
def/newImfile.d (modified) (1 diff)
-
def/pzDoneExp.d (modified) (1 diff)
-
def/pzDoneExp_failed.d (modified) (1 diff)
-
def/pzPendingExp.d (modified) (1 diff)
-
def/rawDetrendExp.d (modified) (1 diff)
-
def/rawDetrendExp_detrend.d (modified) (2 diffs)
-
def/rawExp.d (modified) (1 diff)
-
def/rawExp_failed.d (modified) (1 diff)
-
def/rawImfile.d (modified) (1 diff)
-
def/rawScienceExp.d (modified) (1 diff)
-
def/rawUnknownExp.d (modified) (1 diff)
-
def/stackInputSkyfile.d (modified) (1 diff)
-
def/summitExp.d (modified) (1 diff)
-
def/warpInputExp.d (modified) (1 diff)
-
def/warpSkycellMap.d (modified) (1 diff)
-
raw/ipp.css (modified) (2 diffs)
-
raw/ipp.php (modified) (6 diffs)
-
scripts/generate (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippMonitor/def/autocode.php
r18143 r18193 69 69 // set up the table 70 70 echo "<table class=list>\n"; 71 echo "<tr>\n"; 71 72 // echo "<tr><td></td>\n"; // first field is a label set below for the query rows only 72 73 // ** TABLE HEADER ** 73 echo "</tr>\n";74 // echo "</tr>\n"; 74 75 75 76 // query restriction form … … 86 87 // ** TD CLASS ** 87 88 88 echo "<tr> \n";89 echo "<tr><td></td>\n"; 89 90 // ** TABLE DATA ** 90 91 echo "</tr>\n"; -
trunk/ippMonitor/def/camPendingExp.d
r17012 r18193 20 20 FIELD rawExp.telescope, 10, %s, Telescope 21 21 FIELD rawExp.camera, 10, %s, Camera 22 FIELD rawExp.dateobs, 1 0, %s, Date/Time22 FIELD rawExp.dateobs, 19, %T, Date/Time 23 23 FIELD rawExp.ra, 8, %10.6f, RA, op=OP1 24 24 FIELD rawExp.decl, 8, %10.6f, DEC, op=OP2 25 25 FIELD rawExp.object, 10, %s, Object 26 26 FIELD rawExp.filter, 10, %s, FILTER 27 FIELD rawExp.exp_time, 5, % s,exp_time28 FIELD rawExp.airmass, 5, % s,airmass29 FIELD rawExp.bg, 5, % s,backgnd30 FIELD rawExp.bg_stdev, 5, % s,stdev31 FIELD rawExp.bg_mean_stdev, 5, % s,<backgnd>32 FIELD rawExp.sat_pixel_frac, 5, % s,f(sat pixels)27 FIELD rawExp.exp_time, 5, %.2f, exp_time 28 FIELD rawExp.airmass, 5, %.4f, airmass 29 FIELD rawExp.bg, 5, %.2f, backgnd 30 FIELD rawExp.bg_stdev, 5, %.2f, stdev 31 FIELD rawExp.bg_mean_stdev, 5, %.2f, <backgnd> 32 FIELD rawExp.sat_pixel_frac, 5, %.3f, f(sat pixels) -
trunk/ippMonitor/def/camProcessedExp.d
r16530 r18193 27 27 28 28 # field size format name show link to extras 29 FIELD chipRun.exp_id, 5, % s, Exp ID, value, chipProcessedImfile.php, ARG129 FIELD chipRun.exp_id, 5, %d, Exp ID, value, chipProcessedImfile.php, ARG1 30 30 FIELD rawExp.exp_name, 5, %s, Exp Name, value, rawImfile.php, ARG1 31 FIELD chipRun.chip_id, 5, % s, chip ID32 FIELD camRun.cam_id, 5, % s, cam ID, value, chipProcessedExp.php, ARG131 FIELD chipRun.chip_id, 5, %d, chip ID 32 FIELD camRun.cam_id, 5, %d, cam ID, value, chipProcessedExp.php, ARG1 33 33 FIELD *, 8, %s, image, image=JPEG2, camProcessedImfile.php, ARG2 34 34 FIELD rawExp.telescope, 10, %s, Telescope 35 35 FIELD rawExp.camera, 10, %s, Camera 36 FIELD rawExp.dateobs, 20, %s, Date/Time36 FIELD rawExp.dateobs, 19, %T, Date/Time 37 37 FIELD rawExp.ra, 8, %10.6f, RA, op=OP1 38 38 FIELD rawExp.decl, 8, %10.6f, DEC, op=OP2 39 39 FIELD rawExp.object, 10, %s, Object 40 40 FIELD rawExp.filter, 10, %s, FILTER 41 FIELD rawExp.exp_time, 5, % s, exp_time42 FIELD rawExp.airmass, 5, % s, airmass41 FIELD rawExp.exp_time, 5, %.2f, exp_time 42 FIELD rawExp.airmass, 5, %.4f, airmass 43 43 FIELD camRun.reduction, 5, %s, reduction 44 FIELD camProcessedExp.bg, 5, % s, backgnd45 FIELD camProcessedExp.bg_stdev, 5, % s, stdev46 FIELD camProcessedExp.bg_mean_stdev, 5, % s, <backgnd>47 FIELD camProcessedExp.n_stars, 5, % s, Nstars48 FIELD camProcessedExp.n_astrom, 5, % s, Nastrom49 FIELD camProcessedExp.sigma_ra, 5, % s, sigma ra50 FIELD camProcessedExp.fwhm_major, 5, % s, FHWM (major)44 FIELD camProcessedExp.bg, 5, %.2f, backgnd 45 FIELD camProcessedExp.bg_stdev, 5, %.2f, stdev 46 FIELD camProcessedExp.bg_mean_stdev, 5, %.2f, <backgnd> 47 FIELD camProcessedExp.n_stars, 5, %d, Nstars 48 FIELD camProcessedExp.n_astrom, 5, %d, Nastrom 49 FIELD camProcessedExp.sigma_ra, 5, %f, sigma ra 50 FIELD camProcessedExp.fwhm_major, 5, %f, FHWM (major) 51 51 FIELD camProcessedExp.path_base, 5, %s, path_base, none 52 52 FIELD rawExp.exp_id, 5, %s, Exp ID, none -
trunk/ippMonitor/def/camProcessedExp_NoImages.d
r16617 r18193 28 28 29 29 # field size format name show link to extras 30 FIELD chipRun.exp_id, 5, % s, Exp ID, value, chipProcessedImfile.php, ARG130 FIELD chipRun.exp_id, 5, %d, Exp ID, value, chipProcessedImfile.php, ARG1 31 31 FIELD rawExp.exp_name, 5, %s, Exp Name, value, rawImfile.php, ARG1 32 FIELD chipRun.chip_id, 5, % s, chip ID33 FIELD camRun.cam_id, 5, % s, cam ID, value, chipProcessedExp.php, ARG132 FIELD chipRun.chip_id, 5, %d, chip ID 33 FIELD camRun.cam_id, 5, %d, cam ID, value, chipProcessedExp.php, ARG1 34 34 FIELD rawExp.telescope, 10, %s, Telescope 35 35 FIELD rawExp.camera, 10, %s, Camera 36 FIELD rawExp.dateobs, 20, %s, Date/Time36 FIELD rawExp.dateobs, 19, %T, Date/Time 37 37 FIELD rawExp.filter, 10, %s, FILTER 38 38 FIELD rawExp.ra, 8, %10.6f, RA, op=OP1 39 39 FIELD rawExp.decl, 8, %10.6f, DEC, op=OP2 40 40 FIELD rawExp.object, 10, %s, Object 41 FIELD rawExp.exp_time, 5, % s, exp_time42 FIELD rawExp.airmass, 5, % s, airmass41 FIELD rawExp.exp_time, 5, %.2f, exp_time 42 FIELD rawExp.airmass, 5, %.4f, airmass 43 43 FIELD camRun.reduction, 5, %s, reduction 44 FIELD camProcessedExp.bg, 5, % s, backgnd45 FIELD camProcessedExp.bg_stdev, 5, % s, stdev46 FIELD camProcessedExp.bg_mean_stdev, 5, % s, <backgnd>47 FIELD camProcessedExp.n_stars, 5, % s, Nstars48 FIELD camProcessedExp.n_astrom, 5, % s, Nastrom49 FIELD camProcessedExp.sigma_ra, 5, % s, sigma ra50 FIELD camProcessedExp.fwhm_major, 5, % s, FHWM (major)44 FIELD camProcessedExp.bg, 5, %.2f, backgnd 45 FIELD camProcessedExp.bg_stdev, 5, %.2f, stdev 46 FIELD camProcessedExp.bg_mean_stdev, 5, %.2f, <backgnd> 47 FIELD camProcessedExp.n_stars, 5, %d, Nstars 48 FIELD camProcessedExp.n_astrom, 5, %d, Nastrom 49 FIELD camProcessedExp.sigma_ra, 5, %f, sigma ra 50 FIELD camProcessedExp.fwhm_major, 5, %f, FHWM (major) 51 51 FIELD camProcessedExp.path_base, 5, %s, path_base, none 52 52 FIELD rawExp.exp_id, 5, %s, Exp ID, none -
trunk/ippMonitor/def/camProcessedExp_failure.d
r16617 r18193 28 28 29 29 # field size format name show link to extras 30 FIELD chipRun.exp_id, 5, % s, Exp ID, value, chipProcessedImfile.php, ARG130 FIELD chipRun.exp_id, 5, %d, Exp ID, value, chipProcessedImfile.php, ARG1 31 31 FIELD rawExp.exp_name, 5, %s, Exp Name, value, rawImfile.php, ARG1 32 FIELD chipRun.chip_id, 5, % s, chip ID33 FIELD camRun.cam_id, 5, % s, cam ID, value, chipProcessedExp.php, ARG132 FIELD chipRun.chip_id, 5, %d, chip ID 33 FIELD camRun.cam_id, 5, %d, cam ID, value, chipProcessedExp.php, ARG1 34 34 FIELD rawExp.telescope, 10, %s, Telescope 35 35 FIELD rawExp.camera, 10, %s, Camera 36 FIELD rawExp.dateobs, 20, %s, Date/Time36 FIELD rawExp.dateobs, 19, %T, Date/Time 37 37 FIELD rawExp.filter, 10, %s, FILTER 38 38 FIELD rawExp.ra, 8, %10.6f, RA, op=OP1 39 39 FIELD rawExp.decl, 8, %10.6f, DEC, op=OP2 40 40 FIELD rawExp.object, 10, %s, Object 41 FIELD rawExp.exp_time, 5, % s, exp_time42 FIELD rawExp.airmass, 5, % s, airmass41 FIELD rawExp.exp_time, 5, %.2f, exp_time 42 FIELD rawExp.airmass, 5, %.4f, airmass 43 43 FIELD camRun.reduction, 5, %s, reduction 44 FIELD camProcessedExp.bg, 5, % s, backgnd45 FIELD camProcessedExp.bg_stdev, 5, % s, stdev46 FIELD camProcessedExp.bg_mean_stdev, 5, % s, <backgnd>47 FIELD camProcessedExp.n_stars, 5, % s, Nstars48 FIELD camProcessedExp.n_astrom, 5, % s, Nastrom49 FIELD camProcessedExp.sigma_ra, 5, % s, sigma ra50 FIELD camProcessedExp.fwhm_major, 5, % s, FHWM (major)44 FIELD camProcessedExp.bg, 5, %.2f, backgnd 45 FIELD camProcessedExp.bg_stdev, 5, %.2f, stdev 46 FIELD camProcessedExp.bg_mean_stdev, 5, %.2f, <backgnd> 47 FIELD camProcessedExp.n_stars, 5, %d, Nstars 48 FIELD camProcessedExp.n_astrom, 5, %d, Nastrom 49 FIELD camProcessedExp.sigma_ra, 5, %f, sigma ra 50 FIELD camProcessedExp.fwhm_major, 5, %f, FHWM (major) 51 51 FIELD camProcessedExp.path_base, 5, %s, path_base, none 52 52 FIELD rawExp.exp_id, 5, %s, Exp ID, none -
trunk/ippMonitor/def/chipPendingExp.d
r17013 r18193 14 14 15 15 # field size format name show link to extras 16 FIELD chipRun.exp_id, 5, % s, Exp ID16 FIELD chipRun.exp_id, 5, %d, Exp ID 17 17 FIELD rawExp.exp_name, 5, %s, Exp Name, value, rawImfile.php, ARG1 18 FIELD chipRun.chip_id, 7, % s, chip ID18 FIELD chipRun.chip_id, 7, %d, chip ID 19 19 FIELD rawExp.telescope, 10, %s, Telescope 20 20 FIELD rawExp.camera, 10, %s, Camera 21 FIELD rawExp.dateobs, 20, %s, Date/Time21 FIELD rawExp.dateobs, 19, %T, Date/Time 22 22 FIELD rawExp.ra, 5, %10.6f, RA, op=OP1 23 23 FIELD rawExp.decl, 5, %10.6f, DEC, op=OP2 24 24 FIELD rawExp.object, 8, %s, Object 25 FIELD rawExp.filter, 8, %s, FILTER26 FIELD rawExp.exp_time, 5, % s,exp_time27 FIELD rawExp.airmass, 5, % s,airmass28 FIELD rawExp.bg, 5, % 8.2f,backgnd29 FIELD rawExp.bg_stdev, 5, % 7.2f,stdev25 FIELD rawExp.filter, 10, %s, FILTER 26 FIELD rawExp.exp_time, 5, %.2f, exp_time 27 FIELD rawExp.airmass, 5, %.4f, airmass 28 FIELD rawExp.bg, 5, %.2f, backgnd 29 FIELD rawExp.bg_stdev, 5, %.2f, stdev 30 30 FIELD rawExp.comment, 5, %s, CMMTOBS 31 31 -
trunk/ippMonitor/def/chipProcessedExp.d
r15992 r18193 15 15 16 16 # field size format name show link to extras 17 FIELD chipRun.exp_id, 5, % s, Exp ID, value, rawImfile.php, ARG117 FIELD chipRun.exp_id, 5, %d, Exp ID, value, rawImfile.php, ARG1 18 18 FIELD rawExp.exp_name, 5, %s, Exp Name, value, chipProcessedImfile.php, ARG2 19 FIELD chipRun.chip_id, 7, % s, chip ID19 FIELD chipRun.chip_id, 7, %d, chip ID 20 20 FIELD rawExp.telescope, 10, %s, Telescope 21 21 FIELD rawExp.camera, 10, %s, Camera 22 FIELD rawExp.dateobs, 20, %s, Date/Time22 FIELD rawExp.dateobs, 19, %T, Date/Time 23 23 FIELD rawExp.ra, 8, %10.6f, RA, op=OP1 24 24 FIELD rawExp.decl, 8, %10.6f, DEC, op=OP2 25 25 FIELD rawExp.object, 10, %s, Object 26 26 FIELD rawExp.filter, 10, %s, FILTER 27 FIELD rawExp.exp_time, 5, % s, exp_time28 FIELD rawExp.airmass, 5, % s, airmass29 FIELD rawExp.bg, 5, % s, backgnd30 FIELD rawExp.bg_stdev, 5, % s, stdev27 FIELD rawExp.exp_time, 5, %.2f, exp_time 28 FIELD rawExp.airmass, 5, %.2f, airmass 29 FIELD rawExp.bg, 5, %.2f, backgnd 30 FIELD rawExp.bg_stdev, 5, %.2f, stdev 31 31 32 32 # FIELD rawExp.bg_mean_stdev, 5, %s, <backgnd> -
trunk/ippMonitor/def/chipProcessedImfile.d
r16617 r18193 21 21 22 22 # field size format name show link to extras 23 FIELD chipRun.exp_id, 5, % s, Exp ID, value, rawImfile.php, ARG123 FIELD chipRun.exp_id, 5, %d, Exp ID, value, rawImfile.php, ARG1 24 24 FIELD rawExp.exp_name, 5, %s, Exp Name, value, chipProcessedImfile.php, ARG2 25 25 FIELD chipProcessedImfile.class_id, 5, %s, Class ID 26 FIELD chipRun.chip_id, 7, % s, chip ID26 FIELD chipRun.chip_id, 7, %d, chip ID 27 27 FIELD rawExp.telescope, 10, %s, Telescope 28 28 FIELD rawExp.camera, 10, %s, Camera 29 FIELD rawExp.dateobs, 20, %s, Date/Time29 FIELD rawExp.dateobs, 19, %T, Date/Time 30 30 FIELD rawExp.filter, 10, %s, FILTER 31 31 FIELD rawExp.ra, 8, %10.6f, RA, op=OP1 32 32 FIELD rawExp.decl, 8, %10.6f, DEC, op=OP2 33 33 FIELD rawExp.object, 8, %s, Object 34 FIELD rawExp.filter, 8, %s, Filter 35 FIELD rawExp.exp_time, 5, %s, exp_time 36 FIELD rawExp.airmass, 5, %s, airmass 37 FIELD chipProcessedImfile.bg, 5, %s, backgnd 38 FIELD chipProcessedImfile.bg_stdev, 5, %s, stdev 39 FIELD chipProcessedImfile.n_stars, 5, %s, Nstars 40 FIELD chipProcessedImfile.n_astrom, 5, %s, Nastrom 41 FIELD chipProcessedImfile.sigma_ra, 5, %s, sigma ra 42 FIELD chipProcessedImfile.fwhm_major, 5, %s, FHWM 34 FIELD rawExp.exp_time, 5, %.2f, exp_time 35 FIELD rawExp.airmass, 5, %.4f, airmass 36 FIELD chipProcessedImfile.bg, 5, %.2f, backgnd 37 FIELD chipProcessedImfile.bg_stdev, 5, %.2f, stdev 38 FIELD chipProcessedImfile.n_stars, 5, %d, Nstars 39 FIELD chipProcessedImfile.n_astrom, 5, %d, Nastrom 40 FIELD chipProcessedImfile.sigma_ra, 5, %f, sigma ra 41 FIELD chipProcessedImfile.fwhm_major, 5, %f, FHWM 43 42 FIELD chipProcessedImfile.path_base, 5, %s, path_base, none 44 # FIELD chipPendingExp.reduction, 20, %s, reduction45 # FIELD chipPendingExp.guide_id, 20, %s, guide ID46 # FIELD chipProcessedImfile.bg_mean_stdev, 5, %s, <backgnd>47 43 48 44 TAIL PHP insert_log ('LOG.IMFILE'); -
trunk/ippMonitor/def/chipProcessedImfile_failure.d
r17059 r18193 21 21 22 22 # field size format name show link to extras 23 FIELD chipRun.exp_id, 5, % s, Exp ID, value, rawImfile.php, ARG123 FIELD chipRun.exp_id, 5, %d, Exp ID, value, rawImfile.php, ARG1 24 24 FIELD rawExp.exp_name, 5, %s, Exp Name, value, chipProcessedImfile.php, ARG2 25 25 FIELD chipProcessedImfile.class_id, 5, %s, Class ID 26 FIELD chipRun.chip_id, 7, % s, chip ID26 FIELD chipRun.chip_id, 7, %d, chip ID 27 27 FIELD rawExp.telescope, 10, %s, Telescope 28 28 FIELD rawExp.camera, 10, %s, Camera 29 FIELD rawExp.dateobs, 20, %s, Date/Time29 FIELD rawExp.dateobs, 19, %T, Date/Time 30 30 FIELD rawExp.filter, 10, %s, FILTER 31 31 FIELD rawExp.ra, 8, %10.6f, RA, op=OP1 32 32 FIELD rawExp.decl, 8, %10.6f, DEC, op=OP2 33 33 FIELD rawExp.object, 8, %s, Object 34 FIELD rawExp.filter, 8, %s, Filter 35 FIELD rawExp.exp_time, 5, %s, exp_time 36 FIELD rawExp.airmass, 5, %s, airmass 37 FIELD chipProcessedImfile.bg, 5, %s, backgnd 38 FIELD chipProcessedImfile.bg_stdev, 5, %s, stdev 39 FIELD chipProcessedImfile.n_stars, 5, %s, Nstars 40 FIELD chipProcessedImfile.n_astrom, 5, %s, Nastrom 41 FIELD chipProcessedImfile.sigma_ra, 5, %s, sigma ra 42 FIELD chipProcessedImfile.fwhm_major, 5, %s, FHWM 34 FIELD rawExp.exp_time, 5, %.2f, exp_time 35 FIELD rawExp.airmass, 5, %.4f, airmass 36 FIELD chipProcessedImfile.bg, 5, %.2f, backgnd 37 FIELD chipProcessedImfile.bg_stdev, 5, %.2f, stdev 38 FIELD chipProcessedImfile.n_stars, 5, %d, Nstars 39 FIELD chipProcessedImfile.n_astrom, 5, %d, Nastrom 40 FIELD chipProcessedImfile.sigma_ra, 5, %f, sigma ra 41 FIELD chipProcessedImfile.fwhm_major, 5, %f, FHWM 43 42 FIELD chipProcessedImfile.path_base, 5, %s, path_base, none 44 # FIELD chipPendingExp.reduction, 20, %s, reduction45 # FIELD chipPendingExp.guide_id, 20, %s, guide ID46 # FIELD chipProcessedImfile.bg_mean_stdev, 5, %s, <backgnd>47 43 48 44 TAIL PHP insert_log ('LOG.IMFILE'); -
trunk/ippMonitor/def/detInputExp.d
r15954 r18193 26 26 FIELD detInputExp.exp_id, 5, %s, Exp ID, value, rawImfile.php, ARG1 27 27 FIELD rawExp.exp_name, 5, %s, Exp Name, value, rawImfile.php, ARG1 28 FIELD detInputExp.include, 7, %s, include28 FIELD detInputExp.include, 3, %t, include 29 29 FIELD rawExp.telescope, 10, %s, Telescope 30 30 FIELD rawExp.camera, 10, %s, Camera 31 31 FIELD rawExp.exp_type, 10, %s, Type 32 32 FIELD rawExp.filter, 10, %s, FILTER 33 FIELD rawExp.dateobs, 20, %s, Date/Time34 FIELD rawExp.exp_time, 5, % s,exp_time35 FIELD rawExp.sat_pixel_frac, 5, % s,f(sat pixels)36 FIELD rawExp.airmass, 5, % s,airmass37 FIELD rawExp.bg, 5, % s,backgnd38 FIELD rawExp.bg_stdev, 5, % s,stdev39 FIELD rawExp.bg_mean_stdev, 5, % s,<backgnd>33 FIELD rawExp.dateobs, 19, %T, Date/Time 34 FIELD rawExp.exp_time, 5, %.2f, exp_time 35 FIELD rawExp.sat_pixel_frac, 5, %.2f, f(sat pixels) 36 FIELD rawExp.airmass, 5, %.4f, airmass 37 FIELD rawExp.bg, 5, %.2f, backgnd 38 FIELD rawExp.bg_stdev, 5, %.2f, stdev 39 FIELD rawExp.bg_mean_stdev, 5, %.2f, <backgnd> 40 40 FIELD *, 5, %s, choose, value=resid, detResidImfile.php, ARG2 41 41 FIELD *, 5, %s, choose, value=proc, detProcessedImfile.php, ARG3 42 43 TD_CLASS det_off $detInputExp.include == 0 -
trunk/ippMonitor/def/detProcessedExp.d
r15954 r18193 19 19 20 20 # field size format name show link to extras 21 FIELD detProcessedExp.det_id, 7, % s, Det ID, value21 FIELD detProcessedExp.det_id, 7, %d, Det ID, value 22 22 FIELD rawExp.camera, 10, %s, camera, value 23 FIELD detProcessedExp.exp_id, 5, % s, Exp ID, value23 FIELD detProcessedExp.exp_id, 5, %d, Exp ID, value 24 24 FIELD rawExp.exp_name, 5, %s, Exp Name, value 25 FIELD detProcessedExp.fault, 5, %d, Fault, value 25 26 FIELD *, 8, %s, image, image=JPEG2, detProcessedImfile.php, ARG1 26 FIELD detProcessedExp.bg, 8, % s,backgnd, value27 FIELD detProcessedExp.bg_mean_stdev, 8, % s,[stdev], value28 FIELD detProcessedExp.bg_stdev, 8, % s,stdev, value29 FIELD *, 8, % s,S/N, op=OP130 FIELD rawExp.dateobs, 8, %s, obs date, value31 FIELD rawExp.filter, 8, %s, filter, value32 FIELD rawExp.exp_time, 8, % s,exptime, value33 FIELD rawExp.ccd_temp, 8, % s,ccd temp, value34 FIELD rawExp.airmass, 8, % s,airmass, value27 FIELD detProcessedExp.bg, 8, %.3f, backgnd, value 28 FIELD detProcessedExp.bg_mean_stdev, 8, %.3f, [stdev], value 29 FIELD detProcessedExp.bg_stdev, 8, %.3f, stdev, value 30 FIELD *, 8, %.3f, S/N, op=OP1 31 FIELD rawExp.dateobs, 19, %T, obs date, value 32 FIELD rawExp.filter, 10, %s, filter, value 33 FIELD rawExp.exp_time, 8, %.2f, exptime, value 34 FIELD rawExp.ccd_temp, 8, %.2f, ccd temp, value 35 FIELD rawExp.airmass, 8, %.4f, airmass, value 35 36 FIELD detProcessedExp.path_base, 20, %s, path_base, none 37 38 # TD_CLASS det_off $detProcessedExp.fault > 0 36 39 37 40 # note: you must include all desired fields, where ever they are used, -
trunk/ippMonitor/def/detProcessedImfile.d
r18143 r18193 12 12 FIELD rawExp.exp_name, 5, %s, Exp Name 13 13 FIELD detProcessedImfile.class_id, 8, %s, Chip ID 14 FIELD detProcessedImfile.fault, 5, %d, Chip ID 14 15 FIELD detProcessedImfile.bg, 8, %f, backgnd 15 16 FIELD detProcessedImfile.bg_stdev, 8, %s, stdev … … 17 18 FIELD detProcessedImfile.path_base, 10, %s, path_base 18 19 20 TD_CLASS det_off $detProcessedImfile.fault > 0 21 19 22 TAIL PHP insert_image ('PPIMAGE.JPEG1'); 20 23 TAIL PHP insert_log ('LOG.EXP'); 24 -
trunk/ippMonitor/def/detResidExp.d
r15954 r18193 1 TABLE detResidExp, rawExp 1 TABLE detResidExp, rawExp, detInputExp 2 2 TITLE detResidExp 3 3 FILE detResidExp.php … … 6 6 # the following WHERE clauses are added to all queries joined by AND 7 7 WHERE detResidExp.exp_id = rawExp.exp_id 8 WHERE detResidExp.exp_id = detInputExp.exp_id 9 WHERE detResidExp.iteration = detInputExp.iteration 8 10 9 11 # define image names to be used below … … 20 22 ARGS ARG2 basename=$detResidExp.path_base 21 23 22 OP OP1 $detResidExp.b g / $detResidExp.bin_stdev24 OP OP1 $detResidExp.bin_stdev > 0.0 ? $detResidExp.bg / $detResidExp.bin_stdev : NAN 23 25 24 26 # field size format name show link to linkargs … … 28 30 FIELD rawExp.exp_name, 5, %s, Exp Name, value, rawImfile.php, ARG1 29 31 FIELD detResidExp.iteration, 5, %s, iter, value 32 FIELD detInputExp.include, 3, %t, used, value 33 FIELD detResidExp.accept, 3, %t, keep, value 34 FIELD detResidExp.fault, 4, %d, fault, value 30 35 FIELD *, 8, %s, image, image=JPEG2, detResidImfile.php, ARG2 31 FIELD detResidExp.bg, 8, % s,backgnd, value32 FIELD detResidExp.bg_mean_stdev, 8, % s, [stdev]33 FIELD detResidExp.bg_stdev, 8, % s,stdev, value34 FIELD detResidExp.bin_stdev, 8, % s,bin stdev, value36 FIELD detResidExp.bg, 8, %.3f, backgnd, value 37 FIELD detResidExp.bg_mean_stdev, 8, %.3f, [stdev], value 38 FIELD detResidExp.bg_stdev, 8, %.3f, stdev, value 39 FIELD detResidExp.bin_stdev, 8, %.3f, bin stdev, value 35 40 FIELD *, 8, %s, S/N, op=OP1 36 FIELD detResidExp.fringe_0, 8, %s, fringe, value 37 FIELD detResidExp.fringe_1, 8, %s, fringe err, value 38 FIELD detResidExp.fringe_2, 8, %s, fringe stdev, value 39 FIELD detResidExp.user_1, 8, %s, dfringe, value 40 FIELD detResidExp.user_2, 8, %s, dfringe err, value 41 FIELD detResidExp.user_3, 8, %s, dfringe stdev, value 42 FIELD rawExp.dateobs, 8, %s, obs date, value 43 FIELD rawExp.filter, 8, %s, filter, value 44 FIELD rawExp.exp_time, 8, %s, exptime, value 45 FIELD rawExp.ccd_temp, 8, %s, ccd temp, value 46 FIELD rawExp.airmass, 8, %s, airmass, value 47 FIELD detResidExp.accept, 4, %s, keep, value 41 FIELD detResidExp.fringe_0, 8, %.3f, fringe, value 42 FIELD detResidExp.fringe_1, 8, %.3f, fringe err, value 43 FIELD detResidExp.fringe_2, 8, %.3f, fringe stdev, value 44 FIELD detResidExp.user_1, 8, %.3f, dfringe, value 45 FIELD detResidExp.user_2, 8, %.3f, dfringe err, value 46 FIELD detResidExp.user_3, 8, %.3f, dfringe stdev, value 47 FIELD rawExp.dateobs, 19, %T, obs date, value 48 FIELD rawExp.filter, 10, %s, filter, value 49 FIELD rawExp.exp_time, 8, %.2f, exptime, value 50 FIELD rawExp.ccd_temp, 8, %.2f, ccd temp, value 51 FIELD rawExp.airmass, 8, %.4f, airmass, value 48 52 FIELD detResidExp.path_base, 20, %s, path_base, none 49 53 50 TD_CLASS list_off $detResidExp.accept == 0 54 TD_CLASS det_drop $detInputExp.include == 1 && $detResidExp.accept == 0 55 TD_CLASS det_off $detInputExp.include == 0 && $detResidExp.accept == 0 56 TD_CLASS det_add $detInputExp.include == 0 && $detResidExp.accept == 1 -
trunk/ippMonitor/def/detStackedImfile.d
r18131 r18193 8 8 FIELD iteration, 5, %s, iteration 9 9 FIELD class_id, 8, %s, class_id 10 FIELD bg, 8, %s, backgnd11 FIELD bg _stdev, 8, %s, stdev12 FIELD bg_ mean_stdev, 8, %s, [stdev]13 FIELD fault, 5, %s, fault10 FIELD fault, 5, %d, fault 11 FIELD bg, 8, %f, backgnd 12 FIELD bg_stdev, 8, %f, stdev 13 FIELD bg_mean_stdev, 8, %f, [stdev] 14 14 FIELD uri, 20, %s, uri 15 15 # FIELD recipe, 20, recipe -
trunk/ippMonitor/def/newExp.d
r16617 r18193 7 7 8 8 # field size format name show link to extras 9 FIELD exp_id, 5, % s, exposure ID9 FIELD exp_id, 5, %d, exposure ID 10 10 FIELD tmp_exp_name, 10, %s, exposure Name 11 11 FIELD tmp_camera, 5, %s, camera -
trunk/ippMonitor/def/newImfile.d
r16617 r18193 5 5 6 6 # field size format name show link to extras 7 FIELD exp_id, 5, % s, exposure ID7 FIELD exp_id, 5, %d, exposure ID 8 8 FIELD tmp_class_id, 5, %s, class ID 9 9 FIELD uri, 5, %s, URI -
trunk/ippMonitor/def/pzDoneExp.d
r16638 r18193 13 13 FIELD summitExp.camera, 5, %s, camera 14 14 FIELD summitExp.telescope, 5, %s, telescope 15 FIELD summitExp.dateobs, 5, %s, date/time15 FIELD summitExp.dateobs, 19, %T, date/time 16 16 FIELD summitExp.exp_type, 5, %s, type 17 17 FIELD summitExp.uri, 5, %s, URI -
trunk/ippMonitor/def/pzDoneExp_failed.d
r16617 r18193 16 16 FIELD summitExp.camera, 5, %s, camera 17 17 FIELD summitExp.telescope, 5, %s, telescope 18 FIELD summitExp.dateobs, 5, % s, date/time18 FIELD summitExp.dateobs, 5, %T, date/time 19 19 FIELD summitExp.exp_type, 5, %s, type 20 20 FIELD summitExp.uri, 5, %s, URI -
trunk/ippMonitor/def/pzPendingExp.d
r16638 r18193 13 13 FIELD summitExp.camera, 5, %s, camera 14 14 FIELD summitExp.telescope, 5, %s, telescope 15 FIELD summitExp.dateobs, 5, % s, date/time15 FIELD summitExp.dateobs, 5, %T, date/time 16 16 FIELD summitExp.exp_type, 5, %s, type 17 17 FIELD summitExp.uri, 5, %s, URI -
trunk/ippMonitor/def/rawDetrendExp.d
r16617 r18193 10 10 11 11 # field size format name show link to extras 12 FIELD exp_id, 5, %s, Exp ID 13 FIELD exp_name, 10, %s, Exp Name, value, rawImfile.php, ARG1 14 FIELD telescope, 10, %s, Telescope 15 FIELD camera, 10, %s, Camera 16 FIELD exp_type, 10, %s, Type 12 FIELD exp_id, 5, %d, Exp ID 13 FIELD exp_name, 8, %s, Exp Name, value, rawImfile.php, ARG1 14 FIELD telescope, 8, %s, Telescope 15 FIELD camera, 8, %s, Camera 16 FIELD exp_type, 8, %s, Type 17 FIELD dateobs, 19, %T, Date/Time 17 18 FIELD filter, 10, %s, FILTER 18 FIELD dateobs, 20, %s, Date/Time19 FIELD exp_time, 5, % s,exp_time20 FIELD sat_pixel_frac, 5, %s, f(sat pixels)21 FIELD airmass, 5, %s, airmass22 FIELD bg, 5, % s,backgnd23 FIELD bg_stdev, 5, % s,stdev24 FIELD bg_mean_stdev, 5, % s,<backgnd>19 FIELD airmass, 5, %.2f, airmass 20 FIELD exp_time, 5, %.2f, exp_time 21 FIELD ccd_temp, 5, %.2f, ccd_temp 22 FIELD sat_pixel_frac, 5, %.4f, f(sat pixels) 23 FIELD bg, 5, %.2f, backgnd 24 FIELD bg_stdev, 5, %.2f, stdev 25 FIELD bg_mean_stdev, 5, %.2f, <backgnd> -
trunk/ippMonitor/def/rawDetrendExp_detrend.d
r15992 r18193 10 10 11 11 # field size format name show link to extras 12 FIELD exp_id, 5, % s, Exp ID12 FIELD exp_id, 5, %d, Exp ID 13 13 FIELD exp_name, 10, %s, Exp Name, value, rawImfile.php, ARG1 14 14 FIELD telescope, 10, %s, Telescope … … 16 16 FIELD exp_type, 10, %s, Type 17 17 FIELD filter, 10, %s, FILTER 18 FIELD dateobs, 20, %s, Date/Time19 FIELD exp_time, 5, % s,exp_time20 FIELD sat_pixel_frac, 5, % s,f(sat pixels)21 FIELD airmass, 5, % s,airmass22 FIELD bg, 5, % s,backgnd23 FIELD bg_stdev, 5, % s,stdev24 FIELD bg_mean_stdev, 5, % s,<backgnd>18 FIELD dateobs, 19, %T, Date/Time 19 FIELD exp_time, 5, %.2f, exp_time 20 FIELD sat_pixel_frac, 5, %.2f, f(sat pixels) 21 FIELD airmass, 5, %.4f, airmass 22 FIELD bg, 5, %.2f, backgnd 23 FIELD bg_stdev, 5, %.2f, stdev 24 FIELD bg_mean_stdev, 5, %.2f, <backgnd> -
trunk/ippMonitor/def/rawExp.d
r16617 r18193 10 10 11 11 # field size format name show link to extras 12 FIELD exp_id, 5, % s, Exp ID12 FIELD exp_id, 5, %d, Exp ID 13 13 FIELD exp_name, 10, %s, Exp Name, value, rawImfile.php, ARG1 14 14 FIELD telescope, 10, %s, Telescope 15 15 FIELD camera, 10, %s, Camera 16 16 FIELD exp_type, 8, %s, Type 17 FIELD dateobs, 8, %s, Date/Time17 FIELD dateobs, 19, %T, Date/Time 18 18 FIELD ra, 8, %10.6f, RA, op=OP1 19 19 FIELD decl, 8, %10.6f, DEC, op=OP2 20 20 FIELD object, 10, %s, object 21 21 FIELD filter, 10, %s, FILTER 22 FIELD airmass, 5, %s, airmass 23 FIELD exp_time, 5, %s, exp_time 24 FIELD bg, 5, %s, bg 25 FIELD bg_stdev, 5, %s, bg_stdev 26 # FIELD imfiles, 20, imfiles 27 # FIELD bg_mean_stdev, 20, bg_mean_stdev 28 # FIELD alt, 20, alt 29 # FIELD az, 20, az 30 # FIELD ccd_temp, 20, ccd_temp 31 # FIELD posang, 20, posang 22 FIELD airmass, 5, %.4f, airmass 23 FIELD exp_time, 5, %.2f, exp_time 24 FIELD ccd_temp, 5, %.2f, ccd_temp 25 FIELD bg, 8, %.2f, backgnd 26 FIELD bg_stdev, 8, %.2f, stdev 27 FIELD bg_mean_stdev, 8, %.2f, [stdev] -
trunk/ippMonitor/def/rawExp_failed.d
r16617 r18193 21 21 FIELD decl, 8, %10.6f, DEC, op=OP2 22 22 FIELD filter, 10, %s, FILTER 23 FIELD dateobs, 20, %s, Date/Time23 FIELD dateobs, 19, %T, Date/Time 24 24 FIELD exp_time, 5, %s, exp_time 25 25 FIELD airmass, 5, %s, airmass -
trunk/ippMonitor/def/rawImfile.d
r15992 r18193 10 10 11 11 # field size format name show link to extras 12 FIELD exp_id, 5, % s, Exp ID12 FIELD exp_id, 5, %d, Exp ID 13 13 FIELD exp_name, 5, %s, Exposure 14 FIELD telescope, 10, %s, Telescope 15 FIELD camera, 10, %s, Camera 14 16 FIELD class_id, 8, %s, Chip ID 17 FIELD exp_type, 8, %s, exp_type 18 FIELD dateobs, 19, %T, Date/Time 15 19 FIELD ra, 8, %10.6f, RA, op=OP1 16 20 FIELD decl, 8, %10.6f, DEC, op=OP2 17 21 FIELD object, 8, %s, object 18 FIELD filter, 8, %s, FILTER19 FIELD airmass, 5, % s,airmass20 FIELD exp_time, 5, % s,exp_time21 FIELD bg, 8, %s, backgnd22 FIELD bg _stdev, 8, %s, stdev23 FIELD bg_ mean_stdev, 8, %s, [stdev]24 FIELD exp_type, 8, %s, exp_type22 FIELD filter, 10, %s, FILTER 23 FIELD airmass, 5, %.4f, airmass 24 FIELD exp_time, 5, %.2f, exp_time 25 FIELD ccd_temp, 5, %.2f, ccd_temp 26 FIELD bg, 8, %.2f, backgnd 27 FIELD bg_stdev, 8, %.2f, stdev 28 FIELD bg_mean_stdev, 8, %.2f, [stdev] 25 29 FIELD uri, 10, %s, uri 26 # FIELD airmass, 20, airmass27 # FIELD exp_time, 20, exp_time28 30 # FIELD alt, 20, alt 29 31 # FIELD az, 20, az 30 # FIELD ccd_temp, 20, ccd_temp31 32 # FIELD posang, 20, posang 32 33 # FIELD object, 20, object -
trunk/ippMonitor/def/rawScienceExp.d
r16617 r18193 13 13 14 14 # field size format name show link to extras 15 FIELD exp_id, 5, % s, Exp ID15 FIELD exp_id, 5, %d, Exp ID 16 16 FIELD exp_name, 8, %s, Exp Name, value, rawImfile.php, ARG1 17 17 FIELD telescope, 8, %s, Telescope 18 18 FIELD camera, 8, %s, Camera 19 FIELD dateobs, 8, %s, Date/Time19 FIELD dateobs, 19, %T, Date/Time 20 20 FIELD ra, 8, %10.6f, RA, op=OP1 21 21 FIELD decl, 8, %10.6f, DEC, op=OP2 22 22 FIELD object, 8, %s, object 23 FIELD filter, 8, %s, FILTER23 FIELD filter, 10, %s, FILTER 24 24 FIELD exp_time, 5, %s, exp_time 25 FIELD airmass, 5, %s, airmass 26 FIELD bg, 5, %s, bg 27 FIELD bg_stdev, 5, %s, bg_stdev 28 # FIELD imfiles, 20, imfiles 29 # FIELD bg_mean_stdev, 20, bg_mean_stdev 30 # FIELD alt, 20, alt 31 # FIELD az, 20, az 32 # FIELD ccd_temp, 20, ccd_temp 33 # FIELD posang, 20, posang 34 # FIELD exp_type, 8, %s, Type 25 FIELD airmass, 5, %.4f, airmass 26 FIELD exp_time, 5, %.2f, exp_time 27 FIELD ccd_temp, 5, %.2f, ccd_temp 28 FIELD bg, 8, %.2f, backgnd 29 FIELD bg_stdev, 8, %.2f, stdev 30 FIELD bg_mean_stdev, 8, %.2f, [stdev] -
trunk/ippMonitor/def/rawUnknownExp.d
r16617 r18193 18 18 FIELD telescope, 10, %s, Telescope 19 19 FIELD camera, 10, %s, Camera 20 FIELD dateobs, 20, %s, Date/Time20 FIELD dateobs, 19, %T, Date/Time 21 21 FIELD ra, 8, %10.6f, RA, op=OP1 22 22 FIELD decl, 8, %10.6f, DEC, op=OP2 -
trunk/ippMonitor/def/stackInputSkyfile.d
r15992 r18193 22 22 FIELD rawExp.telescope, 10, %s, Telescope 23 23 FIELD rawExp.camera, 10, %s, Camera 24 FIELD rawExp.dateobs, 20, %s, Date/Time24 FIELD rawExp.dateobs, 19, %T, Date/Time 25 25 FIELD rawExp.ra, 8, %10.6f, RA, op=OP1 26 26 FIELD rawExp.decl, 8, %10.6f, DEC, op=OP2 27 27 FIELD rawExp.object, 8, %s, Object 28 FIELD rawExp.filter, 8, %s, Filter29 FIELD rawExp.exp_time, 5, % s,exptime30 FIELD rawExp.airmass, 5, % s,airmass31 FIELD rawExp.bg, 5, % s,bg32 FIELD rawExp.bg_stdev, 5, % s,bg_stdev28 FIELD rawExp.filter, 10, %s, Filter 29 FIELD rawExp.exp_time, 5, %.2f, exptime 30 FIELD rawExp.airmass, 5, %.4f, airmass 31 FIELD rawExp.bg, 5, %.2f, bg 32 FIELD rawExp.bg_stdev, 5, %.2f, bg_stdev -
trunk/ippMonitor/def/summitExp.d
r16617 r18193 8 8 FIELD camera, 5, %s, camera 9 9 FIELD telescope, 5, %s, telescope 10 FIELD dateobs, 5, %s, date/time10 FIELD dateobs, 19, %T, date/time 11 11 FIELD exp_type, 5, %s, type 12 12 FIELD uri, 5, %s, URI -
trunk/ippMonitor/def/warpInputExp.d
r15992 r18193 18 18 FIELD warpInputExp.warp_id, 5, %s, Warp ID 19 19 FIELD warpInputExp.magiced, 5, %s, magic? 20 FIELD rawExp.telescope, 10, %s, Telescope21 FIELD rawExp.camera, 10, %s, Camera22 FIELD rawExp.dateobs, 20, %s, Date/Time20 FIELD rawExp.telescope, 8, %s, Telescope 21 FIELD rawExp.camera, 8, %s, Camera 22 FIELD rawExp.dateobs, 19, %T, Date/Time 23 23 FIELD rawExp.ra, 8, %10.6f, RA, op=OP1 24 24 FIELD rawExp.decl, 8, %10.6f, DEC, op=OP2 25 25 FIELD rawExp.object, 8, %s, Object 26 FIELD rawExp.filter, 8, %s, Filter27 FIELD rawExp.exp_time, 5, % s,exptime28 FIELD rawExp.airmass, 5, % s,airmass29 FIELD rawExp.bg, 5, % s,bg30 FIELD rawExp.bg_stdev, 5, % s,bg_stdev26 FIELD rawExp.filter, 10, %s, Filter 27 FIELD rawExp.exp_time, 5, %.2f, exptime 28 FIELD rawExp.airmass, 5, %.4f, airmass 29 FIELD rawExp.bg, 5, %.2f, bg 30 FIELD rawExp.bg_stdev, 5, %.2f, bg_stdev -
trunk/ippMonitor/def/warpSkycellMap.d
r16035 r18193 24 24 FIELD rawExp.telescope, 10, %s, Telescope 25 25 FIELD rawExp.camera, 10, %s, Camera 26 FIELD rawExp.dateobs, 20, %s, Date/Time26 FIELD rawExp.dateobs, 19, %T, Date/Time 27 27 FIELD rawExp.ra, 8, %10.6f, RA, op=OP1 28 28 FIELD rawExp.decl, 8, %10.6f, DEC, op=OP2 29 29 FIELD rawExp.object, 8, %s, Object 30 FIELD rawExp.filter, 8, %s, Filter31 FIELD rawExp.exp_time, 5, % s,exptime32 FIELD rawExp.airmass, 5, % s,airmass33 FIELD rawExp.bg, 5, % s,bg34 FIELD rawExp.bg_stdev, 5, % s,bg_stdev30 FIELD rawExp.filter, 10, %s, Filter 31 FIELD rawExp.exp_time, 5, %.2f, exptime 32 FIELD rawExp.airmass, 5, %.4f, airmass 33 FIELD rawExp.bg, 5, %.2f, bg 34 FIELD rawExp.bg_stdev, 5, %.2f, bg_stdev -
trunk/ippMonitor/raw/ipp.css
r13725 r18193 112 112 } 113 113 114 td.list_drop { 115 text-align: left; 116 font-size: normal; 117 font-weight: normal; 118 vertical-align: top; 119 background: #a0a0a0; 120 background-color: #a0a0a0; 121 border: 2px solid #000000; 122 padding: 2px; 123 } 124 114 125 td.list_run { 115 126 text-align: left; … … 119 130 background: #ffa0a0; 120 131 background-color: #ffa0a0; 132 border: 2px solid #000000; 133 padding: 2px; 134 } 135 136 td.det_off { 137 text-align: left; 138 font-size: normal; 139 font-weight: normal; 140 vertical-align: top; 141 background: #a0a0a0; 142 background-color: #a0a0a0; 143 border: 2px solid #000000; 144 padding: 2px; 145 } 146 147 td.det_drop { 148 text-align: left; 149 font-size: normal; 150 font-weight: normal; 151 vertical-align: top; 152 background: #a0a0a0; 153 background-color: #ffa0a0; 154 border: 2px solid #000000; 155 padding: 2px; 156 } 157 158 td.det_add { 159 text-align: left; 160 font-size: normal; 161 font-weight: normal; 162 vertical-align: top; 163 background: #ffa0a0; 164 background-color: #a0a0ff; 121 165 border: 2px solid #000000; 122 166 padding: 2px; -
trunk/ippMonitor/raw/ipp.php
r18143 r18193 315 315 $sortKey = "&sort=" . $_POST['sort']; 316 316 } 317 if ($_SERVER[REQUEST_METHOD] == 'GET') { 318 $sortKey = "&rsort=" . $_GET['rsort']; 319 } else { 320 $sortKey = "&rsort=" . $_POST['rsort']; 321 } 317 322 318 323 if ($rowStart > 0) { … … 410 415 if ($value != "") { 411 416 $where = $where . " ORDER BY $value"; 417 return $where; 418 } 419 if ($_SERVER[REQUEST_METHOD] == 'GET') { 420 $value = $_GET['rsort']; 421 } else { 422 $value = $_POST['rsort']; 423 } 424 if ($value != "") { 425 $where = $where . " ORDER BY $value DESC"; 426 return $where; 412 427 } 413 428 return $where; … … 432 447 } 433 448 434 // for numerical fields, test for both 'min' and 'max'values449 // for numerical fields, test for both 'min' and plain values 435 450 function button_restrict_min ($key, $line) { 436 451 $htmlkey = preg_replace ('|\.|', '_', $key); … … 470 485 } 471 486 472 function write_table_header ($class, $name, $value, $buttonLink, $ID, $file) { 473 474 $link = "$file" . "?" . $ID['link'] . "&sort=$value"; 487 function write_header_cell ($class, $name) { 488 489 echo "<th class=\"$class\">$name</th>\n"; 490 } 491 492 // write a table cell with the up and down sort arrows 493 function write_sort_cell ($class, $value, $buttonLink, $ID, $file) { 494 495 echo "<td class=\"$class\">"; 496 497 // base link 498 $baselink = "$file" . "?" . $ID['link']; 499 if ($buttonLink != "") { 500 $baselink = $baselink . "&$buttonLink"; 501 } 502 503 if ($_SERVER[REQUEST_METHOD] == 'GET') { 504 $up = $_GET['sort']; 505 $down = $_GET['rsort']; 506 } else { 507 $up = $_POST['sort']; 508 $down = $_POST['rsort']; 509 } 510 511 // up button link 512 $link = "$baselink" . "&sort=$value"; 513 if ($up == $value) { 514 echo "<a href=\"$link\"><img src=\"up.png\"></a>"; 515 } else { 516 echo "<a href=\"$link\"><img src=\"left.png\"></a>"; 517 } 518 519 // down button link 520 $link = "$baselink" . "&rsort=$value"; 521 if ($down == $value) { 522 echo "<a href=\"$link\"><img src=\"down.png\"></a>"; 523 } else { 524 echo "<a href=\"$link\"><img src=\"right.png\"></a>"; 525 } 526 527 echo "</td>\n"; 528 } 529 530 function write_write_sort_down ($class, $name, $value, $buttonLink, $ID, $file) { 531 532 $link = "$file" . "?" . $ID['link'] . "&rsort=$value"; 475 533 if ($buttonLink != "") { 476 534 $link = $link . "&$buttonLink"; … … 483 541 function write_query_row ($key, $width, $mode) { 484 542 $htmlkey = preg_replace ('|\.|', '_', $key); 543 544 // optional bits by mode 485 545 if ($mode == 'min') { 486 546 $htmlkey = $htmlkey . "_min"; … … 494 554 $value = $_POST[$htmlkey]; 495 555 } 496 // XXX need to modify $key (should it be htmlkey here?) 556 557 // full table element includes optionally the <= or >= words 558 echo "<td class=\"list\"> <input type=\"text\" name=\"$htmlkey\" size=\"$width\""; 497 559 if ($value != "") { 498 echo "<td class=\"list\"> <input type=\"text\" name=\"$htmlkey\" size=\"$width\" value=\"$value\"> </td>\n"; 499 } else { 500 echo "<td class=\"list\"> <input type=\"text\" name=\"$htmlkey\" size=\"$width\"> </td>\n"; 501 } 560 echo "value=\"$value\">"; 561 } 562 echo "</td>\n"; 502 563 } 503 564 504 565 function write_table_cell ($class, $format, $link, $value) { 566 567 if ($format == '%T') { 568 $format = '%s'; 569 } 570 if ($format == '%t') { 571 $format = '%s'; 572 if ($value == 0) { 573 $value = 'N'; 574 } else { 575 $value = 'Y'; 576 } 577 } 578 505 579 $myValue = sprintf ($format, $value); 506 580 if ($myValue == "") { $myValue = " "; } -
trunk/ippMonitor/scripts/generate
r18143 r18193 228 228 sub write_table_header { 229 229 230 # add column sorting elements here 230 # print the table header (field labels) 231 print FILE "echo \"<tr><td></td>\\n\";\n"; 231 232 for ($i = 0; $i < @field; $i++) { 232 233 ($label, $value, $string) = &parse_label ($show[$i]); 233 234 if ($show[$i] eq "none") { next; } 234 # print FILE "echo \"<th class=\\\"list\\\"> $name[$i] </th>\\n\";\n"; 235 print FILE "write_header_cell (\"list\", \"$name[$i]\");\n"; 236 } 237 print FILE "echo \"</tr>\\n\";\n"; 238 239 # print the column sort cells 240 print FILE "echo \"<tr><td></td>\\n\";\n"; 241 for ($i = 0; $i < @field; $i++) { 242 ($label, $value, $string) = &parse_label ($show[$i]); 243 if ($show[$i] eq "none") { next; } 235 244 if ($label eq "op") { 236 print FILE "write_ table_header (\"list\", \"$name[$i]\", \"$opf{$value}\", \$buttonLink, \$ID, '$myFile');\n";245 print FILE "write_sort_cell (\"list\", \"$opf{$value}\", \$buttonLink, \$ID, '$myFile');\n"; 237 246 } else { 238 print FILE "write_table_header (\"list\", \"$name[$i]\", \"$field[$i]\", \$buttonLink, \$ID, '$myFile');\n"; 239 } 240 } 247 print FILE "write_sort_cell (\"list\", \"$field[$i]\", \$buttonLink, \$ID, '$myFile');\n"; 248 } 249 } 250 print FILE "echo \"</tr>\\n\";\n"; 241 251 } 242 252 … … 248 258 249 259 # TD_CLASS class field expression 250 ($class, $field, $testline) = split (" ", $tdClass, 3); 251 252 $field = &parse_fieldname ($field); 253 254 print FILE " if ($field $testline) {\n"; 260 ($class, $testline) = split (" ", $tdClass, 2); 261 262 $testlineFixed = ""; 263 @testlineBits = split (" ", $testline); 264 foreach my $bit (@testlineBits) { 265 $newbit = &parse_fieldname ($bit); 266 $testlineFixed = "$testlineFixed $newbit"; 267 } 268 269 print FILE " if ($testlineFixed) {\n"; 255 270 print FILE " \$class = \"$class\";\n"; 256 271 print FILE " }\n"; … … 270 285 print FILE "\$WHERE = check_restrict ('$value', \$WHERE, 'string');\n"; 271 286 } else { 287 print FILE "\$WHERE = check_restrict ('$value', \$WHERE, 'string');\n"; 272 288 print FILE "\$WHERE = check_restrict ('$value', \$WHERE, 'min');\n"; 273 289 print FILE "\$WHERE = check_restrict ('$value', \$WHERE, 'max');\n"; … … 286 302 print FILE "\$buttonLink = button_restrict_string ('$value', \$buttonLink);\n"; 287 303 } else { 304 print FILE "\$buttonLink = button_restrict_string ('$value', \$buttonLink);\n"; 288 305 print FILE "\$buttonLink = button_restrict_min ('$value', \$buttonLink);\n"; 289 306 print FILE "\$buttonLink = button_restrict_max ('$value', \$buttonLink);\n"; … … 297 314 my ($i); 298 315 299 print FILE "echo \"<tr> \\n\";\n";316 print FILE "echo \"<tr><td>&ge</td>\\n\";\n"; 300 317 for ($i = 0; $i < @field; $i++) { 301 318 if ($show[$i] eq "none") { next; } … … 311 328 } 312 329 } 313 print FILE "echo \"</tr> <tr>\\n\";\n";330 print FILE "echo \"</tr><tr><td>&le</td>\\n\";\n"; 314 331 for ($i = 0; $i < @field; $i++) { 315 332 if ($show[$i] eq "none") { next; } … … 347 364 # print the actual table cell line with the link... 348 365 if (! $value && ($field[$i] ne "*")) { $value = "\$row[$Nrow]"; } 366 367 # add special format elements 368 # $realFormat = $format[$i]; 369 # if ($format[$i] eq '%T') { 370 # $realFormat = '%s'; 371 # } 349 372 print FILE " write_table_cell (\$class, '$format[$i]', $myLink, $value);\n"; 350 373 next; … … 557 580 foreach $word (@words) { 558 581 $fword = &parse_fieldname ($word); 582 # print "field: $word -> $fword\n"; 559 583 push @outwords, $fword; 560 584 if ($word =~ m|^\$|) {
Note:
See TracChangeset
for help on using the changeset viewer.
