IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 9009


Ignore:
Timestamp:
Sep 27, 2006, 2:14:15 PM (20 years ago)
Author:
eugene
Message:

added field width

Location:
trunk/ippMonitor
Files:
29 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippMonitor/def/detInputExp.d

    r9008 r9009  
    99
    1010#     field      name       show        link to                 extras
    11 FIELD det_id,    det_id
    12 FIELD iteration, iteration
    13 FIELD exp_id,    exp_id,    value,      rawImfile.php,          exp_id=$exp_id
    14 FIELD exp_id,    processed, value=proc, detProcessedImfile.php, exp_id=$exp_id,det_id=$det_id
    15 FIELD include,   include
     11FIELD det_id,    20,   det_id
     12FIELD iteration, 20,   iteration
     13FIELD exp_id,    20,   exp_id,    value,      rawImfile.php,          exp_id=$exp_id
     14FIELD exp_id,    20,   processed, value=proc, detProcessedImfile.php, exp_id=$exp_id,det_id=$det_id
     15FIELD include,   20,   include
    1616
    1717TAIL HTML test tail 1 <br>
  • trunk/ippMonitor/def/detMasterFrame.d

    r9003 r9009  
    55
    66#     field     name     show  link to     extras
    7 FIELD det_id, det_id
    8 FIELD iteration, iteration
    9 FIELD comment, comment
     7FIELD det_id, 20,   det_id
     8FIELD iteration, 20,   iteration
     9FIELD comment, 20,   comment
  • trunk/ippMonitor/def/detMasterImfile.d

    r9003 r9009  
    55
    66#     field     name     show  link to     extras
    7 FIELD det_id, det_id
    8 FIELD class_id, class_id
    9 FIELD uri, uri
    10 FIELD recipe, recipe
     7FIELD det_id, 20,   det_id
     8FIELD class_id, 20,   class_id
     9FIELD uri, 20,   uri
     10FIELD recipe, 20,   recipe
  • trunk/ippMonitor/def/detNormalizedImfile.d

    r9003 r9009  
    55
    66#     field     name     show   link to     extras
    7 FIELD det_id, det_id
    8 FIELD iteration, iteration
    9 FIELD class_id, class_id
    10 FIELD uri, uri
     7FIELD det_id, 20,   det_id
     8FIELD iteration, 20,   iteration
     9FIELD class_id, 20,   class_id
     10FIELD uri, 20,   uri
  • trunk/ippMonitor/def/detNormalizedStatImfile.d

    r9003 r9009  
    55
    66#     field     name     show   link to     extras
    7 FIELD det_id, det_id
    8 FIELD iteration, iteration
    9 FIELD class_id, class_id
    10 FIELD norm, norm
     7FIELD det_id, 20,   det_id
     8FIELD iteration, 20,   iteration
     9FIELD class_id, 20,   class_id
     10FIELD norm, 20,   norm
  • trunk/ippMonitor/def/detProcessedImfile.d

    r9003 r9009  
    88
    99#     field     name      show   link to     extras
    10 FIELD det_id, det_id
    11 FIELD exp_id, exp_id
    12 FIELD class_id, class_id
    13 FIELD uri, uri
    14 FIELD recipe, recipe
    15 FIELD bg, bg
    16 FIELD bg_stdev, bg_stdev
    17 FIELD bg_mean_stdev, bg_mean_stdev
     10FIELD det_id,   20,   det_id
     11FIELD exp_id,   20,   exp_id
     12FIELD class_id, 20,   class_id
     13FIELD uri,      20,   uri
     14FIELD recipe,   20,   recipe
     15FIELD bg,       20,   bg
     16FIELD bg_stdev, 20,   bg_stdev
     17FIELD bg_mean_stdev, 20,   bg_mean_stdev
  • trunk/ippMonitor/def/detResidExp.d

    r9008 r9009  
    55
    66#     field      name       show            link to             extras
    7 FIELD det_id,    det_id,    value
    8 FIELD iteration, iteration, value
    9 FIELD accept,    accept,    value
    10 FIELD exp_id,    exp_id,    value,          rawImfile.php,      exp_id=$exp_id
    11 FIELD b2_uri,    b2_uri,    image=$b2_uri,  detResidImfile.php, det_id=$det_id,iteration=$iteration,exp_id=$exp_id,image=$b1_uri
    12 FIELD recipe,    recipe,    value
    13 FIELD bg,        backgnd,   value
    14 FIELD bg_stdev,  bg_stdev,  value
    15 FIELD b1_uri,    b1_uri,    none
    16 # FIELD bg_mean_stdev, bg_mean_stdev
     7FIELD det_id,    20,   det_id,    value
     8FIELD iteration, 20,   iteration, value
     9FIELD accept,    20,   accept,    value
     10FIELD exp_id,    20,   exp_id,    value,          rawImfile.php,      exp_id=$exp_id
     11FIELD b2_uri,    20,   b2_uri,    image=$b2_uri,  detResidImfile.php, det_id=$det_id,iteration=$iteration,exp_id=$exp_id,image=$b1_uri
     12FIELD recipe,    20,   recipe,    value
     13FIELD bg,        20,   backgnd,   value
     14FIELD bg_stdev,  20,   bg_stdev,  value
     15FIELD b1_uri,    20,   b1_uri,    none
     16# FIELD bg_mean_stdev, 20,   bg_mean_stdev
  • trunk/ippMonitor/def/detResidImfile.d

    r9008 r9009  
    44MENU  ipp.imfiles.dat
    55
    6 #     field     name        show  link to     extras
    7 FIELD det_id, det_id
    8 FIELD iteration, iteration
    9 FIELD exp_id, exp_id
    10 FIELD class_id, class_id
    11 FIELD uri, uri
    12 FIELD recipe, recipe
    13 FIELD bg, bg
    14 FIELD bg_stdev, bg_stdev
    15 FIELD bg_mean_stdev, bg_mean_stdev
    16 FIELD b1_uri, b1_uri
    17 FIELD b2_uri, b2_uri
     6#     field     width  name        show  link to     extras
     7FIELD det_id,    20,   det_id
     8FIELD iteration, 20,   iteration
     9FIELD exp_id,    20,   exp_id
     10FIELD class_id,  20,   class_id
     11FIELD uri,       20,   uri
     12FIELD recipe,    20,   recipe
     13FIELD bg,        20,   bg
     14FIELD bg_stdev,  20,   bg_stdev
     15FIELD bg_mean_stdev, 20,   bg_mean_stdev
     16# FIELD b1_uri,    20,  b1_uri
     17# FIELD b2_uri,    20,  b2_uri
    1818
    1919TAIL PHP insert_image ('image');
  • trunk/ippMonitor/def/detRun.d

    r9003 r9009  
    55
    66#     field      name         show    link to              extras
    7 FIELD position,  det ID,      value,  detRunSummary.php,   det_id=$position
    8 FIELD iteration, iteration
    9 FIELD det_type,  det_type
     7FIELD position,  20,   det ID,      value,  detRunSummary.php,   det_id=$position
     8FIELD iteration, 20,   iteration
     9FIELD det_type,  20,   det_type
  • trunk/ippMonitor/def/detRunSummary.d

    r9003 r9009  
    44MENU  ipp.detrend.dat
    55
    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
     7FIELD det_id,    7,    det_id   
     8FIELD iteration, 5,    iter
     9FIELD accept,    20,   accept
     10FIELD *,         20,   choose,    value=input, detInputExp.php,  det_id=$det_id,iteration=$iteration
     11FIELD *,         20,   choose,    value=resid, detResidExp.php,  det_id=$det_id,iteration=$iteration
     12FIELD bg,        20,   bg
     13FIELD bg_stdev,  20,   bg_stdev
     14# FIELD bg_mean_stdev, 20,   bg_mean_stdev
  • trunk/ippMonitor/def/detStackedImfile.d

    r9003 r9009  
    55
    66#     field     name                   show  link to     extras
    7 FIELD det_id, det_id
    8 FIELD iteration, iteration
    9 FIELD class_id, class_id
    10 FIELD uri, uri
    11 FIELD recipe, recipe
    12 FIELD bg, bg
    13 FIELD bg_stdev, bg_stdev
    14 FIELD bg_mean_stdev, bg_mean_stdev
    15 FIELD normalize, normalize
     7FIELD det_id, 20,   det_id
     8FIELD iteration, 20,   iteration
     9FIELD class_id, 20,   class_id
     10FIELD uri, 20,   uri
     11FIELD recipe, 20,   recipe
     12FIELD bg, 20,   bg
     13FIELD bg_stdev, 20,   bg_stdev
     14FIELD bg_mean_stdev, 20,   bg_mean_stdev
     15FIELD normalize, 20,   normalize
  • trunk/ippMonitor/def/masterDetrendImages.d

    r9008 r9009  
    77MENU  ipp.detrend.dat
    88
    9 HEAD PHP insert_image ('image');
    10 HEAD HTML extra <b> lines </b><br><br>
    11 
    129# the following WHERE clauses are added to all queries joined by AND
    1310WHERE detRunSummary.accept = 1
     
    1512WHERE detRun.iteration = detRunSummary.iteration
    1613
    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
     15FIELD detRunSummary.det_id,    7,    det_id,       value,       detRunSummary.php, det_id=$detRunSummary.det_id
     16FIELD detRun.det_type,         5,    type
     17FIELD detRunSummary.iteration, 5,    iter
     18FIELD *,                       20,   choose,       value=input, detInputExp.php,  det_id=$detRunSummary.det_id,iteration=$detRunSummary.iteration
     19FIELD *,                       20,   choose,       value=resid, detResidExp.php,  det_id=$detRunSummary.det_id,iteration=$detRunSummary.iteration
     20FIELD detRunSummary.bg,        20,   bg
     21FIELD detRunSummary.bg_stdev,  20,   bg_stdev
     22# FIELD bg_mean_stdev, 20,   bg_mean_stdev
    2523
    2624# this file illustrates a simple inner join to generate the output table
     
    3028# WHERE detRunSummary.accept = 1 AND detRun.position = detRunSummary.det_id AND detRun.iteration = detRunSummary.iteration \
    3129# 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  
    55
    66#        field          name           show     link to         extras
    7 FIELD    exp_id,        exposure ID
    8 FIELD    camera,        camera
    9 FIELD    telescope,     telescope
    10 FIELD    exp_type,      type
    11 FIELD    imfiles,       N imfiles
     7FIELD    exp_id,        20,   exposure ID
     8FIELD    camera,        20,   camera
     9FIELD    telescope,     20,   telescope
     10FIELD    exp_type,      20,   type
     11FIELD    imfiles,       20,   N imfiles
  • trunk/ippMonitor/def/newImfile.d

    r9003 r9009  
    55
    66#        field          name           show   link to         extras
    7 FIELD    exp_id,        exposure ID
    8 FIELD    class,         class
    9 FIELD    class_id,      class ID
    10 FIELD    uri,           URI
     7FIELD    exp_id,        20,   exposure ID
     8FIELD    class,         20,   class
     9FIELD    class_id,      20,   class ID
     10FIELD    uri,           20,   URI
  • trunk/ippMonitor/def/p1PendingExp.d

    r9003 r9009  
    55
    66#     field       name         show     link to         extras
    7 FIELD exp_id,     exposure ID, value,   rawImfile.php,  exp_id=$exp_id
    8 FIELD recipe,     recipe
    9 FIELD p1_version, p1 version
     7FIELD exp_id,     20,   exposure ID, value,   rawImfile.php,  exp_id=$exp_id
     8FIELD recipe,     20,   recipe
     9FIELD p1_version, 20,   p1 version
  • trunk/ippMonitor/def/p2PendingExp.d

    r9003 r9009  
    55
    66#     field       name         show    link to         extras
    7 FIELD exp_id,     exposure ID, value,  rawImfile.php,  exp_id=$exp_id
    8 FIELD recipe,     recipe
    9 FIELD p1_version, p1 version
    10 FIELD p2_version, p2 version
     7FIELD exp_id,     20,   exposure ID, value,  rawImfile.php,  exp_id=$exp_id
     8FIELD recipe,     20,   recipe
     9FIELD p1_version, 20,   p1 version
     10FIELD p2_version, 20,   p2 version
  • trunk/ippMonitor/def/p2PendingImfile.d

    r9003 r9009  
    55
    66#     field     name           show   link to     extras
    7 FIELD exp_id,   exposure ID
    8 FIELD class_id, class ID
    9 FIELD uri,      URI
    10 FIELD recipe,   recipe
    11 FIELD p1_version, p1 version
    12 FIELD p2_version, p2 version
     7FIELD exp_id,   20,   exposure ID
     8FIELD class_id, 20,   class ID
     9FIELD uri,      20,   URI
     10FIELD recipe,   20,   recipe
     11FIELD p1_version, 20,   p1 version
     12FIELD p2_version, 20,   p2 version
  • trunk/ippMonitor/def/p2ProcessedExp.d

    r9003 r9009  
    55
    66#     field       name         show   link to                 extras
    7 FIELD exp_id,     exposure ID, value, p2ProcessedImfile.php,  exp_id=$exp_id
    8 FIELD p1_version, p1 version,  value, p1PendingExp.php        exp_id=$exp_id
    9 FIELD p2_version, p2 version
     7FIELD exp_id,     20,   exposure ID, value, p2ProcessedImfile.php,  exp_id=$exp_id
     8FIELD p1_version, 20,   p1 version,  value, p1PendingExp.php        exp_id=$exp_id
     9FIELD p2_version, 20,   p2 version
  • trunk/ippMonitor/def/p2ProcessedImfile.d

    r9003 r9009  
    55
    66#     field          name          show  link to     extras
    7 FIELD exp_id,        exposure ID
    8 FIELD class_id,      class ID
    9 FIELD uri,           URI
    10 FIELD recipe,        recipe
    11 FIELD bg,            background
    12 FIELD bg_stdev,      background stdev
    13 FIELD bg_mean_stdev, mean background stdev
    14 FIELD b1_uri,        URI small binned
    15 FIELD b2_uri,        URI large binned
    16 FIELD p1_version,    p1 version
    17 FIELD p2_version,    p2 version
     7FIELD exp_id,        20,   exposure ID
     8FIELD class_id,      20,   class ID
     9FIELD uri,           20,   URI
     10FIELD recipe,        20,   recipe
     11FIELD bg,            20,   background
     12FIELD bg_stdev,      20,   background stdev
     13FIELD bg_mean_stdev, 20,   mean background stdev
     14FIELD b1_uri,        20,   URI small binned
     15FIELD b2_uri,        20,   URI large binned
     16FIELD p1_version,    20,   p1 version
     17FIELD p2_version,    20,   p2 version
  • trunk/ippMonitor/def/p3PendingExp.d

    r9003 r9009  
    55
    66#     field       name          show   link to                extras
    7 FIELD exp_id,     exposure ID,  value, p2ProcessedImfile.php, exp_id=$exp_id
    8 FIELD p2_version, p2 version,   value, p2ProcessedExp.php,    exp_id=$exp_id
    9 FIELD p3_version, p3 version
     7FIELD exp_id,     20,   exposure ID,  value, p2ProcessedImfile.php, exp_id=$exp_id
     8FIELD p2_version, 20,   p2 version,   value, p2ProcessedExp.php,    exp_id=$exp_id
     9FIELD p3_version, 20,   p3 version
  • trunk/ippMonitor/def/pzPendingExp.d

    r9003 r9009  
    55
    66#        field          name           show     link to         extras
    7 FIELD    exp_id,        exposures ID
    8 FIELD    camera,        camera
    9 FIELD    telescope,     telescope
    10 FIELD    exp_type,      type
    11 FIELD    imfiles,       N files
     7FIELD    exp_id,        20,   exposures ID
     8FIELD    camera,        20,   camera
     9FIELD    telescope,     20,   telescope
     10FIELD    exp_type,      20,   type
     11FIELD    imfiles,       20,   N files
  • trunk/ippMonitor/def/pzPendingImfile.d

    r9003 r9009  
    55
    66#        field        name             show   link to         extras
    7 FIELD    exp_id,      exposure ID
    8 FIELD    bytes,       number of bytes
    9 FIELD    md5sum,      checksum
    10 FIELD    class,       class
    11 FIELD    class_id,    class ID
    12 FIELD    uri,         URI
     7FIELD    exp_id,      20,   exposure ID
     8FIELD    bytes,       20,   number of bytes
     9FIELD    md5sum,      20,   checksum
     10FIELD    class,       20,   class
     11FIELD    class_id,    20,   class ID
     12FIELD    uri,         20,   URI
  • trunk/ippMonitor/def/rawDetrendExp.d

    r9003 r9009  
    55
    66#        field        name           show     link to         extras
    7 FIELD    exp_id,      exposure ID,   value,   rawImfile.php,  exp_id=$exp_id
    8 FIELD    telescope,   Telescope
    9 FIELD    camera,      Camera
    10 FIELD    exp_type,    Type   
    11 FIELD    filter,      FILTER
    12 # FIELD    imfiles, imfiles     
    13 # FIELD    airmass, airmass     
    14 # FIELD    ra, ra         
    15 # FIELD    decl, decl       
    16 # FIELD    exp_time, exp_time   
    17 # FIELD    bg, bg         
    18 # FIELD    bg_stdev, bg_stdev   
    19 # FIELD    bg_mean_stdev, bg_mean_stdev   
    20 # FIELD    alt, alt         
    21 # FIELD    az, az         
    22 # FIELD    ccd_temp, ccd_temp   
    23 # FIELD    posang, posang     
     7FIELD    exp_id,      20,   exposure ID,   value,   rawImfile.php,  exp_id=$exp_id
     8FIELD    telescope,   20,   Telescope
     9FIELD    camera,      20,   Camera
     10FIELD    exp_type,    20,   Type   
     11FIELD    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  
    88
    99#        field        name           show   link to         extras
    10 FIELD    exp_id,      Exposure ID
    11 FIELD    class,       Class
    12 FIELD    class_id,    Class ID
    13 # FIELD    uri, uri
    14 # FIELD    exp_type, exp_type
    15 # FIELD    filter, filter
    16 # FIELD    airmass, airmass
    17 # FIELD    ra, ra
    18 # FIELD    decl, decl
    19 # FIELD    exp_time, exp_time
    20 # FIELD    bg, bg
    21 # FIELD    bg_stdev, bg_stdev
    22 # FIELD    bg_mean_stdev, bg_mean_stdev
    23 # FIELD    alt, alt
    24 # FIELD    az, az
    25 # FIELD    ccd_temp, ccd_temp
    26 # FIELD    posang, posang
     10FIELD    exp_id,      20,   Exposure ID
     11FIELD    class,       20,   Class
     12FIELD    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  
    55
    66#        field        name           show    link to         extras
    7 FIELD    exp_id,      exposure ID,   value,   rawImfile.php,  exp_id=$exp_id,camera=$camera,foo=bar
    8 FIELD    telescope,   Telescope,     value,  telescopes.php
    9 FIELD    camera,      Camera
    10 FIELD    exp_type,    Type   
    11 FIELD    filter,      FILTER
    12 # FIELD    imfiles, imfiles     
    13 # FIELD    airmass, airmass     
    14 # FIELD    ra, ra         
    15 # FIELD    decl, decl       
    16 # FIELD    exp_time, exp_time   
    17 # FIELD    bg, bg         
    18 # FIELD    bg_stdev, bg_stdev   
    19 # FIELD    bg_mean_stdev, bg_mean_stdev   
    20 # FIELD    alt, alt         
    21 # FIELD    az, az         
    22 # FIELD    ccd_temp, ccd_temp   
    23 # FIELD    posang, posang     
     7FIELD    exp_id,      20,   exposure ID,   value,   rawImfile.php,  exp_id=$exp_id,camera=$camera,foo=bar
     8FIELD    telescope,   20,   Telescope,     value,  telescopes.php
     9FIELD    camera,      20,   Camera
     10FIELD    exp_type,    20,   Type   
     11FIELD    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  
    55
    66#        field        name           show    link to         extras
    7 FIELD    exp_id,      exposure ID
    8 FIELD    camera,      camera
    9 FIELD    telescope,   telescope
    10 FIELD    exp_type,    type
    11 FIELD    uri,         URI
     7FIELD    exp_id,      20,   exposure ID
     8FIELD    camera,      20,   camera
     9FIELD    telescope,   20,   telescope
     10FIELD    exp_type,    20,   type
     11FIELD    uri,         20,   URI
  • trunk/ippMonitor/generate

    r9008 r9009  
    1212# global variables:
    1313# @key, @value                         : paired list of keys and values
    14 # @field, @name, @show, @link, @extras : properties of each table column
    1514# @headcode, @tailcode                 : additional HTML or PHP code before or after table
     15# @field, @width, @name, @show, @link, @extras : properties of each table column
    1616
    1717&parse_schema;
     
    4444        # list of the table fields
    4545        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"; }
    4748            # ($field) = $field =~ m|\s*(\S+)\s*|;
    4849
     
    5051            if ($show eq "") {$show = "value";}
    5152            push @field,   $field;
     53            push @width,   $width;
    5254            push @name,    $name;
    5355            push @show,    $show;
     
    250252            printf FILE "echo \"<td> &nbsp; </td>\\n\";\n";
    251253        } else {
    252             printf FILE "write_query_row ('$field[$i]');\n";
     254            printf FILE "write_query_row ('$field[$i]', $width[$i]);\n";
    253255        }
    254256    }
  • trunk/ippMonitor/raw/ipp.detrend.dat

    r9008 r9009  
    2424menutop   | menutop      | plain   | &nbsp;                       |
    2525menulink  | 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                       
     26menulink  | menuselect   | link    | Detrend Runs                 | detRunSummary.php             
     27menulink  | menuselect   | link    | Input Detrend Exp            | detInputExp.php                   
     28menulink  | menuselect   | link    | Resid Detrend Exp            | detResidExp.php                       
    3029
    3130menutop   | menutop      | plain   | &nbsp;                       |
  • trunk/ippMonitor/raw/ipp.php

    r9008 r9009  
    1919  // connect to the database
    2020  require_once('DB.php');
    21 # $db = DB::connect("mysql://ipp:ipp@localhost/ipp");
     21  // $db = DB::connect("mysql://ipp:ipp@localhost/ipp");
    2222  $db = DB::connect("mysql://ipp:ipp@localhost/detrend");
    2323  if (DB::iserror($db)) {
     
    8181    $ID['menu'] = $_GET[menu];
    8282    // 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    // }
    8388  }
    8489  if ($_SERVER[REQUEST_METHOD] == 'POST') {
     
    8792    $ID['menu'] = $_POST[menu];
    8893    // 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    // }
    8999  }
    90100
     
    178188
    179189function check_restrict ($key, $where) {
    180   // echo "key: $key<br>\n";
     190  $htmlkey = preg_replace ('|\.|', '_', $key);
    181191  if ($_SERVER[REQUEST_METHOD] == 'GET') {
    182     $value = $_GET[$key];
     192    $value = $_GET[$htmlkey];
    183193    // echo "using GET<br>\n";
    184194  } else {
    185     $value = $_POST[$key];
     195    $value = $_POST[$htmlkey];
    186196    // echo "using POST<br>\n";
    187197  }
     
    199209}
    200210
    201 function write_query_row ($key) {
    202   $value = $_POST[$key];
     211function write_query_row ($key, $width) {
     212  $htmlkey = preg_replace ('|\.|', '_', $key);
     213  $value = $_POST[$htmlkey];
    203214  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";
    205216  } 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";
    207218  }
    208219}
    209220
    210221// expect image supplied with key=name
     222// this function should define matching hidden inputs in the form
    211223function insert_image ($key) {
    212224
Note: See TracChangeset for help on using the changeset viewer.