# # ---------------------- # DBMan # ---------------------- # Database Administrator # # File: html.pl # Description: This file contains all the HTML that the program generates. # Author: Alex Krohn # Web: http://www.gossamer-threads.com/ # Version: 2.05 # CVS Revision: $Id: html.pl,v 1.3 2000/07/08 18:14:40 alex Exp $ # # COPYRIGHT NOTICE: # # Copyright 1997 Gossamer Threads Inc. All Rights Reserved. # # This program is being distributed as shareware. It may be used and # modified free of charge for personal, academic, government or non-profit # use, so long as this copyright notice and the header above remain intact. # Any commercial use should be registered. Please also send me an email, # and let me know where you are using this script. By using this program # you agree to indemnify Gossamer Threads Inc. from any liability. # # Selling the code for this program without prior written consent is # expressly forbidden. Obtain permission before redistributing this # program over the Internet or in any other medium. In all cases # copyright and header must remain intact. # # Please check the README file for full details on registration. # ===================================================================== ########################################################## ## HTML Globals ## ########################################################## $html_title = 'Feicke Web Workorder System'; ########################################################## ## 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) = @_; ($db_auto_generate and print &build_html_record_form(%rec) and return); my $font = 'Font face="Verdana, Arial, Helvetica" Size=2 Color=#003399'; print qq|ID: | |||
Job Number |
<$font>
Date Received | ||
---|---|---|---|
Customer | Customer P.O. | ||
Address | |||
Contact | Sales Rep | ||
Phone Number | Commission | |; print &build_select_field("commission",$rec{'commission'}); print qq| | |
Fax Number | |||
Delivery Date |
Job Code | Book Type | |; print &build_select_field("book_type",$rec{'book_type'}); print qq| | |
QTY | Paper Stock | ||
Ink Color | Stock Width | ||
Prints | Flat Size | ||
Number of Pages | Finish Size | ||
Self Cover? (Y/N) | |; print &build_select_field("self_cover",$rec{'self_cover'}); print qq| | Number of Sections |
fold online: | |; print &build_select_field("fold_online",$rec{'fold_online'}); print qq| | perf online: | |; print &build_select_field("perf_online",$rec{'perf_online'}); print qq| |
remoist glue: | |; print &build_select_field("remoist_glue",$rec{'remoist_glue'}); print qq| | glue inline | |; print &build_select_field("glue_inline",$rec{'glue_inline'}); print qq| |
prepress: | |; print &build_select_field("prepress",$rec{'prepress'}); print qq| | proof type: | |; print &build_select_field("proof_type",$rec{'proof_type'}); print qq| |
press: | |; print &build_select_field("press",$rec{'press'}); print qq| | press date: |
stock order date: | stock due date: | ||||
vendor: | po number: | ||||
bindery: |
out source: | |; print &build_select_field("out_source",$rec{'out_source'}); print qq| | ||
out source what: | |||
out source who: | |||
out source due too: | |||
out source due back: | |||
out source cost: | |||
out source notes: |
our truck: | |; print &build_select_field("our_truck",$rec{'our_truck'}); print qq| | qty shipped: | |||
ship to: | other shipping: | ||||
comments: |
approval: | |; print &build_select_field("approval",$rec{'approval'}); print qq| | approval date: | |||
approval by who: | approval how: | ||||
approval notes: |
stat prepress: | |; print &build_select_field("stat_prepress",$rec{'stat_prepress'}); print qq| | stat bindery: | |; print &build_select_field("stat_bindery",$rec{'stat_bindery'}); print qq| |
stat stripping: | |; print &build_select_field("stat_stripping",$rec{'stat_stripping'}); print qq| | stat out source: | |; print &build_select_field("stat_out_source",$rec{'stat_out_source'}); print qq| |
stat press: | |; print &build_select_field("stat_press",$rec{'stat_press'}); print qq| | stat shipping: | |; print &build_select_field("stat_shipping",$rec{'stat_shipping'}); print qq| |
Invoice: | |; print &build_select_field("invoice",$rec{'invoice'}); print qq| |
Job Number |
<$font>
$rec{'Job_Number'} | Date Received | $rec{'Date'} |
Customer | $rec{'customer'} | Customer P.O. | $rec{'customer_po'} |
Address | $rec{'address'} | ||
Contact | $rec{'contact'} | Sales Rep | $rec{'sales_rep'} |
Phone Number | $rec{'phone'} | Commission | $rec{'commission'} |
Fax Number | $rec{'fax'} | ||
$rec{'e_mail'} | Delivery Date | $rec{'delivery_date'} |
Job Code | $rec{'job_code'} | Book Type | $rec{'book_type'} |
QTY | $rec{'qty'} | Paper Stock | $rec{'stock'} |
Ink Color | $rec{'ink_colors'} | Stock Width | $rec{'stock_width'} |
Prints | $rec{'prints'} | Flat Size | $rec{'flat_size'} |
Num of Pages | $rec{'number_of_pages'} | Finish Size | $rec{'finish_size'} |
Self Cover? | $rec{'self_cover'} | Num of Sections | $rec{'print_sections'} |
fold online: | $rec{'fold_online'} | perf online: | $rec{'perf_online'} |
remoist glue: | $rec{'remoist_glue'} | glue inline | $rec{'glue_inline'} |
prepress: | $rec{'prepress'} | proof type: | $rec{'proof_type'} |
press: | $rec{'press'} | press date: | $rec{'press_date'} |
stock order date: | $rec{'stock_order_date'} | stock due date: | $rec{'stock_due_date'} |
vendor: | $rec{'vendor'} | po number: | $rec{'po_number'} |
bindery: | $rec{'bindery'} |
Out Source |
$rec{'out_source'} | OS due too: | $rec{'out_source_due_too'} |
OS what:
|
$rec{'out_source_what'} | OS due back: | $rec{'out_source_due_back'} |
OS to who:
|
$rec{'out_source_who'} | out source cost: | $rec{'out_source_cost'} |
notes:
|
$rec{'out_source_notes'} |
our truck: | $rec{'our_truck'} | qty shipped: | $rec{'qty_shipped'} |
ship to: | other shipping: | $rec{'other_shipping'} | |
comments: | $rec{'comments'} |
approval: | $rec{'approval'} | approval date: | $rec{'approval_date'} | ||
approval by who: | $rec{'approval_by_who'} | approval how: | $rec{'approval_how'} | ||
approval notes: | $rec{'approval_notes'} |
stat prepress: | $rec{'stat_prepress'} | stat bindery: | $rec{'stat_bindery'} |
stat stripping: | $rec{'stat_stripping'} | stat out source: | $rec{'stat_out_source'} |
stat press: | $rec{'stat_press'} | stat shipping: | $rec{'stat_shipping'} |
Invoice: | $rec{'invoice'} | $rec{'pdf_proof'} |
Job Number | $rec{'Job_Number'} | Date Received | $rec{'Date'} | Customer | $rec{'customer'} |
Job Code | $rec{'job_code'} | QTY | $rec{'qty'} | Delivery Date | $rec{'delivery_date'} |
approval: | $rec{'approval'} | approval date: | $rec{'approval_date'} | ||
stat prepress: | $rec{'stat_prepress'} | stat bindery: | $rec{'stat_bindery'} | ||
stat stripping: | $rec{'stat_stripping'} | stat out source: | $rec{'stat_out_source'} | ||
stat press: | $rec{'stat_press'} | stat shipping: | $rec{'stat_shipping'} |
Job Number | $rec{'Job_Number'} | $rec{'Date'} | $rec{'job_code'} | Invoiced ? | $rec{'invoice'} |
<$font>!; print qq!| Home !; print qq!| Add ! if ($per_add); print qq!| View ! if ($per_view); print qq!| Stat Report ! if ($per_stat); print qq!| Open Job Report ! if ($per_jobs); print qq!| Delete ! if ($per_del); print qq!| Modify ! if ($per_mod); print qq!| List All ! if ($per_view); print qq!| Admin ! if ($per_admin); print qq!| Log Off |!; print qq!
!; # Print the Footer -- note: a link (doesn't have to be the graphic) is required unless you purchase # a license. See: http://gossamer-threads.com/scripts/register/ for more info. print qq!<$font>Database Powered by Gossamer Threads Inc. | ![]() |
Search Options:
Match Any
Match Case
Whole Words
Reg. Expression
Keyword Search (will match against all fields)
Max. Returned Hits
Sort By:
Sort Order:
Search Tips:
- use '*' to match everything in a field)
- put a '>' or '<' at the beginning to to do range searches.
~;
}
##########################################################
## Adding ##
##########################################################
sub html_add_form {
# --------------------------------------------------------
# The add form page where the user fills out all the details
# on the new record he would like to add. You should use
# &html_record_form to print out the form as it makes
# updating much easier. Feel free to edit &get_defaults
# to change the default values.
#
$rec{'Date'} = &get_date();
&html_print_headers;
print qq|
Job Number |
<$font>
$rec{'Job_Number'} | Date Received | $rec{'Date'} |
Customer | $rec{'customer'} | Customer P.O. | $rec{'customer_po'} |
Address | $rec{'address'} | ||
Contact | $rec{'contact'} | Sales Rep | $rec{'sales_rep'} |
Phone Number | $rec{'phone'} | Commission | $rec{'commission'} |
Fax Number | $rec{'fax'} | ||
$rec{'e_mail'} | Delivery Date | $rec{'delivery_date'} |
Job Code | $rec{'job_code'} | Book Type | $rec{'book_type'} |
QTY | $rec{'qty'} | Paper Stock | $rec{'stock'} |
Ink Color | $rec{'ink_colors'} | Stock Width | $rec{'stock_width'} |
Prints | $rec{'prints'} | Flat Size | $rec{'flat_size'} |
# of Pages | $rec{'number_of_pages'} | Finish Size | $rec{'finish_size'} |
Self Cover? | $rec{'self_cover'} | # of Sections | $rec{'print_sections'} |
fold online: | $rec{'fold_online'} | perf online: | $rec{'perf_online'} |
remoist glue: | $rec{'remoist_glue'} | glue inline | $rec{'glue_inline'} |
prepress: | $rec{'prepress'} | proof type: | $rec{'proof_type'} |
press: | $rec{'press'} | press date: | $rec{'press_date'} |
stock order date: | $rec{'stock_order_date'} | stock due date: | $rec{'stock_due_date'} |
vendor: | $rec{'vendor'} | po number: | $rec{'po_number'} |
bindery: | $rec{'bindery'} |
Out Source |
$rec{'out_source'} | OS due too: | $rec{'out_source_due_too'} |
OS what:
|
$rec{'out_source_what'} | OS due back: | $rec{'out_source_due_back'} |
OS to who:
|
$rec{'out_source_who'} | out source cost: | $rec{'out_source_cost'} |
notes:
|
$rec{'out_source_notes'} |
our truck: | $rec{'our_truck'} | qty shipped: | $rec{'qty_shipped'} |
ship to: | other shipping: | $rec{'other_shipping'} | |
comments: |