IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

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

added field width

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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    }
Note: See TracChangeset for help on using the changeset viewer.