The number 10 ( ,"10" ) is a place holder and sequence for the order it will fall. I understand that this is not correct and will need to change.
sub html_record_form {
# --------------------------------------------------------
# The form fields that will be displayed each time a record is
# edited (including searching). You don't want to put the
# tags for each field.
# The values to be displayed are in %rec and should be incorporated
# into your form. You can use &build_select_field, &build_checkbox_field
# and &build_radio_field to generate the respective input boxes. Text and
# Textarea inputs can be inserted as is. If you turn on form auto
# generation, the program will build the forms for you (all though they may
# not be as nice). See the README for more info.
my (%rec) = @_;
($db_auto_generate and print &build_html_record_form(%rec) and return);
my $font = 'Font face="Tahoma" Color=#003399';
print qq|
|;
# to close an active printing statement
# $rec{'Amount'} = sprintf ("%.2f", $rec{'Amount'});
# 1 while $rec{'Amount'} =~ s/(\d)(\d{3})\b/$1,$2/;
# $rec{'Amount'} =~ s/\$//./,/;
# if ($rec{'Amount'}) {
print qq|
Amount  
|;
# }
print qq|
|;
if ($per_admin) {
print qq|
Collected Date  
|;
}
else {
print qq|
|;
}
print qq|
|;
}
###################################################################################################################################################
This sub routine is from the db.cgi
sub build_select_field {
# --------------------------------------------------------
# Builds a SELECT field based on information found
# in the database definition. Parameters are the column to build
# and a default value (optional).
my ($column, $value, $name) = @_;
my (@fields, $ouptut);
$name || ($name = $column);
@fields = split (/\,/, $db_select_fields{$column});
if ($#fields == -1) {
$output = "error building select field: no select fields specified in config for field '$column'!";
}
else {
$output = qq|";
}
return $output;
}