"; + # my $count=@string; + # $string[$count]=""; return @string; } @@ -158,7 +161,7 @@ sub endmenu { return @string; } -sub mktablehdr { +sub mktablehdr() { return("\n"); } @@ -173,24 +176,23 @@ sub mktablerow { my $i=0; my $string="
\n"); } @@ -248,7 +250,7 @@ sub mkform3 { $string .= mktablehdr(); my $key; my @keys = sort(keys(%inputs)); - my @order; + my @order; my $count = @keys; my $i2 = 0; while ($i2 < $count) { @@ -319,6 +321,13 @@ sub mkformnotable{ } sub mkform2{ + # FIXME + # no POD and no tests yet. Once tests are written, + # this function can be cleaned up with the following steps: + # turn the while loop into a foreach loop + # pull the nested if,elsif structure back up to the main level + # pull the code for the different kinds of inputs into separate + # functions my ($action,%inputs)=@_; my $string=""; } +=pod -sub endpage{ +=head2 &endpage + + &endpage does not expect any arguments, it returns the string: +"; while ($i <$cols){ - if ($data[$cols] ne ''){ - #check for backgroundimage - $string.=" \n"; return($string); } -sub mktableft { +sub mktableft() { return(""; - } else { - $string.=" "; - } - if ($data[$i] eq "") { - $string.=" "; - } else { - $string.="$data[$i]"; - } - $i++; + if (defined $data[$cols]) { # if there is a background image + $string.=""; + } else { # if there's no background image + $string.=" "; + } + if ($data[$i] eq "") { + $string.=" "; + } else { + $string.="$data[$i]"; + } + $i++; } $string=$string."