########################################################## ## Record Layout ## ########################################################## 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) = @_; $rec{$db_key} =~ s/.B>//g; ($db_auto_generate and print &build_html_record_form(%rec) and return); my $font = 'Font face="Tahoma" Size=2 Color=#003399'; print qq|Master Data Base | |||||||||
|; print &build_select_field ("Promotion", "$rec{'Promotion'}"); print qq| | |; print &build_select_field ("Pdate", "$rec{'Pdate'}"); print qq| | |; print &build_select_field ("Dino_Pro", "$rec{'Dino_Pro'}"); print qq| | Week: | Sale:|; print &build_select_field ("Tap", "$in{'Tap'}"); print qq| | |||||
Company: | Phone: | Amount: | |||||||
Contact: | Email: | |; if ($per_admin) { print qq| | Collected Date   | |; } else { print qq||; } print qq| | |||||
Address: | |; if ($per_admin) { print qq|Sales Rep: |; print &build_external_select_field ("Userid", "$rec{'Userid'}"); print qq| | |; print qq| |; } print qq|Trigger: |; print &build_checkbox_field ("Trigger", "$rec{'Trigger'}"); print qq| | |||||||
City: |
Jerseys | ||||||||
Special Inst: |