This sub routine is in the html.pl file. only the non admin fields have tabindex. The fields that have input calls all work fine. exp: Week The fields that I don't understand and need help with are these: Sale:|; print &build_select_field ("Tap", "$rec{'Tap'}","10"); print qq| 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 #
and
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|
|; if ($per_admin) { print qq| |; } else { print qq||; } print qq| |; if ($per_admin) { print qq| |; } else { print qq||; } print qq| |; } print qq| |; } print qq| |; } print qq| |; } 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| |; # } print qq| |; if ($per_admin) { print qq| |; } else { print qq||; } print qq|
$rec{'Company'}
Company InformationSales Information
Promotion: Week Sale:|; print &build_select_field ("Tap", "$rec{'Tap'}","10"); print qq| |; print qq! !; print qq|
|; print &build_select_field ("Promotion", "$rec{'Promotion'}","0"); print qq| |; print &build_select_field ("Pdate", "$rec{'Pdate'}","1"); print qq| Enter week number as 2 digits exp:02 or 03.
Company:
AD Size:   |; print &build_select_field ("AD_Size", "$rec{'AD_Size'}","11"); print qq| Art:  |; print &build_select_field ("Art", "$rec{'Art'}","12"); print qq| Proof:  |; print &build_select_field ("Proof", "$rec{'Proof'}","13"); print qq|
Contact: AD Size 2:|; print &build_select_field ("AD_Size2", "$rec{'AD_Size2'}","14"); print qq| Art2:|; print &build_select_field ("Art2", "$rec{'Art2'}","15"); print qq| Proof2:|; print &build_select_field ("Proof2", "$rec{'Proof2'}","16"); print qq|
Address:
Banner:|; print &build_select_field ("Banner", "$rec{'Banner'}","17"); print qq| Art3:|; print &build_select_field ("Art3", "$rec{'Art3'}","18"); print qq| Proof3:|; print &build_select_field ("Proof3", "$rec{'Proof3'}","19"); print qq|
Jumbo:|; print &build_select_field ("Jumbo", "$rec{'Jumbo'}","20"); print qq| Art4:|; print &build_select_field ("Art4", "$rec{'Art4'}","21"); print qq| Proof4:|; print &build_select_field ("Proof4", "$rec{'Proof4'}","22"); print qq|

City, State Zip:

Table:|; print &build_select_field ("Table", "$rec{'Table'}","23"); print qq|
Phone: Art Dept will update this section. Do not change anything in this area!!!. Tickets:     
AD Page Number VIP Tickets:
Alt Phone AD2 Page Number Memorabilia:
Banner Number |; print &build_select_field2("Memorabilia",$rec{'Memorabilia'},'',6); print qq| To enter multiple options, you must hold the CTRL key while making your selections.
Email: Format xx\@xxx.xxx Jumbo Number
Do we have all art work? |; print &build_select_field ("Graphics", "$rec{'Graphics'}"); print qq|
Sales Rep:   |; print &build_external_select_field ("Userid", "$rec{'Userid'}"); print qq|
Red Flag:   |; print &build_radio_field ("Red_Flag", "$rec{'Red_Flag'}"); print qq| Lead  |; print &build_select_field ("Lead", "$rec{'Lead'}","33"); print qq| Ad the name of the jersey(s) you tag here.                  Status
Date format mm/dd/yyyy Special Inst: Do not put CC information in Special Inst. Jersey(1)  |; if ($per_admin) { print qq| |; print &build_select_field ("JDel1", "$rec{'JDel1'}"); print qq|
Payment Method  |; print &build_select_field ("Payment", "$rec{'Payment'}","30"); print qq| Jersey(2)  |; if ($per_admin) { print qq| |; print &build_select_field ("JDel2", "$rec{'JDel2'}"); print qq|
Pickup Date   Jersey(3)  |; if ($per_admin) { print qq| |; print &build_select_field ("JDel3", "$rec{'JDel3'}"); print qq|
Currency Format \$1500.00 NO COMMA'S Jersey(4)  |; if ($per_admin) { print qq| |; print &build_select_field ("JDel4", "$rec{'JDel4'}"); print qq|
Amount  
Collected Date  
|; } ################################################################################################################################################### 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; }