%FIELDS = (
# KEYS zero one two Field
'00' => ['Color', 'text', 'SIZE="20" MAXLENGTH="100"' ], # 0
'01' => ['Size', 'text', 'SIZE="20" MAXLENGTH="100"' ], # 1
'02' => ['Shipping', 'text', 'SIZE="20" MAXLENGTH="100"' ], # 2
'03' => ['Item', 'text', 'SIZE="32" MAXLENGTH="100"' ], # 3
'04' => ['Category', 'text', 'SIZE="68"' ], # 4
# '04' => ['Category', 'select', 'Outer Wear:Shirts:Sweaters'], # 4
'05' => ['Price', 'text', 'SIZE="20" MAXLENGTH="30"' ], # 5
'06' => ['Name', 'text', 'SIZE="68"' ], # 6
'07' => ['Description', 'textarea', 'ROWS="4" COLS="58"' ], # 7
'08' => ['Image', 'text', 'SIZE="68"' ], # 8
'09' => ['Id', 'id_field'], # 9
); # DO NOT REMOVE - terminates %FIELDS
%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.
The Id field must be defined and it's attribute value of id_field
MUST NOT BE CHANGED.
Valid INPUT types are
select,
text, and
textarea.
<INPUT TYPE="text"> select textarea
Elements of $FIELDS{00}:
KEY zero one two
'00' => ['Color', 'text', 'SIZE="20" MAXLENGTH="100"' ],
| zero |
|
Descriptive <TABLE> header text and <INPUT NAME="name">
For INPUT NAME, WS Editor replaces spaces with _ (underscore)
and switches all characters to lowercase. |
|
| one |
|
<INPUT TYPE="text"> |
|
| two |
|
Attributes for the <INPUT TYPE> (size, maxlength, etc.). |
|
<INPUT TYPE="textarea"> select text
Elements of $FIELDS{07}:
KEY zero one two
'07' => ['Description', 'textarea', 'ROWS="4" COLS="58"'],
| zero |
|
Descriptive <TABLE> header text and <INPUT NAME="name">
For INPUT NAME, WS Editor replaces spaces with _ (underscore)
and switches all characters to lowercase. |
|
| one |
|
<INPUT TYPE="textarea"> |
|
| two |
|
Attributes for the <INPUT TYPE> (size, maxlength, etc.). |
|
<INPUT TYPE="select"> text textarea
Elements of $FIELDS{04}:
KEY zero one two
'04' => ['Category', 'select', 'Outer Wear:Shirts:Sweaters'],
'04' => ['Category', 'select', 'Option1:Option2:Option3'],
| zero |
|
Descriptive <TABLE> header text and <INPUT NAME="name">
For INPUT NAME, WS Editor replaces spaces with _ (underscore)
and switches all characters to lowercase. |
|
| one |
|
<INPUT TYPE="select"> |
|
| two |
|
Colon delimited listing of options. Leading and trailing
whitespace
are removed from each option. Whitespace strings embedded within options
are reduced to one space. Options may be listed on multiple lines:
'04' => ['Category', 'select',
'Option1:
SELECTED~Option2:
Option3'
], |
|
To select a specific option as <OPTION SELECTED>, precede the
the option with SELECTED~ |
|
|
'04' => [ 'Category', 'select', 'Option1:SELECTED~Option2:Option3' ], |
|
|
Option2 will be printed as the <OPTION SELECTED>. |
|
Index
$category_fld_num = '4';
$category_fld_num is the array index number or field number of the Category
field within all database records of outlet.data.
Index
Security
$user_security = 'add delete modify';
$user_security is the security group assigned to all users when they register.
Security levels can be modified for any user listed in the user file by removing
"add, delete, or modify" from the user's record.
Valid security attributes are
add delete modify or
admin.
admin gives full permissions and is equal to
add delete modify.
Security attributes may be listed in any order.
Index
$allow_register = '1';
$email_register = '0';
If $allow_register = 0, new user registration is not allowed. $email_register and $generate_password are also disabled, regardless of their values in this setup file.
If $allow_register = 1 and $email_register = 0, new user registration is allowed and users are added immediately to the user database.
If $allow_register = 1 and $email_register = 1, new user registration is allowed. New user's details are emailed to the database administrator and must be manually added to the user's database. Add the line from the administrative email containing the encrypted password which is labeled "Database Record:" to the user's database.
Index
$generate_password = '0';
If $generate_password = 1, WS Editor uses it's password and encryption routines to generate new user passwords. Password is emailed to the new user and must be retrieved by the user before logging in.
If $generate_password = 0, new users are allowed to enter a password of their choice and may logon immediately.
Index
$allow_search = '1';
If $allow_search = 1, allow users to search for usernames.
If $allow_search = 0, username search is disabled.
Index
$duplicate_check = '1';
If $duplicate_check = 1, WS Editor checks for the possible duplication of a user's details before registering a user.
If $duplicate_check = 0, duplicate checking is disabled.
Index
HTML Display
$data_font and
$data_face,
set in ws_global.setup,
are used with
$extc_fnt_clr,
$error_fnt_clr,
$html_fnt_clr, and
$message_fnt_clr
to develop opening <FONT> tags for use in table data rows.
$header_font and
$header_face,
set in ws_global.setup,
are used with $header_fnt_clr to develop
an opening <FONT> tag for use in table header rows.
$BORDER = '4';
$CELLPADDING = '3';
$CELLSPACING = '0';
Dimensions of the table's borders, space between text and columns, and width of borders between rows can be modified by adjusting the values of $BORDER, $CELLPADDING, and $CELLSPACING.
Setting $BORDER = 0 disables border display.
Index
# $background = 'image.jpg';
$bgcolor = '#F0F8FF'; # Aliceblue
# $text_color = '#000000'; # Black
# $link_color = '#0000FF'; # Blue
# $vlink_color = '#0000A0'; # Dark Blue
# $alink_color = '#FF0000'; # Red
Values for background, bgcolor, text, link, visited link, and active link
are set using $background, $bgcolor, $text_color, $link_color, $vlink_color,
$alink_color respectively.
These variables are set globally in
ws_global.setup
for use by all scripts in the WebStore application.
To configure specific colors for WS Editor, remove the
# (pound sign) from column 1 and set to the
desired value. Any combination of these variables may be uncommented (pound sign removed).
$background is the filename of the background image stored in the
/Web_store/Graphics sub-directory.
The script determines whether to precede $backgound with $graphics_url
or $ssl_graphics_url depending on the setting of $ssl_url and by including a
name=value pair for 'use_ssl' in the query string of the URL accessing ws_editor.cgi:
ws_editor.cgi?use_ssl=Y. Under most conditions, WS Editor is accessed
without the use of SSL.
$graphics_url/$background OR $ssl_graphics_url/$background
Setting any of these variables = '';
disables printing their respective attribute within the opening <BODY> tag
of WS Editor generated HTML pages.
Index
$header_bkg_clr = '#0000A0'; Darkblue
$header_fnt_clr = '#CCCCCC'; Lightgray
$header_bkg_clr and $header_fnt_clr are the background color and font color used in table header rows to display table page headers.
Setting $header_bkg_clr = ''; disables $header_bkg_clr.
Setting $header_fnt_clr = ''; disables $header_fnt_clr.
Colors default to <BODY BGCOLOR or BACKGROUND> and <BODY TEXT> attributes.
Index
$message_fnt_clr = '#0000A0'; Darkblue
$message_fnt_clr is the font color used in table header rows
to display helpful messages to users.
Setting $message_fnt_clr = ''; disables $message_fnt_clr.
Text color defaults to <BODY TEXT> attribute.
Index
$error_fnt_clr = '#C00000'; Darkred
$error_fnt_clr is the font color used in table header rows
to display user key entry error messages or additional information
concerning the function just performed (or submitted) by the user.
Setting $error_fnt_clr = ''; disables $error_fnt_clr.
Text color defaults to <BODY TEXT> attribute.
Index
$extc_fnt_clr = '#0000FF'; Blue
$extc_fnt_clr is the font color used in all "Modify Item" functions to display the extended HTML character set ( , ©, etc.).
$extc_fnt_clr must be defined and can not be disabled.
$extc_fnt_clr defaults to '#0000FF' if mis-configured.
Index
$html_fnt_clr = '#FF0000'; Red
$html_fnt_clr is the font color used in all "Modify Item" functions to display <HTML> tags.
$html_fnt_clr must be defined and can not be disabled.
$html_fnt_clr defaults to '#FF0000' if mis-configured.
1; # DO NOT REMOVE IN outlet_editor.setup
# End of file
Index | Top of Page