# Perl Support File
# Variables used by ws_editor.cgi
# Variables used by all scripts: /Web_store/ws_global.setup
# File Permissions: 644 -rw-r--r--
# NOTE: If you change the filename of this file, change the value of
# $default_setup_file in ws_editor.cgi to reflect the file's new name.
############################################################################
# outlet_editor.setup #
#==========================================================================#
# Copyright (c) 1996 - 2002, RDC Software #
# WebStore@ratite.com http://www.ratite.com/Perl/WebStore.shtml #
# Version: 4.15.00 Date: 01/01/2002 #
# #
# Full copyright notice can be found in the following files for the #
# listed license type: #
# #
# Single User License: /Docs/Copyright_SingleUser.html #
# Server License: /Docs/Copyright_Server.html #
# #
# This copyright notification can not be altered or removed from this file.#
#==========================================================================#
# Backslash all @ signs --> \@ <-- Perl 5 compatibility. #
# Variables containing @ signs must be enclosed in " (double quotes). #
# #
# All other variables are enclosed in ' (single quotes). #
# #
# If the value you store in a variable enclosed in single quotes requires #
# the use of a single quote, backslash the imbedded single quote: #
# #
# EXAMPLE: $global_page_title = 'Joe\'s Auto Parts' #
############################################################################
#--------------------------------------------------------------------------#
# General Settings
#--------------------------------------------------------------------------#
# $data_file is the pipe delimited flatfile database being edited.
$data_file = 'outlet.data';
# $global_page_title is used in the
of all HTML pages, and in the
# Subject and Body of generated e-mail messages when a new user registers.
$global_page_title = 'Inventory Database Editor';
# @store_files is an array listing the WebStore's script name in element
# zero followed by a listing of all WebStore store setup files which
# reference the database listed in $data_file (above).
# When the database listed in $data_file is sorted, WS Editor will update
# @categories in each store setup file listed in @store_files.
#
# When the name of your WebStore script is placed in element zero, an HTML
# page of WebStore query string links, one for each database category, will
# be created in the /Databases sub-directory named outlet.data.html
# ($data_file.html). If element zero ends in :E, the HTML file created
# will contain two query string links for each database category. The
# second link for each category will have extended characters converted,
# allowing you to cut and paste these links directly into your WebStore's
# HTML pages from a web browser when viewing outlet.data.html.
# @categories in a WebStore setup file is a listing of database categories
# used to print the drop down select element in WebStore's search engine.
# $category_fld_num (below) must be set to the same database field number as
# $category_fld_num in the WebStore setup file(s) listed in @store_files.
# WS Editor will add the extension '.setup' to each file name listed in
# @store_files if a file name does not end in '.setup'.
# If a WebStore store setup file listed in @store_files does not exist,
# WS Editor will bypass the file name. No error is generated when this occurs.
# If you do not use WebStore's search engine or you do not want WS Editor to
# update WebStore's setup file(s), set @store_files = ();
# ELEMENT: zero one two
@store_files = ('ws400CS.cgi:E', 'outlet', 'No_Frames');
# $max_items is the maximum number of items returned to the web browser
# by the search engine. $max_items defaults to 5 if mis-configured.
$max_items = '5'; # 5
# If $ascending_sort = 1, sort drop down selects are intially set to
# perform ascending alpha sorts of the records in the database.
# If $ascending_sort = 0, sort drop down selects are intially set to
# perform descending alpha sorts of the records in the database.
$ascending_sort = '1';
# If $sort_buttons = 1, Print "Sort/Add" and "Sort/Remove" buttons.
# Setting $sort_buttons = '' disables printing of the "Sort/Add" and
# "Sort/Remove" buttons.
# The "Sort/Add" and "Sort/Remove" functions assign sequential database
# item id numbers after sorting database records by their category name.
# If you use item id query strings on the HTML pages of your WebStore,
# you should not use these functions to sort the records in the database.
# Removing the "Sort/Add" and "Sort/Remove" buttons from WS Editor
# will prevent accidental submission of these functions.
$sort_buttons = '1'; # 1
# If $single_spacing = 1, reduce multiple imbedded spaces to one space in
# database fields for all functions which modify the database.
# If $single_spacing = 0, ignore multiple imbedded spaces in database fields.
# WS Editor always removes leading and trailing whitespace from all fields.
$single_spacing = '1'; # 1
# $return_link_url is an absolute URL link printed at the bottom
# of all pages in WebStore whose format is:
#
# $return_link_url = 'http://www.YourDomain.xxx/AnyDirectories/Filename.html';
#
# Setting $return_link_url = '' disables printing of this URL.
#
# $script_url is internal to WS Editor, derived from the value of
# $main_script_url set in ws_global.setup.
#
# $return_link_title is the absolute URL's description.
$return_link_url = $script_url.'/ws400CS.cgi';
$return_link_title = 'Test WebStore';
# $email_link_url is an email link printed at the bottom of all
# pages in WebStore.
#
# Setting $email_link_url = '' disables printing of this link.
#
# $email_link_title is the email link's description.
$email_link_url = "WebStore\@ratite.com";
$email_link_title = 'Mail to: '.$email_link_url;
#--------------------------------------------------------------------------#
# Database of Items for Sale
#--------------------------------------------------------------------------#
# $category_fld_num is the array index number or field number of the
# "Category" field within a database record of outlet.data.
# 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9
# Color | Size | Shipping | Item | Category | Price | Name | Description | Image | Id
# NOTE: First element of an array is '0'.
$category_fld_num = '4';
# %FIELDS is a hash of arrays defining each database field and it's
# corresponding field input for the search engine forms used in WS Editor.
# The numeric KEYS permit ascending, sequential sorting of the arrays
# in %FIELDS in the order of occurrence in database records.
# For example, KEYS 00, 01, 02 correspond to database fields 0, 1, and 2.
# The field arrays in %FIELDS must be listed in the order of the field's
# occurrence in the database with the field array for 'Id' defined as the
# last array in %FIELDS.
# The 'Id' field array in %FIELDS must have 'Id' as element zero's value and
# 'id_field' as element one's value.
# Valid INPUT types are "select", "text", and "textarea".
#------------------------------------------------------------------------------#
# EXAMPLE: INPUT TYPE="text"
#
# Field 00:
#
# Elements of Field 00:
#
# 00 0 1 2
# '00' => ['Name', 'text', 'SIZE="35" MAXLENGTH="150"'],
#
# 00 = The form element's array index number
#
# 0 = Descriptive
header and
# For INPUT NAME, the script replaces spaces with _ (underscore)
# and switches all characters to lowercase.
#
# 1 =
#
# 2 = Attributes for the (size, maxlength, etc.)
#------------------------------------------------------------------------------#
# EXAMPLE: INPUT TYPE="textarea"
#
# Field 07:
#
# "textarea" input types are identical to "text" input types.
#
# 07 0 1 2
# '07' => ['Description', 'textarea', 'ROWS="4" COLS="58"'],
#
# 07 = The form element's array index number
#
# 0 = Descriptive
header and
# For INPUT NAME, the script replaces spaces with _ (underscore)
# and switches all characters to lowercase.
#
# 1 =
#
# 2 = Attributes for the (size, maxlength, etc.)
#------------------------------------------------------------------------------#
# EXAMPLE: INPUT TYPE="select"
#
# 04 0 1 2
# '04' => ['Category', 'select', 'Option1:Option2:Option3'],
#
# 04 = The form element's array index number
#
# 0 = Descriptive
header and
# For INPUT NAME, the script replaces spaces with _ (underscore)
# and switches all characters to lowercase.
#
# 1 =
#
# 2 = Colon delimited listing of options.
# Options may be listed on multiple lines.
#
# To select an option's value as