Applet: uShopInput20

Description:
The uShopInput20 applet provides the ability to quickly add a large number of product input applets to a page - using only one large applet. For each product you can specify the product's ID, name, description, weight, price and an image that will be linked to via a "View" button.

Example:


<APPLET CODE="uShopInput20.class" CODEBASE="../classes/" WIDTH=500 HEIGHT=450>
<PARAM NAME="product_list"       VALUE="
B0020A ,T-Shirt  ,Metallica        ,1,$15.00,../images/example_product_image.gif;
B0020B ,T-Shirt  ,Van Halen        ,1,$15.00,../images/example_product_image.gif;
B0020C ,T-Shirt  ,U2               ,1,$15.00,../images/example_product_image.gif;
B0020D ,T-Shirt  ,Smashing Pumkins ,1,$15.00,../images/example_product_image.gif;
B0020E ,T-Shirt  ,ACDC (1)         ,1,$15.00,../images/example_product_image.gif;
B0020F ,T-Shirt  ,ACDC (2)         ,1,$15.00,../images/example_product_image.gif;
B0020G ,T-Shirt  ,ACDC (3)         ,1,$13.00,../images/example_product_image.gif;
B0020H ,T-Shirt  ,REM              ,1,$15.00,../images/example_product_image.gif;
B0020I ,T-Shirt  ,INXS             ,1,$15.00,../images/example_product_image.gif;
B0020J ,T-Shirt  ,Spice Girls      ,1, $9.00,../images/example_product_image.gif;
B0020K ,T-Shirt  ,Pink Floyd       ,1,$15.00,../images/example_product_image.gif;
B0020L ,T-Shirt  ,The Doors        ,1,$15.00,../images/example_product_image.gif;
B0020M ,T-Shirt  ,The Beatles      ,1,$27.00,../images/example_product_image.gif;
B0020N ,T-Shirt  ,Duran Duran      ,1,$15.00,../images/example_product_image.gif;
B0020O ,T-Shirt  ,Bush             ,1,$15.00,../images/example_product_image.gif">
<PARAM NAME="option1"            VALUE="S,M,L,XL">
<PARAM NAME="qty"                VALUE="1">
<PARAM NAME="show_id"            VALUE="YES">
<PARAM NAME="show_name"          VALUE="YES">
<PARAM NAME="show_description"   VALUE="YES">
<PARAM NAME="show_weight"        VALUE="NO">
<PARAM NAME="show_qty"           VALUE="NO">
<PARAM NAME="show_price"         VALUE="YES">
<PARAM NAME="classification"     VALUE="NONE">
<PARAM NAME="shipping_modifier"  VALUE="$0.00">
<PARAM NAME="taxable"            VALUE="YES">
<PARAM NAME="popup"              VALUE="YES">
<PARAM NAME="background_color"   VALUE="#B3D9FF">
<PARAM NAME="text_color"         VALUE="#000000">
<PARAM NAME="fontsize"           VALUE="12">
</APPLET>


Parameters:

Name Description
codebase This parameter is actually part of the <APPLET> tag and therefore should be specified on the first line of the Applet (see example). It allows you to specify the location of this applet's class file. The recommended value is "../classes/". See codebase for more information.
product_list The list of products that will be displayed in the drop-down menu. For each product in the list, you must specify the product's id, name, description, weight, price, and image - each separated by a comma. You can list as many products as you like, just be sure to separate each product by a semicolor (;). For example: "P001,Dog,Beagle,10,$300.00,beagle.gif; P002,Dog,Labrador,25,$340.00,labrador.gif".

Note about the image parameter: The images that are specified should be located in the same directory as your class files...otherwise, be sure to include the path to the image relative to your classes directory. Note also that if you don't want to have an image at all, then just set the image parameters to "NONE".
option1 A list of options that apply to all of the items. Each option in the list should be separated by commas. Note that you can specify different prices for the options by using the "+" or "-" symbols. An example format is "gold,silver - $20.00,platinum + $50.00". See option parameter format for more information on options. Note, if you do not want to use this option list at all, set this value to "NONE".
qty The minimum quantity of this item that must be specified by the customer. If using the quantity entry box, this is also the default value that will appear in the quantity entry box. The default value for this parameter is "1".
show_qty This parameter allows you to specify whether to display the quantity entry box or not. Valid values are "YES" or "NO". The default value is "YES".
show_id This parameter allows you to specify whether to display the IDs of the products. Valid values are "YES" or "NO". The default value is "YES".
show_name This parameter allows you to specify whether to display the Names of the products. Valid values are "YES" or "NO". The default value is "YES".
show_description This parameter allows you to specify whether to display the Descriptions of the products. Valid values are "YES" or "NO". The default value is "YES".
show_weight This parameter allows you to specify whether to display the Weights of the products. Valid values are "YES" or "NO". The default value is "NO".
show_price This parameter allows you to specify whether to display the current price total (as it changes based on item selected and the quantity). Valid values are "YES" or "NO". The default value is "NO".
classification The classification of a product. This allows you to assign the product to a specific class of products such as "MUSIC CDS" or "VIDEO TAPES" and will be used to relate similar products. Typically, this parameter is used in correlation with quantity&price tables or setting up discounts such as "All CDs are 25% Off". The default value is "NONE".
shipping_modifier This parameter allows you to assign a specific shipping cost modifier for this product. For example, if you want to charge an extra $2.00 to ship this item, then you could set this parameter to "$2.00". The default value is "$0.00".
taxable This parameter allows you to specify whether this item is taxable or not. Valid values are "YES" or "NO". The default value is "YES".
label This parameter allows you to specify the text that appears on the "Add" button's label. You can specify any text for this parameter. The default value is "ADD".
view_label This parameter allows you to specify the text that appears on the "View" button's label. You can specify any text for this parameter. The default value is "View".
target This parameter allows you to specify a specific frame into which the results of the "View" button will be directed. The default value is "NONE".
popup This parameter allows you to specify whether to display a message in a popup window whenever this item has been added to the shopping cart. Valid values are "YES" or "NO". The default value is "NO".
background_color The applet's background color. This value can be specified as an RGB value such as "#FFFFFF" or as one of the keyword colors such as "white". See color parameter format for more information on colors.
text_color The applet's text color. This value can be specified as an RGB value such as "#000000" or as one of the keyword colors such as "black". See color parameter format for more information on colors.
fontsize The size of the font in the drop-down menu. The recommended sizes are "10" or "12". The default value is "12".